Static Public Member Functions |
| static bool | ShowToolTips () |
| | Should we show tooltips?
|
Detailed Description
ciPanel class declaration
Member Enumeration Documentation
- Description
- Enumerates the grid column name assignments.
- Enumerator:
-
Constructor & Destructor Documentation
Constructor.
- Parameters
-
| wxWindow* | parent |
| wxEvtHandler | *appEvtHandler |
| wxWindowID | id |
| const | wxPoint& pos |
| const | wxSize& size |
| long | style |
Member Function Documentation
Creation.
- Parameters
-
| wxWindow* | parent |
| wxWindowID | id |
| const | wxPoint& pos |
| const | wxSize& size |
| long | style |
- Returns
- bool
Reimplemented in ciSensorPanel.
| void ciPanel::CreateControls |
( |
int |
gridColumns | ) |
|
Creates the controls and sizers.
- Parameters
-
| void ciPanel::OnSize |
( |
wxSizeEvent & |
event | ) |
|
Creates the controls and sizers.
wxEVT_SIZE event handler for ID_DIALOG_BASE_PANEL
- Parameters
-
| void ciPanel::OnGridColSize |
( |
wxGridSizeEvent & |
event | ) |
|
wxEVT_GRID_COL_SIZE event handler for ID_GRID
- Parameters
-
| void ciPanel::OnOffsetSliderUpdated |
( |
wxCommandEvent & |
event | ) |
|
wxEVT_COMMAND_SLIDER_UPDATED event handler for ID_OFFSET_SLIDER
- Parameters
-
Reimplemented in ciSensorPanel.
| wxBitmap ciPanel::GetBitmapResource |
( |
const wxString & |
name | ) |
|
Retrieves bitmap resources.
- Parameters
-
- Returns
- wxBitmap
| wxIcon ciPanel::GetIconResource |
( |
const wxString & |
name | ) |
|
Retrieves icon resources.
- Parameters
-
- Returns
- wxIcon
| static bool ciPanel::ShowToolTips |
( |
| ) |
|
|
static |
Should we show tooltips?
- Returns
- static bool
| virtual void ciPanel::RuntimeSetup |
( |
bool |
readOnly = true | ) |
|
|
virtual |
- Description:
- Prepares the grid panel for runtime operation. By overriding this function, cells in the "Value" column can be made "read only", thus preventing accidental modification of data during a scenario run.
- Parameters
-
| readOnly | - if true, disables select cells, making them "read only". If false, enables the cells. |
- Returns
- void
- Note
- Expects to be overridden.
| virtual void ciPanel::updatePanel |
( |
| ) |
|
|
virtual |
- Description:
- Updates the data values in the panel grid.
- Returns
- void
- Note
- Expects to be overridden.
Reimplemented in ciSensorPanel.
| virtual void ciPanel::initializePanel |
( |
| ) |
|
|
virtual |
- Description:
- Initializes the content in the "Name" column and sets up custom grid controls (i.e, checkboxes and dropdown controls.
- Returns
- void
- Note
- Expects to be overridden.
Reimplemented in ciSensorPanel.
| virtual void ciPanel::updateName |
( |
char * |
name | ) |
|
|
virtual |
- Description:
- Forces the parent window to update the name provided to the tree control.
- Parameters
-
- Returns
- void.
Reimplemented in ciSensorPanel.
| virtual void ciPanel::updateCheckboxCell |
( |
int |
row, |
|
|
int |
col, |
|
|
bool |
check |
|
) |
| |
|
protectedvirtual |
- Description:
- Updates the status of a checkbox grid cell.
- Parameters
-
| row | - row of the selected cell |
| col | - column of the selected cell |
| check | - new boolean value for the cell |
- Returns
- void
| virtual bool ciPanel::getCheckboxCell |
( |
int |
row, |
|
|
int |
col |
|
) |
| |
|
protectedvirtual |
- Description:
- Gets the status of a checkbox grid cell.
- Parameters
-
| row | - row of the selected cell |
| col | - column of the selected cell |
- Returns
- true or false - the checked status of the cell
| virtual double ciPanel::updateDoubleCell |
( |
int |
row, |
|
|
int |
col, |
|
|
double |
value, |
|
|
double |
upper = 1000000, |
|
|
double |
lower = -10000 |
|
) |
| |
|
protectedvirtual |
- Description:
- Updates a cell that contains a double variable type.
- Parameters
-
| row | - row of the selected cell |
| col | - column of the selected cell |
| value | - new double value for the cell |
| defaultValue | - value to default to if the value if outside of the limits - optional and defaults to 0 |
| upper | - upper limit of the value |
| lower | - lower limit of the value |
- Returns
- double - final value of the cell
| virtual bool ciPanel::validFileCheck |
( |
char * |
fileName, |
|
|
char * |
fileType |
|
) |
| |
|
protectedvirtual |
- Parameters
-
| char* | fileName |
| char* | fileType |
- Returns
- virtual bool
| virtual double ciPanel::getDoubleCell |
( |
int |
row, |
|
|
int |
col |
|
) |
| |
|
protectedvirtual |
- Description:
- Gets the value of a cell with a double variable type.
- Parameters
-
| row | - row of the selected cell |
| col | - column of the selected cell |
- Returns
- double - the value of the cell
| int ciPanel::getSampleChoiceHandler |
( |
| ) |
|
|
protected |
- Description:
- Gets the choice selection from the dropdown grid control.
- Returns
- integer index of the choice selected from the dropdown grid control.
- Note
- Since wxWidgets kind of goofed on the implementation of the dropdown control, this method should be added for each dropdown grid control.
| void ciPanel::setSampleChoiceHandler |
( |
int |
sel | ) |
|
|
protected |
- Description:
- Sets the choice selection from the dropdown grid control.
- Parameters
-
| sel | - the value to set the dropdown control selection |
- Returns
- void
- Note
- Since wxWidgets kind of goofed on the implementation of the dropdown control, this method should be added for each dropdown grid control.
Member Data Documentation
| wxSlider* ciPanel::m_sliderOffset |
| const int ciPanel::m_nameColWidth |
|
protected |
| wxEvtHandler* ciPanel::m_AppEvtHandler |
|
protected |
The application event handler.
The documentation for this class was generated from the following file: