NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
This class implements the dialog for choosing the shader properties of the selected cells. More...
#include <cellvalueshader.hpp>
Public Member Functions | |
CellValueShaderDialog (wxWindow *parent, double minVal, double maxVal, wxWindowID id=wxID_ANY) | |
Create the dialog. More... | |
void | OnButtonClick (wxCommandEvent &event) |
Event handler for the apply and cancel buttons. Will create a valid shader if the user clicked on apply. More... | |
const CellValueShader & | getShader () const |
Get a reference to the internally available shader instance. More... | |
DECLARE_EVENT_TABLE () | |
Private Types | |
enum | { LT_GT_EQ , INTERVAL , INTERVAL_EXCL } |
This enumeration defines the IDs for the possible selectable pages. More... | |
Private Member Functions | |
void | createLtGtPage () |
This private member function creates the single value comparison page. More... | |
void | createIntervalPage (double minVal, double maxVal) |
This private member function creates the interval page. More... | |
void | createIntervalExclPage (double minVal, double maxVal) |
This private member function creates the excluded interval page. More... | |
void | OnCheckBox (wxCommandEvent &event) |
Event handler for the colour count checkboxes. More... | |
Private Attributes | |
CellValueShader | m_shader |
wxNotebook * | m_book |
wxChoice * | m_lt_gt_choice |
TextField * | m_lt_gt_value |
wxColourPickerCtrl * | m_lt_gt_colour |
TextField * | m_interval_start |
TextField * | m_interval_end |
wxColourPickerCtrl * | m_interval_col [3] |
TextField * | m_interval_start_excl |
TextField * | m_interval_end_excl |
wxColourPickerCtrl * | m_interval_col_excl [5] |
const size_t | FIELDWIDTH = 120 |
Static Private Attributes | |
static wxColour | LEVELCOLOUR = wxColour(128,128,255) |
static wxColour | LOWERCOLOUR = wxColour(64,64,64) |
static wxColour | MINCOLOUR = wxColour(128,0,0) |
static wxColour | MEDCOLOUR = wxColour(255,128,0) |
static wxColour | MAXCOLOUR = wxColour(255,255,128) |
static wxColour | HIGHERCOLOUR = wxColour(255,255,255) |
static bool | USEALLCOLOURS = false |
This class implements the dialog for choosing the shader properties of the selected cells.
Definition at line 260 of file cellvalueshader.hpp.
|
private |
This enumeration defines the IDs for the possible selectable pages.
Enumerator | |
---|---|
LT_GT_EQ | |
INTERVAL | |
INTERVAL_EXCL |
Definition at line 298 of file cellvalueshader.hpp.
|
inline |
Create the dialog.
parent | wxWindow* |
minVal | double |
maxVal | double |
id | wxWindowID |
Definition at line 474 of file cellvalueshader.hpp.
References _guilang, createIntervalExclPage(), createIntervalPage(), createLtGtPage(), g_pixelScale, Language::get(), LT_GT_EQ, and m_book.
|
inlineprivate |
This private member function creates the excluded interval page.
minVal | double |
maxVal | double |
Definition at line 401 of file cellvalueshader.hpp.
References _guilang, GroupPanel::AddStaticText(), GroupPanel::CreateCheckBox(), GroupPanel::createGroup(), GroupPanel::CreateTextInput(), FIELDWIDTH, Language::get(), GroupPanel::getMainSizer(), HIGHERCOLOUR, LOWERCOLOUR, m_book, m_interval_col_excl, m_interval_end_excl, m_interval_start_excl, MAXCOLOUR, MEDCOLOUR, MINCOLOUR, toString(), and USEALLCOLOURS.
Referenced by CellValueShaderDialog().
|
inlineprivate |
This private member function creates the interval page.
minVal | double |
maxVal | double |
Definition at line 358 of file cellvalueshader.hpp.
References _guilang, GroupPanel::AddStaticText(), GroupPanel::CreateCheckBox(), GroupPanel::createGroup(), GroupPanel::CreateTextInput(), FIELDWIDTH, Language::get(), GroupPanel::getMainSizer(), m_book, m_interval_col, m_interval_end, m_interval_start, MAXCOLOUR, MEDCOLOUR, MINCOLOUR, toString(), and USEALLCOLOURS.
Referenced by CellValueShaderDialog().
|
inlineprivate |
This private member function creates the single value comparison page.
Definition at line 312 of file cellvalueshader.hpp.
References _guilang, GroupPanel::AddStaticText(), GroupPanel::CreateChoices(), GroupPanel::createGroup(), GroupPanel::CreateTextInput(), Language::get(), GroupPanel::getMainSizer(), LEVELCOLOUR, m_book, m_lt_gt_choice, m_lt_gt_colour, and m_lt_gt_value.
Referenced by CellValueShaderDialog().
CellValueShaderDialog::DECLARE_EVENT_TABLE | ( | ) |
|
inline |
Get a reference to the internally available shader instance.
Definition at line 688 of file cellvalueshader.hpp.
References m_shader.
Referenced by TableViewer::applyConditionalCellColourScheme().
|
inline |
Event handler for the apply and cancel buttons. Will create a valid shader if the user clicked on apply.
event | wxCommandEvent& |
Definition at line 509 of file cellvalueshader.hpp.
References _guilang, CONVTYPE_DATE_TIME, CONVTYPE_VALUE, CellValueShaderCondition::CT_EQUALS_STR, CellValueShaderCondition::CT_EQUALS_VAL, CellValueShaderCondition::CT_FIND_STR, CellValueShaderCondition::CT_GREATER_EQ_THAN, CellValueShaderCondition::CT_GREATER_THAN, CellValueShaderCondition::CT_INTERVAL_RE, CellValueShaderCondition::CT_INTERVAL_RE_EXCL, CellValueShaderCondition::CT_LESS_EQ_THAN, CellValueShaderCondition::CT_LESS_THAN, CellValueShaderCondition::CT_NOT_EQUALS_STR, CellValueShaderCondition::CT_NOT_EQUALS_VAL, CellValueShaderCondition::CT_NOT_FIND_STR, Language::get(), HIGHERCOLOUR, INTERVAL, INTERVAL_EXCL, isConvertible(), LEVELCOLOUR, LOWERCOLOUR, LT_GT_EQ, m_book, m_interval_col, m_interval_col_excl, m_interval_end, m_interval_end_excl, m_interval_start, m_interval_start_excl, m_lt_gt_choice, m_lt_gt_colour, m_lt_gt_value, m_shader, CellValueShaderCondition::m_strs, CellValueShaderCondition::m_type, CellValueShaderCondition::m_vals, MAXCOLOUR, MEDCOLOUR, MINCOLOUR, StrToCmplx(), StrToTime(), to_double(), toStrVector(), and USEALLCOLOURS.
|
inlineprivate |
Event handler for the colour count checkboxes.
event | wxCommandEvent& |
Definition at line 455 of file cellvalueshader.hpp.
References INTERVAL, INTERVAL_EXCL, m_book, m_interval_col, and m_interval_col_excl.
|
private |
Definition at line 291 of file cellvalueshader.hpp.
Referenced by createIntervalExclPage(), and createIntervalPage().
|
staticprivate |
Definition at line 288 of file cellvalueshader.hpp.
Referenced by createIntervalExclPage(), and OnButtonClick().
|
staticprivate |
Definition at line 283 of file cellvalueshader.hpp.
Referenced by createLtGtPage(), and OnButtonClick().
|
staticprivate |
Definition at line 284 of file cellvalueshader.hpp.
Referenced by createIntervalExclPage(), and OnButtonClick().
|
private |
Definition at line 264 of file cellvalueshader.hpp.
Referenced by CellValueShaderDialog(), createIntervalExclPage(), createIntervalPage(), createLtGtPage(), OnButtonClick(), and OnCheckBox().
|
private |
Definition at line 274 of file cellvalueshader.hpp.
Referenced by createIntervalPage(), OnButtonClick(), and OnCheckBox().
|
private |
Definition at line 279 of file cellvalueshader.hpp.
Referenced by createIntervalExclPage(), OnButtonClick(), and OnCheckBox().
|
private |
Definition at line 273 of file cellvalueshader.hpp.
Referenced by createIntervalPage(), and OnButtonClick().
|
private |
Definition at line 278 of file cellvalueshader.hpp.
Referenced by createIntervalExclPage(), and OnButtonClick().
|
private |
Definition at line 272 of file cellvalueshader.hpp.
Referenced by createIntervalPage(), and OnButtonClick().
|
private |
Definition at line 277 of file cellvalueshader.hpp.
Referenced by createIntervalExclPage(), and OnButtonClick().
|
private |
Definition at line 267 of file cellvalueshader.hpp.
Referenced by createLtGtPage(), and OnButtonClick().
|
private |
Definition at line 269 of file cellvalueshader.hpp.
Referenced by createLtGtPage(), and OnButtonClick().
|
private |
Definition at line 268 of file cellvalueshader.hpp.
Referenced by createLtGtPage(), and OnButtonClick().
|
private |
Definition at line 263 of file cellvalueshader.hpp.
Referenced by getShader(), and OnButtonClick().
|
staticprivate |
Definition at line 287 of file cellvalueshader.hpp.
Referenced by createIntervalExclPage(), createIntervalPage(), and OnButtonClick().
|
staticprivate |
Definition at line 286 of file cellvalueshader.hpp.
Referenced by createIntervalExclPage(), createIntervalPage(), and OnButtonClick().
|
staticprivate |
Definition at line 285 of file cellvalueshader.hpp.
Referenced by createIntervalExclPage(), createIntervalPage(), and OnButtonClick().
|
staticprivate |
Definition at line 289 of file cellvalueshader.hpp.
Referenced by createIntervalExclPage(), createIntervalPage(), and OnButtonClick().