00001
00002
00003
00004
00005 #ifndef BALL_VIEW_DIALOGS_MAINCONTROLPREFERENCES_H
00006 #define BALL_VIEW_DIALOGS_MAINCONTROLPREFERENCES_H
00007
00008 #ifndef BALL_COMMON_GLOBAL_H
00009 # include <BALL/COMMON/global.h>
00010 #endif
00011
00012 #ifndef BALL_FORMAT_INIFILE_H
00013 # include <BALL/FORMAT/INIFile.h>
00014 #endif
00015
00016 #ifndef BALL_VIEW_KERNEL_PREFERENCESENTRY
00017 # include <BALL/VIEW/KERNEL/preferencesEntry.h>
00018 #endif
00019
00020 #include <BALL/VIEW/UIC/ui_mainControlPreferences.h>
00021
00022 #include <QtGui/QWidget>
00023 #include <QtGui/QFont>
00024
00025 namespace BALL
00026 {
00027 namespace VIEW
00028 {
00029
00037 class BALL_VIEW_EXPORT MainControlPreferences
00038 : public QWidget,
00039 public Ui_MainControlPreferencesData,
00040 public PreferencesEntry
00041 {
00042 Q_OBJECT
00043
00044 public:
00045
00047 MainControlPreferences(QWidget *parent = NULL, const char *name = "MainControlPreferences",
00048 Qt::WFlags fl=0);
00049
00051 virtual ~MainControlPreferences();
00052
00058 QStyle* getStyle();
00059
00061 void enableLoggingToFile(bool state);
00062
00064 bool loggingToFileEnabled() const;
00065
00067 QFont getFont();
00068
00070 void writePreferenceEntries(INIFile& inifile);
00071
00073 void readPreferenceEntries(const INIFile& inifile);
00074
00075 public slots:
00076
00078 void selectFont();
00079
00081 void setFont(QFont font);
00082
00083 protected:
00084
00085 QFont font_;
00086 };
00087
00088 } }
00089
00090 #endif // BALL_VIEW_DIALOGS_MAINCONTROLPREFERENCES_H