NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
CellValueShaderDialog Class Reference

This class implements the dialog for choosing the shader properties of the selected cells. More...

#include <cellvalueshader.hpp>

Inheritance diagram for CellValueShaderDialog:
Collaboration diagram for CellValueShaderDialog:

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 CellValueShadergetShader () 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
 
TextFieldm_lt_gt_value
 
wxColourPickerCtrl * m_lt_gt_colour
 
TextFieldm_interval_start
 
TextFieldm_interval_end
 
wxColourPickerCtrl * m_interval_col [3]
 
TextFieldm_interval_start_excl
 
TextFieldm_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
 

Detailed Description

This class implements the dialog for choosing the shader properties of the selected cells.

Definition at line 260 of file cellvalueshader.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
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.

Constructor & Destructor Documentation

◆ CellValueShaderDialog()

CellValueShaderDialog::CellValueShaderDialog ( wxWindow *  parent,
double  minVal,
double  maxVal,
wxWindowID  id = wxID_ANY 
)
inline

Create the dialog.

Parameters
parentwxWindow*
minValdouble
maxValdouble
idwxWindowID

Definition at line 474 of file cellvalueshader.hpp.

References _guilang, createIntervalExclPage(), createIntervalPage(), createLtGtPage(), g_pixelScale, Language::get(), LT_GT_EQ, and m_book.

Here is the call graph for this function:

Member Function Documentation

◆ createIntervalExclPage()

void CellValueShaderDialog::createIntervalExclPage ( double  minVal,
double  maxVal 
)
inlineprivate

This private member function creates the excluded interval page.

Parameters
minValdouble
maxValdouble
Returns
void

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().

Here is the call graph for this function:

◆ createIntervalPage()

void CellValueShaderDialog::createIntervalPage ( double  minVal,
double  maxVal 
)
inlineprivate

This private member function creates the interval page.

Parameters
minValdouble
maxValdouble
Returns
void

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().

Here is the call graph for this function:

◆ createLtGtPage()

void CellValueShaderDialog::createLtGtPage ( )
inlineprivate

This private member function creates the single value comparison page.

Returns
void

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().

Here is the call graph for this function:

◆ DECLARE_EVENT_TABLE()

CellValueShaderDialog::DECLARE_EVENT_TABLE ( )

◆ getShader()

const CellValueShader & CellValueShaderDialog::getShader ( ) const
inline

Get a reference to the internally available shader instance.

Returns
const CellValueShader&

Definition at line 688 of file cellvalueshader.hpp.

References m_shader.

Referenced by TableViewer::applyConditionalCellColourScheme().

◆ OnButtonClick()

◆ OnCheckBox()

void CellValueShaderDialog::OnCheckBox ( wxCommandEvent &  event)
inlineprivate

Event handler for the colour count checkboxes.

Parameters
eventwxCommandEvent&
Returns
void

Definition at line 455 of file cellvalueshader.hpp.

References INTERVAL, INTERVAL_EXCL, m_book, m_interval_col, and m_interval_col_excl.

Member Data Documentation

◆ FIELDWIDTH

const size_t CellValueShaderDialog::FIELDWIDTH = 120
private

Definition at line 291 of file cellvalueshader.hpp.

Referenced by createIntervalExclPage(), and createIntervalPage().

◆ HIGHERCOLOUR

wxColour CellValueShaderDialog::HIGHERCOLOUR = wxColour(255,255,255)
staticprivate

Definition at line 288 of file cellvalueshader.hpp.

Referenced by createIntervalExclPage(), and OnButtonClick().

◆ LEVELCOLOUR

wxColour CellValueShaderDialog::LEVELCOLOUR = wxColour(128,128,255)
staticprivate

Definition at line 283 of file cellvalueshader.hpp.

Referenced by createLtGtPage(), and OnButtonClick().

◆ LOWERCOLOUR

wxColour CellValueShaderDialog::LOWERCOLOUR = wxColour(64,64,64)
staticprivate

Definition at line 284 of file cellvalueshader.hpp.

Referenced by createIntervalExclPage(), and OnButtonClick().

◆ m_book

wxNotebook* CellValueShaderDialog::m_book
private

◆ m_interval_col

wxColourPickerCtrl* CellValueShaderDialog::m_interval_col[3]
private

Definition at line 274 of file cellvalueshader.hpp.

Referenced by createIntervalPage(), OnButtonClick(), and OnCheckBox().

◆ m_interval_col_excl

wxColourPickerCtrl* CellValueShaderDialog::m_interval_col_excl[5]
private

Definition at line 279 of file cellvalueshader.hpp.

Referenced by createIntervalExclPage(), OnButtonClick(), and OnCheckBox().

◆ m_interval_end

TextField* CellValueShaderDialog::m_interval_end
private

Definition at line 273 of file cellvalueshader.hpp.

Referenced by createIntervalPage(), and OnButtonClick().

◆ m_interval_end_excl

TextField* CellValueShaderDialog::m_interval_end_excl
private

Definition at line 278 of file cellvalueshader.hpp.

Referenced by createIntervalExclPage(), and OnButtonClick().

◆ m_interval_start

TextField* CellValueShaderDialog::m_interval_start
private

Definition at line 272 of file cellvalueshader.hpp.

Referenced by createIntervalPage(), and OnButtonClick().

◆ m_interval_start_excl

TextField* CellValueShaderDialog::m_interval_start_excl
private

Definition at line 277 of file cellvalueshader.hpp.

Referenced by createIntervalExclPage(), and OnButtonClick().

◆ m_lt_gt_choice

wxChoice* CellValueShaderDialog::m_lt_gt_choice
private

Definition at line 267 of file cellvalueshader.hpp.

Referenced by createLtGtPage(), and OnButtonClick().

◆ m_lt_gt_colour

wxColourPickerCtrl* CellValueShaderDialog::m_lt_gt_colour
private

Definition at line 269 of file cellvalueshader.hpp.

Referenced by createLtGtPage(), and OnButtonClick().

◆ m_lt_gt_value

TextField* CellValueShaderDialog::m_lt_gt_value
private

Definition at line 268 of file cellvalueshader.hpp.

Referenced by createLtGtPage(), and OnButtonClick().

◆ m_shader

CellValueShader CellValueShaderDialog::m_shader
private

Definition at line 263 of file cellvalueshader.hpp.

Referenced by getShader(), and OnButtonClick().

◆ MAXCOLOUR

wxColour CellValueShaderDialog::MAXCOLOUR = wxColour(255,255,128)
staticprivate

Definition at line 287 of file cellvalueshader.hpp.

Referenced by createIntervalExclPage(), createIntervalPage(), and OnButtonClick().

◆ MEDCOLOUR

wxColour CellValueShaderDialog::MEDCOLOUR = wxColour(255,128,0)
staticprivate

Definition at line 286 of file cellvalueshader.hpp.

Referenced by createIntervalExclPage(), createIntervalPage(), and OnButtonClick().

◆ MINCOLOUR

wxColour CellValueShaderDialog::MINCOLOUR = wxColour(128,0,0)
staticprivate

Definition at line 285 of file cellvalueshader.hpp.

Referenced by createIntervalExclPage(), createIntervalPage(), and OnButtonClick().

◆ USEALLCOLOURS

bool CellValueShaderDialog::USEALLCOLOURS = false
staticprivate

Definition at line 289 of file cellvalueshader.hpp.

Referenced by createIntervalExclPage(), createIntervalPage(), and OnButtonClick().


The documentation for this class was generated from the following file: