Author Topic: "C::B Share Configuration" tool  (Read 38076 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9702
"C::B Share Configuration" tool
« 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:


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]
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5513
Re: "C::B Share Configuration" tool
« Reply #1 on: August 10, 2006, 10:07:30 am »
very nice tool, I will surely use it !!!

Download link ... ???

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: "C::B Share Configuration" tool
« Reply #2 on: August 10, 2006, 10:09:45 am »
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? :)
Be patient!
This bug will be fixed soon...

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9702
Re: "C::B Share Configuration" tool
« Reply #3 on: August 10, 2006, 10:19:28 am »
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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9702
Re: "C::B Share Configuration" tool
« Reply #4 on: August 10, 2006, 10:20:38 am »
Download link ... ???
...on the bottom of my first message?! Isn't this working?!
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5513
Re: "C::B Share Configuration" tool
« Reply #5 on: August 10, 2006, 10:36:30 am »
Download link ... ???
...on the bottom of my first message?! Isn't this working?!
I must be going blind, I still don't see it ...

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9702
Re: "C::B Share Configuration" tool
« Reply #6 on: August 10, 2006, 10:40:53 am »
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

Edit: Or, even better: download this: 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.
« Last Edit: August 10, 2006, 10:48:07 am by MortenMacFly »
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5513
Re: "C::B Share Configuration" tool
« Reply #7 on: August 10, 2006, 12:00:00 pm »
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.

:-(

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9702
Re: "C::B Share Configuration" tool
« Reply #8 on: August 10, 2006, 12:47:36 pm »
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... ;-)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Game_Ender

  • Lives here!
  • ****
  • Posts: 551
Re: "C::B Share Configuration" tool
« Reply #9 on: August 10, 2006, 02:50:48 pm »
Is this a pluggin or stand alone tool?  It seems like a greate replacement/upgrade for the now dead export configuration function.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9702
Re: "C::B Share Configuration" tool
« Reply #10 on: August 10, 2006, 02:57:52 pm »
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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: "C::B Share Configuration" tool
« Reply #11 on: August 11, 2006, 03:08:20 pm »
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,




then it expands the listboxes nicely when resizing the frame,




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]
« Last Edit: August 11, 2006, 04:42:58 pm by tiwag »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9702
Re: "C::B Share Configuration" tool
« Reply #12 on: August 11, 2006, 07:21:48 pm »
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)...
« Last Edit: August 11, 2006, 07:48:26 pm by MortenMacFly »
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: "C::B Share Configuration" tool
« Reply #13 on: August 11, 2006, 08:45:30 pm »
... 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 ...
« Last Edit: August 11, 2006, 08:47:40 pm by tiwag »