Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

SIG_InfoBox.cpp

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   // pixmapLabel->setScaledContents( true );
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>&quot;Krasstexta&quot;</b> Aue</li>"
00030                    "<li>Abdeladim <b>&quot;Silent Ad&quot;</b> Benkacem</li>"
00031                    "<li>Michael <b>&quot;CJ <i>QT</i>&quot;</b> Gregorius</li>"
00032                    "<li>Andree <b>&quot;MC Overload&quot;</b> Ross</li>"
00033                    "<li>Abdallah <b>&quot;The Raiyan&quot;</b> Salah Raiyan</li>"
00034                    "<li>Daniel <b>&quot;Tabmaster Ispell&quot;</b> Sawitzki</li>"
00035                    "<li>Volker <b>&quot;Alvi-Schnitte&quot;</b> Strunk</li>"
00036                    "<li>Holger <b>&quot;DJ NOOP&quot;</b> Tuerk</li>"
00037                    "<li>Chris <b>&quot;MC Royal&quot;</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 

Generated at Mon Sep 3 01:32:26 2001 for PG 368 - SIGEL by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000