aboutdialog.cpp
author insilmaril
Mon Aug 08 16:16:42 2005 +0000 (2005-08-08)
changeset 149 4426ecd854bb
child 150 85eab6b8120b
permissions -rw-r--r--
added aboutDialog
     1 #include "aboutdialog.h"
     2 #include "version.h"
     3 
     4 #include "icons/vym-48x48.xpm"
     5 
     6 AboutDialog::AboutDialog( QWidget *parent, const char *name )
     7     : QDialog ( parent, name)
     8 
     9 {
    10 	mainLayout=new QVBoxLayout( this);
    11 
    12 	tabs=new QTabWidget (this);
    13 
    14 	credits=new QTextBrowser (this,"credits");
    15 
    16 	
    17 	credits->setText (
    18 		"<h3>VYM - View Your Mind </h3>"
    19 		"<p> A tool to put the things you have got in your mind into a map.</p>"
    20 			"<ul>"
    21 				"<li> (c) by Uwe Drechsel (vym@InSilmaril.de)</li>"
    22 				"<li> vym is released under the GPL (Gnu General Public License)"
    23 				", with one exception (see the file \"LICENSE\"which "
    24 				"comes with vym). This exception is needed to build vym with QT libraries for proprietary operating systems.</li>"
    25 				"<li> Project homepage <a href=\"http:/www.InSilmaril.de/vym\">"
    26     					"http:/www.InSilmaril.de/vym</a></li>"
    27 			"<li> Credits " 
    28 				"<ul>"
    29 					"<li>Jakob Hilmer for image drag and drop patch </li>"
    30 					"<li>Thomas Schraitle for the stylesheet  used for XHTML-export </li>"
    31 					"<li>Clemens Kraus for stylesheets and script used for HTML-export "
    32 					"<a href=\"http://www.clemens-kraus.de\">(www.clemens-kraus.de)</a></li>"
    33 					"<li>Alexander Johannesen for providing stylesheets from his xsiteable project " 
    34 					"<a href=\"http://www.shelter.nu/xsiteable/xsiteable.html\">(www.shelter.nu/xsiteable/xsiteable.html)</a>. </li>"
    35 					"<li>Ken Wimer and Olaf Hering for Mac support</li>"
    36 				"</ul>"
    37 			"</li>");
    38 	credits->setFrameStyle( QFrame::Panel | QFrame::Plain );
    39     tabs->addTab (credits,"Credits");
    40 
    41 	license=new QTextBrowser (this,"license");
    42 	license->setText ("License text...");
    43 	credits->setFrameStyle( QFrame::Panel | QFrame::Plain );
    44 	tabs->addTab (license,"License");
    45 
    46 	mainLayout->addWidget (tabs);
    47 	tabs->showPage (credits);
    48 
    49 	okbutton =new QPushButton (this,"okbutton");
    50 	okbutton->setText ("ok");
    51 	okbutton->setMaximumSize (QSize (50,30));
    52 	okbutton->setAutoDefault (true);
    53     mainLayout->addWidget( okbutton); 
    54 
    55 	connect (credits,SIGNAL (linkClicked(const QString&)),this ,SLOT
    56 	(openLnk(const QString&)));
    57 
    58 	connect( okbutton, SIGNAL( clicked() ), this, SLOT( accept() ) );
    59 }
    60 
    61 AboutDialog::~AboutDialog()
    62 {
    63 }
    64 
    65 
    66 void AboutDialog::openLnk(const QString &url)
    67 {
    68 	okbutton->setText (url);
    69 }