/**************************************************************************** ** Form implementation generated from reading ui file 'reportsection.ui' ** ** Created: Sa Jul 30 22:09:41 2005 ** by: The User Interface Compiler ($Id: hk_kdereportsectiondialogbase.cpp,v 1.5 2005/07/31 12:39:05 knorr Exp $) ** ** WARNING! All changes made in this file will be lost! ****************************************************************************/ #include "hk_kdereportsectiondialogbase.h" #include #include #include #include #include #include #include #include #include #include /* * Constructs a hk_kdereportsectiondialogbase 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_kdereportsectiondialogbase::hk_kdereportsectiondialogbase( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ) { if ( !name ) setName( "hk_kdereportsectiondialogbase" ); setSizeGripEnabled( TRUE ); hk_kdereportsectiondialogbaseLayout = new QHBoxLayout( this, 11, 6, "hk_kdereportsectiondialogbaseLayout"); Frame14 = new QFrame( this, "Frame14" ); Frame14->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)5, 0, 0, Frame14->sizePolicy().hasHeightForWidth() ) ); Frame14->setFrameShape( QFrame::Box ); Frame14->setFrameShadow( QFrame::Sunken ); Frame14Layout = new QHBoxLayout( Frame14, 11, 6, "Frame14Layout"); Layout5 = new QVBoxLayout( 0, 0, 6, "Layout5"); fieldlabel = new QLabel( Frame14, "fieldlabel" ); fieldlabel->setFrameShape( QLabel::NoFrame ); fieldlabel->setFrameShadow( QLabel::Plain ); Layout5->addWidget( fieldlabel ); sectionfield = new QComboBox( FALSE, Frame14, "sectionfield" ); sectionfield->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)0, 0, 0, sectionfield->sizePolicy().hasHeightForWidth() ) ); sectionfield->setEditable( TRUE ); Layout5->addWidget( sectionfield ); Spacer3 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); Layout5->addItem( Spacer3 ); Frame14Layout->addLayout( Layout5 ); Layout4 = new QVBoxLayout( 0, 0, 6, "Layout4"); Spacer2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); Layout4->addItem( Spacer2 ); addbutton = new QToolButton( Frame14, "addbutton" ); Layout4->addWidget( addbutton ); deletebutton = new QToolButton( Frame14, "deletebutton" ); deletebutton->setEnabled( FALSE ); Layout4->addWidget( deletebutton ); upbutton = new QToolButton( Frame14, "upbutton" ); upbutton->setEnabled( FALSE ); Layout4->addWidget( upbutton ); downbutton = new QToolButton( Frame14, "downbutton" ); downbutton->setEnabled( FALSE ); Layout4->addWidget( downbutton ); Spacer1_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); Layout4->addItem( Spacer1_2 ); Frame14Layout->addLayout( Layout4 ); Layout10 = new QGridLayout( 0, 1, 1, 0, 0, "Layout10"); sectionbox = new QListBox( Frame14, "sectionbox" ); sectionbox->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, sectionbox->sizePolicy().hasHeightForWidth() ) ); sectionbox->setMinimumSize( QSize( 55, 0 ) ); Layout10->addWidget( sectionbox, 1, 0 ); boxlabel = new QLabel( Frame14, "boxlabel" ); Layout10->addWidget( boxlabel, 0, 0 ); Frame14Layout->addLayout( Layout10 ); hk_kdereportsectiondialogbaseLayout->addWidget( Frame14 ); Layout11 = new QVBoxLayout( 0, 0, 4, "Layout11"); exitbutton = new QPushButton( this, "exitbutton" ); exitbutton->setAutoDefault( TRUE ); exitbutton->setDefault( TRUE ); Layout11->addWidget( exitbutton ); Spacer1 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); Layout11->addItem( Spacer1 ); hk_kdereportsectiondialogbaseLayout->addLayout( Layout11 ); languageChange(); resize( QSize(528, 228).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections connect( exitbutton, SIGNAL( clicked() ), this, SLOT( accept() ) ); connect( addbutton, SIGNAL( clicked() ), this, SLOT( add_clicked() ) ); connect( deletebutton, SIGNAL( clicked() ), this, SLOT( delete_clicked() ) ); connect( upbutton, SIGNAL( clicked() ), this, SLOT( up_clicked() ) ); connect( sectionbox, SIGNAL( selectionChanged() ), this, SLOT( check_buttons() ) ); connect( sectionfield, SIGNAL( textChanged(const QString&) ), this, SLOT( check_buttons() ) ); connect( downbutton, SIGNAL( clicked() ), this, SLOT( down_clicked() ) ); } /* * Destroys the object and frees any allocated resources */ hk_kdereportsectiondialogbase::~hk_kdereportsectiondialogbase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void hk_kdereportsectiondialogbase::languageChange() { setCaption( tr( "hk_kdereportsectiondialogbase" ) ); fieldlabel->setText( tr( "TextLabel1" ) ); addbutton->setText( QString::null ); deletebutton->setText( QString::null ); upbutton->setText( QString::null ); downbutton->setText( QString::null ); boxlabel->setText( tr( "TextLabel2" ) ); exitbutton->setText( tr( "&Exit" ) ); } void hk_kdereportsectiondialogbase::add_clicked() { qWarning( "hk_kdereportsectiondialogbase::add_clicked(): Not implemented yet" ); } void hk_kdereportsectiondialogbase::check_buttons() { qWarning( "hk_kdereportsectiondialogbase::check_buttons(): Not implemented yet" ); } void hk_kdereportsectiondialogbase::delete_clicked() { qWarning( "hk_kdereportsectiondialogbase::delete_clicked(): Not implemented yet" ); } void hk_kdereportsectiondialogbase::down_clicked() { qWarning( "hk_kdereportsectiondialogbase::down_clicked(): Not implemented yet" ); } void hk_kdereportsectiondialogbase::up_clicked() { qWarning( "hk_kdereportsectiondialogbase::up_clicked(): Not implemented yet" ); }