# HG changeset patch # User insilmaril # Date 1123517802 0 # Node ID 4426ecd854bb24f59a9afe0b4c354613576a77f5 # Parent 401f76b830d14f07259b734af776b10f76ffbff2 added aboutDialog diff -r 401f76b830d1 -r 4426ecd854bb aboutdialog.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/aboutdialog.cpp Mon Aug 08 16:16:42 2005 +0000 @@ -0,0 +1,69 @@ +#include "aboutdialog.h" +#include "version.h" + +#include "icons/vym-48x48.xpm" + +AboutDialog::AboutDialog( QWidget *parent, const char *name ) + : QDialog ( parent, name) + +{ + mainLayout=new QVBoxLayout( this); + + tabs=new QTabWidget (this); + + credits=new QTextBrowser (this,"credits"); + + + credits->setText ( + "<h3>VYM - View Your Mind </h3>" + "<p> A tool to put the things you have got in your mind into a map.</p>" + "<ul>" + "<li> (c) by Uwe Drechsel (vym@InSilmaril.de)</li>" + "<li> vym is released under the GPL (Gnu General Public License)" + ", with one exception (see the file \"LICENSE\"which " + "comes with vym). This exception is needed to build vym with QT libraries for proprietary operating systems.</li>" + "<li> Project homepage <a href=\"http:/www.InSilmaril.de/vym\">" + "http:/www.InSilmaril.de/vym</a></li>" + "<li> Credits " + "<ul>" + "<li>Jakob Hilmer for image drag and drop patch </li>" + "<li>Thomas Schraitle for the stylesheet used for XHTML-export </li>" + "<li>Clemens Kraus for stylesheets and script used for HTML-export " + "<a href=\"http://www.clemens-kraus.de\">(www.clemens-kraus.de)</a></li>" + "<li>Alexander Johannesen for providing stylesheets from his xsiteable project " + "<a href=\"http://www.shelter.nu/xsiteable/xsiteable.html\">(www.shelter.nu/xsiteable/xsiteable.html)</a>. </li>" + "<li>Ken Wimer and Olaf Hering for Mac support</li>" + "</ul>" + "</li>"); + credits->setFrameStyle( QFrame::Panel | QFrame::Plain ); + tabs->addTab (credits,"Credits"); + + license=new QTextBrowser (this,"license"); + license->setText ("License text..."); + credits->setFrameStyle( QFrame::Panel | QFrame::Plain ); + tabs->addTab (license,"License"); + + mainLayout->addWidget (tabs); + tabs->showPage (credits); + + okbutton =new QPushButton (this,"okbutton"); + okbutton->setText ("ok"); + okbutton->setMaximumSize (QSize (50,30)); + okbutton->setAutoDefault (true); + mainLayout->addWidget( okbutton); + + connect (credits,SIGNAL (linkClicked(const QString&)),this ,SLOT + (openLnk(const QString&))); + + connect( okbutton, SIGNAL( clicked() ), this, SLOT( accept() ) ); +} + +AboutDialog::~AboutDialog() +{ +} + + +void AboutDialog::openLnk(const QString &url) +{ + okbutton->setText (url); +} diff -r 401f76b830d1 -r 4426ecd854bb aboutdialog.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/aboutdialog.h Mon Aug 08 16:16:42 2005 +0000 @@ -0,0 +1,34 @@ +#ifndef ABOUTDIALOG_H +#define ABOUTDIALOG_H + +#include <qtabwidget.h> +#include <qtextbrowser.h> +#include <qlayout.h> +#include <qdialog.h> +#include <qpushbutton.h> +#include <qstring.h> + + +///////////////////////////////////////////////////////////////////////////// +class AboutDialog :public QDialog +{ +public: + AboutDialog( QWidget * parent = 0, const char * name = 0); + ~AboutDialog(); + +public slots: + virtual void openLnk (const QString &); + +private: + QTabWidget *tabs; + QTextBrowser *credits; + QTextBrowser *license; + + QBoxLayout *mainLayout; + QBoxLayout *topLayout; + QBoxLayout *bottomLayout; + QPushButton *okbutton; + +}; + +#endif