/****************************************************************************
** Form implementation generated from reading ui file 'orderDishes.ui'
**
** Created: 星期四 一月 5 09:45:39 2012
** by: The User Interface Compiler ($Id: qt/main.cpp 3.2.1 edited May 19 14:22 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "orderDishes.h"
#include <qvariant.h>
#include <qlabel.h>
#include <qframe.h>
#include <qpushbutton.h>
#include <qtabwidget.h>
#include <qwidget.h>
#include <qheader.h>
#include <qlistview.h>
#include <qlineedit.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>
#include "orderDishes.ui.h"
/*
* Constructs a orderDishes 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.
*/
orderDishes::orderDishes( QWidget* parent, const char* name, bool modal, WFlags fl )
: QDialog( parent, name, modal, fl )
{
if ( !name )
setName( "orderDishes" );
textLabel5 = new QLabel( this, "textLabel5" );
textLabel5->setGeometry( QRect( 130, 20, 131, 41 ) );
textLabel5_2 = new QLabel( this, "textLabel5_2" );
textLabel5_2->setGeometry( QRect( 430, 20, 131, 41 ) );
textLabel1 = new QLabel( this, "textLabel1" );
textLabel1->setGeometry( QRect( 430, 420, 40, 31 ) );
line2 = new QFrame( this, "line2" );
line2->setGeometry( QRect( 380, 0, 21, 481 ) );
line2->setFrameShape( QFrame::VLine );
line2->setFrameShadow( QFrame::Sunken );
line2->setFrameShape( QFrame::VLine );
orderBtn = new QPushButton( this, "orderBtn" );
orderBtn->setGeometry( QRect( 70, 420, 100, 31 ) );
menu = new QTabWidget( this, "menu" );
menu->setGeometry( QRect( 40, 80, 300, 320 ) );
menuDish = new QWidget( menu, "menuDish" );
listDish = new QListView( menuDish, "listDish" );
listDish->addColumn( trUtf8( "\xe5\x90\x8d\xe7\xa7\xb0" ) );
listDish->addColumn( trUtf8( "\xe5\x8d\x95\xe4\xbb\xb7" ) );
listDish->setGeometry( QRect( 60, 20, 171, 250 ) );
listDish->setAllColumnsShowFocus( TRUE );
menu->insertTab( menuDish, QString("") );
menuSnake = new QWidget( menu, "menuSnake" );
listSnake = new QListView( menuSnake, "listSnake" );
listSnake->addColumn( trUtf8( "\xe5\x90\x8d\xe7\xa7\xb0" ) );
listSnake->addColumn( trUtf8( "\xe5\x8d\x95\xe4\xbb\xb7" ) );
listSnake->setGeometry( QRect( 60, 20, 171, 250 ) );
menu->insertTab( menuSnake, QString("") );
menuSoup = new QWidget( menu, "menuSoup" );
listSoup = new QListView( menuSoup, "listSoup" );
listSoup->addColumn( trUtf8( "\xe5\x90\x8d\xe7\xa7\xb0" ) );
listSoup->addColumn( trUtf8( "\xe5\x8d\x95\xe4\xbb\xb7" ) );
listSoup->setGeometry( QRect( 60, 20, 171, 250 ) );
menu->insertTab( menuSoup, QString("") );
menuFood = new QWidget( menu, "menuFood" );
listFood = new QListView( menuFood, "listFood" );
listFood->addColumn( trUtf8( "\xe5\x90\x8d\xe7\xa7\xb0" ) );
listFood->addColumn( trUtf8( "\xe5\x8d\x95\xe4\xbb\xb7" ) );
listFood->setGeometry( QRect( 60, 20, 171, 250 ) );
menu->insertTab( menuFood, QString("") );
menuOther = new QWidget( menu, "menuOther" );
listOther = new QListView( menuOther, "listOther" );
listOther->addColumn( trUtf8( "\xe5\x90\x8d\xe7\xa7\xb0" ) );
listOther->addColumn( trUtf8( "\xe5\x8d\x95\xe4\xbb\xb7" ) );
listOther->setGeometry( QRect( 60, 20, 171, 250 ) );
menu->insertTab( menuOther, QString("") );
myMenu = new QListView( this, "myMenu" );
myMenu->addColumn( trUtf8( "\xe5\x90\x8d\xe7\xa7\xb0" ) );
myMenu->addColumn( trUtf8( "\xe5\x8d\x95\xe4\xbb\xb7" ) );
myMenu->setGeometry( QRect( 430, 80, 131, 310 ) );
reorderBtn = new QPushButton( this, "reorderBtn" );
reorderBtn->setGeometry( QRect( 200, 420, 100, 31 ) );
total = new QLineEdit( this, "total" );
total->setGeometry( QRect( 480, 420, 104, 19 ) );
languageChange();
resize( QSize(600, 480).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
// signals and slots connections
connect( orderBtn, SIGNAL( clicked() ), this, SLOT( addItems() ) );
connect( listSnake, SIGNAL( clicked(QListViewItem*) ), this, SLOT( snakeClicked(QListViewItem*) ) );
connect( listDish, SIGNAL( clicked(QListViewItem*) ), this, SLOT( dishClicked(QListViewItem*) ) );
connect( listFood, SIGNAL( clicked(QListViewItem*) ), this, SLOT( foodClicked(QListViewItem*) ) );
connect( listOther, SIGNAL( clicked(QListViewItem*) ), this, SLOT( otherClicked(QListViewItem*) ) );
connect( listSoup, SIGNAL( clicked(QListViewItem*) ), this, SLOT( soupClicked(QListViewItem*) ) );
connect( orderBtn, SIGNAL( clicked() ), this, SLOT( sureOrder() ) );
connect( reorderBtn, SIGNAL( clicked() ), this, SLOT( removeItems() ) );
}
/*
* Destroys the object and frees any allocated resources
*/
orderDishes::~orderDishes()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void orderDishes::languageChange()
{
setCaption( trUtf8( "\xe7\x82\xb9\xe8\x8f\x9c\xe7\x95\x8c\xe9\x9d\xa2" ) );
textLabel5->setText( trUtf8( "\x3c\x70\x20\x61\x6c\x69\x67\x6e\x3d\x22\x63\x65\x6e\x74\x65\x72\x22\x3e\x3c\x68\x31\x3e\x3c\x75\x3e\x3c\x62\x3e\x3c\x70\x20\x61\x6c\x69\x67\x6e\x3d\x22\x63\x65\x6e\x74\x65\x72\x22\x3e\xe4\xbb\x8a\xe6\x97\xa5\xe8\x8f\x9c\xe8\xb0\xb1\x3c\x2f\x70\x3e\x3c\x2f\x62\x3e\x3c\x2f\x75\x3e\x3c\x2f\x68\x31\x3e\x3c\x2f\x70\x3e" ) );
textLabel5_2->setText( trUtf8( "\x3c\x70\x20\x61\x6c\x69\x67\x6e\x3d\x22\x63\x65\x6e\x74\x65\x72\x22\x3e\x3c\x68\x31\x3e\x3c\x75\x3e\x3c\x62\x3e\x3c\x70\x20\x61\x6c\x69\x67\x6e\x3d\x22\x63\x65\x6e\x74\x65\x72\x22\x3e\xe6\x82\xa8\xe7\x9a\x84\xe8\x8f\x9c\xe5\x8d\x95\x3c\x2f\x70\x3e\x3c\x2f\x62\x3e\x3c\x2f\x75\x3e\x3c\x2f\x68\x31\x3e\x3c\x2f\x70\x3e" ) );
textLabel1->setText( trUtf8( "\xe5\x90\x88\xe8\xae\xa1\xef\xbc\x9a" ) );
orderBtn->setText( trUtf8( "\xe7\xa1\xae\xe8\xae\xa4\xe7\x82\xb9\xe8\x8f\x9c" ) );
listDish->header()->setLabel( 0, trUtf8( "\xe5\x90\x8d\xe7\xa7\xb0" ) );
listDish->header()->setLabel( 1, trUtf8( "\xe5\x8d\x95\xe4\xbb\xb7" ) );
listDish->clear();
QListViewItem * item = new QListViewItem( listDish, 0 );
item->setText( 0, trUtf8( "\xe6\x9d\xad\xe5\xb7\x9e\xe5\xb0\x8f\xe7\xac\xbc\xe5\x8c\x85" ) );
item->setText( 1, tr( "3" ) );
item = new QListViewItem( listDish, item );
item->setText( 0, trUtf8( "\xe5\xb9\xb2\xe6\x8b\x8c\xe9\x9d\xa2\x20" ) );
item->setText( 1, tr( "4" ) );
item = new QListViewItem( listDish, item );
item->setText( 0, trUtf8( "\xe8\x92\xb8\xe9\xa5\xba" ) );
item->setText( 1, tr( "3" ) );
menu->changeTab( menuDish, trUtf8( "\xe7\x82\x92\xe8\x8f\x9c\xe7\xb1\xbb" ) );
listSnake->header()->setLabel( 0, trUtf8( "\xe5\x90\x8d\xe7\xa7\xb0" ) );
listSnake->header()->setLabel( 1, trUtf8( "\xe5\x8d\x95\xe4\xbb\xb7" ) );
listSnake->clear();
item = new QListViewItem( listSnake, 0 );
item->setText( 0, trUtf8( "\xe5\xae\xb6\xe9\x95\xbf\xe8\xb1\x86\xe8\x85\x90" ) );
item->setText( 1, tr( "8" ) );
item = new QListViewItem( listSnake, item );
item->setText( 0, trUtf8( "\xe5\xae\xab\xe4\xbf\x9d\xe9\xb8\xa1\xe4\xb8\x81" ) );
item->setText( 1, tr( "12" ) );
item = new QListViewItem( listSnake, item );
item->setText( 0, trUtf8( "\xe9\xb1\xbc\xe9\xa6\x99\xe8\x82\x89\xe4\xb8\x9d" ) );
item->setText( 1, tr( "12" ) );
menu->changeTab( menuSnake, trUtf8( "\xe5\xb0\x8f\xe5\x90\x83\xe7\xb1\xbb" ) );
listSoup->header()->setLabel( 0, trUtf8( "\xe5\x90\x8d\xe7\xa7\xb0" ) );
listSoup->header()->setLabel( 1, trUtf8( "\xe5\x8d\x95\xe4\xbb\xb7" ) );
listSoup->clear();
item =
没有合适的资源?快使用搜索试试~ 我知道了~
基于qt3的作业:点菜系统
共72个文件
cpp:10个
obj:10个
o:10个
3星 · 超过75%的资源 需积分: 22 26 下载量 123 浏览量
2012-04-03
14:49:23
上传
评论 4
收藏 938KB ZIP 举报
温馨提示
之前上传了个自己做的买书系统,这个是同学做的点菜系统,同样是qt3的大作业。 开始帐号是lxh,密码是123. 刚才测试可以用,作为qt课程的大作业完全够了。。
资源推荐
资源详情
资源评论
收起资源包目录
elecMenu.zip (72个子文件)
elecMenu
orderDishes.ui~ 21KB
orderDishes.cpp~ 9KB
moc_selectTable.cpp 4KB
moc_orderDishes.cpp 5KB
main.cpp~ 281B
endorder.ui.h.bak 926B
moc_login.cpp 3KB
orderDishes.ui.h~ 3KB
Makefile 6KB
login.obj 45KB
login.ui.h.bak 1KB
endorder.o 118KB
login.ui.bak 6KB
selectTable.obj 33KB
selectOrder.cpp~ 757B
endorder.ui.bak 6KB
selectTable.ui~ 6KB
endorder.obj 36KB
selectTable.ui.h~ 927B
login.h~ 998B
elecMenu.pro 443B
selectTable.o 125KB
elecMenu 744KB
moc_endorder.obj 9KB
moc_orderDishes.obj 14KB
selectTable.h 1KB
elecMenu.exe 72KB
login.ui~ 4KB
loginTable.h~ 174B
orderDishes.ui 22KB
moc_endorder.cpp 3KB
endorder.ui 5KB
orderDishes.cpp 10KB
moc_login.obj 9KB
qmake_image_collection.o 129KB
endorder.ui~ 4KB
selectOrder.h~ 351B
orderDishes.h~ 2KB
orderDishes.h 2KB
orderDishes.ui.h 3KB
login.h 1KB
endorder.h 1KB
moc_orderDishes.o 179KB
selectTable.cpp 4KB
orderDishes.obj 84KB
qmake_image_collection.obj 10KB
moc_endorder.o 174KB
selectTable.ui.h 1KB
moc_selectTable.o 176KB
login.ui 6KB
login.ui.h 1KB
orderDishes.o 171KB
selectTable.cpp~ 4KB
login.cpp~ 3KB
loginTable.cpp~ 339B
orderDishes.ui.h.bak 3KB
login.cpp 4KB
moc_login.o 174KB
login.o 121KB
endorder.cpp~ 4KB
endorder.h~ 1021B
main.cpp 281B
moc_selectTable.obj 11KB
selectTable.ui.bak 5KB
main.o 104KB
main.obj 4KB
login.ui.h~ 750B
endorder.ui.h 897B
selectTable.ui 5KB
qmake_image_collection.cpp 3KB
orderDishes.ui.bak 22KB
endorder.cpp 5KB
共 72 条
- 1
资源评论
- 阳光亮男2012-12-15不行,少了个文件
- darkyyf2013-01-09虽然最后的计算功能没有完善但整体还是不错的
lhb4103129
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于matlab实现的用于应用布格重力异常数据反演地下异常密度体.rar
- 基于matlab实现的压缩感知中迂回式匹配追踪算法 压缩感知
- mysql的介绍及安装注意事项.zip
- 软考中级数据库系统工程师真题.apkg
- 基于matlab实现的树叶图像特征分类识别,图像分析处理 分割 特征提取 分类识别等.rar
- 基于matlab实现的实现灰度预测模型的源代码.rar
- 基于matlab实现的实现不同插值方法的GUI界面设计 源程序代码.rar
- 基于matlab实现的生成Gif图片程序源代码.rar
- 基于SpringBoot的“口腔管理平台”的设计与实现.zip
- 计算机考研组成原理考前必背合集.apkg
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功