Home | History | Annotate | Download | only in app
      1 //
      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  */
     13 class PrefsDialog : public wxDialog {
     14     //DECLARE_CLASS(PrefsDialog)    // shown in book, but causes link problems
     15     DECLARE_EVENT_TABLE()
     16 
     17 public:
     18     PrefsDialog(wxWindow* parent);
     19     virtual ~PrefsDialog();
     20 
     21     void CreateControls(void);
     22 
     23     wxString    mConfigFile;
     24 
     25 private:
     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
     55