# 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 (
+ "
VYM - View Your Mind
"
+ " A tool to put the things you have got in your mind into a map.
"
+ ""
+ "- (c) by Uwe Drechsel (vym@InSilmaril.de)
"
+ "- 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.
"
+ "- Project homepage "
+ "http:/www.InSilmaril.de/vym
"
+ "- Credits "
+ "
"
+ "- Jakob Hilmer for image drag and drop patch
"
+ "- Thomas Schraitle for the stylesheet used for XHTML-export
"
+ "- Clemens Kraus for stylesheets and script used for HTML-export "
+ "(www.clemens-kraus.de)
"
+ "- Alexander Johannesen for providing stylesheets from his xsiteable project "
+ "(www.shelter.nu/xsiteable/xsiteable.html).
"
+ "- Ken Wimer and Olaf Hering for Mac support
"
+ "
"
+ " ");
+ 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
+#include
+#include
+#include
+#include
+#include
+
+
+/////////////////////////////////////////////////////////////////////////////
+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