00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include <qlayout.h>
00019 #include <qtextbrowser.h>
00020 #include <qstringlist.h>
00021 #include <qpixmap.h>
00022
00023
00024 #include "handbook.h"
00025 #include "../config.h"
00026
00027 #define DEFAULT_WIDTH 800
00028 #define DEFAULT_HEIGHT 550
00029
00030
00031 Handbook::Handbook( QWidget* parent,
00032 const char* name ) :
00033 QWidget(parent,name)
00034 {
00035
00036
00037 setCaption( tr("Album Shaper Handbook"));
00038
00039 browser = new QTextBrowser( this );
00040 browser->setFrameStyle( QFrame::Panel | QFrame::Sunken );
00041 browser->mimeSourceFactory()->setFilePath( QStringList(HANDBOOK_PATH) );
00042 browser->setSource( "index.html");
00043
00044 grid = new QGridLayout( this, 1, 1, 0);
00045 grid->addWidget( browser, 0, 0 );
00046
00047 resize( DEFAULT_WIDTH, DEFAULT_HEIGHT );
00048
00049 setCaption( tr("Album Shaper Handbook") );
00050 windowIcon = new QPixmap(QString(IMAGE_PATH)+"albumShaperIcon.png");
00051 setIcon( *windowIcon );
00052
00053 }
00054
00055 void Handbook::closeEvent( QCloseEvent* e)
00056 {
00057 closed();
00058 QWidget::closeEvent( e );
00059 }
00060