]> git.saurik.com Git - wxWidgets.git/blob - utils/framelayout/samples/demo/settingsdlg.h
Corrected link error for missing wxRegTipProvider::GetTip by giving it
[wxWidgets.git] / utils / framelayout / samples / demo / settingsdlg.h
1 #ifndef __SETTINGSDLG_G__
2 #define __SETTINGSDLG_G__
3
4 #include "wx/dialog.h"
5
6 class wxFrameLayout;
7
8 class SettingsDlg : public wxDialog
9 {
10 protected:
11
12 // "nice thing" about wxWindows:
13
14 wxCheckBox* mpRTU_Check;
15 wxCheckBox* mpOPD_Check;
16 wxCheckBox* mpEDP_Check;
17 wxCheckBox* mpNDF_Check;
18 wxCheckBox* mpSPB_Check;
19
20 wxCheckBox* mpHAP_Check;
21 wxCheckBox* mpGCU_Check;
22 wxCheckBox* mpAFP_Check;
23 wxCheckBox* mpCSP_Check;
24
25 wxTextCtrl* mpRWInput;
26 wxStaticText* mpRWLabel;
27 wxTextCtrl* mpPTMInput;
28 wxStaticText* mpPTMLabel;
29 wxTextCtrl* mpPBMInput;
30 wxStaticText* mpPBMLabel;
31 wxTextCtrl* mpPLMInput;
32 wxStaticText* mpPLMLabel;
33 wxTextCtrl* mpPRMInput;
34 wxStaticText* mpPRMLabel;
35
36 wxTextCtrl* mpDCInput;
37 wxStaticText* mpDCLabel;
38 wxTextCtrl* mpLCInput;
39 wxStaticText* mpLCLabel;
40 wxTextCtrl* mpGCInput;
41 wxStaticText* mpGCLabel;
42 wxTextCtrl* mpBCInput;
43 wxStaticText* mpBCLabel;
44
45 // fields/properties
46
47 bool mRealTimeUpdatesOn;
48 bool mOutOfPaneDragOn;
49 bool mExactDockingPredictionOn;
50 bool mNonDestructFrictionOn;
51 bool m3DShadesOn;
52 bool mHintRectAnimationOn;
53 bool mGCUpdatesMgrOn;
54 bool mAntiflickerPluginOn;
55 bool mCustomizationPluginOn;
56
57 int mSashWidth;
58 int mTopMargin;
59 int mBottomMargin;
60 int mLeftMargin;
61 int mRightMargin;
62
63 wxColour mDarkCol;
64 wxColour mLightCol;
65 wxColour mGrayCol;
66 wxColour mBorderCol;
67
68 protected:
69
70 bool mToDlg;
71
72 // helpers
73
74 void ExchgCheck( wxCheckBox* pChk, bool& value );
75 void ExchgIntField( wxTextCtrl* pFld, int& value );
76 void ExchgColourField( wxTextCtrl* pFld, wxColour& value );
77
78 virtual bool TransferDataToWindow();
79 virtual bool TransferDataFromWindow();
80
81 public:
82
83 SettingsDlg( wxWindow* pParent );
84
85 void ReadLayoutSettings( wxFrameLayout& fl );
86 void ApplyLayoutSettings( wxFrameLayout& fl );
87
88 void ExchangeFields( bool toDialog );
89
90 void OnApply( wxCommandEvent& event );
91 void OnNotes( wxCommandEvent& event );
92
93 void OnHintAnimCheck( wxCommandEvent& event );
94 void OnRTUpdatesCheck( wxCommandEvent& event );
95
96 DECLARE_EVENT_TABLE();
97 };
98
99 #endif