1
#ifndef DragScrollCfg_H
2
#define DragScrollCfg_H
7
#include "dragscroll.h"
9
//(*Headers(cbDragScrollCfg)
10
#include <wx/button.h>
11
#include <wx/checkbox.h>
12
#include <wx/choice.h>
13
#include <wx/dialog.h>
15
#include <wx/radiobox.h>
17
#include <wx/slider.h>
18
#include <wx/stattext.h>
21
#include "configurationpanel.h"
22
#include <wx/settings.h>
24
// ----------------------------------------------------------------------------
25
class cbDragScrollCfg: public cbConfigurationPanel
26
// ----------------------------------------------------------------------------
30
cbDragScrollCfg(wxWindow* parent, cbDragScroll* pOwnerClass, wxWindowID id = -1);
31
virtual ~cbDragScrollCfg();
33
// virtual routines required by cbConfigurationPanel
34
wxString GetTitle() const { return _("Mouse Drag Scrolling"); }
35
wxString GetBitmapBaseName() const;
39
// pointer to owner of the configuration diaglog needed to
40
// complete the OnApply/OnCancel EndModal() logic
41
cbDragScroll* pOwnerClass;
44
//(*Identifiers(cbDragScrollCfg)
47
ID_DONEBUTTON = 0x1000,
49
ID_EDITORENABLEDFOCUS,
64
bool GetMouseDragScrollEnabled() { return ScrollEnabled->GetValue(); }
65
bool GetMouseEditorFocusEnabled(){ return EditorFocusEnabled->GetValue(); }
66
bool GetMouseFocusEnabled() { return MouseFocusEnabled->GetValue(); }
67
int GetMouseDragDirection() { return ScrollDirection->GetSelection(); }
68
int GetMouseDragKey() { return MouseKeyChoice->GetSelection(); }
69
int GetMouseDragSensitivity() { return Sensitivity->GetValue(); }
70
int GetMouseToLineRatio() { return MouseToLineRatio->GetValue(); }
71
//-int GetMouseRightKeyCtrl() { return MouseRightKeyCtrl->GetValue(); } removed
72
int GetMouseContextDelay() { return MouseContextDelay->GetValue(); }
74
void SetMouseDragScrollEnabled(bool value)
75
{ ScrollEnabled->SetValue(value); }
76
void SetMouseEditorFocusEnabled(bool value)
77
{ EditorFocusEnabled->SetValue(value); }
78
void SetMouseFocusEnabled(bool value)
79
{ MouseFocusEnabled->SetValue(value); }
80
void SetMouseDragDirection(int selection)
81
{ ScrollDirection->SetSelection(selection); }
82
void SetMouseDragKey(int selection)
83
{ MouseKeyChoice->SetSelection(selection); }
84
void SetMouseDragSensitivity(int value)
85
{ Sensitivity->SetValue(value); }
86
void SetMouseToLineRatio(int value)
87
{ MouseToLineRatio->SetValue(value); }
88
//-void SetMouseRightKeyCtrl(int value)
89
//- { MouseRightKeyCtrl->SetValue(value); }
90
void SetMouseContextDelay(int value)
91
{ MouseContextDelay->SetValue(value); }
95
void OnDoneButtonClick(wxCommandEvent& event);
97
//(*Declarations(cbDragScrollCfg)
98
wxFlexGridSizer* FlexGridSizer1;
99
wxStaticText* StaticText1;
100
wxCheckBox* ScrollEnabled;
101
wxCheckBox* EditorFocusEnabled;
102
wxCheckBox* MouseFocusEnabled;
103
//-wxCheckBox* MouseRightKeyCtrl; removed
104
wxRadioBox* ScrollDirection;
105
wxStaticText* StaticText2;
106
wxChoice* MouseKeyChoice;
108
// Mouse adjustment sliders
109
wxStaticText* StaticText3;
110
wxSlider* Sensitivity;
111
wxStaticText* StaticText4;
112
wxSlider* MouseToLineRatio;
113
wxButton* DoneButton;
114
wxStaticText* StaticTextMRKC;
115
wxStaticText* StaticText5;
116
wxSlider* MouseContextDelay;
121
DECLARE_EVENT_TABLE()
124
#endif // DragScrollCfg_H