00001
00002
00003
00004
00005
00006
00007 #ifndef BALL_VIEW_DIALOGS_MAINCONTROLPREFERENCES_H
00008 #define BALL_VIEW_DIALOGS_MAINCONTROLPREFERENCES_H
00009
00010 #ifndef BALL_COMMON_GLOBAL_H
00011 # include <BALL/COMMON/global.h>
00012 #endif
00013
00014 #ifndef BALL_FORMAT_INIFILE_H
00015 # include <BALL/FORMAT/INIFile.h>
00016 #endif
00017
00018 #ifdef BALL_COMPILER_MSVC
00019 # include <BALL/VIEW/UIC/ui_mainControlPreferences.h>
00020 #else
00021 # include <BALL/VIEW/UIC/mainControlPreferencesData.h>
00022 #endif
00023
00024
00025 #ifndef BALL_VIEW_KERNEL_PREFERENCESENTRY
00026 # include <BALL/VIEW/KERNEL/preferencesEntry.h>
00027 #endif
00028
00029 #include <QtGui/QWidget>
00030 #include <QtGui/QFont>
00031
00032 namespace BALL
00033 {
00034 namespace VIEW
00035 {
00036
00044 class BALL_VIEW_EXPORT MainControlPreferences
00045 : public QWidget,
00046 public Ui_MainControlPreferencesData,
00047 public PreferencesEntry
00048 {
00049 Q_OBJECT
00050
00051 public:
00052
00054 MainControlPreferences(QWidget *parent = NULL, const char *name = "MainControlPreferences",
00055 Qt::WFlags fl=0);
00056
00058 virtual ~MainControlPreferences();
00059
00065 QStyle* getStyle();
00066
00068 void enableLoggingToFile(bool state);
00069
00071 bool loggingToFileEnabled() const;
00072
00074 QFont getFont();
00075
00077 void writePreferenceEntries(INIFile& inifile);
00078
00080 void readPreferenceEntries(const INIFile& inifile);
00081
00082 public slots:
00083
00085 void selectFont();
00086
00088 void setFont(QFont font);
00089
00090 protected:
00091
00092 QFont font_;
00093 };
00094
00095 } }
00096
00097 #endif // BALL_VIEW_DIALOGS_MAINCONTROLPREFERENCES_H