#include <ProDeOptionsDialog.hh>
Dialog for editing ProDeOptions.
Definition at line 48 of file ProDeOptionsDialog.hh.
◆ anonymous enum
◆ ProDeOptionsDialog()
The Constructor.
- Parameters
-
parent | Parent window of the dialog. |
options | Options to be modified. |
Definition at line 62 of file ProDeOptionsDialog.cc.
67 wxPanel* generalPage =
new wxPanel(
notebook_, -1);
69 addPage(generalPage, _T(
"General"));
◆ ~ProDeOptionsDialog()
ProDeOptionsDialog::~ProDeOptionsDialog |
( |
| ) |
|
|
virtual |
◆ createGeneralPage()
wxSizer * ProDeOptionsDialog::createGeneralPage |
( |
wxWindow * |
parent, |
|
|
bool |
call_fit, |
|
|
bool |
set_sizer |
|
) |
| |
|
private |
Creates the 'General' page for the dialog.
This function was initially generated by wxDesigner.
- Returns
- Main sizer of the created contents.
- Parameters
-
parent | The dialog window. |
call_fit | If true, fits the contents inside the dialog. |
set_sizer | If true, sets the main sizer as dialog contents. |
Definition at line 133 of file ProDeOptionsDialog.cc.
136 wxBoxSizer *item0 =
new wxBoxSizer( wxHORIZONTAL );
138 item0->Add( 50, 20, 0, wxALIGN_CENTER|wxALL, 5 );
140 wxStaticText *item1 =
new wxStaticText( parent,
ID_LABEL_UNDO_LEVELS, wxT(
"Undo levels:"), wxDefaultPosition, wxDefaultSize, 0 );
141 item0->Add( item1, 0, wxALIGN_CENTER|wxALL, 5 );
143 wxSpinCtrl *item2 =
new wxSpinCtrl( parent,
ID_UNDO_LEVELS, wxT(
"1"), wxDefaultPosition, wxSize(-1,-1), 0, 1, 100, 0 );
144 item0->Add( item2, 0, wxALIGN_CENTER|wxALL, 5 );
148 parent->SetSizer( item0 );
150 item0->SetSizeHints( parent );
References ID_LABEL_UNDO_LEVELS, and ID_UNDO_LEVELS.
◆ onHelp()
void ProDeOptionsDialog::onHelp |
( |
wxCommandEvent & |
event | ) |
|
|
private |
◆ onOK()
void ProDeOptionsDialog::onOK |
( |
wxCommandEvent & |
event | ) |
|
|
private |
◆ readProDeOptions()
void ProDeOptionsDialog::readProDeOptions |
( |
| ) |
|
|
private |
◆ writeProDeOptions()
void ProDeOptionsDialog::writeProDeOptions |
( |
| ) |
|
|
private |
◆ options_
◆ parent_
wxWindow* ProDeOptionsDialog::parent_ |
|
private |
◆ undoStackSize_
wxSpinCtrl* ProDeOptionsDialog::undoStackSize_ |
|
private |
The documentation for this class was generated from the following files: