modifydialogform.cpp

来自「本代码采用嵌入式qt编写」· C++ 代码 · 共 98 行

CPP
98
字号
/****************************************************************************** Form implementation generated from reading ui file 'modifydialogform.ui'**** Created: Wed Apr 26 18:40:46 2006**      by:  The User Interface Compiler (uic)**** WARNING! All changes made in this file will be lost!****************************************************************************/#include "modifydialogform.h"#include <qcombobox.h>#include <qheader.h>#include <qlabel.h>#include <qlistview.h>#include <qmultilineedit.h>#include <qpushbutton.h>#include <qlayout.h>#include <qvariant.h>#include <qtooltip.h>#include <qwhatsthis.h>/*  *  Constructs a ModifyDialogForm 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. */ModifyDialogForm::ModifyDialogForm( QWidget* parent,  const char* name, bool modal, WFlags fl )    : QDialog( parent, name, modal, fl ){    if ( !name )	setName( "ModifyDialogForm" );    resize( 323, 408 );     setCaption( tr( "Modify Dialog" ) );    deleteLabel = new QLabel( this, "deleteLabel" );    deleteLabel->setGeometry( QRect( 132, 36, 130, 20 ) );     deleteLabel->setText( tr( "Delete Condition" ) );    deleteLabel->setAlignment( int( QLabel::AlignCenter ) );    cancelButton = new QPushButton( this, "cancelButton" );    cancelButton->setGeometry( QRect( 0, 350, 80, 40 ) );     cancelButton->setText( tr( "Cancel" ) );    deleteButton = new QPushButton( this, "deleteButton" );    deleteButton->setGeometry( QRect( 80, 350, 80, 40 ) );     deleteButton->setText( tr( "Delete" ) );    updateButton = new QPushButton( this, "updateButton" );    updateButton->setGeometry( QRect( 240, 350, 80, 40 ) );     updateButton->setText( tr( "Update" ) );    deleteTableButton = new QPushButton( this, "deleteTableButton" );    deleteTableButton->setGeometry( QRect( 160, 350, 80, 40 ) );     deleteTableButton->setText( tr( "DeleteTable" ) );    conditionLabel = new QLabel( this, "conditionLabel" );    conditionLabel->setGeometry( QRect( 180, 190, 121, 38 ) );     conditionLabel->setText( tr( "Update Condition" ) );    conditionLabel->setAlignment( int( QLabel::AlignCenter ) );    assignLabel = new QLabel( this, "assignLabel" );    assignLabel->setGeometry( QRect( 10, 190, 121, 38 ) );     assignLabel->setText( tr( "Update Assignment" ) );    assignLabel->setAlignment( int( QLabel::AlignCenter ) );    updateAssignMultiEdit = new QMultiLineEdit( this, "updateAssignMultiEdit" );    updateAssignMultiEdit->setGeometry( QRect( 10, 230, 120, 100 ) );     updateConditionMultiEdit = new QMultiLineEdit( this, "updateConditionMultiEdit" );    updateConditionMultiEdit->setGeometry( QRect( 180, 230, 126, 108 ) );     deleteMultiEdit = new QMultiLineEdit( this, "deleteMultiEdit" );    deleteMultiEdit->setGeometry( QRect( 180, 60, 130, 120 ) );     tableListView = new QListView( this, "tableListView" );    tableListView->addColumn( tr( "Table" ) );    tableListView->setGeometry( QRect( 10, 40, 120, 140 ) );     tableComboBox = new QComboBox( FALSE, this, "tableComboBox" );    tableComboBox->setGeometry( QRect( 150, 10, 121, 27 ) );     tableLabel = new QLabel( this, "tableLabel" );    tableLabel->setGeometry( QRect( 10, 0, 121, 38 ) );     tableLabel->setText( tr( "Modify Table" ) );    tableLabel->setAlignment( int( QLabel::AlignCenter ) );}/*   *  Destroys the object and frees any allocated resources */ModifyDialogForm::~ModifyDialogForm(){    // no need to delete child widgets, Qt does it all for us}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?