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