Code::Blocks Forums
Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: MortenMacFly on August 10, 2006, 09:52:09 am
-
Dear all,
since I have to transfer quite often specific (not all) settings from one C::B installation to another I've developed an application that does that with a nice GUI for me. Please find the sources and a screenshot attached.
Currently this tool can transfer the settings I (and other devs) found out to be the most convenient as there are:
- (all) tools
- (individual) compiler sets
- (individual) user compiler sets
- (all) help files from the help plugin
- (all) environment variables
- (all) global variables
You can freely expand the tool to fit your own needs.
Here is a screenshot:
(http://img156.imageshack.us/img156/6448/cbsharecfggg4.png) (http://imageshack.us)
BTW: This tool has a bug with the controls (frame) not being resized correctly. I didn't find out why, any help is appreciated. Testing is welcome, although I've used this tool successfully quite often already.
With regards, Morten.
Ps.: Something technical: The tinyxml subfolder is the same as the one from C::B SVN. You may want to integrate the sources into your C::B sources and/or point to the C::B tinyxml sources instead to avoid code duplication. A good place to put these sources would be [C::B_SVN]\tools\CB_ShareCfg (on the same level where autorevison and Console runner are). That's how I do it... ;-)
[attachment deleted by admin]
-
very nice tool, I will surely use it !!!
Download link ... ???
-
Ps.: Something technical: The tinyxml subfolder is the same as the one from C::B SVN. You may want to integrate the sources into your C::B sources and/or point to the C::B tinyxml sources instead to avoid code duplication. A good place to put these sources would be [C::B_SVN]\tools\CB_ShareCfg (on the same level where autorevison and Console runner are). That's how I do it... ;-)
So why didn't you add it in the tools/ subfolder in svn? :)
-
So why didn't you add it in the tools/ subfolder in svn? :)
Should I... I wasn't sure becasue it still has this resize bug... ;-)
I'll add this to SVN as soon as this is fixed.
With regards, Morten.
-
Download link ... ???
...on the bottom of my first message?! Isn't this working?!
-
Download link ... ???
...on the bottom of my first message?! Isn't this working?!
I must be going blind, I still don't see it ...
-
I must be going blind, I still don't see it ...
Try this one: http://forums.codeblocks.org/index.php?action=dlattach;topic=3807.0;attach=1358 (http://forums.codeblocks.org/index.php?action=dlattach;topic=3807.0;attach=1358)
Edit: Or, even better: download this: http://www.savefile.com/files/8389693 (http://www.savefile.com/files/8389693) and put the contents of the ZIP file in a directory named "CB_ShareCfg" in the C::B tools folder. These sources will not include the TinyXML sources (but use them from C::B) and has the project file adopted accordingly.
-
savefiles --> fails :-( [EDIT] : after 5 tries : OK
and the other link you just posted gives me this :
An Error Has Occurred!
It seems that you are not allowed to download or view attachments on this board.
:-(
-
savefiles --> fails :-( [EDIT] : after 5 tries : OK
and the other link you just posted gives me this :
An Error Has Occurred!
It seems that you are not allowed to download or view attachments on this board.
:-(
...maybe I should just add it to SVN then as Yiannis suggested... ;-)
-
Is this a pluggin or stand alone tool? It seems like a greate replacement/upgrade for the now dead export configuration function.
-
Is this a pluggin or stand alone tool? It seems like a greate replacement/upgrade for the now dead export configuration function.
It's a stand-alone tool. And yes: It was intended to replace the export/import feature - at least for me that is... ;-)
BTW: The configuration cannot and should not be changed from within a running C::B - that's why it is implemented as an external tool.
-
BTW: This tool has a bug with the controls (frame) not being resized correctly. I didn't find out why, any help is appreciated. Testing is welcome, although I've used this tool successfully quite often already.
Hi Morten,
you have to set the Proportion of the Gridsizer, which contains the Listboxes, to value 1,
(http://img130.imageshack.us/img130/4796/screenprop2jw1.png)
then it expands the listboxes nicely when resizing the frame,
(http://img57.imageshack.us/img57/5624/screenprop1bi0.png)
Proportion= 0 is used to keep the original size, which is wanted for all other controls of this frame.
HTH, tiwag
attached is the updated project
[attachment deleted by admin]
-
you have to set the Proportion of the Gridsizer, which contains the Listboxes, to value
You are THE MAN. Thanks tiwag, I knew it must have been something simple (simply stupid). Nice work!
With best regards, Morten.
Ps.: I guess I'll add this to SVN sooner or later when it is found to be ok (Yiannis kind of agreed already)...
-
... Thanks tiwag, I knew it must have been something simple ...
You are welcome ! ;-)
a while ago i spent a half day with try and error to solve this issue ...
... until i've read in the wx manual (Using sizers, Programming with BoxSizers) and there it was explained well ...