~ubuntu-branches/ubuntu/hardy/codeblocks/hardy-backports

« back to all changes in this revision

Viewing changes to src/plugins/contrib/dragscroll/dragscrollcfg.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Casadevall
  • Date: 2008-07-17 04:39:23 UTC
  • Revision ID: james.westby@ubuntu.com-20080717043923-gmsy5cwkdjswghkm
Tags: upstream-8.02
ImportĀ upstreamĀ versionĀ 8.02

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef DragScrollCfg_H
 
2
#define DragScrollCfg_H
 
3
 
 
4
#ifdef __BORLANDC__
 
5
    #pragma hdrstop
 
6
#endif
 
7
#include "dragscroll.h"
 
8
 
 
9
//(*Headers(cbDragScrollCfg)
 
10
#include <wx/button.h>
 
11
#include <wx/checkbox.h>
 
12
#include <wx/choice.h>
 
13
#include <wx/dialog.h>
 
14
#include <wx/intl.h>
 
15
#include <wx/radiobox.h>
 
16
#include <wx/sizer.h>
 
17
#include <wx/slider.h>
 
18
#include <wx/stattext.h>
 
19
 
 
20
//*)
 
21
#include "configurationpanel.h"
 
22
#include <wx/settings.h>
 
23
 
 
24
// ----------------------------------------------------------------------------
 
25
class cbDragScrollCfg: public cbConfigurationPanel
 
26
// ----------------------------------------------------------------------------
 
27
{
 
28
 
 
29
        public:
 
30
                cbDragScrollCfg(wxWindow* parent, cbDragScroll* pOwnerClass, wxWindowID id = -1);
 
31
                virtual ~cbDragScrollCfg();
 
32
    public:
 
33
        // virtual routines required by cbConfigurationPanel
 
34
        wxString GetTitle() const { return _("Mouse Drag Scrolling"); }
 
35
        wxString GetBitmapBaseName() const;
 
36
        void OnApply();
 
37
        void OnCancel(){}
 
38
 
 
39
        // pointer to owner of the configuration diaglog needed to
 
40
        // complete the OnApply/OnCancel EndModal() logic
 
41
        cbDragScroll* pOwnerClass;
 
42
 
 
43
 
 
44
                //(*Identifiers(cbDragScrollCfg)
 
45
                enum Identifiers
 
46
                {
 
47
                    ID_DONEBUTTON = 0x1000,
 
48
                    ID_ENABLEDCHECKBOX,
 
49
                    ID_EDITORENABLEDFOCUS,
 
50
                    ID_MOUSEENABLEDFOCUS,
 
51
                    ID_KEYCHOICE,
 
52
                    ID_RADIOBOX1,
 
53
                    ID_SENSITIVITY,
 
54
                    ID_MOUSETOLINERATIO,
 
55
                    ID_STATICTEXT1,
 
56
                    ID_STATICTEXT2,
 
57
                    ID_STATICTEXT3,
 
58
                    ID_STATICTEXT4,
 
59
                    ID_STATICTEXTMRKC,
 
60
                    ID_STATICTEXT5,
 
61
                    ID_MOUSECONTEXTDELAY
 
62
                };
 
63
 
 
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(); }
 
73
 
 
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); }
 
92
 
 
93
        protected:
 
94
 
 
95
                void OnDoneButtonClick(wxCommandEvent& event);
 
96
 
 
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;
 
107
 
 
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;
 
117
                //*)
 
118
 
 
119
        private:
 
120
 
 
121
                DECLARE_EVENT_TABLE()
 
122
};
 
123
 
 
124
#endif // DragScrollCfg_H
 
125
//