NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
customwindow.cpp File Reference
#include "customwindow.hpp"
#include "../NumeReWindow.h"
#include "../../kernel/core/utils/tinyxml2.h"
#include "../../kernel/core/utils/stringtools.hpp"
#include "grouppanel.hpp"
#include <wx/tokenzr.h>
#include <wx/dataview.h>
#include <wx/statline.h>
#include "../wx.h"
#include <string>
Include dependency graph for customwindow.cpp:

Go to the source code of this file.

Enumerations

enum  WindowState { ENABLED , DISABLED , HIDDEN }
 Enumeration to define possible states of window items. More...
 

Functions

static wxString toWxString (const wxColor &c)
 This static function converts colors to wxStrings. More...
 
static wxColour toWxColour (const wxString &s)
 This static function converts wxStrings to colors. More...
 
static wxString convertToCodeString (wxString s)
 This static function conversts usual strings into "Kernel strings" (i.e. usual NumeRe code strings). More...
 
static wxString nextItemValue (wxString &sItem)
 Separates the different item values. More...
 
static void populateTreeListCtrl (wxTreeListCtrl *listCtrl, const wxArrayString &values)
 This static function converts the list of values into items for the passed tree list control and populates it. More...
 
static wxString getTreeListCtrlValue (wxTreeListCtrl *listCtrl)
 This static function returns the current value of the passed tree list control, whereas the value is either the current selection or a vector of the current checkbox states. More...
 

Enumeration Type Documentation

◆ WindowState

Enumeration to define possible states of window items.

Enumerator
ENABLED 
DISABLED 
HIDDEN 

Definition at line 226 of file customwindow.cpp.

Function Documentation

◆ convertToCodeString()

static wxString convertToCodeString ( wxString  s)
static

This static function conversts usual strings into "Kernel strings" (i.e. usual NumeRe code strings).

Parameters
swxString
Returns
wxString

Definition at line 71 of file customwindow.cpp.

Referenced by CustomWindow::getItemParameters(), getTreeListCtrlValue(), and CustomWindow::OnCellSelect().

◆ getTreeListCtrlValue()

static wxString getTreeListCtrlValue ( wxTreeListCtrl listCtrl)
static

This static function returns the current value of the passed tree list control, whereas the value is either the current selection or a vector of the current checkbox states.

Parameters
listCtrlwxTreeListCtrl*
Returns
wxString

Definition at line 171 of file customwindow.cpp.

References convertToCodeString(), wxTreeListCtrl::GetColumnCount(), wxTreeListCtrl::GetItemText(), and wxTreeListCtrl::GetSelections().

Referenced by CustomWindow::getItemParameters().

Here is the call graph for this function:

◆ nextItemValue()

static wxString nextItemValue ( wxString &  sItem)
static

Separates the different item values.

Parameters
sItemwxString&
Returns
wxString

Definition at line 85 of file customwindow.cpp.

Referenced by populateTreeListCtrl().

◆ populateTreeListCtrl()

static void populateTreeListCtrl ( wxTreeListCtrl listCtrl,
const wxArrayString &  values 
)
static

This static function converts the list of values into items for the passed tree list control and populates it.

Parameters
listCtrlwxTreeListCtrl*
valuesconst wxArrayString&
Returns
void

Definition at line 108 of file customwindow.cpp.

References wxTreeListCtrl::AppendItem(), wxTreeListCtrl::GetColumnCount(), wxTreeListCtrl::GetRootItem(), nextItemValue(), and wxTreeListCtrl::SetItemText().

Referenced by CustomWindow::layoutChild(), and CustomWindow::setItemValue().

Here is the call graph for this function:

◆ toWxColour()

static wxColour toWxColour ( const wxString &  s)
static

This static function converts wxStrings to colors.

Parameters
sconst wxString&
Returns
wxColour

Definition at line 53 of file customwindow.cpp.

Referenced by CustomWindow::layoutChild(), CustomWindow::layoutMenu(), and CustomWindow::setItemColor().

◆ toWxString()

static wxString toWxString ( const wxColor &  c)
static

This static function converts colors to wxStrings.

Parameters
cconst wxColor&
Returns
wxString

Definition at line 39 of file customwindow.cpp.

Referenced by CustomWindow::getItemParameters(), and CustomWindow::getWindowParameters().