void wxsFileDialog::OnEnumToolProperties(long Flags) { WXS_SHORT_STRING(wxsFileDialog,m_Message,_("Message"),_T("message"),_T(""),false); WXS_SHORT_STRING(wxsFileDialog,m_DefaultDir,_("Default directory"),_T("default_dir"),_T(""),false); WXS_SHORT_STRING(wxsFileDialog,m_DefaultFile,_("Default file"),_T("default_file"),_T(""),false); WXS_SHORT_STRING(wxsFileDialog,m_Wildcard,_("Wildcard"),_T("wildcard"),_T(""),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 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 wxsGridBagSizer::OnEnumSizerProperties(cb_unused long Flags) { FixupList(GrowableCols); FixupList(GrowableRows); WXS_DIMENSION(wxsGridBagSizer,VGap,_("V-Gap"),_("V-Gap in dialog units"),_T("vgap"),0,false); WXS_DIMENSION(wxsGridBagSizer,HGap,_("H-Gap"),_("H,y-Gap in dialog units"),_T("hgap"),0,false); WXS_SHORT_STRING(wxsGridBagSizer,GrowableCols,_("Growable cols"),_T("growablecols"),_T(""),false); WXS_SHORT_STRING(wxsGridBagSizer,GrowableRows,_("Growable rows"),_T("growablerows"),_T(""),false); FixupList(GrowableCols); FixupList(GrowableRows); }
void wxsFlexGridSizer::OnEnumSizerProperties(long Flags) { FixupList(GrowableCols); FixupList(GrowableRows); WXS_LONG(wxsFlexGridSizer,Cols,_("Cols"),_T("cols"),0); WXS_LONG(wxsFlexGridSizer,Rows,_("Rows"),_T("rows"),0); WXS_DIMENSION(wxsFlexGridSizer,VGap,_("V-Gap"),_("V-Gap in dialog units"),_T("vgap"),0,false); WXS_DIMENSION(wxsFlexGridSizer,HGap,_("H-Gap"),_("H,y-Gap in dialog units"),_T("hgap"),0,false); WXS_SHORT_STRING(wxsFlexGridSizer,GrowableCols,_("Growable cols"),_T("growablecols"),_T(""),false); WXS_SHORT_STRING(wxsFlexGridSizer,GrowableRows,_("Growable rows"),_T("growablerows"),_T(""),false); FixupList(GrowableCols); FixupList(GrowableRows); }
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 wxsStaticBoxSizer::OnEnumSizerProperties(cb_unused long Flags) { static const long OrientValues[] = { wxHORIZONTAL, wxVERTICAL, 0 }; static const wxChar* OrientNames[] = { _T("wxHORIZONTAL"), _T("wxVERTICAL"), 0 }; WXS_SHORT_STRING(wxsStaticBoxSizer,Label,_("Label"),_T("label"),_T(""),false); WXS_ENUM(wxsStaticBoxSizer,Orient,_("Orientation"),_T("orient"),OrientValues,OrientNames,wxHORIZONTAL); }
/*! \brief Enumerate the dialogue's properties. * * \param flags long The control flags. * \return void * */ void wxsRichTextStyleOrganiserDialog::OnEnumToolProperties(cb_unused long Flags) { // Default to wxRICHTEXT_ORGANISER_ORGANISE. WXS_FLAGS(wxsRichTextStyleOrganiserDialog, m_iFlags, _("Style Flags"), _T("style_flags"), arrStyleValues, arrStyleValueNames, wxRICHTEXT_ORGANISER_SHOW_ALL|wxRICHTEXT_ORGANISER_DELETE_STYLES|wxRICHTEXT_ORGANISER_CREATE_STYLES |wxRICHTEXT_ORGANISER_APPLY_STYLES|wxRICHTEXT_ORGANISER_EDIT_STYLES|wxRICHTEXT_ORGANISER_RENAME_STYLES ) WXS_SHORT_STRING(wxsRichTextStyleOrganiserDialog, m_sCaption, _("Caption"), _T("caption"), SYMBOL_WXRICHTEXTSTYLEORGANISERDIALOG_TITLE, true); }
void wxsMenu::OnEnumToolProperties(cb_unused long Flags) { if ( GetParent() ) { // If there's parent we got label for this menu WXS_SHORT_STRING(wxsMenu,m_Label,_("Title"),_T("label"),_T(""),true); } }
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")); }
void wxsToolBarItem::OnEnumToolProperties(long Flags) { switch ( m_Type ) { case Normal: case Radio: case Check: WXS_SHORT_STRING(wxsToolBarItem,m_Label,_("Label"),_T("label"),_T(""),true); WXS_BITMAP(wxsToolBarItem,m_Bitmap,_("Bitmap"),_T("bitmap"),_T("wxART_TOOLBAR")); WXS_BITMAP(wxsToolBarItem,m_Bitmap2,_("Disabled bitmap"),_T("bitmap2"),_T("wxART_TOOLBAR")); WXS_STRING(wxsToolBarItem,m_ToolTip,_("Tooltip"),_T("tooltip"),_T(""),false); WXS_STRING(wxsToolBarItem,m_HelpText,_("Help text"),_T("longhelp"),_T(""),false); break; default:; } }
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) }
/*! \brief Enumerate the dialogue's properties. * * \param flags long The control flags. * \return void * */ void wxsRichTextFormattingDialog::OnEnumToolProperties(long Flags) { WXS_FLAGS(wxsRichTextFormattingDialog, m_iFlags, _("Page Flags"), _T("page_flags"), arrPageValues, arrPageValueNames, wxRICHTEXT_FORMAT_FONT|wxRICHTEXT_FORMAT_TABS|wxRICHTEXT_FORMAT_BULLETS|wxRICHTEXT_FORMAT_INDENTS_SPACING ) WXS_SHORT_STRING(wxsRichTextFormattingDialog, m_sTitle, _("Title"), _T("title"), _("Formatting"), true); }
{ switch ( GetLanguage() ) { case wxsCPP: { AddHeader(_T("<wx/dirctrl.h>"),GetInfo().ClassName,0); Codef(_T("%C(%W, %I, %n, %P, %S, %T, %n, %d, %N);\n"),DefaultFolder.wx_str(),Filter.wx_str(),DefaultFilter); BuildSetupWindowCode(); return; } default: { wxsCodeMarks::Unknown(_T("wxsGenericDirCtrl::OnBuildCreatingCode"),GetLanguage()); } } } wxObject* wxsGenericDirCtrl::OnBuildPreview(wxWindow* Parent,long Flags) { wxGenericDirCtrl* Preview = new wxGenericDirCtrl(Parent,GetId(),DefaultFolder,Pos(Parent),Size(Parent),Style(),Filter,DefaultFilter); return SetupWindow(Preview,Flags); } void wxsGenericDirCtrl::OnEnumWidgetProperties(long Flags) { WXS_SHORT_STRING(wxsGenericDirCtrl,DefaultFolder,_("Default Folder"),_T("defaultfolder"),_T(""),true) WXS_SHORT_STRING(wxsGenericDirCtrl,Filter,_("Filter"),_T("filter"),_T(""),true) WXS_LONG(wxsGenericDirCtrl,DefaultFilter,_("Default Filter"),_T("defaultfilter"),0) }
void wxsDirDialog::OnEnumToolProperties(long Flags) { WXS_SHORT_STRING(wxsDirDialog,m_Message,_("Message"),_T("message"),_T(""),false); WXS_SHORT_STRING(wxsDirDialog,m_DefaultPath,_("Default path"),_T("default_path"),_T(""),false); }
preview->SetNormalColour(cc); } cc = m_HoverColour.GetColour(); if ( cc.IsOk() ) { preview->SetHoverColour(cc); } cc = m_VisitedColour.GetColour(); if ( cc.IsOk() ) { preview->SetVisitedColour(cc); } return SetupWindow(preview,flags); } /*! \brief Enumerate the control's properties. * * \param flags long The control flags. * \return void * */ void wxsHyperlinkCtrl::OnEnumWidgetProperties(long flags) { WXS_STRING(wxsHyperlinkCtrl,m_Label,_("Label"),_T("label"),_T(""),false) WXS_SHORT_STRING(wxsHyperlinkCtrl,m_URL,_("URL"),_T("url"),_T(""),false) WXS_COLOUR(wxsHyperlinkCtrl, m_NormalColour,_T("Normal"),_T("normal_colour")) WXS_COLOUR(wxsHyperlinkCtrl, m_HoverColour,_T("Hover"),_T("hover_colour")) WXS_COLOUR(wxsHyperlinkCtrl, m_VisitedColour,_T("Visited"),_T("visited_colour")) }
wxsCodeMarks::Unknown(_T("wxsRichTextStyleComboCtrl::OnBuildCreatingCode"),GetLanguage()); } } } /*! \brief Build the control preview. * * \param parent wxWindow* The parent window. * \param flags long The control flags. * \return wxObject* The constructed control. * */ wxObject* wxsRichTextStyleComboCtrl::OnBuildPreview(wxWindow* Parent,long Flags) { wxRichTextStyleComboCtrl* Preview = new wxRichTextStyleComboCtrl(Parent, GetId(), Pos(Parent), Size(Parent), Style()); return SetupWindow(Preview,Flags); } /*! \brief Enumerate the control's properties. * * \param flags long The control flags. * \return void * */ void wxsRichTextStyleComboCtrl::OnEnumWidgetProperties(long Flags) { WXS_SHORT_STRING(wxsRichTextStyleComboCtrl, m_sControl, _("Control"), _T("control"), wxEmptyString, true) WXS_SHORT_STRING(wxsRichTextStyleComboCtrl, m_sStyleSheet, _("Style Sheet"), _T("style_sheet"), wxEmptyString, true) }
} } } /*! \brief Build the control preview. * * \param parent wxWindow* The parent window. * \param flags long The control flags. * \return wxObject* The constructed control. * */ wxObject* wxsFilePickerCtrl::OnBuildPreview(wxWindow* Parent,long Flags) { wxFilePickerCtrl* Preview; Preview = new wxFilePickerCtrl(Parent, GetId(), m_sPath, m_sMessage, m_sWildcard, Pos(Parent), Size(Parent), Style()); return SetupWindow(Preview,Flags); } /*! \brief Enumerate the control's properties. * * \param flags long The control flags. * \return void * */ void wxsFilePickerCtrl::OnEnumWidgetProperties(long Flags) { WXS_SHORT_STRING(wxsFilePickerCtrl, m_sMessage, _("Message"), _T("message"), wxFileSelectorPromptStr, false) WXS_SHORT_STRING(wxsFilePickerCtrl, m_sPath, _("Path"), _T("path"), wxEmptyString, false) WXS_SHORT_STRING(wxsFilePickerCtrl, m_sWildcard, _("Wildcard"), _T("wildcard"), wxFileSelectorDefaultWildcardStr, false) }
void wxsDialog::OnEnumContainerProperties(long Flags) { WXS_SHORT_STRING(wxsDialog,Title,_("Title"),_T("title"),_T(""),false) WXS_BOOL(wxsDialog,Centered,_("Centered"),_T("centered"),false); }
/*! \brief Enumerate the control's properties. * * \param flags long The control flags. * \return void * */ void wxsAnimationCtrl::OnEnumWidgetProperties(long flags) { WXS_SHORT_STRING(wxsAnimationCtrl, m_sAnimation, _("Animation"), _T("animation"), _T(""), false) WXS_BITMAP(wxsAnimationCtrl, m_bmpInactive, _("Inactive Bitmap"), _T("inactive_bitmap"), _T("wxART_OTHER")); WXS_BOOL(wxsAnimationCtrl, m_bPlay, _("Play"), _T("play"), 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")); }
{ wxsCodeMarks::Unknown(_T("wxsDirPickerCtrl::OnBuildCreatingCode"),GetLanguage()); } } } /*! \brief Build the control preview. * * \param parent wxWindow* The parent window. * \param flags long The control flags. * \return wxObject* The constructed control. * */ wxObject* wxsDirPickerCtrl::OnBuildPreview(wxWindow* Parent,long Flags) { wxDirPickerCtrl* Preview; Preview = new wxDirPickerCtrl(Parent, GetId(), m_sPath, m_sMessage, Pos(Parent), Size(Parent), Style()); return SetupWindow(Preview,Flags); } /*! \brief Enumerate the control's properties. * * \param flags long The control flags. * \return void * */ void wxsDirPickerCtrl::OnEnumWidgetProperties(long Flags) { WXS_SHORT_STRING(wxsDirPickerCtrl, m_sMessage, _("Message"), _T("message"), wxDirSelectorPromptStr, false) WXS_SHORT_STRING(wxsDirPickerCtrl, m_sPath, _("Path"), _T("path"), wxEmptyString, false) }
void wxsMultiChoiceDialog::OnEnumToolProperties(long Flags) { WXS_SHORT_STRING(wxsMultiChoiceDialog,m_Message,_("Message"),_T("message"),_T(""),false); WXS_SHORT_STRING(wxsMultiChoiceDialog,m_Caption,_("Caption"),_T("caption"),_T(""),false); WXS_ARRAYSTRING (wxsMultiChoiceDialog,m_Content,_("Items"), _T("content"),_T("item")); }
Preview->SetBorders(Borders.GetPixels(Parent)); } if ( !Url.empty() ) { if ( Flags & pfExact ) { Preview->LoadPage(Url); } else { Preview->SetPage( wxString(_T("<body><center>")) + _("Following url will be used:") + _T("<br>") + Url + _T("</center></body>")); } } else if ( !HtmlCode.empty() ) { Preview->SetPage(HtmlCode); } return SetupWindow(Preview,Flags); } void wxsHtmlWindow::OnEnumWidgetProperties(long Flags) { WXS_SHORT_STRING(wxsHtmlWindow,Url,_("Url"),_T("url"),_T(""),false) WXS_STRING(wxsHtmlWindow,HtmlCode,_("Html Code"),_T("htmlcode"),_T(""),false) WXS_DIMENSION(wxsHtmlWindow,Borders,_("Borders"),_("Borders in Dialog Units"),_("borders"),0,false) }
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) }
void wxsSingleInstanceChecker::OnEnumToolProperties(long Flags) { WXS_SHORT_STRING( wxsSingleInstanceChecker, AppName, _("Custom app name"), _T("appname"), wxEmptyString, false ); }
/*! \brief Enumerate the dialogue's properties. * * \param flags long The control flags. * \return void * */ void wxsMessageDialog::OnEnumToolProperties(long Flags) { WXS_SHORT_STRING(wxsMessageDialog, m_sCaption, _("Caption"), _T("caption"), _T(""), true); WXS_SHORT_STRING(wxsMessageDialog, m_sMessage, _("Message"), _T("message"), wxMessageBoxCaptionStr, true); }
/*! \brief Enumerate the dialogue's properties. * * \param flags long The control flags. * \return void * */ void wxsPasswordEntryDialog::OnEnumToolProperties(long Flags) { WXS_SHORT_STRING(wxsPasswordEntryDialog, m_sCaption, _("Caption"), _T("caption"), wxGetPasswordFromUserPromptStr, false); WXS_SHORT_STRING(wxsPasswordEntryDialog, m_sMessage, _("Message"), _T("message"), wxEmptyString, false); WXS_SHORT_STRING(wxsPasswordEntryDialog, m_sDefaultValue, _("Default Value"), _T("default_value"), wxEmptyString, false); }
{ case wxsCPP: { AddHeader(_T("<wx/statbox.h>"),GetInfo().ClassName,hfInPCH); #if wxCHECK_VERSION(2, 9, 0) Codef(_T("%C(%W, %I, %t, %P, %S, %T, %N);\n"),Label.wx_str()); #else Codef(_T("%C(%W, %I, %t, %P, %S, %T, %N);\n"),Label.c_str()); #endif BuildSetupWindowCode(); return; } default: { wxsCodeMarks::Unknown(_T("wxsStaticBox::OnBuildCreatingCode"),GetLanguage()); } } } wxObject* wxsStaticBox::OnBuildPreview(wxWindow* Parent,long Flags) { wxStaticBox* Preview = new wxStaticBox(Parent,GetId(),Label,Pos(Parent),Size(Parent),Style()); return SetupWindow(Preview,Flags); } void wxsStaticBox::OnEnumWidgetProperties(long Flags) { WXS_SHORT_STRING(wxsStaticBox,Label,_("Label"),_T("label"),_T(""),false) }