00001 /**************************************************************** 00002 * Vidalia is distributed under the following license: 00003 * 00004 * Copyright (C) 2006, Matt Edman, Justin Hipple 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public License 00008 * as published by the Free Software Foundation; either version 2 00009 * of the License, or (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, 00019 * Boston, MA 02110-1301, USA. 00020 ****************************************************************/ 00021 00022 /** 00023 * \file appearancepage.h 00024 * \version $Id: appearancepage.h 1563 2006-12-26 06:06:04Z edmanm $ 00025 * \brief Displays Vidalia language and style settings 00026 */ 00027 00028 #ifndef _APPEARANCEPAGE_H 00029 #define _APPEARANCEPAGE_H 00030 00031 #include <QStyleFactory> 00032 #include <QLineEdit> 00033 00034 #include <config/vidaliasettings.h> 00035 #include <lang/languagesupport.h> 00036 00037 #include "configpage.h" 00038 #include "ui_appearancepage.h" 00039 00040 class AppearancePage : public ConfigPage 00041 { 00042 Q_OBJECT 00043 00044 public: 00045 /** Default Constructor */ 00046 AppearancePage(QWidget *parent = 0); 00047 /** Default Destructor */ 00048 ~AppearancePage(); 00049 /** Saves the changes on this page */ 00050 bool save(QString &errmsg); 00051 /** Loads the settings for this page */ 00052 void load(); 00053 00054 private: 00055 /** A VidaliaSettings object used for saving/loading settings */ 00056 VidaliaSettings* _settings; 00057 00058 /** Qt Designer generated object */ 00059 Ui::AppearancePage ui; 00060 }; 00061 00062 #endif