X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/404b319a85dadd7decf7a5a5331020520031a41c..9869c26285dc51d13607cddaa04f65ce983653a5:/include/wx/richtext/richtextsizepage.h?ds=sidebyside diff --git a/include/wx/richtext/richtextsizepage.h b/include/wx/richtext/richtextsizepage.h index 0b8cba035d..8f3ca6a1b0 100644 --- a/include/wx/richtext/richtextsizepage.h +++ b/include/wx/richtext/richtextsizepage.h @@ -23,6 +23,7 @@ #include "wx/statline.h" #include "wx/valgen.h" ////@end includes +#include "wx/stattext.h" /*! * Forward declarations @@ -76,23 +77,32 @@ public: virtual bool TransferDataToWindow(); virtual bool TransferDataFromWindow(); - /// Show/hide position controls - void ShowPositionControls(bool show); + /// Show/hide position controls + static void ShowPositionControls(bool show) { sm_showPositionControls = show; } + + /// Show/hide minimum and maximum size controls + static void ShowMinMaxSizeControls(bool show) { sm_showMinMaxSizeControls = show; } /// Show/hide position mode controls - void ShowPositionModeControls(bool show); + static void ShowPositionModeControls(bool show) { sm_showPositionModeControls = show; } /// Show/hide right/bottom position controls - void ShowRightBottomPositionControls(bool show); + static void ShowRightBottomPositionControls(bool show) { sm_showRightBottomPositionControls = show; } /// Show/hide floating and alignment controls - void ShowFloatingAndAlignmentControls(bool show); + static void ShowFloatingAndAlignmentControls(bool show) { sm_showFloatingAndAlignmentControls = show; } /// Show/hide floating controls - void ShowFloatingControls(bool show); + static void ShowFloatingControls(bool show) { sm_showFloatingControls = show; } /// Show/hide alignment controls - void ShowAlignmentControls(bool show); + static void ShowAlignmentControls(bool show) { sm_showAlignmentControls = show; } + + /// Enable the position and size units + static void EnablePositionAndSizeUnits(bool enable) { sm_enablePositionAndSizeUnits = enable; } + + /// Enable the checkboxes for position and size + static void EnablePositionAndSizeCheckboxes(bool enable) { sm_enablePositionAndSizeCheckboxes = enable; } ////@begin wxRichTextSizePage event handler declarations @@ -102,9 +112,15 @@ public: /// wxEVT_UPDATE_UI event handler for ID_RICHTEXT_WIDTH void OnRichtextWidthUpdate( wxUpdateUIEvent& event ); + /// wxEVT_UPDATE_UI event handler for ID_RICHTEXT_UNITS_W + void OnRichtextWidthUnitsUpdate( wxUpdateUIEvent& event ); + /// wxEVT_UPDATE_UI event handler for ID_RICHTEXT_HEIGHT void OnRichtextHeightUpdate( wxUpdateUIEvent& event ); + /// wxEVT_UPDATE_UI event handler for ID_RICHTEXT_UNITS_H + void OnRichtextHeightUnitsUpdate( wxUpdateUIEvent& event ); + /// wxEVT_UPDATE_UI event handler for ID_RICHTEXT_MIN_WIDTH void OnRichtextMinWidthUpdate( wxUpdateUIEvent& event ); @@ -121,18 +137,30 @@ public: void OnRichtextLeftUpdate( wxUpdateUIEvent& event ); /// wxEVT_UPDATE_UI event handler for ID_RICHTEXT_LEFT_UNITS + void OnRichtextLeftUnitsUpdate( wxUpdateUIEvent& event ); + + /// wxEVT_UPDATE_UI event handler for ID_RICHTEXT_TOP void OnRichtextTopUpdate( wxUpdateUIEvent& event ); + /// wxEVT_UPDATE_UI event handler for ID_RICHTEXT_TOP_UNITS + void OnRichtextTopUnitsUpdate( wxUpdateUIEvent& event ); + /// wxEVT_UPDATE_UI event handler for ID_RICHTEXT_RIGHT void OnRichtextRightUpdate( wxUpdateUIEvent& event ); + /// wxEVT_UPDATE_UI event handler for ID_RICHTEXT_RIGHT_UNITS + void OnRichtextRightUnitsUpdate( wxUpdateUIEvent& event ); + /// wxEVT_UPDATE_UI event handler for ID_RICHTEXT_BOTTOM void OnRichtextBottomUpdate( wxUpdateUIEvent& event ); - /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_RICHTEXT_PARA_UP + /// wxEVT_UPDATE_UI event handler for ID_RICHTEXT_BOTTOM_UNITS + void OnRichtextBottomUnitsUpdate( wxUpdateUIEvent& event ); + + /// wxEVT_BUTTON event handler for ID_RICHTEXT_PARA_UP void OnRichtextParaUpClick( wxCommandEvent& event ); - /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_RICHTEXT_PARA_DOWN + /// wxEVT_BUTTON event handler for ID_RICHTEXT_PARA_DOWN void OnRichtextParaDownClick( wxCommandEvent& event ); ////@end wxRichTextSizePage event handler declarations @@ -156,44 +184,61 @@ public: wxBoxSizer* m_parentSizer; wxBoxSizer* m_floatingAlignmentSizer; wxBoxSizer* m_floatingSizer; - wxComboBox* m_float; + wxChoice* m_float; wxBoxSizer* m_alignmentSizer; wxCheckBox* m_verticalAlignmentCheckbox; - wxComboBox* m_verticalAlignmentComboBox; + wxChoice* m_verticalAlignmentComboBox; + wxFlexGridSizer* m_sizeSizer; + wxBoxSizer* m_widthSizer; wxCheckBox* m_widthCheckbox; + wxStaticText* m_widthLabel; wxTextCtrl* m_width; wxComboBox* m_unitsW; + wxBoxSizer* m_heightSizer; wxCheckBox* m_heightCheckbox; + wxStaticText* m_heightLabel; wxTextCtrl* m_height; wxComboBox* m_unitsH; wxCheckBox* m_minWidthCheckbox; + wxBoxSizer* m_minWidthSizer; wxTextCtrl* m_minWidth; wxComboBox* m_unitsMinW; wxCheckBox* m_minHeightCheckbox; + wxBoxSizer* m_minHeightSizer; wxTextCtrl* m_minHeight; wxComboBox* m_unitsMinH; wxCheckBox* m_maxWidthCheckbox; + wxBoxSizer* m_maxWidthSizer; wxTextCtrl* m_maxWidth; wxComboBox* m_unitsMaxW; wxCheckBox* m_maxHeightCheckbox; + wxBoxSizer* m_maxHeightSizer; wxTextCtrl* m_maxHeight; wxComboBox* m_unitsMaxH; wxBoxSizer* m_positionControls; wxBoxSizer* m_moveObjectParentSizer; wxBoxSizer* m_positionModeSizer; - wxComboBox* m_positionModeCtrl; + wxChoice* m_positionModeCtrl; wxFlexGridSizer* m_positionGridSizer; + wxBoxSizer* m_leftSizer; wxCheckBox* m_positionLeftCheckbox; + wxStaticText* m_leftLabel; wxTextCtrl* m_left; wxComboBox* m_unitsLeft; + wxBoxSizer* m_topSizer; wxCheckBox* m_positionTopCheckbox; + wxStaticText* m_topLabel; wxTextCtrl* m_top; wxComboBox* m_unitsTop; + wxBoxSizer* m_rightSizer; wxCheckBox* m_positionRightCheckbox; + wxStaticText* m_rightLabel; wxBoxSizer* m_rightPositionSizer; wxTextCtrl* m_right; wxComboBox* m_unitsRight; + wxBoxSizer* m_bottomSizer; wxCheckBox* m_positionBottomCheckbox; + wxStaticText* m_bottomLabel; wxBoxSizer* m_bottomPositionSizer; wxTextCtrl* m_bottom; wxComboBox* m_unitsBottom; @@ -240,6 +285,16 @@ public: ID_RICHTEXT_PARA_DOWN = 10714 }; ////@end wxRichTextSizePage member variables + + static bool sm_showFloatingControls; + static bool sm_showPositionControls; + static bool sm_showMinMaxSizeControls; + static bool sm_showPositionModeControls; + static bool sm_showRightBottomPositionControls; + static bool sm_showAlignmentControls; + static bool sm_showFloatingAndAlignmentControls; + static bool sm_enablePositionAndSizeUnits; + static bool sm_enablePositionAndSizeCheckboxes; }; #endif