12#ifndef _OPTIONSDIALOG_H_
13#define _OPTIONSDIALOG_H_
16#pragma interface "OptionsDialog.h"
24#include "wx/notebook.h"
25#include "wx/spinctrl.h"
26#include <wx/clrpicker.h>
27#include <wx/fontpicker.h>
29#include "../../kernel/core/settings.hpp"
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
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
86#define ID_ITALICS 10046
87#define ID_UNDERLINE 10047
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
111 DECLARE_EVENT_TABLE()
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 );
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 );
This class is the actual NumeRe main frame. The application's logic is implemented here.
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
wxCheckBox * m_underlineCheck
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.
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
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_chkShowCompileCommands
wxCheckBox * m_CustomLanguage
wxCheckBox * m_foldDuringLoading
wxCheckBox * m_blockAutoComp
wxColourPickerCtrl * m_foreColor
wxSpinCtrl * m_caretBlinkTime
wxFontPickerCtrl * m_fontPicker
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_quoteAutoComp
void CreateMiscPage()
This private member function creates the "misc" page.
wxCheckBox * m_useExecuteCommand
wxCheckBox * m_LoadCompactTables
wxCheckBox * m_debuggerDecodeArguments
void CreateEditorPage()
This private member function creates the "editor" page.
wxCheckBox * m_debuggerFlashTaskbar
wxCheckListBox * m_checkList
wxCheckBox * m_AutoLoadDefines
wxCheckBox * m_ExtendedInfo
wxCheckBox * m_braceAutoComp
wxFontPickerCtrl * m_fontPickerHistory
wxTextCtrl * m_ScriptPath
wxCheckBox * m_debuggerShowLineNumbers
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
NumeReWindow * m_parentFrame
wxCheckBox * m_debuggerShowProcedureArguments
wxCheckBox * m_cbPrintLineNumbers
void OnButtonOkClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_OK
This class implements an interface of the internal Settings object adapted to be usable from the GUI.