blob: 250f79e157a62a5f199314e0045e527620adb3b1 [file] [log] [blame]
The Android Open Source Project52d4c302009-03-03 19:29:09 -08001//
2// Copyright 2005 The Android Open Source Project
3//
4// Prefs modal dialog.
5//
6#ifndef _SIM_PREFS_DIALOG_H
7#define _SIM_PREFS_DIALOG_H
8
9/*
10 * Declaration of preferences dialog. This class defines the outer
11 * wrapper as well as all of the pages.
12 */
13class PrefsDialog : public wxDialog {
14 //DECLARE_CLASS(PrefsDialog) // shown in book, but causes link problems
15 DECLARE_EVENT_TABLE()
16
17public:
18 PrefsDialog(wxWindow* parent);
19 virtual ~PrefsDialog();
20
21 void CreateControls(void);
22
23 wxString mConfigFile;
24
25private:
26 bool TransferDataToWindow(void);
27 bool TransferDataFromWindow(void);
28 bool TransferDataFromControls(void);
29 void LoadPreferences(void);
30
31 wxPanel* CreateSimulatorPage(wxBookCtrlBase* parent);
32 wxPanel* CreateRuntimePage(wxBookCtrlBase* parent);
33
34 /* main notebook; for aesthetic reasons we may want a Choicebook */
35 wxNotebook mNotebook;
36
37 /* Global simulator options */
38 wxString mDebugger;
39 wxString mValgrinder;
40 bool mAutoPowerOn;
41 // log window size?
42
43 /* Global runtime options */
44 double mGammaCorrection;
45 bool mEnableSound;
46 bool mEnableFakeCamera;
47 int mLogLevel;
48
49 enum {
50 kMinWidth = 300, // minimum prefs dialog width, in pixels
51 };
52};
53
54#endif // _SIM_PREFS_DIALOG_H