#include <wx/propgrid/propgridpagestate.h>
Contains low-level property page information (properties, column widths, etc.) of a single wxPropertyGrid or single wxPropertyGridPage.
Generally you should not use this class directly, but instead member functions in wxPropertyGridInterface, wxPropertyGrid, wxPropertyGridPage, and wxPropertyGridManager.
Public Member Functions | |
| wxPropertyGridPageState () | |
| Default constructor. | |
| virtual | ~wxPropertyGridPageState () |
| Destructor. | |
| void | CheckColumnWidths (int widthChange=0) |
| Makes sure all columns have minimum width. | |
| virtual void | DoDelete (wxPGProperty *item, bool doDelete=true) |
| Override this member function to add custom behaviour on property deletion. | |
| virtual wxPGProperty * | DoInsert (wxPGProperty *parent, int index, wxPGProperty *property) |
| Override this member function to add custom behaviour on property insertion. | |
| virtual void | DoSetSplitterPosition (int pos, int splitterColumn=0, int flags=0) |
| This needs to be overridden in grid used the manager so that splitter changes can be propagated to other pages. | |
| bool | EnableCategories (bool enable) |
| void | EnsureVirtualHeight () |
| Make sure virtual height is up-to-date. | |
| unsigned int | GetVirtualHeight () const |
| Returns (precalculated) height of contained visible properties. | |
| unsigned int | GetVirtualHeight () |
| Returns (precalculated) height of contained visible properties. | |
| unsigned int | GetActualVirtualHeight () const |
| Returns actual height of contained visible properties. | |
| unsigned int | GetColumnCount () const |
| int | GetColumnMinWidth (int column) const |
| int | GetColumnWidth (unsigned int column) const |
| wxPropertyGrid * | GetGrid () const |
| wxPGProperty * | GetLastItem (int flags=wxPG_ITERATE_DEFAULT) |
| Returns last item which could be iterated using given flags. | |
| const wxPGProperty * | GetLastItem (int flags=wxPG_ITERATE_DEFAULT) const |
| wxPGProperty * | GetSelection () const |
| Returns currently selected property. | |
| wxPropertyCategory * | GetPropertyCategory (const wxPGProperty *p) const |
| int | GetVirtualWidth () const |
| Returns combined width of margin and all the columns. | |
| int | GetColumnFullWidth (wxPGProperty *p, unsigned int col) const |
| wxPropertyGridHitTestResult | HitTest (const wxPoint &pt) const |
| Returns information about arbitrary position in the grid. | |
| bool | IsDisplayed () const |
| Returns true if page is visibly displayed. | |
| bool | IsInNonCatMode () const |
| void | VirtualHeightChanged () |
| Called after virtual height needs to be recalculated. | |
Friends | |
| class | wxPropertyGrid |
| class | wxPropertyGridInterface |
| class | wxPropertyGridPage |
| class | wxPropertyGridManager |
| class | wxPGProperty |
| class | wxFlagsProperty |
| class | wxPropertyGridIteratorBase |
| wxPropertyGridPageState::wxPropertyGridPageState | ( | ) |
Default constructor.
|
virtual |
Destructor.
| void wxPropertyGridPageState::CheckColumnWidths | ( | int | widthChange = 0 | ) |
Makes sure all columns have minimum width.
|
virtual |
Override this member function to add custom behaviour on property deletion.
|
virtual |
Override this member function to add custom behaviour on property insertion.
|
virtual |
This needs to be overridden in grid used the manager so that splitter changes can be propagated to other pages.
| bool wxPropertyGridPageState::EnableCategories | ( | bool | enable | ) |
| void wxPropertyGridPageState::EnsureVirtualHeight | ( | ) |
Make sure virtual height is up-to-date.
|
inline |
Returns actual height of contained visible properties.
| unsigned int wxPropertyGridPageState::GetColumnCount | ( | ) | const |
| int wxPropertyGridPageState::GetColumnFullWidth | ( | wxPGProperty * | p, |
| unsigned int | col ) const |
| int wxPropertyGridPageState::GetColumnMinWidth | ( | int | column | ) | const |
| int wxPropertyGridPageState::GetColumnWidth | ( | unsigned int | column | ) | const |
| wxPropertyGrid * wxPropertyGridPageState::GetGrid | ( | ) | const |
| wxPGProperty * wxPropertyGridPageState::GetLastItem | ( | int | flags = wxPG_ITERATE_DEFAULT | ) |
Returns last item which could be iterated using given flags.
| flags | wxPropertyGridIterator Flags |
| const wxPGProperty * wxPropertyGridPageState::GetLastItem | ( | int | flags = wxPG_ITERATE_DEFAULT | ) | const |
| wxPropertyCategory * wxPropertyGridPageState::GetPropertyCategory | ( | const wxPGProperty * | p | ) | const |
| wxPGProperty * wxPropertyGridPageState::GetSelection | ( | ) | const |
Returns currently selected property.
| unsigned int wxPropertyGridPageState::GetVirtualHeight | ( | ) |
Returns (precalculated) height of contained visible properties.
| unsigned int wxPropertyGridPageState::GetVirtualHeight | ( | ) | const |
Returns (precalculated) height of contained visible properties.
| int wxPropertyGridPageState::GetVirtualWidth | ( | ) | const |
Returns combined width of margin and all the columns.
| wxPropertyGridHitTestResult wxPropertyGridPageState::HitTest | ( | const wxPoint & | pt | ) | const |
Returns information about arbitrary position in the grid.
| pt | Logical coordinates in the virtual grid space. Use wxScrolled<T>::CalcUnscrolledPosition() if you need to translate a scrolled position into a logical one. |
|
inline |
Returns true if page is visibly displayed.
| bool wxPropertyGridPageState::IsInNonCatMode | ( | ) | const |
| void wxPropertyGridPageState::VirtualHeightChanged | ( | ) |
Called after virtual height needs to be recalculated.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |