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 aboutdialog.h 00024 * \version $Id: aboutdialog.h 1563 2006-12-26 06:06:04Z edmanm $ 00025 * \brief Displays information about Vidalia, Tor, and Qt 00026 */ 00027 00028 #ifndef _ABOUTDIALOG_H 00029 #define _ABOUTDIALOG_H 00030 00031 #include <control/torcontrol.h> 00032 #include <gui/common/vidaliawindow.h> 00033 #include "ui_aboutdialog.h" 00034 00035 00036 class AboutDialog : public VidaliaWindow 00037 { 00038 Q_OBJECT 00039 00040 public: 00041 /** Default constructor **/ 00042 AboutDialog(QWidget *parent = 0, Qt::WFlags flags = 0); 00043 00044 public slots: 00045 /** Overriden VidaliaWindow::showWindow() */ 00046 void showWindow(); 00047 00048 private: 00049 /** Loads the license file */ 00050 void loadLicense(); 00051 00052 /** Qt Designer generated QObject **/ 00053 Ui::AboutDialog ui; 00054 /** TorControl for access to Tor version info **/ 00055 TorControl *_torControl; 00056 }; 00057 00058 #endif 00059