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 ); }
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 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 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 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 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. //================= /*! \brief Add extra control properties. * * \param Grid wxsPropertyGridManager* A PropertyGridManager object. * \return void *
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")) }
void wxsColourDialog::OnEnumToolProperties(long Flags) { WXS_BOOL(wxsColourDialog,m_ChooseFull,_("Full dialog"),_T("choosefull"),true); WXS_COLOUR(wxsColourDialog,m_Colour,_("Colour"),_T("colour")); }
// 6 digits is the default value. if(m_iNumDigits && m_iNumDigits != 6){ preview->SetNumberDigits(m_iNumDigits); } wxColour cc = m_cdLightColour.GetColour(); if(cc.IsOk()){ preview->SetLightColour(cc); } cc = m_cdGrayColour.GetColour(); if(cc.IsOk()){ preview->SetGrayColour(cc); } return SetupWindow(preview,flags); } /*! \brief Enumerate the control's custom properties. * * \param Flags long Flags used when creating the control. * \return void * */ void wxsLCDClock::OnEnumWidgetProperties(long Flags) { WXS_LONG(wxsLCDClock, m_iNumDigits, _("Number of digits"), _T("num_digits"), 0) WXS_COLOUR(wxsLCDClock, m_cdLightColour , _("Active segments"), _T("active_colour")) WXS_COLOUR(wxsLCDClock, m_cdGrayColour, _("Inactive segments"), _T("inactive_colour")) }
rchtxtAttr.SetFontUnderlined(fnt.GetUnderlined()); rchtxtAttr.SetFontWeight(fnt.GetWeight()); } if(m_iAlignment != wxTEXT_ALIGNMENT_LEFT || m_iAttribute != 0 || m_iBullets != wxTEXT_ATTR_BULLET_STYLE_NONE || m_iSpacing != wxTEXT_ATTR_LINE_SPACING_NORMAL || m_iEffects != wxTEXT_ATTR_EFFECT_NONE || bClrChanged || fnt.IsOk()){ Preview->SetBasicStyle(rchtxtAttr); } return SetupWindow(Preview, Flags); } /*! \brief Enumerate the control's properties. * * \param flags long The control flags. * \return void * */ void wxsRichTextCtrl::OnEnumWidgetProperties(long Flags) { WXS_STRING(wxsRichTextCtrl, m_sText, _("Text"), _T("value"), wxEmptyString, false) WXS_FLAGS(wxsRichTextCtrl, m_iAttribute, _("Attributes"), _T("attributes"), arrAttributeStates, arrAttributeNames, 0) WXS_FLAGS(wxsRichTextCtrl, m_iBullets, _("Bullet Style"), _T("bullet_style"), arrBulletStates, arrBulletNames, wxTEXT_ATTR_BULLET_STYLE_NONE) WXS_ENUM(wxsRichTextCtrl, m_iSpacing, _("Line Spacing"), _T("line_spacing"), arrSpacingStates, arrSpacingNames, wxTEXT_ATTR_LINE_SPACING_NORMAL) WXS_ENUM(wxsRichTextCtrl, m_iAlignment, _("Paragraph Alignment"), _T("paragraph_alignment"), arrAlignmentStates, arrAlignmentNames, wxTEXT_ALIGNMENT_LEFT) WXS_FLAGS(wxsRichTextCtrl, m_iEffects, _("Text Effects"), _T("text_effects"), arrEffectStates, arrEffectNames, wxTEXT_ATTR_EFFECT_NONE) WXS_COLOUR(wxsRichTextCtrl, m_cdTextColour, _("Text Colour"), wxT("text_colour")) WXS_COLOUR(wxsRichTextCtrl, m_cdTextBackground, _("Text Background Colour"), wxT("text_background_colour")) WXS_FONT(wxsRichTextCtrl, m_fdFont, _("Font"), _T("font")) }