aboutdialog.cpp
author insilmaril
Wed, 10 Aug 2005 06:26:20 +0000
changeset 150 85eab6b8120b
parent 149 4426ecd854bb
child 153 47cd4ae30000
permissions -rw-r--r--
still changing aboutWindow
     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 	mainLayout=new QVBoxLayout( this);
    10 
    11 	tabs=new QTabWidget (this);
    12 
    13 	credits=new QTextBrowser (this,"credits");
    14 
    15 	
    16 	credits->setText (
    17 		"<h3>VYM - View Your Mind </h3>"
    18 		"<p> A tool to put the things you have got in your mind into a map.</p>"
    19 			"<ul>"
    20 				"<li> (c) by Uwe Drechsel (vym@InSilmaril.de)</li>"
    21 				"<li> vym is released under the GPL (Gnu General Public License)"
    22 				", with one exception (see the file \"LICENSE\"which "
    23 				"comes with vym). This exception is needed to build vym with QT libraries for proprietary operating systems.</li>"
    24 				"<li> Project homepage <a href=\"http:/www.InSilmaril.de/vym\">"
    25     					"http://www.InSilmaril.de/vym</a></li>"
    26 			"<li> Credits " 
    27 				"<ul>"
    28 					"<li>Jakob Hilmer for image drag and drop patch </li>"
    29 					"<li>Thomas Schraitle for the stylesheet  used for XHTML-export </li>"
    30 					"<li>Clemens Kraus for stylesheets and script used for HTML-export "
    31 					"<a href=\"http://www.clemens-kraus.de\">(www.clemens-kraus.de)</a></li>"
    32 					"<li>Alexander Johannesen for providing stylesheets from his xsiteable project " 
    33 					"<a href=\"http://www.shelter.nu/xsiteable/xsiteable.html\">(www.shelter.nu/xsiteable/xsiteable.html)</a>. </li>"
    34 					"<li>Ken Wimer and Olaf Hering for Mac support</li>"
    35 				"</ul>"
    36 			"</li>");
    37 	credits->setFrameStyle( QFrame::Panel | QFrame::Plain );
    38 	credits->mimeSourceFactory();
    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 ( openLink(const QString&)));
    56 //	connect( credits, SIGNAL( sourceChanged(const QString& ) ),
    57 //	     this, SLOT( openLink( const QString&) ) );
    58 
    59 
    60 	connect( okbutton, SIGNAL( clicked() ), this, SLOT( accept() ) );
    61 }
    62 
    63 
    64 void AboutDialog::openLink(const QString &url)
    65 {
    66 //	okbutton->setText (url);
    67 }