Thumbnail me  3.0
D:/Thumbnail/Thumbnailme/SettingsWidget.h
Go to the documentation of this file.
00001 /***************************************************************************/
00021 #ifndef HEADER_SETTINGSWIDGET
00022 #define HEADER_SETTINGSWIDGET
00023 
00024 #include "GeneralSettingsTab.h"
00025 #include "MainWindow.h"
00026 #include "FontsSettingsTab.h"
00027 #include "LanguagesSettingsTab.h"
00028 #include "NetworkSettingsTab.h"
00029 #include <QxtConfigDialog>
00030 #include "libQt+.h"
00031 
00032 class GeneralSettingsTab;
00033 class MainWindow;
00034 class FontsSettingsTab;
00035 class LanguagesSettingsTab;
00036 class NetworkSettingsTab;
00037 
00038 class SettingsWidget : public QxtConfigDialog
00039 {
00040 
00041   Q_OBJECT
00042 
00043     public:
00044     explicit SettingsWidget(MainWindow * main_window);
00045     virtual ~SettingsWidget();
00046 
00047     private:
00048     MainWindow *main_window;
00049     QSettings  *settings;
00050 
00051     ConfigWidget *configWidget;
00052         GeneralSettingsTab *generalTab;
00053         FontsSettingsTab *fontsTab;
00054         LanguagesSettingsTab *languagesTab;
00055         NetworkSettingsTab *networkTab;
00056 
00057     QTranslator *soft_translator;
00058     QTranslator *system_translator;
00059 
00060     private:
00061     void updateAnimatedPixmap(bool checked);
00062     void updateColorBackgroundPreviewGraphicView(QColor color);
00063     void updateFontsListWidget();
00064     void updateFontsListEngine();
00065     void updateLanguage();
00066     void updatePathsFontsIni();
00067     void updateNeverAskSaveConfigOnExitIni(bool checked);
00068     void updateNeverLoadLastConfigurationIni(bool checked);
00069     void updateOpenGlGraphicViewIni(bool checked);
00070     void updateOutputPrefixIni(QString suffix);
00071     void updateProxyIni(bool checked);
00072     void retranslate();
00073 
00074     protected:
00075     void changeEvent(QEvent* event);
00076 
00077     public slots:
00078     void applySettings();
00079 };
00080 #endif
 All Classes Files Functions Enumerations