Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

wxSmithAui plugin: wxAui support for wxSmith

<< < (4/12) > >>

Ganbito:
Updated to version: 0.6.2 beta.

FIXED: Non standard properties generation when a standard pane type is selected.

To download the plugin: go to the first post on this topic.

Ganbito:
Is there still a bug in this plugin, because it should call the UnInit() method of wxAuiManager before destroying it, in code and preview generation.

I've searched a lot for it, but I didn't see how to make it with the functions that wxSmith provide me.

Are these implemented and I missed them (please guide me to the methods/classes where I can find it) or it is necessary to modify something in wxSmith to allow this "todo before destroy"?


P.S.: wxAuiToolBar works well with all type of controls in my working copy, now I going to implement wxAuiToolBarItems.

byo:

--- Quote from: Ganbito on February 06, 2009, 01:20:57 am ---Is there still a bug in this plugin, because it should call the UnInit() method of wxAuiManager before destroying it, in code and preview generation.

I've searched a lot for it, but I didn't see how to make it with the functions that wxSmith provide me.

Are these implemented and I missed them (please guide me to the methods/classes where I can find it) or it is necessary to modify something in wxSmith to allow this "todo before destroy"?


P.S.: wxAuiToolBar works well with all type of controls in my working copy, now I going to implement wxAuiToolBarItems.

--- End quote ---

Right now there's no such functionality. You can try to workaround this by connection to EVT_CLOSE event but I don't know whether it will work.

Regards
  BYO

Ganbito:
I'm having problems with AuiToolBarItems. These items shouldn't have a variable declaration, so I'm not sending flVariable to the Constructor.

For example, this is the code of the constructor of an separator (which have no styles, no events and no properties):


--- Code: ---namespace
{
    #include "../images/wxsAuiToolBarSeparator16.xpm"
    #include "../images/wxsAuiToolBarSeparator32.xpm"

    wxsRegisterItem<wxsAuiToolBarSeparator> Reg(
        _T("wxAuiToolBarSeparator"),            // Class name
        wxsTWidget,                             // Item type
        _T("wxWindows"),                        // License
        _T("Benjamin I. Williams"),             // Author
        _T(""),                                 // Author's email
        _T(""),                                 // Item's homepage
        _T("Aui"),                              // Category in palette
        10,                                     // Priority in palette
        _T("AuiToolBarSeparator"),              // Base part of names for new items
        wxsCPP,                                 // List of coding languages supported by this item
        2, 8,                                   // Version
        wxBitmap(wxsAuiToolBarSeparator32_xpm), // 32x32 bitmap
        wxBitmap(wxsAuiToolBarSeparator16_xpm), // 16x16 bitmap
        false);

    long flAuiToolBarSeparator = flVariable;
}

wxsAuiToolBarSeparator::wxsAuiToolBarSeparator(wxsItemResData* Data):
    wxsItem(Data,&Reg.Info,0,0,0)
{}

--- End code ---

With this, I get no properties in the property editor, but this code is created in the declaration section:

--- Code: ---wxAuiToolBarSeparator* ;

--- End code ---

I'm watching wxSmith code, specially wxsToolBarItem's code and I can't see what I'm doing wrong. Any idea?

By now, wxsAuiToolBar and wxsAuiToolBarItems are not derived from wxsTool. I'm deriving wxsAuiToolBar from wxsContainer. Should I swith to wxsTool? Can it help with this?

rcoll:
This looks like it might be a problem with wxSmith not handling flVariable properly (BYO?); but there is an easy work-around.  Override the declarations code with your own version of OnBuildDeclarationsCode, and make the declarations in there that you want (you might just want it to be empty).

Ringo

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version