Main Page   Compound List   File List   Compound Members   File Members  

about.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 <qlabel.h>
00020 #include <qfont.h>
00021 #include <qpixmap.h>
00022  
00023 //Projectwide includes
00024 #include "about.h"
00025 #include "../config.h"
00026 
00027 //==============================================
00028 About::About( QWidget* parent,
00029               const char* name ) : 
00030               QWidget(parent,name)
00031 {
00032   //--
00033   progDesc = new QLabel( "Album Shaper 1.0a2 - Will Stokes", this );
00034   QFont font( "Times", 18, QFont::Bold );
00035   progDesc->setFont( font );
00036 //  progImage = new QPixmap((const char**) about_xpm);
00037   progImage = new QPixmap(QString(IMAGE_PATH)+"about.png");
00038   progIcon = new QLabel( this );
00039   progIcon->setPixmap( *progImage );
00040 
00041   //--
00042   grid = new QGridLayout( this, 2, 1, 0);
00043   grid->addWidget( progDesc, 0, 0, Qt::AlignCenter );
00044   grid->addWidget( progIcon, 1, 0, Qt::AlignCenter  );
00045   //--
00046 }
00047 //==============================================
00048 void About::closeEvent( QCloseEvent* e)
00049 {
00050   aboutClosed();
00051   QWidget::closeEvent( e );
00052 }
00053 //==============================================

Generated on Tue Jun 10 23:41:20 2003 for AlbumShaper by doxygen 1.3.1