NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
OptionsDialog.h
Go to the documentation of this file.
1
2// Name: OptionsDialog.h
3// Purpose:
4// Author: Mark Erikson
5// Modified by:
6// Created: 11/23/03 16:02:26
7// RCS-ID:
8// Copyright:
9// Licence:
11
12#ifndef _OPTIONSDIALOG_H_
13#define _OPTIONSDIALOG_H_
14
15#ifdef __GNUG__
16#pragma interface "OptionsDialog.h"
17#endif
18
24#include "wx/notebook.h"
25#include "wx/spinctrl.h"
26#include <wx/clrpicker.h>
27#include <wx/fontpicker.h>
28
29#include "../../kernel/core/settings.hpp"
31
32
38class wxNotebook;
39class wxSpinCtrl;
41
42class NumeReWindow;
43
49#define ID_DIALOG 10000
50#define ID_NOTEBOOK 10001
51#define ID_PANELFEATURES 10006
52#define ID_CHECKLISTBOX 10007
53#define ID_PROFCODE 10004
54#define ID_SETAUTHCODE 10012
55#define ID_PANELNETWORK 10005
56#define ID_HOSTNAME 10008
57#define ID_USERNAME 10009
58#define ID_PASSWORD1 10010
59#define ID_PASSWORD2 10011
60#define ID_PANELCOMPILER 10015
61#define ID_TEXTMINGWPATH 10014
62#define ID_BTN_LOADPATH 10030
63#define ID_BTN_SAVEPATH 10031
64#define ID_BTN_SCRIPTPATH 10032
65#define ID_BTN_PROCPATH 10033
66#define ID_BTN_PLOTPATH 10034
67#define ID_BTN_LATEXPATH 10035
68#define ID_BTNFINDMINGW 10020
69#define ID_BUTTON1 10021
70#define ID_CHECKBOX1 10023
71#define ID_PANELMISC 10016
72#define ID_PRINTSTYLE 10017
73#define ID_PRINTLINENUMBERS 10013
74#define ID_SHOWTOOLBARTEXT 10018
75#define ID_COMBINEWATCH 10022
76#define ID_SPINCTRL 10019
77#define ID_BUTTON_OK 10002
78#define ID_BUTTON_CANCEL 10003
79
80#define ID_CLRSPIN 10040
81#define ID_CLRPICKR_FORE 10041
82#define ID_CLRPICKR_BACK 10042
83#define ID_RESETCOLOR 10043
84#define ID_DEFAULTBACKGROUND 10044
85#define ID_BOLD 10045
86#define ID_ITALICS 10046
87#define ID_UNDERLINE 10047
88
89#define SYMBOL_OPTIONSDIALOG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
90#define SYMBOL_OPTIONSDIALOG_TITLE _("Options")
91#define SYMBOL_OPTIONSDIALOG_IDNAME ID_DIALOG
92#define SYMBOL_OPTIONSDIALOG_SIZE wxSize(420, 315)
93#define SYMBOL_OPTIONSDIALOG_POSITION wxDefaultPosition
95
96//#include <wx/wx.h>
97
98class wxTextCtrl;
99class wxButton;
100class wxCheckListBox;
101class wxString;
102class Options;
103
108class OptionsDialog: public wxDialog
109{
110 DECLARE_CLASS( OptionsDialog )
111 DECLARE_EVENT_TABLE()
112
113 void CreateConfigPage();
114 void CreatePathPage();
115 void CreateEditorPage();
116 void CreateStylePage();
117 void CreateMiscPage();
118 void CreateAnalyzerPage();
119 void CreateDebuggerPage();
120
121 public:
123 OptionsDialog( wxWindow* parent, Options* options, wxWindowID id = -1, const wxString& caption = _("Options"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU );
124
126 bool Create( wxWindow* parent, wxWindowID id = -1, const wxString& caption = _("Options"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU );
127
129 void CreateControls();
130
132 void OnButtonOkClick( wxCommandEvent& event );
133
135 void OnButtonCancelClick( wxCommandEvent& event );
136 void OnColorPickerChange(wxColourPickerEvent& event);
137 void OnColorTypeChange(wxCommandEvent& event);
138 void OnButtonClick(wxCommandEvent& event);
139 void OnFontCheckClick(wxCommandEvent& event);
140 void synchronizeColors();
141
142 void BrowseForDir(wxTextCtrl* textbox, wxString name);
143 bool EvaluateOptions();
144
145 void InitializeDialog();
146 void ExitDialog();
147
149 static bool ShowToolTips();
150
152 wxNotebook* m_optionsNotebook;
153 wxCheckListBox* m_checkList;;
154
155 wxCheckBox* m_compactTables;
156 wxCheckBox* m_AutoLoadDefines;
157 wxCheckBox* m_showGreeting;
159 wxComboBox* m_colorType;
160 wxColourPickerCtrl* m_foreColor;
161 wxColourPickerCtrl* m_backColor;
163 wxButton* m_resetButton;
164 wxCheckBox* m_boldCheck;
165 wxCheckBox* m_italicsCheck;
166 wxCheckBox* m_underlineCheck;
167 wxFontPickerCtrl* m_fontPicker;
168 wxFontPickerCtrl* m_fontPickerTerminal;
169 wxFontPickerCtrl* m_fontPickerHistory;
171
172 wxCheckBox* m_ExtendedInfo;
173 wxCheckBox* m_ShowHints;
174 wxCheckBox* m_CustomLanguage;
175 wxCheckBox* m_ESCinScripts;
176 wxCheckBox* m_UseLogfile;
177 //wxCheckBox* m_UseExternalViewer;
178 wxCheckBox* m_FilePathsInTabs;
179 wxCheckBox* m_IconsOnTabs;
180 wxTextCtrl* m_LoadPath;
181 wxTextCtrl* m_SavePath;
182 wxTextCtrl* m_ScriptPath;
183 wxTextCtrl* m_ProcPath;
184 wxTextCtrl* m_PlotPath;
185 wxTextCtrl* m_LaTeXRoot;
186
187 wxComboBox* m_defaultFont;
188 wxSpinCtrl* m_precision;
190
192 wxComboBox* m_printStyle;
194 wxCheckBox* m_showToolbarText;
195 wxCheckBox* m_saveSession;
199 wxSpinCtrl* m_termHistory;
200 wxSpinCtrl* m_caretBlinkTime;
206 wxCheckBox* m_keepBackupFiles;
208 wxCheckBox* m_useTabs;
209 wxCheckBox* m_homeEndCancels;
210 wxCheckBox* m_braceAutoComp;
211 wxCheckBox* m_blockAutoComp;
212 wxCheckBox* m_quoteAutoComp;
213 wxCheckBox* m_smartSense;
215
223
225
227
231};
232
233#endif
234 // _OPTIONSDIALOG_H_
This class is the actual NumeRe main frame. The application's logic is implemented here.
Definition: NumeReWindow.h:177
This class represents the settings dialog in memory.
wxCheckBox * m_UseLogfile
wxCheckBox * m_debuggerShowGlobals
wxCheckBox * m_saveSession
wxCheckBox * m_debuggerShowModules
wxCheckBox * m_italicsCheck
wxCheckBox * m_homeEndCancels
wxComboBox * m_defaultFont
wxCheckBox * m_saveBeforeExecuting
void OnButtonClick(wxCommandEvent &event)
Button event handler for all other buttons.
wxCheckBox * m_alwaysReferenceTables
wxCheckBox * m_useMaskAsDefault
wxCheckBox * m_saveBookmarksInSession
void CreatePathPage()
This private member function creates the "paths" page.
wxCheckBox * m_smartSense
wxTextCtrl * m_LaTeXRoot
wxCheckBox * m_underlineCheck
void InitializeDialog()
void CreateAnalyzerPage()
This private member function creates the "Static analyzer" page.
void OnFontCheckClick(wxCommandEvent &event)
Event handler for the font style check boxes.
wxCheckBox * m_lineLengthIndicator
void CreateStylePage()
This private member function creates the "style" page.
wxComboBox * m_colorType
wxNotebook * m_optionsNotebook
wxSpinCtrl * m_debuggerFocusLine
wxFontPickerCtrl * m_fontPickerTerminal
wxCheckBox * m_formatBeforeSaving
void CreateControls()
Creates the controls and sizers.
wxCheckBox * m_keepBackupFiles
wxCheckBox * m_saveSashPositions
wxSpinCtrl * m_autosaveinterval
wxTextCtrl * m_PlotPath
void OnColorPickerChange(wxColourPickerEvent &event)
Event handler for changing the colours.
wxCheckBox * m_saveWindowPosition
void OnColorTypeChange(wxCommandEvent &event)
Event handler for switching the syntax elements for selecting the styling.
OptionsDialog(wxWindow *parent, Options *options, wxWindowID id=-1, const wxString &caption=_("Options"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU)
Constructors.
wxCheckBox * m_ShowHints
wxCheckBox * m_chkShowCompileCommands
wxCheckBox * m_CustomLanguage
wxCheckBox * m_foldDuringLoading
wxCheckBox * m_blockAutoComp
wxColourPickerCtrl * m_foreColor
wxSpinCtrl * m_caretBlinkTime
wxFontPickerCtrl * m_fontPicker
wxSpinCtrl * m_precision
bool Create(wxWindow *parent, wxWindowID id=-1, const wxString &caption=_("Options"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU)
Creation.
wxCheckBox * m_analyzer[Options::ANALYZER_OPTIONS_END]
wxCheckBox * m_defaultBackground
wxCheckBox * m_showGreeting
wxCheckBox * m_highlightLocalVariables
static bool ShowToolTips()
Should we show tooltips?
wxSpinCtrl * m_termHistory
wxColourPickerCtrl * m_backColor
void synchronizeColors()
Copies the selected syntax styles to the Options class.
void CreateDebuggerPage()
This private member function creates the "debugger" page.
wxCheckBox * m_compactTables
wxComboBox * m_printStyle
wxCheckBox * m_showToolbarText
wxCheckBox * m_ESCinScripts
void CreateConfigPage()
This private member function creates the "configuration" page.
wxCheckBox * m_boldCheck
wxCheckBox * m_quoteAutoComp
void CreateMiscPage()
This private member function creates the "misc" page.
wxCheckBox * m_useExecuteCommand
Options m_colorOptions
wxCheckBox * m_LoadCompactTables
wxCheckBox * m_debuggerDecodeArguments
void CreateEditorPage()
This private member function creates the "editor" page.
bool EvaluateOptions()
wxCheckBox * m_debuggerFlashTaskbar
wxCheckListBox * m_checkList
wxCheckBox * m_AutoLoadDefines
wxCheckBox * m_ExtendedInfo
wxCheckBox * m_braceAutoComp
wxTextCtrl * m_ProcPath
Options * m_options
wxFontPickerCtrl * m_fontPickerHistory
wxTextCtrl * m_ScriptPath
wxCheckBox * m_debuggerShowLineNumbers
wxCheckBox * m_useTabs
wxCheckBox * m_FilePathsInTabs
void OnButtonCancelClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_CANCEL
void BrowseForDir(wxTextCtrl *textbox, wxString name)
wxCheckBox * m_IconsOnTabs
wxButton * m_resetButton
wxTextCtrl * m_SavePath
NumeReWindow * m_parentFrame
wxCheckBox * m_debuggerShowProcedureArguments
wxCheckBox * m_cbPrintLineNumbers
void OnButtonOkClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_OK
wxTextCtrl * m_LoadPath
This class implements an interface of the internal Settings object adapted to be usable from the GUI.
Definition: Options.h:178
@ ANALYZER_OPTIONS_END
Definition: Options.h:332
char name[32]
Definition: resampler.cpp:371