1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
|
/****************************************************************************
** Form implementation generated from reading ui file 'uic/ccenterbase.ui'
**
** Created: Sun Nov 26 00:34:24 2000
** by: The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "ccenterbase.h"
#include <etab.h>
#include <qframe.h>
#include <qpushbutton.h>
#include <qwidgetstack.h>
#include <qlayout.h>
#include <qvariant.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
/*
* Constructs a ControlCenterBase which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*
* The dialog will by default be modeless, unless you set 'modal' to
* TRUE to construct a modal dialog.
*/
ControlCenterBase::ControlCenterBase( QWidget* parent, const char* name, bool modal, WFlags fl )
: QDialog( parent, name, modal, fl )
{
if ( !name )
setName( "ControlCenterBase" );
resize( 700, 500 );
QFont f( font() );
f.setPointSize( 10 );
setFont( f );
setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, sizePolicy().hasHeightForWidth() ) );
setMinimumSize( QSize( 700, 500 ) );
setCaption( tr( "Control Center" ) );
tab = new ETab( this, "tab" );
tab->setGeometry( QRect( 5, 5, 170, 485 ) );
Line1 = new QFrame( this, "Line1" );
Line1->setGeometry( QRect( 175, 5, 10, 490 ) );
Line1->setFrameStyle( QFrame::VLine | QFrame::Sunken );
stack = new QWidgetStack( this, "stack" );
stack->setGeometry( QRect( 185, 5, 505, 440 ) );
okButton = new QPushButton( this, "okButton" );
okButton->setGeometry( QRect( 425, 461, 80, 30 ) );
okButton->setText( tr( "&Ok" ) );
applyButton = new QPushButton( this, "applyButton" );
applyButton->setGeometry( QRect( 520, 461, 80, 30 ) );
applyButton->setText( tr( "&Apply" ) );
applyButton->setDefault( TRUE );
cancelButton = new QPushButton( this, "cancelButton" );
cancelButton->setGeometry( QRect( 610, 461, 80, 30 ) );
cancelButton->setText( tr( "&Cancel" ) );
// signals and slots connections
connect( okButton, SIGNAL( clicked() ), this, SLOT( okClicked() ) );
connect( applyButton, SIGNAL( clicked() ), this, SLOT( applyClicked() ) );
connect( cancelButton, SIGNAL( clicked() ), this, SLOT( cancelClicked() ) );
connect( tab, SIGNAL( tabSelected(int, int) ), this, SLOT( eTabSelected(int, int) ) );
connect( tab, SIGNAL( tabActivated(int) ), this, SLOT( eTabActivated(int) ) );
}
/*
* Destroys the object and frees any allocated resources
*/
ControlCenterBase::~ControlCenterBase()
{
// no need to delete child widgets, Qt does it all for us
}
void ControlCenterBase::applyClicked()
{
qWarning( "ControlCenterBase::applyClicked(): Not implemented yet!" );
}
void ControlCenterBase::cancelClicked()
{
qWarning( "ControlCenterBase::cancelClicked(): Not implemented yet!" );
}
void ControlCenterBase::eTabActivated(int)
{
qWarning( "ControlCenterBase::eTabActivated(int): Not implemented yet!" );
}
void ControlCenterBase::eTabSelected(int, int)
{
qWarning( "ControlCenterBase::eTabSelected(int, int): Not implemented yet!" );
}
void ControlCenterBase::okClicked()
{
qWarning( "ControlCenterBase::okClicked(): Not implemented yet!" );
}
|