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