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

📄 addcourse.cpp

📁 学生管理系统 使用Qt写的界面 交互性好
💻 CPP
字号:
/****************************************************************************** Form implementation generated from reading ui file 'AddCourse.ui'**** Created: 星期三 六月 27 06:04:58 2007**      by: The User Interface Compiler ()**** WARNING! All changes made in this file will be lost!****************************************************************************/#include "AddCourse.h"#include <qvariant.h>#include <qlabel.h>#include <qpushbutton.h>#include <qlineedit.h>#include <qcombobox.h>#include <qlayout.h>#include <qtooltip.h>#include <qwhatsthis.h>#include <qimage.h>#include <qpixmap.h>#include "AddCourse.ui.h"/* *  Constructs a Form5 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. */Form5::Form5( QWidget* parent, const char* name, bool modal, WFlags fl )    : QDialog( parent, name, modal, fl ){    if ( !name )	setName( "Form5" );    setIcon( QPixmap::fromMimeSource( "ADD.png" ) );    textLabel6 = new QLabel( this, "textLabel6" );    textLabel6->setGeometry( QRect( 20, 10, 70, 20 ) );    textLabel7 = new QLabel( this, "textLabel7" );    textLabel7->setGeometry( QRect( 20, 40, 63, 20 ) );    textLabel8 = new QLabel( this, "textLabel8" );    textLabel8->setGeometry( QRect( 20, 70, 63, 20 ) );    textLabel10 = new QLabel( this, "textLabel10" );    textLabel10->setGeometry( QRect( 20, 130, 69, 20 ) );    pushButton78 = new QPushButton( this, "pushButton78" );    pushButton78->setGeometry( QRect( 290, 170, 92, 27 ) );    lineEdit46 = new QLineEdit( this, "lineEdit46" );    lineEdit46->setGeometry( QRect( 130, 10, 250, 21 ) );    lineEdit46->setFrameShape( QLineEdit::LineEditPanel );    lineEdit46->setFrameShadow( QLineEdit::Sunken );    lineEdit47 = new QLineEdit( this, "lineEdit47" );    lineEdit47->setGeometry( QRect( 130, 40, 250, 21 ) );    lineEdit49 = new QLineEdit( this, "lineEdit49" );    lineEdit49->setGeometry( QRect( 130, 100, 250, 21 ) );    lineEdit49->setFrameShape( QLineEdit::LineEditPanel );    lineEdit49->setFrameShadow( QLineEdit::Sunken );    lineEdit50 = new QLineEdit( this, "lineEdit50" );    lineEdit50->setGeometry( QRect( 130, 130, 250, 21 ) );    comboBox8 = new QComboBox( FALSE, this, "comboBox8" );    comboBox8->setGeometry( QRect( 130, 70, 85, 21 ) );    textLabel9 = new QLabel( this, "textLabel9" );    textLabel9->setGeometry( QRect( 20, 100, 80, 20 ) );    pushButton77 = new QPushButton( this, "pushButton77" );    pushButton77->setGeometry( QRect( 90, 170, 92, 27 ) );    pushButton99 = new QPushButton( this, "pushButton99" );    pushButton99->setGeometry( QRect( 190, 170, 92, 27 ) );    languageChange();    resize( QSize(396, 225).expandedTo(minimumSizeHint()) );    clearWState( WState_Polished );    // signals and slots connections    connect( pushButton78, SIGNAL( clicked() ), this, SLOT( close() ) );    connect( pushButton77, SIGNAL( clicked() ), this, SLOT( ADD() ) );    connect( pushButton99, SIGNAL( clicked() ), this, SLOT( ADD() ) );}/* *  Destroys the object and frees any allocated resources */Form5::~Form5(){    // no need to delete child widgets, Qt does it all for us}/* *  Sets the strings of the subwidgets using the current *  language. */void Form5::languageChange(){    setCaption( tr( "ADD" ) );    textLabel6->setText( tr( "CourseName" ) );    textLabel7->setText( tr( "CourseID" ) );    textLabel8->setText( tr( "Point" ) );    textLabel10->setText( tr( "TeacherID" ) );    pushButton78->setText( tr( "Cancel" ) );    comboBox8->clear();    comboBox8->insertItem( tr( "1.0" ) );    comboBox8->insertItem( tr( "1.5" ) );    comboBox8->insertItem( tr( "2.0" ) );    comboBox8->insertItem( tr( "2.5" ) );    comboBox8->insertItem( tr( "3.0" ) );    comboBox8->insertItem( tr( "3.5" ) );    comboBox8->insertItem( tr( "4.0" ) );    comboBox8->insertItem( tr( "4.5" ) );    comboBox8->insertItem( tr( "5.0" ) );    comboBox8->insertItem( tr( "5.5" ) );    textLabel9->setText( tr( "TeacherName" ) );    pushButton77->setText( tr( "ADD" ) );    pushButton99->setText( tr( "Modify" ) );}

⌨️ 快捷键说明

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