Author Topic: wxSmith custom properties  (Read 3598 times)

zylinder

  • Guest
wxSmith custom properties
« on: July 16, 2011, 10:11:50 pm »
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("...")

Code: [Select]
    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):

Code: [Select]
    WxAuiManager->AddPane(Panel1, wxAuiPaneInfo().Name(AUI_NAME_LOG_WINDOW).....


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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12911
    • Travis build status
Re: wxSmith custom properties
« Reply #1 on: July 18, 2011, 06:48:11 pm »
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!]

Offline poda19

  • Multiple posting newcomer
  • *
  • Posts: 10
Question: Editing wxsmith code
« Reply #2 on: August 03, 2011, 02:04:48 pm »
hi,
i was reading wxsmith tutorial and i found that:
Quote
Code: [Select]
//(*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

Offline Freem

  • Almost regular
  • **
  • Posts: 219
Re: wxSmith custom properties
« Reply #3 on: August 03, 2011, 02:14:04 pm »
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.

Offline poda19

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: wxSmith custom properties
« Reply #4 on: August 03, 2011, 02:21:15 pm »
thanks
"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