News:

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

Main Menu

wxSmith development

Started by byo, May 26, 2005, 02:38:44 AM

Previous topic - Next topic

byo

I will get back to one of previous posts about iconized buttons in palette window
Quote from: rickg22Why not just grab upCase's? :wink:
I don't se anywhere source for wxRapid, don't want to fetch from exe using some brute attempt ;).
But maybe anybody would like to help and create some nice-looking ones :D I would be grateful :D

I remember how actual C::B logo was created and I believe that there are some people here who could handle this work :D

cyberkoa

Quote from: byo
Quote from: cyberkoa
I have 1 question , under the Watch Tab , there is not symbols.
However, if I use the CB 1.0beta-final (the one I use to compile CB) , I open wxSmith.cbp . there are symbols under Watch .

Any idea ? Anyway , I just curious only.  I put more attention to the wxSmith source code study .

Hmm, I don't have any watches. Can You post here their names ? Maybe I've addeed something to wrong tree ;)

sorry, I make mistake  :oops:  not the watches , but the symbols . Meaning , there is no symbols appear under tab "Symbol" (if I run in the developing version of CB)

no problem in CB final-beta-1.0

Quote from: byoBy the way - I've updated to wxNotebook interface - it should be available in anonymous cvs in few hours

I shall update later .

cyberkoa

Hi ,byo.

I have tried to add more information in the resources tree for each node , I have added in

widget.cpp

void wxsWidget::BuildTree(wxTreeCtrl* Tree,wxTreeItemId Id,int Index)
{
     wxString Name = GetInfo().Name;

   Name = Name.Append(" - ");
   Name = Name.Append(GetBaseParams().VarNotStored?
GetBaseParams().VarName:GetBaseParams().IdName);

....
}

My intention is to add more detail for each resources rather than only showing the class name like "wxButton" etc .

My question is ,what is the purpose of having the flag VarNotStored in the struct wxsWidgetBaseParams.
In the source you mention "True if widget's variable won't be stored inside main window" , can you explain more on this, I thought it indicates whether the widget have variable name key in ? Sorry if this is a silly question because I just get to know wxwidgets 2 months ago...

byo

Quote from: cyberkoavoid wxsWidget::BuildTree(wxTreeCtrl* Tree,wxTreeItemId Id,int Index)
{
     wxString Name = GetInfo().Name;

   Name = Name.Append(" - ");
   Name = Name.Append(GetBaseParams().VarNotStored?
GetBaseParams().VarName:GetBaseParams().IdName);

....
}


thx for advice - will updae soon :)

Quote from: cyberkoa
My question is ,what is the purpose of having the flag VarNotStored in the struct wxsWidgetBaseParams.

I would like wxSmith to create dialogs and other resources in two ways - first one is to create XRC file and then to automatically manage code loading / event handling etc. Second way is to manage code wchich would create dialog without loading xrc. In this way each widget must have it's variable (just pointer to it's class) - it could be stored as a member of dialog's class (VarNotStored=false) or could be created locally inside funnction building dialog (VarNotStored=true) - using first one means that You want to use widget somewhere in class - read it's content or change it so it's good for edit fields check boxes etc. Second one means that You don't want this widget to be stored inside edialog's class - good for static widgets which won't change (and won't mess dialog's declaration).
Hmm, I hope I've explained that  :oops: :)

mandrav

QuoteMeaning , there is no symbols appear under tab "Symbol" (if I run in the developing version of CB)
This must have to do with some events processed by wxSmith plugin, not being skipped (event.Skip()) so that they can be processed by other plugins too.
I mentioned it before and byo said he would look into it.

Yiannis.
Be patient!
This bug will be fixed soon...

mandrav

Hey byo,

Your thread already reached the third page. Maybe I should create a different forum for wxSmith? It seems like it's gonna be busy  :mrgreen:

Yiannis.
Be patient!
This bug will be fixed soon...

byo

Quote from: mandravYour thread already reached the third page. Maybe I should create a different forum for wxSmith? It seems like it's gonna be busy  :mrgreen:

Hmm, I'm just wondering why RAD tool is such popular. New forum ? Maybe after reaching 4th or 5th page ;) will se how long it would take to reach that - if would be reached fast, this would mean that new forum is a must ;)

