00001 #include <qlayout.h>
00002 #include <qpushbutton.h>
00003 #include <qlabel.h>
00004
00005 #include "SIGEL_MasterGUI/SIG_InfoBox.h"
00006 #include "SIGEL_MasterGUI/SIG_TextView.h"
00007
00008 #include <cstdlib>
00009
00010 SIG_InfoBox::SIG_InfoBox( QWidget *parent = 0, const char *name = 0, bool modal = false, WFlags f = 0 )
00011 : QDialog( parent, name, modal, f )
00012 {
00013 QString sigelRoot( std::getenv( "SIGEL_ROOT" ) );
00014 this->setCaption( "Sigel InfoBox" );
00015 QLabel *pixmapLabel = new QLabel( this, "gfxLabel" );
00016 pixmapLabel->setPixmap( QPixmap( sigelRoot + "/pixmaps/altLogo.png" ) );
00017 pixmapLabel->setFrameStyle( QFrame::Box | QFrame::Sunken );
00018
00019
00020 QHBoxLayout *hL = new QHBoxLayout( this, 6, -1 );
00021 hL->addWidget( pixmapLabel );
00022
00023 QVBoxLayout *vL = new QVBoxLayout( hL, -1, "vLayout" );
00024 SIG_TextView *theView = new SIG_TextView( this, "SIG_TextView *theView" );
00025 theView->setVScrollBarMode( QScrollView::AlwaysOff );
00026 theView->setText("<h1>Sigel v1.0</h1>"
00027 "<h3>Developed by:</h3>"
00028 "<ul>"
00029 "<li>Christian <b>"Krasstexta"</b> Aue</li>"
00030 "<li>Abdeladim <b>"Silent Ad"</b> Benkacem</li>"
00031 "<li>Michael <b>"CJ <i>QT</i>"</b> Gregorius</li>"
00032 "<li>Andree <b>"MC Overload"</b> Ross</li>"
00033 "<li>Abdallah <b>"The Raiyan"</b> Salah Raiyan</li>"
00034 "<li>Daniel <b>"Tabmaster Ispell"</b> Sawitzki</li>"
00035 "<li>Volker <b>"Alvi-Schnitte"</b> Strunk</li>"
00036 "<li>Holger <b>"DJ NOOP"</b> Tuerk</li>"
00037 "<li>Chris <b>"MC Royal"</b> Varcol</li>"
00038 "</ul>"
00039 );
00040 vL->addWidget( theView );
00041
00042 QSpacerItem *okSpacerItem = new QSpacerItem( 20, 20, QSizePolicy::Expanding );
00043
00044 QHBoxLayout *okLayout = new QHBoxLayout( vL, -1, "okLayout" );
00045 okLayout->addItem( okSpacerItem );
00046
00047 QPushButton *okPushButton = new QPushButton( "&OK", this, "okPushButton" );
00048 connect( okPushButton,
00049 SIGNAL( clicked() ),
00050 this,
00051 SLOT( accept() ) );
00052 okLayout->addWidget( okPushButton );
00053
00054 };
00055
00056 SIG_InfoBox::~SIG_InfoBox()
00057 {
00058
00059 };
00060