Logo Search packages:      
Sourcecode: bbconf version File versions  Download package

addcommand_base.cc

/****************************************************************************
** Form implementation generated from reading ui file 'ui/addcommand_base.ui'
**
** Created: Sun Jun 23 02:10:47 2002
**      by:  The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "addcommand_base.h"

#include <qvariant.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/* 
 *  Constructs a AddCommandBase 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.
 */
AddCommandBase::AddCommandBase( QWidget* parent,  const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
      setName( "AddCommandBase" );
    resize( 297, 85 ); 
    setCaption( trUtf8( "Add Command" ) );
    AddCommandBaseLayout = new QVBoxLayout( this, 11, 6, "AddCommandBaseLayout"); 

    Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); 

    TextLabel1 = new QLabel( this, "TextLabel1" );
    TextLabel1->setText( trUtf8( "Command:" ) );
    Layout1->addWidget( TextLabel1 );

    LineEdit1 = new QLineEdit( this, "LineEdit1" );
    LineEdit1->setMinimumSize( QSize( 200, 0 ) );
    Layout1->addWidget( LineEdit1 );
    AddCommandBaseLayout->addLayout( Layout1 );
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    AddCommandBaseLayout->addItem( spacer );

    Layout2 = new QHBoxLayout( 0, 0, 6, "Layout2"); 

    PushButton1 = new QPushButton( this, "PushButton1" );
    PushButton1->setText( trUtf8( "&OK" ) );
    PushButton1->setDefault( TRUE );
    Layout2->addWidget( PushButton1 );

    PushButton2 = new QPushButton( this, "PushButton2" );
    PushButton2->setText( trUtf8( "&Cancel" ) );
    Layout2->addWidget( PushButton2 );
    AddCommandBaseLayout->addLayout( Layout2 );

    // signals and slots connections
    connect( PushButton1, SIGNAL( clicked() ), this, SLOT( accept() ) );
    connect( PushButton2, SIGNAL( clicked() ), this, SLOT( reject() ) );
}

/*  
 *  Destroys the object and frees any allocated resources
 */
AddCommandBase::~AddCommandBase()
{
    // no need to delete child widgets, Qt does it all for us
}


Generated by  Doxygen 1.6.0   Back to index