NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
This structure contains the necessary data to completely define a style for a distinctive syntax element. More...
#include <Options.h>
Public Member Functions | |
wxColour | StrToColorNew (const wxString &colorstring) const |
Convert a colorstring (r:g:b) into an actual color instance. More... | |
wxColour | StrToColorOld (const wxString &colorstring) const |
Convert a colorstring of the old representation (rrrgggbbb) into an actual color instance. More... | |
void | importNew (const wxString &styleDef) |
Imports a new syntax style string (r:g:b-r:g:b-BIUD) and converts it into actual usable variables. More... | |
void | importOld (const wxString &styleDef) |
Imports an old syntax style string (rrrgggbbbrrrgggbbbBIUD) and converts it into actual usable variables. More... | |
std::string | to_string () const |
Transforms the internal data into a string style representation according the following scheme: r:g:b-r:g:b-BIUD. More... | |
SyntaxStyles () | |
Default constructor. Creates a "style-
less" style. More... | |
SyntaxStyles (const wxString &styleDef) | |
Generic constructor. Creates an instance of this class by importing a style string in new or old fashion. More... | |
Public Attributes | |
wxColour | foreground |
wxColour | background |
bool | bold |
bool | italics |
bool | underline |
bool | defaultbackground |
This structure contains the necessary data to completely define a style for a distinctive syntax element.
|
inline |
|
inline |
Generic constructor. Creates an instance of this class by importing a style string in new or old fashion.
styleDef | const wxString& |
Definition at line 159 of file Options.h.
References importNew(), and importOld().
|
inline |
Imports a new syntax style string (r:g:b-r:g:b-BIUD) and converts it into actual usable variables.
styleDef | const wxString& |
Definition at line 75 of file Options.h.
References background, bold, defaultbackground, foreground, italics, StrToColorNew(), and underline.
Referenced by SyntaxStyles().
|
inline |
Imports an old syntax style string (rrrgggbbbrrrgggbbbBIUD) and converts it into actual usable variables.
styleDef | const wxString& |
Definition at line 97 of file Options.h.
References background, bold, defaultbackground, foreground, italics, StrToColorOld(), and underline.
Referenced by SyntaxStyles().
|
inline |
Convert a colorstring (r:g:b) into an actual color instance.
colorstring | const wxString& |
Definition at line 43 of file Options.h.
References StrToInt().
Referenced by importNew().
|
inline |
Convert a colorstring of the old representation (rrrgggbbb) into an actual color instance.
colorstring | const wxString& |
Definition at line 58 of file Options.h.
References StrToInt().
Referenced by importOld().
|
inline |
Transforms the internal data into a string style representation according the following scheme: r:g:b-r:g:b-BIUD.
Definition at line 131 of file Options.h.
References background, bold, defaultbackground, foreground, italics, toString(), and underline.
Referenced by Options::readColoursFromConfig(), and Options::SetSyntaxStyle().
wxColour SyntaxStyles::background |
Definition at line 29 of file Options.h.
Referenced by OptionsDialog::CreateStylePage(), NumeReTerminal::GetDefColors(), importNew(), importOld(), OptionsDialog::InitializeDialog(), OptionsDialog::OnButtonClick(), OptionsDialog::OnColorPickerChange(), OptionsDialog::OnColorTypeChange(), NumeReWindow::OnOptions(), to_string(), NumeReEditor::updateDefaultHighlightSettings(), NumeReEditor::UpdateSyntaxHighlighting(), and NumeReHistory::UpdateSyntaxHighlighting().
bool SyntaxStyles::bold |
Definition at line 30 of file Options.h.
Referenced by importNew(), importOld(), OptionsDialog::InitializeDialog(), OptionsDialog::OnButtonClick(), OptionsDialog::OnColorTypeChange(), OptionsDialog::OnFontCheckClick(), to_string(), NumeReEditor::UpdateSyntaxHighlighting(), and NumeReHistory::UpdateSyntaxHighlighting().
bool SyntaxStyles::defaultbackground |
Definition at line 33 of file Options.h.
Referenced by importNew(), importOld(), OptionsDialog::InitializeDialog(), OptionsDialog::OnButtonClick(), OptionsDialog::OnColorTypeChange(), to_string(), NumeReEditor::updateDefaultHighlightSettings(), NumeReEditor::UpdateSyntaxHighlighting(), and NumeReHistory::UpdateSyntaxHighlighting().
wxColour SyntaxStyles::foreground |
Definition at line 28 of file Options.h.
Referenced by OptionsDialog::CreateStylePage(), NumeReTerminal::GetDefColors(), importNew(), importOld(), OptionsDialog::InitializeDialog(), NumeReEditor::NumeReEditor(), OptionsDialog::OnButtonClick(), OptionsDialog::OnColorPickerChange(), OptionsDialog::OnColorTypeChange(), DebugViewer::setExpression(), to_string(), NumeReEditor::updateDefaultHighlightSettings(), NumeReEditor::UpdateSyntaxHighlighting(), and NumeReHistory::UpdateSyntaxHighlighting().
bool SyntaxStyles::italics |
Definition at line 31 of file Options.h.
Referenced by importNew(), importOld(), OptionsDialog::InitializeDialog(), OptionsDialog::OnButtonClick(), OptionsDialog::OnColorTypeChange(), OptionsDialog::OnFontCheckClick(), to_string(), NumeReEditor::UpdateSyntaxHighlighting(), and NumeReHistory::UpdateSyntaxHighlighting().
bool SyntaxStyles::underline |
Definition at line 32 of file Options.h.
Referenced by importNew(), importOld(), OptionsDialog::InitializeDialog(), OptionsDialog::OnButtonClick(), OptionsDialog::OnColorTypeChange(), OptionsDialog::OnFontCheckClick(), to_string(), NumeReEditor::UpdateSyntaxHighlighting(), and NumeReHistory::UpdateSyntaxHighlighting().