QuoteThis must have to do with some events processed by wxSmith plugin, not being skipped (event.Skip()) so that they can be processed by other plugins too.
I mentioned it before and byo said he would look into it.

Yep, already fixed, in CVS but... i frorgot to add some files to repository  :oops: so You may not be able to compile :( Just wait a minute and it will be there

rickg22

This ought to be in the readme. Whenever you create a new file, add it to CVS immediately ;-)

cyberkoa

Quote from: cyberkoa
My question is ,what is the purpose of having the flag VarNotStored in the struct wxsWidgetBaseParams.

I would like wxSmith to create dialogs and other resources in two ways - first one is to create XRC file and then to automatically manage code loading / event handling etc. Second way is to manage code wchich would create dialog without loading xrc. In this way each widget must have it's variable (just pointer to it's class) - it could be stored as a member of dialog's class (VarNotStored=false) or could be created locally inside funnction building dialog (VarNotStored=true) - using first one means that You want to use widget somewhere in class - read it's content or change it so it's good for edit fields check boxes etc. Second one means that You don't want this widget to be stored inside edialog's class - good for static widgets which won't change (and won't mess dialog's declaration).
Hmm, I hope I've explained that  :oops: :)[/quote]

Thx,understood.  The flag indicate whether the widget is static widget (keep in xrc) or dynamics created using C++ code . Hmm ,this is important in code generation.

Still studying the source code.. shall ask question when see something not understand ..  thx

cyberkoa

Quote
Quote from: cyberkoa
Quote from: cyberkoa
My question is ,what is the purpose of having the flag VarNotStored in the struct wxsWidgetBaseParams.

I would like wxSmith to create dialogs and other resources in two ways - first one is to create XRC file and then to automatically manage code loading / event handling etc. Second way is to manage code wchich would create dialog without loading xrc. In this way each widget must have it's variable (just pointer to it's class) - it could be stored as a member of dialog's class (VarNotStored=false) or could be created locally inside funnction building dialog (VarNotStored=true) - using first one means that You want to use widget somewhere in class - read it's content or change it so it's good for edit fields check boxes etc. Second one means that You don't want this widget to be stored inside edialog's class - good for static widgets which won't change (and won't mess dialog's declaration).
Hmm, I hope I've explained that  :oops: :)

Thx,understood.  The flag indicate whether the widget is static widget (keep in xrc) or dynamics created using C++ code . Hmm ,this is important in code generation.

Still studying the source code.. shall ask question when see something not understand ..  thx  :D

rickg22

Okay guys, in case you didn't notice, I just created a new "RAD Plugins development" forum 8). You're free to expand your wxSmith questions in other threads. Just insert "Wxsmith: " before the specific question.

byo

Quote from: cyberkoaThx,understood.  The flag indicate whether the widget is static widget (keep in xrc) or dynamics created using C++ code . Hmm ,this is important in code generation.

Hmm, not exackly. The flag indicating whether dialgo uses XRC or should be inside dialog resource, not one widget.

Maybe will describe with a bit of code (example what would be generated from wxSmith;) ):

1). One widget with VarNotStored = false
class MyDialog: public wxDialog
{
 public:
   MyDialog(...)
   {
     Widget = new wxStaticText(this,-1,"Hello world");
   }
 protected:
   wxStaticText* Widget;
}


2). One widget with VarNotStoredd = true
class MyDialog: public wxDialog
{
 public:
   MyDialog(...)
   {
     wxStaticText* Widget;
     Widget = new wxStaticText(this,-1,"Hello world");
   }
}


So if VarNotStored == true, it means that Variable for this widget will be created locally inside function creating dialog, VarNotStored == false means that it will be a member of class and will be acessible from other members in this class.

Hope I've explained this now :)

byo

Quote from: rickg22Okay guys, in case you didn't notice, I just created a new "RAD Plugins development" forum 8). You're free to expand your wxSmith questions in other threads. Just insert "Wxsmith: " before the specific question.
Thx for new forum :) It should be easier to work now :D

rickg22

Uh... shouldn't you change the name to IsMember or something?

byo

Quote from: rickg22Uh... shouldn't you change the name to IsMember or something?
Thx for advice, should think more before coding ;)