/**************************************************************************** ** Form implementation generated from reading ui file 'HistoryDialog.ui' ** ** Created: Fri Aug 9 09:45:53 2002 ** by: The User Interface Compiler (uic) ** ** WARNING! All changes made in this file will be lost! ****************************************************************************/ #include "HistoryDialogData.h" #include #include #include #include #include #include #include #include /* * Constructs a HistoryDialogData 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. */ HistoryDialogData::HistoryDialogData( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ) { if ( !name ) setName( "HistoryDialogData" ); resize( 321, 280 ); setCaption( trUtf8( "History" ) ); HistoryDialogDataLayout = new QVBoxLayout( this, 6, 6, "HistoryDialogDataLayout"); historyListBox = new QListBox( this, "historyListBox" ); HistoryDialogDataLayout->addWidget( historyListBox ); Layout3 = new QHBoxLayout( 0, 0, 6, "Layout3"); QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); Layout3->addItem( spacer ); maxItemsLabel = new QLabel( this, "maxItemsLabel" ); maxItemsLabel->setText( trUtf8( "Max. entries:" ) ); Layout3->addWidget( maxItemsLabel ); sizeLineEdit = new QLineEdit( this, "sizeLineEdit" ); sizeLineEdit->setMinimumSize( QSize( 32, 0 ) ); sizeLineEdit->setMaxLength( 6 ); Layout3->addWidget( sizeLineEdit ); QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); Layout3->addItem( spacer_2 ); deleteButton = new QPushButton( this, "deleteButton" ); deleteButton->setText( trUtf8( "Delete" ) ); deleteButton->setAutoDefault( TRUE ); Layout3->addWidget( deleteButton ); clearButton = new QPushButton( this, "clearButton" ); clearButton->setText( trUtf8( "Clear" ) ); Layout3->addWidget( clearButton ); QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); Layout3->addItem( spacer_3 ); HistoryDialogDataLayout->addLayout( Layout3 ); Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); prevButton = new QPushButton( this, "prevButton" ); prevButton->setText( trUtf8( "Previous" ) ); prevButton->setDefault( TRUE ); Layout1->addWidget( prevButton ); nextButton = new QPushButton( this, "nextButton" ); nextButton->setText( trUtf8( "Next" ) ); Layout1->addWidget( nextButton ); HistoryDialogDataLayout->addLayout( Layout1 ); // signals and slots connections connect( historyListBox, SIGNAL( highlighted(int) ), this, SLOT( historyItemHighlighted(int) ) ); connect( sizeLineEdit, SIGNAL( textChanged(const QString&) ), this, SLOT( historySizeChanged() ) ); connect( prevButton, SIGNAL( clicked() ), this, SLOT( prevButtonClicked() ) ); connect( nextButton, SIGNAL( clicked() ), this, SLOT( nextButtonClicked() ) ); connect( deleteButton, SIGNAL( clicked() ), this, SLOT( deleteButtonClicked() ) ); connect( clearButton, SIGNAL( clicked() ), this, SLOT( clearButtonClicked() ) ); // tab order setTabOrder( prevButton, nextButton ); setTabOrder( nextButton, historyListBox ); setTabOrder( historyListBox, deleteButton ); setTabOrder( deleteButton, clearButton ); setTabOrder( clearButton, sizeLineEdit ); } /* * Destroys the object and frees any allocated resources */ HistoryDialogData::~HistoryDialogData() { // no need to delete child widgets, Qt does it all for us } void HistoryDialogData::clearButtonClicked() { qWarning( "HistoryDialogData::clearButtonClicked(): Not implemented yet!" ); } void HistoryDialogData::historyItemHighlighted(int) { qWarning( "HistoryDialogData::historyItemHighlighted(int): Not implemented yet!" ); } void HistoryDialogData::historySizeChanged() { qWarning( "HistoryDialogData::historySizeChanged(): Not implemented yet!" ); } void HistoryDialogData::deleteButtonClicked() { qWarning( "HistoryDialogData::deleteButtonClicked(): Not implemented yet!" ); } void HistoryDialogData::nextButtonClicked() { qWarning( "HistoryDialogData::nextButtonClicked(): Not implemented yet!" ); } void HistoryDialogData::prevButtonClicked() { qWarning( "HistoryDialogData::prevButtonClicked(): Not implemented yet!" ); }