News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

wxSmith custom properties

Started by zylinder, July 16, 2011, 10:11:50 PM

Previous topic - Next topic

zylinder

Hi,

i'm using CodeBlocks 10.05 (just started) with wxSmith as designer.
My question is regarding the automatic code generation:
e.g.: i create a panel and want to set the property "AUI Name"
but i want to enter a variable-name instead of the "real" name.

The automatic code generation should do not add the _T("...")


    WxAuiManager->AddPane(Panel1, wxAuiPaneInfo().Name(_T("AUI_NAME_LOG_WINDOW")).....


I would like to have it like this (AUI_NAME_LOG_WINDOW variable from include-file):


    WxAuiManager->AddPane(Panel1, wxAuiPaneInfo().Name(AUI_NAME_LOG_WINDOW).....



Is it possible with some "special" prefixes $,% ?

oBFusCATed

As far as I know wxSmith doesn't support such prefixes.
But they will be handy.

Patches welcome, because I have no time at the moment to work on this :(
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

poda19

hi,
i was reading wxsmith tutorial and i found that:
Quote//(*InternalHeaders(Tutorial_4Frame)
#include <wx/intl.h>
#include <wx/string.h>
//*)

This is a block of code that is automatically generated by wxSmith. Every block starts with a //(*BlockName comment and ends with a //*). You may find other blocks in both header and source files. If you change their content, all changes will be lost next time you change something in the editor.

does this mean that i can't edit any code that is created with wxsmith? or i can edit them(for example creating a dialog box with wxsmith and placing any wxwidgets functin,classes,headers,... in it)
(should i create a new topic for every question or ask them in a relevant topic?)
"Common sense is the most fairly distributed thing in the world, for each one thinks he is so well-endowed with it."<br />Rene Descartes

Freem

It mean that you can modify, but next time you'll use wxSmith on the associated file, your changes will be lost, because wxSmith will have rewritten things.

poda19

"Common sense is the most fairly distributed thing in the world, for each one thinks he is so well-endowed with it."<br />Rene Descartes