Vidalia 0.2.12
|
00001 /* 00002 ** This file is part of Vidalia, and is subject to the license terms in the 00003 ** LICENSE file, found in the top level directory of this distribution. If you 00004 ** did not receive the LICENSE file with this file, you may obtain it from the 00005 ** Vidalia source package distributed by the Vidalia Project at 00006 ** http://www.vidalia-project.net/. No part of Vidalia, including this file, 00007 ** may be copied, modified, propagated, or distributed except according to the 00008 ** terms described in the LICENSE file. 00009 */ 00010 00011 /* 00012 ** \file AppearancePage.h 00013 ** \brief Displays Vidalia language and style settings 00014 */ 00015 00016 #ifndef _APPEARANCEPAGE_H 00017 #define _APPEARANCEPAGE_H 00018 00019 #include "ui_AppearancePage.h" 00020 #include "VidaliaSettings.h" 00021 #include "LanguageSupport.h" 00022 #include "ConfigPage.h" 00023 00024 #include <QStyleFactory> 00025 #include <QLineEdit> 00026 00027 00028 class AppearancePage : public ConfigPage 00029 { 00030 Q_OBJECT 00031 00032 public: 00033 /** Default Constructor */ 00034 AppearancePage(QWidget *parent = 0); 00035 /** Default Destructor */ 00036 ~AppearancePage(); 00037 /** Saves the changes on this page */ 00038 bool save(QString &errmsg); 00039 /** Loads the settings for this page */ 00040 void load(); 00041 /** Called when the user changes the UI translation. */ 00042 virtual void retranslateUi(); 00043 00044 private: 00045 /** A VidaliaSettings object used for saving/loading settings */ 00046 VidaliaSettings* _settings; 00047 00048 /** Qt Designer generated object */ 00049 Ui::AppearancePage ui; 00050 }; 00051 00052 #endif