/**************************************************************************** ** Form implementation generated from reading ui file 'newdatabasedialog.ui' ** ** Created: Sa Jul 30 19:25:02 2005 ** by: The User Interface Compiler ($Id: hk_kdenewdatabasebase.cpp,v 1.2 2005/07/31 12:39:05 knorr Exp $) ** ** WARNING! All changes made in this file will be lost! ****************************************************************************/ #include "hk_kdenewdatabasebase.h" #include #include #include #include #include #include #include /* * Constructs a hk_kdenewdatabasedialogbase as 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. */ hk_kdenewdatabasedialogbase::hk_kdenewdatabasedialogbase( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ) { if ( !name ) setName( "hk_kdenewdatabasedialogbase" ); setMinimumSize( QSize( 300, 0 ) ); setSizeGripEnabled( TRUE ); hk_kdenewdatabasedialogbaseLayout = new QVBoxLayout( this, 11, 6, "hk_kdenewdatabasedialogbaseLayout"); databaselabel = new QLabel( this, "databaselabel" ); databaselabel->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, databaselabel->sizePolicy().hasHeightForWidth() ) ); hk_kdenewdatabasedialogbaseLayout->addWidget( databaselabel ); layout2 = new QHBoxLayout( 0, 0, 6, "layout2"); databasefield = new QLineEdit( this, "databasefield" ); layout2->addWidget( databasefield ); directorybutton = new QPushButton( this, "directorybutton" ); directorybutton->setEnabled( FALSE ); directorybutton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)0, 0, 0, directorybutton->sizePolicy().hasHeightForWidth() ) ); directorybutton->setMaximumSize( QSize( 25, 32767 ) ); layout2->addWidget( directorybutton ); hk_kdenewdatabasedialogbaseLayout->addLayout( layout2 ); Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); Horizontal_Spacing2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); Layout1->addItem( Horizontal_Spacing2 ); okbutton = new QPushButton( this, "okbutton" ); okbutton->setEnabled( FALSE ); okbutton->setAutoDefault( TRUE ); okbutton->setDefault( TRUE ); Layout1->addWidget( okbutton ); cancelbutton = new QPushButton( this, "cancelbutton" ); cancelbutton->setAutoDefault( TRUE ); Layout1->addWidget( cancelbutton ); hk_kdenewdatabasedialogbaseLayout->addLayout( Layout1 ); languageChange(); resize( QSize(300, 134).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections connect( cancelbutton, SIGNAL( clicked() ), this, SLOT( reject() ) ); connect( okbutton, SIGNAL( clicked() ), this, SLOT( ok_clicked() ) ); connect( directorybutton, SIGNAL( clicked() ), this, SLOT( directory_clicked() ) ); connect( databasefield, SIGNAL( textChanged(const QString&) ), this, SLOT( text_changed() ) ); } /* * Destroys the object and frees any allocated resources */ hk_kdenewdatabasedialogbase::~hk_kdenewdatabasedialogbase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void hk_kdenewdatabasedialogbase::languageChange() { setCaption( tr( "New database dialog" ) ); databaselabel->setText( tr( "New database name:" ) ); directorybutton->setText( tr( "..." ) ); okbutton->setText( tr( "&OK" ) ); okbutton->setAccel( QKeySequence( QString::null ) ); cancelbutton->setText( tr( "&Cancel" ) ); cancelbutton->setAccel( QKeySequence( QString::null ) ); } void hk_kdenewdatabasedialogbase::ok_clicked() { qWarning( "hk_kdenewdatabasedialogbase::ok_clicked(): Not implemented yet" ); } void hk_kdenewdatabasedialogbase::directory_clicked() { qWarning( "hk_kdenewdatabasedialogbase::directory_clicked(): Not implemented yet" ); } void hk_kdenewdatabasedialogbase::text_changed() { qWarning( "hk_kdenewdatabasedialogbase::text_changed(): Not implemented yet" ); }