insilmaril@149: #include "aboutdialog.h"
insilmaril@149: #include "version.h"
insilmaril@149:
insilmaril@149: #include "icons/vym-48x48.xpm"
insilmaril@149:
insilmaril@150: AboutDialog::AboutDialog( QWidget *parent, const char *name)
insilmaril@150: : QDialog( parent, name)
insilmaril@149: {
insilmaril@149: mainLayout=new QVBoxLayout( this);
insilmaril@149:
insilmaril@149: tabs=new QTabWidget (this);
insilmaril@149:
insilmaril@149: credits=new QTextBrowser (this,"credits");
insilmaril@149:
insilmaril@149:
insilmaril@149: credits->setText (
insilmaril@149: "
VYM - View Your Mind
"
insilmaril@149: " A tool to put the things you have got in your mind into a map.
"
insilmaril@149: ""
insilmaril@149: "- (c) by Uwe Drechsel (vym@InSilmaril.de)
"
insilmaril@149: "- vym is released under the GPL (Gnu General Public License)"
insilmaril@149: ", with one exception (see the file \"LICENSE\"which "
insilmaril@149: "comes with vym). This exception is needed to build vym with QT libraries for proprietary operating systems.
"
insilmaril@149: "- Project homepage "
insilmaril@150: "http://www.InSilmaril.de/vym
"
insilmaril@149: "- Credits "
insilmaril@149: "
"
insilmaril@149: "- Jakob Hilmer for image drag and drop patch
"
insilmaril@149: "- Thomas Schraitle for the stylesheet used for XHTML-export
"
insilmaril@149: "- Clemens Kraus for stylesheets and script used for HTML-export "
insilmaril@149: "(www.clemens-kraus.de)
"
insilmaril@149: "- Alexander Johannesen for providing stylesheets from his xsiteable project "
insilmaril@149: "(www.shelter.nu/xsiteable/xsiteable.html).
"
insilmaril@149: "- Ken Wimer and Olaf Hering for Mac support
"
insilmaril@149: "
"
insilmaril@149: " ");
insilmaril@149: credits->setFrameStyle( QFrame::Panel | QFrame::Plain );
insilmaril@150: credits->mimeSourceFactory();
insilmaril@149: tabs->addTab (credits,"Credits");
insilmaril@149:
insilmaril@149: license=new QTextBrowser (this,"license");
insilmaril@149: license->setText ("License text...");
insilmaril@149: credits->setFrameStyle( QFrame::Panel | QFrame::Plain );
insilmaril@149: tabs->addTab (license,"License");
insilmaril@149:
insilmaril@149: mainLayout->addWidget (tabs);
insilmaril@149: tabs->showPage (credits);
insilmaril@149:
insilmaril@149: okbutton =new QPushButton (this,"okbutton");
insilmaril@149: okbutton->setText ("ok");
insilmaril@149: okbutton->setMaximumSize (QSize (50,30));
insilmaril@149: okbutton->setAutoDefault (true);
insilmaril@149: mainLayout->addWidget( okbutton);
insilmaril@149:
insilmaril@150: connect (credits,SIGNAL ( linkClicked(const QString&)),this ,SLOT ( openLink(const QString&)));
insilmaril@150: // connect( credits, SIGNAL( sourceChanged(const QString& ) ),
insilmaril@150: // this, SLOT( openLink( const QString&) ) );
insilmaril@150:
insilmaril@149:
insilmaril@149: connect( okbutton, SIGNAL( clicked() ), this, SLOT( accept() ) );
insilmaril@149: }
insilmaril@149:
insilmaril@150:
insilmaril@150: void AboutDialog::openLink(const QString &url)
insilmaril@149: {
insilmaril@150: // okbutton->setText (url);
insilmaril@149: }