AppearancePage.h

Go to the documentation of this file.
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 ** \version $Id: AppearancePage.h 3735 2009-04-28 20:28:01Z edmanm $
00014 ** \brief Displays Vidalia language and style settings
00015 */
00016 
00017 #ifndef _APPEARANCEPAGE_H
00018 #define _APPEARANCEPAGE_H
00019 
00020 #include "ui_AppearancePage.h"
00021 #include "VidaliaSettings.h"
00022 #include "LanguageSupport.h"
00023 #include "ConfigPage.h"
00024 
00025 #include <QStyleFactory>
00026 #include <QLineEdit>
00027 
00028 
00029 class AppearancePage : public ConfigPage
00030 {
00031   Q_OBJECT
00032 
00033 public:
00034   /** Default Constructor */
00035   AppearancePage(QWidget *parent = 0);
00036   /** Default Destructor */
00037   ~AppearancePage();
00038   /** Saves the changes on this page */
00039   bool save(QString &errmsg);
00040   /** Loads the settings for this page */
00041   void load();
00042   /** Called when the user changes the UI translation. */
00043   virtual void retranslateUi();
00044 
00045 private:
00046   /** A VidaliaSettings object used for saving/loading settings */
00047   VidaliaSettings* _settings;
00048 
00049   /** Qt Designer generated object */
00050   Ui::AppearancePage ui;
00051 };
00052 
00053 #endif

Generated on Mon Aug 30 19:09:59 2010 for Vidalia by  doxygen 1.5.9