2 // Copyright 2005 The Android Open Source Project
4 // Log preferences modal dialog.
6 #ifndef _SIM_LOG_PREFS_DIALOG_H
7 #define _SIM_LOG_PREFS_DIALOG_H
10 * Declaration of log preferences dialog. This class defines the outer
11 * wrapper as well as all of the pages.
13 class LogPrefsDialog : public wxDialog {
17 LogPrefsDialog(wxWindow* parent);
18 virtual ~LogPrefsDialog(void);
20 void CreateControls(void);
22 /* these correspond to radio buttons */
23 typedef enum HeaderFormat {
27 kHFInternal, // special -- used for internally generated msgs
31 * Values edited in the preference pages. By Windows convention,
35 HeaderFormat mHeaderFormat;
36 bool mSingleLine; // put whole message on one line?
37 int mExtraSpacing; // double/triple-space messages?
38 int mPointSize; // text size
39 bool mUseColor; // colorful messages?
40 bool mFontMonospace; // use monospace font?
52 bool TransferDataToWindow(void);
53 bool TransferDataFromWindow(void);
55 wxPanel* CreateFormatPage(wxBookCtrlBase* parent);
56 wxPanel* CreateLimitsPage(wxBookCtrlBase* parent);
57 wxPanel* CreateFilesPage(wxBookCtrlBase* parent);
59 void OnWriteFile(wxCommandEvent& event);
60 void EnableFileControls(bool enable);
62 /* main notebook; for aesthetic reasons we may want a Choicebook */
66 kMinWidth = 300, // minimum prefs dialog width, in pixels
70 #endif // _SIM_LOG_PREFS_DIALOG_H