blob: 12b26b95ea991a3d1af6ca857c43b603e9270d60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include "editorsettingscaret.h"
#include "editor_config.h"
EditorSettingsCaret::EditorSettingsCaret( wxWindow* parent )
:EditorSettingsCaretBase( parent )
, TreeBookNode<EditorSettingsCaret>()
{
OptionsConfigPtr options = EditorConfigST::Get()->GetOptions();
m_spinCtrlBlinkPeriod->SetValue(options->GetCaretBlinkPeriod());
m_spinCtrlCaretWidth->SetValue(options->GetCaretWidth());
}
void EditorSettingsCaret::Save(OptionsConfigPtr options)
{
options->SetCaretBlinkPeriod(m_spinCtrlBlinkPeriod->GetValue());
options->SetCaretWidth(m_spinCtrlCaretWidth->GetValue());
}
|