Recent Posts

Pages: [1] 2 3 4 5 6 ... 10
1
Development / Re: Thinking about a wxSmith Clone Dialog Feature
« Last post by tigerbeard on Today at 05:34:02 pm »
You can look how wxSmith does it in the wxSmith->Add wxDialog menu.
Great Tried that before but gave up as nobody seemed to had any refernces to wxNewWindowDlg. But now I found that its OnCreate() handler does have the logic

Code
  cbProject* cProject = m_pProject->GetCBProject();      // seems to get the project to add files to 

Then there is a larger Params structure set up used to create the target classes as a wxsFrameRes, a wxsDialogRes or wxPanelRes These classes are then added. In my case I would not do that because that must be parsed from the cloned source files.

Next the files seem to be added to the project. Not sure where the Targets come from - maybe its an interactive call.. Not sure if thats already writing it to the project file, but a "File/SaveAll"  should to that manually.
Code
 wxArrayInt vnTargets;               // I  guess build targets
 Manager::Get()->GetProjectManager()->AddFileToProject( strHeaderFilename, cProject, vnTargets );
 Manager::Get()->GetProjectManager()->AddFileToProject( strCppFilename, cProject, vnTargets );
 Manager::Get()->GetProjectManager()->AddFileToProject( strWxrFilename, cProject, vnTargets );
 Manager::Get()->GetProjectManager()->GetUi()->RebuildTree();

Then there is this section where I am not sure where that saves to. I an not sure I need that. At least the files were not written there. There are quire a few comments in the ConfigManager header but they do not tell what its supposed to do.
Code
 // save configuration
 ConfigManager* Cfg = Manager::Get()->GetConfigManager( "wxsmith" );
 Cfg->Werite( "/newresource/useinitfunc", m_InitFunc->GetValue() );
 ...

I guess the part to re-parse the files needs to be found elsewhere. but restarting the project should do that as well.

So that should be enough for some mindless trial and error  ;). Thanks  a lot.

2
Development / Re: Thinking about a wxSmith Clone Dialog Feature
« Last post by Miguel Gimenez on Today at 04:32:53 pm »
You can look how wxSmith does it in the wxSmith->Add wxDialog menu.
3
Development / Thinking about a wxSmith Clone Dialog Feature
« Last post by tigerbeard on Today at 02:59:21 pm »
I'd love to have a wxSmith "Clone Dialog" function. Because very often it would be faster to remove unused stuff from an existing dialog than to create a new one from scratch.

Currently I am working in a project with a lot of dialogs so there would be plenty of choice for re-use. So I was thinking about how that could be done. Basic steps would be:

* Read from CBP file: CPP, H, WXS filenames for a given "OldClassName"
* Get a new "NewClassName" from User via dialog
* clone the project CPP and H and WXS file of the old dialog
* search and replace the OldClassName with NewClassName in the CPP, H, WXS files.
* add a new line in the CPB file's <wxsmith> section with the WXS, CPP, H, Classname.

Then somehow make CB be aware of the new files and wxSmith of the new WXS file to reload the Resource window list.
Probably not as simple as it sounds? Is that missing something?

I figured out how to add a menu items to a wxSmith tree. The next problem is to read and write a given line from/to the CBP file, but I could not figure that out yet. Any ideas?


4
Development / Re: new feature of wxSmith in r13522
« Last post by tigerbeard on Today at 01:44:41 pm »
Very good. Thanks for the info.

I happen to be working a lot with wxSmith these days and I really love it.
5
Disable the plugin and check again...
6
Using Code::Blocks / Re: alternative GDB issue
« Last post by nenin on Today at 09:13:25 am »
For me main surprise was that C::B abandoned default gdb configuration and selected "nix64". It is good feature- manual selection of the actuald debugger-  but when user do it with purpose.  I did not do it, and I`m afraid that there is kind of "slow" corruption of the default.conf 
I`m using  ssbssa gdb from time to time, when update of the gdb in mingw distribution is delayed. It is solid stuff.
7
Hello,
I downloaded a recent nightly build, but there is an issue with default code:. The default code will appear in .cpp files, but not in .h files. I like the automatic header file guard #ifndef FOO_H_INCLUDED... Could it be that the default code is over-written by this?
Thanks in advance!
8
Using Code::Blocks / Re: alternative GDB issue
« Last post by ollydbg on Yesterday at 02:24:02 pm »
Grad to see you have solved your problem.

I use this GDB https://github.com//ssbssa for a long time. I think this GDB is better than the Msys2's GDB.

 :)
9
Help / Re: some of my workspaces don't have "other" files folder
« Last post by Miguel Gimenez on Yesterday at 11:05:22 am »
Spam reported to moderator.
10
Help / Re: some of my workspaces don't have "other" files folder
« Last post by otionwazzack on Yesterday at 09:43:29 am »
When these files aren't really included in the application the project is creating, I have begun unchecking those boxes lately.  They are either byproducts of the ongoing activity or just helpful in some manner to the endeavor.

geometry dash
Pages: [1] 2 3 4 5 6 ... 10