CodeLite should be the best IDE there
So, where is the docs for writting plugins? I always dream to make helpfile plugin and I think it will be high time for me to do it!
CodeLite 15.x
CodeLite is awesome, I just Love it!
To write a plugin is pretty simple and I will describe it here:
1) Download codelite sources, open the workspace 'LiteEditor.workspace' and compile it.
2) Next (still in codelite workspace) select from the menu: Plugins -> Gizmos -> Create New C++ Plugin
3) Follow the wizard question (3 questions in total), when you are asked to provide the path to codelite sources, simply point it to the base path of codelite sources
4) Click OK, and you will have a new project with the provided name.
Now, you got your first plugin created right click it and compile it.
The template files created for you contains many comments which explains what to do in each method.
The main plugin class inherits from IPlugin and implements various API methods.
Each plugin can connect itself to the any codelite event as described in the file 'plugin.h'
But the best way to learn how to write a plugin is by looking at other plugins code (after you created your template ofc)
I went ahead and tried!
First The Linker path was wrong (I use SVN version, three or four days ago version). Also there is wxlibgrid... I don't remember well which is no where to be found in SDK libs and wxLibs. I removed it in linker and compiled fine. I droped DLL in Codelite/plugins DIR and restarted Codelite. Went to manage plugins and it is not there. I Just want to get feeling of how it looks like.
Enough of explanation. How do I create A MessageBox and Add menu/Toolbar/whatever shortcut and once clicked will show it? How does plugin communicate with CL?
Thanks
CodeLite 15.x
CodeLite is awesome, I just Love it!
evstevemd wrote:Also there is wxlibgrid... I don't remember well which is no where to be found in SDK libs and wxLibs. I removed it in linker and compiled fine.
Thanks, I will remove it from the templates, since it was removed from codelite source tree a while ago
evstevemd wrote:How do I create A MessageBox and Add menu/Toolbar/whatever shortcut and once clicked will show it?
Follow the code in Subversion plugin.
Especially look at the source 'subversion2.cpp'
Look at the trace tab : it probably shows you that it's not the good plugin version. Be sure to run your plugin in the same version of the CL youo build.