Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

Plugin for a Programming Language

<< < (3/7) > >>

dmoore:

--- Quote from: igorevc on January 28, 2009, 12:30:33 am ---I made a research on Code::Blocks Plugin Development and I found what I was looking for:

http://wiki.codeblocks.org/index.php?title=Creating_a_plugin_that_actually_does_something

But the tutorial is incomplete. Is there an updated (and completed) version of the tutorial?

--- End quote ---

unfortunately plugin development documentation is in a sorry state (lots of incomplete stuff). The best way to learn is just to download code::blocks source and inspect some of the plugins.

We can help you, but you need to give us a better idea of what you want to do. I suggest writing up a short description that more precisely lays out a minimal sample project and the features that you want to support.


--- Quote from: igorevc on January 28, 2009, 12:19:02 am ---"compiler toolchain"?
I'm a bit confused. Explain better.

--- End quote ---

take a look at Settings -> Compiler and Debugger -> "Other Settings" tab -> Advanced Options

that will give you an idea of how you might be able to abstract the concept of a compiler to your purposes. that could save you a bunch of coding time.

dmoore:
also look at

http://wiki.codeblocks.org/index.php?title=Adding_support_for_non_C/C%2B%2B_files_to_the_build_system

and for the record:


--- Quote from: igorevc on January 28, 2009, 12:30:33 am ---http://wiki.codeblocks.org/index.php?title=Creating_a_plugin_that_actually_does_something

--- End quote ---

was written by the project leader to educate me on how to write a plugin. :) If you are interested in that specific example, it actually became the basis for the "ShellExtensions" plugin (which does a lot more than just launch external programs: it has a file manager, supports custom commands and redirection of command output to a dockable window). I'm working on getting that plugin ready for the main cb repository. Right now, you can find it by following the link to the project page in my sig.

igorevc:
I'm more interessed in the code itself.
Could you put also the code?

Thank you for your attention.

dmoore:
it's an open source project. the source is at the project page (look under SVN)

EDIT: Let me warn you that the code needs a lot of cleanup

igorevc:
Good afternoon.

Just for now, I need to make a plugin that:
 - when plugged to Code::Blocks, it will add a new project type and new file extensions
 - when unplugged to Code::Blocks, the new project type and new file extensions will disappear

Is it possible? If so, can someone help me out?

I thank you for your attention.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version