Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

handbook.cpp

Go to the documentation of this file.
00001 //==============================================
00002 //  copyright            : (C) 2003 by Will Stokes
00003 //==============================================
00004 //  This program is free software; you can redistribute it 
00005 //  and/or modify it under the terms of the GNU General 
00006 //  Public License as published by the Free Software 
00007 //  Foundation; either version 2 of the License, or  
00008 //  (at your option) any later version.         
00009 //
00010 //  As a special exception, Will Stokes gives permission to 
00011 //  link this program with Qt non-commercial edition, and 
00012 //  distribute the resulting executable, without including the 
00013 //  source code for the Qt non-commercial edition in the 
00014 //  source distribution. 
00015 //==============================================
00016 
00017 //Systemwide includes
00018 #include <qlayout.h>
00019 #include <qtextbrowser.h>
00020 #include <qstringlist.h>
00021 #include <qpixmap.h>
00022 
00023 //Projectwide includes
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   //set window title
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 //==============================================

Generated on Thu Nov 13 00:10:53 2003 for AlbumShaper by doxygen 1.3.4