⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 selectdialogform.cpp

📁 本代码采用嵌入式qt编写
💻 CPP
字号:
/****************************************************************************** Form implementation generated from reading ui file 'selectdialogform.ui'**** Created: Wed Apr 26 17:12:04 2006**      by:  The User Interface Compiler (uic)**** WARNING! All changes made in this file will be lost!****************************************************************************/#include "selectdialogform.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 SelectDialogForm 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. */SelectDialogForm::SelectDialogForm( QWidget* parent,  const char* name, bool modal, WFlags fl )    : QDialog( parent, name, modal, fl ){    if ( !name )	setName( "SelectDialogForm" );    resize( 342, 435 );     setCaption( tr( "Select Dialog" ) );    fieldListView = new QListView( this, "fieldListView" );    fieldListView->addColumn( tr( "Field" ) );    fieldListView->setGeometry( QRect( 212, 41, 117, 168 ) );     addToButton = new QPushButton( this, "addToButton" );    addToButton->setGeometry( QRect( 125, 90, 80, 32 ) );     addToButton->setText( tr( "==>" ) );    deleteButton = new QPushButton( this, "deleteButton" );    deleteButton->setGeometry( QRect( 125, 128, 80, 32 ) );     deleteButton->setText( tr( "<==" ) );    tableListView = new QListView( this, "tableListView" );    tableListView->addColumn( tr( "Table" ) );    tableListView->setGeometry( QRect( 1, 41, 117, 168 ) );     conditionLabel = new QLabel( this, "conditionLabel" );    conditionLabel->setGeometry( QRect( 20, 210, 92, 38 ) );     conditionLabel->setText( tr( "Select Condition" ) );    conditionLabel->setAlignment( int( QLabel::AlignCenter ) );    orderByComboBox = new QComboBox( FALSE, this, "orderByComboBox" );    orderByComboBox->setGeometry( QRect( 230, 310, 90, 30 ) );     orderByLabel = new QLabel( this, "orderByLabel" );    orderByLabel->setGeometry( QRect( 150, 310, 60, 30 ) );     orderByLabel->setText( tr( "Order By" ) );    orderByLabel->setAlignment( int( QLabel::AlignCenter ) );    orderLabel = new QLabel( this, "orderLabel" );    orderLabel->setGeometry( QRect( 150, 260, 60, 30 ) );     orderLabel->setText( tr( "Order" ) );    orderLabel->setAlignment( int( QLabel::AlignCenter ) );    orderComboBox = new QComboBox( FALSE, this, "orderComboBox" );    orderComboBox->insertItem( tr( "ASC" ) );    orderComboBox->insertItem( tr( "DESC" ) );    orderComboBox->setGeometry( QRect( 230, 260, 90, 30 ) );     okButton = new QPushButton( this, "okButton" );    okButton->setGeometry( QRect( 240, 360, 80, 40 ) );     okButton->setText( tr( "Ok" ) );    cancelButton = new QPushButton( this, "cancelButton" );    cancelButton->setGeometry( QRect( 150, 360, 80, 40 ) );     cancelButton->setText( tr( "Cancel" ) );    tableComboBox = new QComboBox( FALSE, this, "tableComboBox" );    tableComboBox->setGeometry( QRect( 110, 0, 110, 30 ) );     tableLabel = new QLabel( this, "tableLabel" );    tableLabel->setGeometry( QRect( 10, 0, 84, 28 ) );     tableLabel->setText( tr( "Selected Table" ) );    tableLabel->setAlignment( int( QLabel::AlignCenter ) );    conditionMultiEdit = new QMultiLineEdit( this, "conditionMultiEdit" );    conditionMultiEdit->setGeometry( QRect( 1, 249, 138, 180 ) ); }/*   *  Destroys the object and frees any allocated resources */SelectDialogForm::~SelectDialogForm(){    // no need to delete child widgets, Qt does it all for us}

⌨️ 快捷键说明

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