Recent Posts

Pages: [1] 2 3 4 5 6 ... 10
1
Using Code::Blocks / Re: Code::Blocks and wxWidgets 3.2.5...
« Last post by Sephiroth on Today at 08:37:30 pm »
Thank you, I will start there.
2
Using Code::Blocks / Re: Code::Blocks and wxWidgets 3.2.5...
« Last post by stahta01 on Today at 08:32:07 pm »
Link that should help; I have never read or used these steps.

https://github.com/PBfordev/wxpbguide

Tim S.
3
Using Code::Blocks / Re: Code::Blocks and wxWidgets 3.2.5...
« Last post by Sephiroth on Today at 08:27:07 pm »
Yes, the latest stable, 20.03. Are there instructions or a guide for editing the wizard to add support for 3.2.x? I stick with CB because I can work in Windows or Linux on the same project using the same IDE. I also despise MSVS requiring an account to use now.
4
Using Code::Blocks / Re: Code::Blocks and wxWidgets 3.2.5...
« Last post by stahta01 on Today at 08:17:21 pm »
Code::Blocks version? If 20.3 then, if I recall correctly, you need to edit the wizard.

Edit: Add link that should help.
https://github.com/PBfordev/wxpbguide

Tim S.
5
Using Code::Blocks / Code::Blocks and wxWidgets 3.2.5...
« Last post by Sephiroth on Today at 08:10:47 pm »
I could swear there was a thread on this in the past, but I couldn't find it. Anyway, I am trying to setup wxWidgets with Code::Blocks on my laptop. I downloaded both, installed CB, unzipped wx to C:\wxWidgets-3.2.5, built wx with shared, monolithic, and unicode. I defined the global "wx" variable in CB and set the include and lib paths as well as the base path. I have to select wxWidgets 3.1.x but when I get to the end it all errors out, telling me it cannot find debug or release builds. I did indeed build wxWidgets (C:\wxWidgets-3.2.5\build\msw) and it completed successfully, but I'm stumped now. What am I missing?
6
Development / Re: Thinking about a wxSmith Clone Dialog Feature
« Last post by Miguel Gimenez on Today at 06:03:49 pm »
The last section is saving the current selections in wxNewWindowDlg to default.conf, so they will be the defaults in the next call. You can ignore it.
7
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.

8
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.
9
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?


10
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.
Pages: [1] 2 3 4 5 6 ... 10