void wxsSashWindow::OnEnumContainerProperties(cb_unused long Flags) { WXS_BOOL(wxsSashWindow, mTop, _("Drag Top"), _("dragtop"), true); WXS_BOOL(wxsSashWindow, mBottom, _("Drag Bottom"), _("dragbottom"), true); WXS_BOOL(wxsSashWindow, mLeft, _("Drag Left"), _("dragleft"), true); WXS_BOOL(wxsSashWindow, mRight, _("Drag Right"), _("dragright"), true); }
void wxsMenuItem::OnEnumToolProperties(cb_unused long Flags) { switch ( m_Type ) { case Normal: if ( GetChildCount() ) { // When there are children (wxMenuItem maps to wxMenu class), // only these properties are enabled WXS_SHORT_STRING(wxsMenuItem,m_Label,_("Label"),_T("label"),_T(""),true); WXS_SHORT_STRING(wxsMenuItem,m_Help,_T("Help text"),_T("help"),_T(""),false); WXS_BOOL(wxsMenuItem,m_Enabled,_T("Enabled"),_T("enabled"),true); break; } // When there are no children, we threat this item as wxMenuItem /* case Normal: */ case Radio: case Check: WXS_SHORT_STRING(wxsMenuItem,m_Label,_("Label"),_T("label"),_T(""),true); WXS_SHORT_STRING(wxsMenuItem,m_Accelerator,_("Accelerator"),_T("accel"),_T(""),false); WXS_SHORT_STRING(wxsMenuItem,m_Help,_T("Help text"),_T("help"),_T(""),false); WXS_BOOL(wxsMenuItem,m_Enabled,_T("Enabled"),_T("enabled"),true); if ( m_Type == Check ) { WXS_BOOL(wxsMenuItem,m_Checked,_T("Checked"),_T("checked"),false); } if ( m_Type == Normal ) { WXS_BITMAP(wxsMenuItem,m_Bitmap,_("Bitmap"),_T("bitmap"),_T("wxART_OTHER")) } break; default:; } }
void wxsLedNumber::OnEnumWidgetProperties(long Flags) { WXS_SHORT_STRING( wxsLedNumber, Content, _("Content"), _T("Content"), _T(""), false); WXS_ENUM( wxsLedNumber, Align, _("Align"), _T("Align"), Values, Names, wxLED_ALIGN_LEFT); WXS_BOOL( wxsLedNumber, Faded, _("Faded"), _T("Faded"), true); }
void wxsLed::OnEnumWidgetProperties(long Flags) { WXS_COLOUR( wxsLed, m_Disable, _("Disable Colour"), _T("disable_colour")); WXS_COLOUR( wxsLed, m_EnableOn, _("On Colour"), _T("on_colour")); WXS_COLOUR( wxsLed, m_EnableOff, _("Off Colour"), _T("off_colour")); WXS_BOOL( wxsLed, m_State, _("On"), _T("on_or_off"), true ); }
/*! \brief Enumerate the control's properties. * * \param flags long The control flags. * \return void * */ void wxsTreeCtrl::OnEnumWidgetProperties(cb_unused long Flags) { static wxString sImageNames[128]; static const wxChar *pImageNames[128]; int i, n; wxString ss, tt; wxArrayString aa; // find available image lists and store them in our local static arrays FindAllImageLists(aa); n = aa.GetCount(); if(n > 127) { n = 127; } for(i = 0; i < n; i++) { ss = aa.Item(i); sImageNames[i] = ss; pImageNames[i] = (const wxChar *) sImageNames[i]; } pImageNames[n] = NULL; WXS_EDITENUM(wxsTreeCtrl, m_sImageList, _("Image List"), _T("image_list"), pImageNames, _("<none>")) // The list of items to appear in the tree. UpdateTreeItemList(); WXS_IMAGETREE(wxsTreeCtrl, m_arrItems, _("Tree Items"), wxT("tree_items")); WXS_ARRAYSTRING(wxsTreeCtrl, m_arrItems, _("Items as Text"), wxT("items_text"), _("item2")); WXS_BOOL(wxsTreeCtrl, m_bExpand, _("Expand All"), _("expand_all"), false); }
/*! \brief Enumerate the dialogue's properties. * * \param flags long The control flags. * \return void * */ void wxsFontDialog::OnEnumToolProperties(cb_unused long Flags) { // These functions are Windows only. if((wxPlatformInfo::Get().GetOperatingSystemId() & wxOS_WINDOWS) > 0){ WXS_BOOL(wxsFontDialog, m_bAllowSymbols, _("Allow Symbols"), _T("allow_symbols"), true) } WXS_COLOUR(wxsFontDialog, m_cdColour, _("Colour"), _T("colour")); // This one is used by generic as well as Windows, so keep it available. WXS_BOOL(wxsFontDialog, m_bEnableEffects, _("Enable Effects"), _T("enable_effects"), true) // These functions are Windows only. if((wxPlatformInfo::Get().GetOperatingSystemId() & wxOS_WINDOWS) > 0){ WXS_LONG(wxsFontDialog, m_iMinSize, _("Min. Size"), _T("min_size"), 0) WXS_LONG(wxsFontDialog, m_iMaxSize, _("Max. Size"), _T("max_size"), 0) WXS_BOOL(wxsFontDialog, m_bShowHelp, _("Show Help"), _T("show_help"), false) } }
void wxsCustomWidget::OnEnumWidgetProperties(long Flags) { wxString XmlDataInit = m_XmlData; if ( GetPropertiesFlags() & flSource ) { WXS_STRING(wxsCustomWidget,m_CreatingCode,_("Creating code"),_T("creating_code"),_T(""),true); WXS_SHORT_STRING(wxsCustomWidget,m_IncludeFile,_("Include file"), _T("include_file"), _T(""),false); WXS_BOOL(wxsCustomWidget,m_IncludeIsLocal,_(" Use \"\" for include (instead of <>)"), _T("local_include"), false); } else { if ( !(Flags&flXml) ) { WXS_STRING(wxsCustomWidget,m_XmlData,_("Xml Data"),_T(""),_T(""),false); } } WXS_SHORT_STRING(wxsCustomWidget,m_Style,_("Style"),_T("style"),_T("0"),false); if ( Flags&flPropGrid ) { if ( XmlDataInit != m_XmlData ) { // We know it's propgrid operation and xml data has changed, // need to reparse this data RebuildXmlDataDoc(); } } }
void wxsSashLayoutWindow::OnEnumContainerProperties(long Flags) { static const long valign[] = { wxLAYOUT_TOP, wxLAYOUT_LEFT, wxLAYOUT_RIGHT, wxLAYOUT_BOTTOM, 0}; static const wxChar *nalign[] = {_T("wxLAYOUT_TOP"), _T("wxLAYOUT_LEFT"), _T("wxLAYOUT_RIGHT"), _T("wxLAYOUT_BOTTOM"), 0}; static const long vorient[] = { wxLAYOUT_HORIZONTAL, wxLAYOUT_VERTICAL, 0}; static const wxChar *norient[] = {_T("wxLAYOUT_HORIZONTAL"), _T("wxLAYOUT_VERTICAL"), 0}; WXS_BOOL(wxsSashLayoutWindow, mTop, _("Drag Top"), _("dragtop"), true); WXS_BOOL(wxsSashLayoutWindow, mBottom, _("Drag Bottom"), _("dragbottom"), true); WXS_BOOL(wxsSashLayoutWindow, mLeft, _("Drag Left"), _("dragleft"), true); WXS_BOOL(wxsSashLayoutWindow, mRight, _("Drag Right"), _("dragright"), true); WXS_ENUM(wxsSashLayoutWindow, mAlign, _("Alignment"), _T("alignment"), valign, nalign, wxLAYOUT_LEFT); WXS_ENUM(wxsSashLayoutWindow, mOrient, _("Orientation"), _T("orientation"), vorient, norient, wxLAYOUT_HORIZONTAL); }
void wxsGrid::OnEnumWidgetProperties(long Flags) { if ( Flags & flSource ) { WXS_LONG ( wxsGrid, m_ColsCount, _("Number of columns"), _T("cols"), 0); WXS_LONG ( wxsGrid, m_RowsCount, _("Number of rows"), _T("rows"), 0); WXS_BOOL ( wxsGrid, m_ReadOnly, _("Read Only"), _T("readonly"), false); WXS_BOOL ( wxsGrid, m_GridLines, _("Grid Lines"), _T("gridlines"), true); WXS_LONG ( wxsGrid, m_LabelRowHeight, _("Label Row Height"), _T("labelrowheight"), -1); WXS_LONG ( wxsGrid, m_LabelColWidth, _("Label Column Width"), _T("labelcolwidth"), -1); WXS_LONG ( wxsGrid, m_DefaultRowSize, _("Default Row Height"), _T("defaultrowsize"), -1); WXS_LONG ( wxsGrid, m_DefaultColSize, _("Default Column Width"), _T("defaultcolsize"), -1); WXS_COLOUR ( wxsGrid, m_LabelTextColour, _("Label Text Colour"), _T("labeltextcolour") ); WXS_FONT ( wxsGrid, m_LabelFont, _("Label Text Font"), _T("labelfont") ); WXS_ARRAYSTRING( wxsGrid, m_ColLabels, _("Column Labels"), _T("collabels"), _T("item")); WXS_ARRAYSTRING( wxsGrid, m_RowLabels, _("Row Labels"), _T("rowlabels"), _T("item")); WXS_ARRAYSTRING( wxsGrid, m_CellText, _("Cell Data"), _T("celltext"), _T("item")); } }
/*! \brief Enumerate the tool's properties. * * \param flags long The control flags. * \return void * */ void wxsImage::OnEnumToolProperties(cb_unused long Flags) { // starting a new build cycle m_IsBuilt = false; m_Context = GetCoderContext(); // details WXS_IMAGE(wxsImage, m_ImageData, _("Image"), _T("image")); WXS_ARRAYSTRING(wxsImage, m_ImageData, _("Image as Text"), _T("image_text"), _("item2")); WXS_BOOL(wxsImage, m_Include, _("Use Include File"), _T("use_include"), false); };
void wxsVector::OnEnumWidgetProperties(cb_unused long Flags) { static const long AlignValues[] = { mpALIGN_NE, mpALIGN_NW, mpALIGN_SW, mpALIGN_SE, 0}; static const wxChar* AlignNames[] = {_T("mpALIGN_NE"), _T("mpALIGN_NW"), _T("mpALIGN_SW"), _T("mpALIGN_SE"), 0}; WXS_SHORT_STRING(wxsVector, mLabel, _("Label Text"), _("mLabelText"), _("Label"), true); WXS_ENUM( wxsVector, mAlign, _("Label Alignment"), _("mAlign"), AlignValues, AlignNames, mpALIGN_NE); WXS_BOOL( wxsVector, mContinuous, _("Continuous Line"), _("mContinuous"), true); WXS_COLOUR( wxsVector, mPenColour, _("Pen Colour"), _("mPenColour")); WXS_FONT( wxsVector, mPenFont, _("Pen Font"), _("mPenFont")); WXS_ARRAYSTRING( wxsVector, mXYData, _("X,Y Data"), _("mXYData"), _("nums")); }
/*! \brief Enumerate the tool's properties. * * \param flags long The control flags. * \return void * */ void wxsImageList::OnEnumToolProperties(long Flags) { // starting a new build cycle m_IsBuilt = false; m_Context = GetCoderContext(); // details for the image list WXS_IMAGELIST(wxsImageList, m_ImageData, _T("Image List"), _T("image_list")); WXS_ARRAYSTRING(wxsImageList, m_ImageData, _("Images as Text"), _T("image_text"), _T("item2")); WXS_LONG(wxsImageList, m_Width, _("Image Width"), _T("image_width"), 16); WXS_LONG(wxsImageList, m_Height, _("Image Height"), _T("image_height"), 16); WXS_LONG(wxsImageList, m_Count, _("Image Count"), _T("image_count"), 0); WXS_BOOL(wxsImageList, m_Include, _("Use Include File"), _T("use_include"), false); };
void wxsCustomButton::OnEnumWidgetProperties(long Flags) { WXS_ENUM(wxsCustomButton,m_Type,_("Type"),_T("type"),TypeValues,TypeNames,wxCUSTBUT_BUTTON); WXS_BOOL(wxsCustomButton,m_Flat,_("Flat"),_T("flat"),false); WXS_STRING(wxsCustomButton,m_Label,_("Label"),_T("label"),_T(""),false); WXS_ENUM(wxsCustomButton,m_LabelPosition,_("Label position"),_T("label_position"),LabelPositionValues,LabelPositionNames,wxCUSTBUT_BOTTOM); WXS_BITMAP(wxsCustomButton,m_Bitmap,_("Bitmap"),_T("bitmap"),_T("wxART_OTHER")); WXS_BITMAP(wxsCustomButton,m_BitmapSelected,_("Selected bmp"),_T("selected"),_T("wxART_OTHER")); WXS_BITMAP(wxsCustomButton,m_BitmapFocused,_("Focused bmp"),_T("focused"),_T("wxART_OTHER")); WXS_BITMAP(wxsCustomButton,m_BitmapDisabled,_("Disbled bmp"),_T("disabled"),_T("wxART_OTHER")); WXS_SIZE(wxsCustomButton,m_Margins,_("Default margin"),_("Margin width"),_("Margin height"),_("Margin in Dialog Units"),_T("margin")); WXS_SIZE(wxsCustomButton,m_LabelMargins,_("Default label margin"),_("Label marg. width"),_("Label marg. height"),_("Label marg. in Dialog Units"),_T("label_margin")); WXS_SIZE(wxsCustomButton,m_BitmapMargins,_("Default bitmap margin"),_("Bitmap marg. width"),_("Bitmap marg. height"),_("Bitmap marg. in Dialog Units"),_T("bitmap_margin")); }
void wxsAxis::OnEnumWidgetProperties(long Flags) { static const long TypeValues[] = { 0, 1, 0}; static const wxChar* TypeNames[] = {_T("X-Axis"), _T("Y-Axis"), 0}; static const long AlignValues[] = { mpALIGN_BORDER_LEFT, mpALIGN_BORDER_TOP, mpALIGN_LEFT, mpALIGN_TOP, mpALIGN_CENTER, mpALIGN_RIGHT, mpALIGN_BOTTOM, mpALIGN_BORDER_RIGHT, mpALIGN_BORDER_BOTTOM, 0}; static const wxChar* AlignNames[] = {_T("mpALIGN_BORDER_LEFT"), _T("mpALIGN_BORDER_TOP"), _T("mpALIGN_LEFT"), _T("mpALIGN_TOP"), _T("mpALIGN_CENTER"), _T("mpALIGN_RIGHT"), _T("mpALIGN_BOTTOM"), _T("mpALIGN_BORDER_RIGHT"), _T("mpALIGN_BORDER_BOTTOM"), 0}; WXS_ENUM( wxsAxis, mType, _("Axis Type"), _("mType"), TypeValues, TypeNames, 0); WXS_STRING(wxsAxis, mLabel, _("Label"), _T("mLabel"), _T("axis"), true); WXS_ENUM( wxsAxis, mAlign, _("Axis Location"), _("mAlign"), AlignValues, AlignNames, mpALIGN_CENTER); WXS_BOOL( wxsAxis, mTics, _("Show Tic Marks"), _("mTics"), true); WXS_COLOUR(wxsAxis, mPenColour, _("Pen Colour"), _("mPenColour")); WXS_FONT( wxsAxis, mPenFont, _("Pen Font"), _("mPenFont")); }
void wxsImagePanel::OnEnumContainerProperties(cb_unused long Flags) { static wxString sImageNames[128]; static const wxChar *pImageNames[128]; int i,n,k; wxsItemResData *res; wxsTool *tool; wxString ss, tt; // find available images, and pointer to current imagelist res = GetResourceData(); n = 0; sImageNames[n] = _("<none>"); pImageNames[n] = (const wxChar *) sImageNames[n]; n += 1; k = res->GetToolsCount(); for(i=0; i<k; i++) { tool = res->GetTool(i); ss = tool->GetUserClass(); if ((ss == _T("wxImage")) && (n < 127)) { ss = tool->GetVarName(); sImageNames[n] = ss; pImageNames[n] = (const wxChar *) sImageNames[n]; n += 1; }; }; pImageNames[n] = NULL; WXS_EDITENUM(wxsImagePanel, mImage, _("Image"), _T("image"), pImageNames, _("<none>")) // stretch to fit panel? WXS_BOOL(wxsImagePanel, mStretch, _("Stretch"), _T("stretch"), false); };
void wxsDialog::OnEnumContainerProperties(long Flags) { WXS_SHORT_STRING(wxsDialog,Title,_("Title"),_T("title"),_T(""),false) WXS_BOOL(wxsDialog,Centered,_("Centered"),_T("centered"),false); }
void wxsTimer::OnEnumToolProperties(long Flags) { WXS_LONG(wxsTimer,m_Interval,_("Interval"),_T("interval"),0); WXS_BOOL(wxsTimer,m_OneShot,_("One Shot"),_T("oneshot"),false); }
{ AddHeader(_T("<wx/tglbtn.h>"),GetInfo().ClassName,0); #if wxCHECK_VERSION(2, 9, 0) Codef(_T("%C(%W, %I, %t, %P, %S, %T, %V, %N);\n"),Label.wx_str()); #else Codef(_T("%C(%W, %I, %t, %P, %S, %T, %V, %N);\n"),Label.c_str()); #endif if ( IsChecked ) Codef(_T("%ASetValue(%b);\n"),true); BuildSetupWindowCode(); return; } default: { wxsCodeMarks::Unknown(_T("wxsToggleButton::OnBuildCreatingCode"),GetLanguage()); } } } wxObject* wxsToggleButton::OnBuildPreview(wxWindow* Parent,long Flags) { wxToggleButton* Preview = new wxToggleButton(Parent,GetId(),Label,Pos(Parent),Size(Parent),Style()); Preview->SetValue(IsChecked); return SetupWindow(Preview,Flags); } void wxsToggleButton::OnEnumWidgetProperties(long Flags) { WXS_STRING(wxsToggleButton,Label,_("Label"),_T("label"),_T(""),false) WXS_BOOL(wxsToggleButton,IsChecked,_("Is checked"),_T("checked"),false) }
case wxsCPP: { AddHeader(_T("<wx/checkbox.h>"),GetInfo().ClassName,hfInPCH); Codef(_T("%C(%W, %I, %t, %P, %S, %T, %V, %N);\n"),Label.wx_str()); Codef(_T("%ASetValue(%b);\n"),IsChecked); BuildSetupWindowCode(); return; } case wxsUnknownLanguage: // fall through default: { wxsCodeMarks::Unknown(_T("wxsCheckBox::OnBuildCreatingCode"),GetLanguage()); } } } wxObject* wxsCheckBox::OnBuildPreview(wxWindow* Parent,long Flags) { wxCheckBox* Preview = new wxCheckBox(Parent,GetId(),Label,Pos(Parent),Size(Parent),Style()); if ( IsChecked ) Preview->SetValue(IsChecked); return SetupWindow(Preview,Flags); } void wxsCheckBox::OnEnumWidgetProperties(long Flags) { WXS_SHORT_STRING(wxsCheckBox,Label,_("Label"),_T("label"),_T(""),false) WXS_BOOL(wxsCheckBox,IsChecked,_("Checked"),_T("checked"),false) }
void wxsColourDialog::OnEnumToolProperties(long Flags) { WXS_BOOL(wxsColourDialog,m_ChooseFull,_("Full dialog"),_T("choosefull"),true); WXS_COLOUR(wxsColourDialog,m_Colour,_("Colour"),_T("colour")); }
AddHeader(_T("<wx/button.h>"),GetInfo().ClassName,hfInPCH); #if wxCHECK_VERSION(2, 9, 0) Codef(_T("%C(%W, %I, %t, %P, %S, %T, %V, %N);\n"),Label.wx_str()); #else Codef(_T("%C(%W, %I, %t, %P, %S, %T, %V, %N);\n"),Label.c_str()); #endif if ( IsDefault ) Codef( _T("%ASetDefault();\n")); BuildSetupWindowCode(); return; } default: { wxsCodeMarks::Unknown(_T("wxsButton::OnBuildCreatingCode"),GetLanguage()); } } } wxObject* wxsButton::OnBuildPreview(wxWindow* Parent,long Flags) { wxButton* Preview = new wxButton(Parent,GetId(),Label,Pos(Parent),Size(Parent),Style()); if ( IsDefault ) Preview->SetDefault(); return SetupWindow(Preview,Flags); } void wxsButton::OnEnumWidgetProperties(long Flags) { WXS_STRING(wxsButton,Label,_("Label"),_T("label"),_T(""),false) WXS_BOOL(wxsButton,IsDefault,_("Is default"),_T("default"),false) }
preview->SetValue(m_iValue); } return SetupWindow(preview, flags); } /*! \brief Enumerate the control's custom properties. * * \param Flags long Flags used when creating the control. * \return void * */ void wxsLinearMeter::OnEnumWidgetProperties(cb_unused long Flags) { WXS_LONG(wxsLinearMeter, m_iValue, _("Value"), _T("value"), 0) WXS_BOOL(wxsLinearMeter, m_bShowVal, _("Show Value"), _T("show_value"), true) WXS_LONG(wxsLinearMeter, m_iRangeMin, _("Range Minimum"), _T("range_min"), 0) WXS_LONG(wxsLinearMeter, m_iRangeMax, _("Range Maximum"), _T("range_max"), 100) WXS_BOOL(wxsLinearMeter, m_bShowLimits, _("Show Range Values"), _T("show_limit_value"), true) WXS_BOOL(wxsLinearMeter, m_bHorizontal, _("Horizontal"), _T("horizontal"), true) WXS_COLOUR(wxsLinearMeter, m_cdActiveBarColour, _("Bar Colour"), _T("bar_colour")) WXS_COLOUR(wxsLinearMeter, m_cdPassiveBarColour, _("Background Colour"), _T("background_colour")) WXS_COLOUR(wxsLinearMeter, m_cdBorderColour, _("Border Colour"), _T("border_colour")) WXS_COLOUR(wxsLinearMeter, m_cdLimitTextColour, _("Range Text Colour"), _T("range_text_colour")) WXS_COLOUR(wxsLinearMeter, m_cdValueTextColour, _("Value Text Colour"), _T("value_text_colour")) WXS_COLOUR(wxsLinearMeter, m_cdTagColour, _("Tag Colour"), _T("tag_colour")) WXS_FONT(wxsLinearMeter, m_fnt, _("Font"), _T("font")) } // Dynamic properties. //=================
wxPanel* gc = new wxPanel(Parent, GetId(),Pos(Parent),Size(Parent),Style()); SetupWindow(gc, Flags); return gc; } //------------------------------------------------------------------------------ void wxsGLCanvas::OnEnumWidgetProperties(long Flags) { // mContextVarName = GetVarName() + _("RC"); // // WXS_BOOL(wxsGLCanvas, mInternalContext, _("Use Internal Context"), _T("mInternalContext"), true) // WXS_BOOL(wxsGLCanvas, mContextVar, _("Declare Context"), _T("mContextVar"), true) // // WXS_SHORT_STRING(wxsGLCanvas, mContextVarName, _("Context Var Name"), _T("mContextVarName"), mContextVarName, true) WXS_BOOL(wxsGLCanvas, mRGBA, _("Use True Color"), _T("mRGBA"), true) WXS_LONG(wxsGLCanvas, mBufferSize, _("Bits for buffer "), _T("mBufferSize"), 0) WXS_LONG(wxsGLCanvas, mLevel, _("Main Buffer"), _T("mLevel"), 0) WXS_BOOL(wxsGLCanvas, mDoubleBuffer, _("Use doublebuffer"), _T("mDoubleBuffer"), true) WXS_BOOL(wxsGLCanvas, mStereo, _("Stereoscopic display"), _T("mStereo"), false) WXS_LONG(wxsGLCanvas, mAuxBuffers, _("Auxiliary buffers count"), _T("mAuxBuffers"), 0) WXS_LONG(wxsGLCanvas, mMinRed, _("Red color bits"), _T("mMinRed"), 0) WXS_LONG(wxsGLCanvas, mMinGreen, _("Green color bits"), _T("mMinGreen"), 0) WXS_LONG(wxsGLCanvas, mMinBlue, _("Blue color bits"), _T("mMinBlue"), 0) WXS_LONG(wxsGLCanvas, mMinAlpha, _("Alpha bits"), _T("mMinAlpha"), 0) WXS_LONG(wxsGLCanvas, mDepthSize, _("Bits for Z-buffer (0,16,32)"), _T("mDepthSize"), 0) WXS_LONG(wxsGLCanvas, mStencilSize, _("Bits for stencil buffer "), _T("mStencilSize"), 0) WXS_LONG(wxsGLCanvas, mMinAccumRed, _("Accumulator Red color bits"), _T("mMinAccumRed"), 0) WXS_LONG(wxsGLCanvas, mMinAccumGreen, _("Accumulator Green color bits"), _T("mMinAccumGreen"), 0) WXS_LONG(wxsGLCanvas, mMinAccumBlue, _("Accumulator Blue color bits"), _T("mMinAccumBlue"), 0) WXS_LONG(wxsGLCanvas, mMinAccumAlpha, _("Accumulator Alpha bits"), _T("mMinAccumAlpha"), 0)
AddHeader(_T("<wx/radiobut.h>"),GetInfo().ClassName,hfInPCH); #if wxCHECK_VERSION(2, 9, 0) Codef(_T("%C(%W, %I, %t, %P, %S, %T, %V, %N);\n"),Label.wx_str()); #else Codef(_T("%C(%W, %I, %t, %P, %S, %T, %V, %N);\n"),Label.c_str()); #endif if ( IsSelected ) Codef( _T("%ASetValue(%b);\n"), true); BuildSetupWindowCode(); return; } default: { wxsCodeMarks::Unknown(_T("wxsRadioButton::OnBuildCreatingCode"),GetLanguage()); } } } wxObject* wxsRadioButton::OnBuildPreview(wxWindow* Parent,long Flags) { wxRadioButton* Preview = new wxRadioButton(Parent,GetId(),Label,Pos(Parent),Size(Parent),Style()); Preview->SetValue(IsSelected); return SetupWindow(Preview,Flags); } void wxsRadioButton::OnEnumWidgetProperties(long Flags) { WXS_SHORT_STRING(wxsRadioButton,Label,_("Label"),_T("label"),_T(""),true) WXS_BOOL(wxsRadioButton,IsSelected,_("Is Selected"),_T("selected"),false) }
case wxsUnknownLanguage: // fall-through default: { wxsCodeMarks::Unknown(_T("wxsPrintDialog::OnBuildCreatingCode"),GetLanguage()); } } } /*! \brief Enumerate the dialogue's properties. * * \param flags long The control flags. * \return void * */ void wxsPrintDialog::OnEnumToolProperties(cb_unused long Flags) { WXS_BOOL(wxsPrintDialog, m_bEnableHelp, _("Enable Help"), _T("enable_help"), false) WXS_BOOL(wxsPrintDialog, m_bEnablePageNumbers, _("Enable Page Numbers"), _T("enable_page_numbers"), true) WXS_LONG(wxsPrintDialog, m_iFromPage, _("From Page"), _T("from_page"), 0) WXS_LONG(wxsPrintDialog, m_iToPage, _("To Page"), _T("to_page"), 0) WXS_LONG(wxsPrintDialog, m_iMinPage, _("Min. Page"), _T("min_page"), 0) WXS_LONG(wxsPrintDialog, m_iMaxPage, _("Max. Page"), _T("max_page"), 0) WXS_LONG(wxsPrintDialog, m_iNoCopies, _("Number of Copies"), _T("number_of_copies"), 1) WXS_BOOL(wxsPrintDialog, m_bCollate, _("Collate"), _T("collate"), false) WXS_BOOL(wxsPrintDialog, m_bEnablePrintToFile, _("Enable Print To File"), _T("enable_print_to_file"), true) WXS_BOOL(wxsPrintDialog, m_bPrintToFile, _("Print To File"), _T("print_to_file"), false) WXS_BOOL(wxsPrintDialog, m_bEnableSelection, _("Enable Selection"), _T("enable_selection"), false) WXS_BOOL(wxsPrintDialog, m_bSelection, _("Selection"), _T("selection"), false) }
void wxsFrame::OnEnumContainerProperties(long Flags) { WXS_SHORT_STRING(wxsFrame,Title,_("Title"),_T("title"),_T(""),false) WXS_BOOL(wxsFrame,Centered,_("Centered"),_T("centered"),false); WXS_ICON(wxsFrame,Icon,_T("Icon"),_T("icon"),_T("wxART_FRAME_ICON")); }