#include /**************************************************************************** ** Form implementation generated from reading ui file './configDlg.ui' ** ** Created: dim. oct. 26 08:57:34 2008 ** ** WARNING! All changes made in this file will be lost! ****************************************************************************/ #include "configDlg.h" #include #include #include #include #include #include #include "kpushbutton.h" /* * Constructs a configDlg as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ configDlg::configDlg( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { if ( !name ) setName( "configDlg" ); setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) ); configDlgLayout = new QGridLayout( this, 1, 1, 11, 6, "configDlgLayout"); Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); configDlgLayout->addMultiCellLayout( Layout1, 3, 3, 0, 1 ); spacer4 = new QSpacerItem( 20, 190, QSizePolicy::Minimum, QSizePolicy::Expanding ); configDlgLayout->addItem( spacer4, 2, 1 ); tblDevices = new QTable( this, "tblDevices" ); tblDevices->setNumCols( tblDevices->numCols() + 1 ); tblDevices->horizontalHeader()->setLabel( tblDevices->numCols() - 1, tr2i18n( "device" ) ); tblDevices->setNumCols( tblDevices->numCols() + 1 ); tblDevices->horizontalHeader()->setLabel( tblDevices->numCols() - 1, tr2i18n( "label" ) ); tblDevices->setNumCols( tblDevices->numCols() + 1 ); tblDevices->horizontalHeader()->setLabel( tblDevices->numCols() - 1, tr2i18n( "Input" ) ); tblDevices->setNumCols( tblDevices->numCols() + 1 ); tblDevices->horizontalHeader()->setLabel( tblDevices->numCols() - 1, tr2i18n( "Output" ) ); tblDevices->setResizePolicy( QTable::Default ); tblDevices->setVScrollBarMode( QTable::Auto ); tblDevices->setNumRows( 0 ); tblDevices->setNumCols( 4 ); tblDevices->setShowGrid( TRUE ); tblDevices->setSelectionMode( QTable::Single ); tblDevices->setFocusStyle( QTable::SpreadSheet ); configDlgLayout->addMultiCellWidget( tblDevices, 1, 2, 0, 0 ); layout4 = new QVBoxLayout( 0, 0, 6, "layout4"); bAdd = new KPushButton( this, "bAdd" ); bAdd->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, bAdd->sizePolicy().hasHeightForWidth() ) ); bAdd->setProperty( "stdItem", 27 ); layout4->addWidget( bAdd ); bRemove = new KPushButton( this, "bRemove" ); bRemove->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, bRemove->sizePolicy().hasHeightForWidth() ) ); bRemove->setProperty( "stdItem", 28 ); layout4->addWidget( bRemove ); configDlgLayout->addLayout( layout4, 1, 1 ); languageChange(); resize( QSize(578, 342).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections connect( bRemove, SIGNAL( clicked() ), this, SLOT( bRemoveClick() ) ); connect( bAdd, SIGNAL( clicked() ), this, SLOT( bAddClick() ) ); } /* * Destroys the object and frees any allocated resources */ configDlg::~configDlg() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void configDlg::languageChange() { setCaption( tr2i18n( "k9Copy - Devices" ) ); tblDevices->horizontalHeader()->setLabel( 0, tr2i18n( "device" ) ); tblDevices->horizontalHeader()->setLabel( 1, tr2i18n( "label" ) ); tblDevices->horizontalHeader()->setLabel( 2, tr2i18n( "Input" ) ); tblDevices->horizontalHeader()->setLabel( 3, tr2i18n( "Output" ) ); bAdd->setText( tr2i18n( "Add" ) ); bAdd->setAccel( QKeySequence( QString::null ) ); bRemove->setText( tr2i18n( "Remove" ) ); bRemove->setAccel( QKeySequence( QString::null ) ); } void configDlg::bRemoveClick() { qWarning( "configDlg::bRemoveClick(): Not implemented yet" ); } void configDlg::bAddClick() { qWarning( "configDlg::bAddClick(): Not implemented yet" ); } void configDlg::bOkClick() { qWarning( "configDlg::bOkClick(): Not implemented yet" ); } #include "configDlg.moc"