Code::Blocks

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: vanangamudi on January 26, 2012, 05:58:22 pm

Title: Half way around
Post by: vanangamudi on January 26, 2012, 05:58:22 pm
Hey guys I hav setup CB environment for CB plugin development...

1) how to compile the plugin source without main() function and ,
2) I need to add new toolbar to CB how can I do it with plugin system without disturbing CB base.

help me with it....
Title: Re: Half way around
Post by: oBFusCATed on January 26, 2012, 06:01:26 pm
Hm, have you tried the C::B plugin template? It should produce project able to build simple plugin.
For the toolbar check some of the core plugins. Both the debugger and compiler plugins create toolbars.
Title: Re: Half way around
Post by: jens on January 26, 2012, 06:35:10 pm
Look at the IncrementalSearch-plugin (for example) it creates a toolbar and menu-entries, and it does not disturb anything (of course).

And please do not start a new topic for more or less the same question all the time.
Title: Re: Half way around
Post by: vanangamudi on January 27, 2012, 03:56:27 am
Incremental Search seems to be simple and where can I find the source... I hav googled but no use... any sourceforge/berliOs link >>>> ???

and about the Plugin template.. I'm working on it.....
Title: Re: Half way around
Post by: MortenMacFly on January 27, 2012, 04:05:39 am
Incremental Search seems to be simple and where can I find the source... I hav googled but no use... any sourceforge/berliOs link >>>> ???
Via Subversion, see here:
http://www.codeblocks.org/downloads/7
Title: Re: Half way around
Post by: vanangamudi on January 27, 2012, 10:04:16 am
Incremental Search seems to be simple and where can I find the source... I hav googled but no use... any sourceforge/berliOs link >>>> ???
Via Subversion, see here:
http://www.codeblocks.org/downloads/7

I hav downloaded the source already... I searched it but cant find the source for the plugin... I'll search again and report here... thanx..
Title: Re: Half way around
Post by: jens on January 27, 2012, 10:21:26 am
It's in src/plugins/contrib/IncrementalSearch .
Title: Re: Half way around
Post by: vanangamudi on January 28, 2012, 05:06:32 am
what is the fucntion of the _T( ) and _( ) boz I'm a newbie to wxWidgets

I find these thing here..
 
Code: [Select]
wxMenuItem* itemTmp = new wxMenuItem(   menu,
                                                idIncSearchFocus,
                                                _("&Incremental search\tCtrl-I"),
                                                _("Set focus on Incremental Search input and show the toolbar, if hidden") );

and
Code: [Select]
if (cfg->ReadInt(_T("/incremental_search/regex_default_state"),0) == 2)
    {
        cfg->Write(_T("/incremental_search/regex"),m_flags & wxSCI_FIND_REGEXP);
    }


and I found the .cbp for IncrementalSearch but the toolbar UI that is .xrc for Toolbar is not showing up only configuration dialog UI is available....
well I could fix the later pls help with above two....
Title: Re: Half way around
Post by: jens on January 28, 2012, 08:51:21 am
The xrc can not be shown by wxSmith, because it uses an incomptaible control, I created it manually.
For the otherf two, you should read the wxWidgets documentation to learn about it (and many other stuff you will find).
Title: Re: Half way around
Post by: vanangamudi on February 11, 2012, 02:09:44 pm


the plugin didn't respond.. did I made any mistakes???


(http://farm8.staticflickr.com/7183/6856255375_d3532cb062_b.jpg)



KeyBinder failerd UpdateByID       ----> wat does this  mean???
Title: Re: Half way around
Post by: Pecan on February 12, 2012, 11:52:34 am
Quote
KeyBinder failerd UpdateByID       ----> wat does this  mean???

It means that a key definition or id that existed at the previous shutdown of CB could no longer be found. This usually happens when a plugin was disabled or failed to load, but it could also have other causes such as inserting a menu item by a dynamic id.



Title: Re: Half way around
Post by: vanangamudi on February 12, 2012, 03:53:17 pm
Any Idea to rectify it???
Title: Re: Half way around
Post by: Pecan on February 14, 2012, 12:11:29 pm
Any Idea to rectify it???

The message is information onlyl. There's nothing to rectify.
Keybinder will correct itself.
Title: Re: Half way around
Post by: vanangamudi on February 14, 2012, 05:22:40 pm
I mean Every time I load it it display this error... wat shud do ?? can u get me??
Title: Re: Half way around
Post by: vanangamudi on February 17, 2012, 02:07:02 pm
I want to access this param of EditorBase class. m_Filename. to compile the current file open in the editor window... how can I access. in otherwords do I need to inherit this class ot there is another like Manager::XXX()->YY();

And I need to invoke other programs like avrdude installed in the system... how to invoke them... i cannnot use execute_command()??
Title: Re: Half way around
Post by: MortenMacFly on February 17, 2012, 02:25:35 pm
I want to access this param of EditorBase class. m_Filename
You have to read the documentation here:
http://prdownload.berlios.de/codeblocks/codeblocks_sdk_doc_r7059.chm
...if you want to develop use SDK methods. It's all written and explained there.
Title: Re: Half way around
Post by: vanangamudi on February 17, 2012, 04:28:52 pm
I found this fucntion there cbSyncExecute( ) ----> wat header file I hav to include to compile my plugin?? I hav tried cbexecute.h but no use .... how to include it in my project??
Title: Re: Half way around
Post by: vanangamudi on March 05, 2012, 03:19:56 pm
wat about wxProcess class of wxWidgets... in conjuction with wxExecute( )...
Title: Re: Half way around
Post by: oBFusCATed on March 05, 2012, 03:55:50 pm
Look at the PipedProcess class. It is used both in the compiler and debugger plugins.