1 #include "aboutdialog.h"
4 #include "icons/vym-48x48.xpm"
6 AboutDialog::AboutDialog( QWidget *parent, const char *name)
7 : QDialog( parent, name)
9 mainLayout=new QVBoxLayout( this);
11 tabs=new QTabWidget (this);
13 credits=new QTextBrowser (this,"credits");
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>"
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>"
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>"
37 credits->setFrameStyle( QFrame::Panel | QFrame::Plain );
38 credits->mimeSourceFactory();
39 tabs->addTab (credits,"Credits");
41 license=new QTextBrowser (this,"license");
42 license->setText ("License text...");
43 credits->setFrameStyle( QFrame::Panel | QFrame::Plain );
44 tabs->addTab (license,"License");
46 mainLayout->addWidget (tabs);
47 tabs->showPage (credits);
49 okbutton =new QPushButton (this,"okbutton");
50 okbutton->setText ("ok");
51 okbutton->setMaximumSize (QSize (50,30));
52 okbutton->setAutoDefault (true);
53 mainLayout->addWidget( okbutton);
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&) ) );
60 connect( okbutton, SIGNAL( clicked() ), this, SLOT( accept() ) );
64 void AboutDialog::openLink(const QString &url)
66 // okbutton->setText (url);