www.pudn.com > routeplan_mainmenu.rar > quanguo.cpp
/**************************************************************************** ** Form implementation generated from reading ui file 'quanguo.ui' ** ** Created: 鍏� 7鏈�21 14:03:14 2007 ** by: The User Interface Compiler ($Id: qt/main.cpp 3.1.1 edited Nov 21 17:40 $) ** ** WARNING! All changes made in this file will be lost! ****************************************************************************/ #include "quanguo.h" #include "chaxun.h" #include "mainmenu.h" #include#include #include #include #include #include #include #include #include /* * Constructs a quanguo 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. */ quanguo::quanguo( QWidget* parent, const char* name, WFlags fl ) : QDialog( parent, name, TRUE ) { if ( !name ) setName( "quanguo" ); setMaximumSize( QSize( 200, 176 ) ); pushButton93_9 = new QPushButton( this, "pushButton93_9" ); pushButton93_9->setGeometry( QRect( 100, 370, 81, 22 ) ); pushButton93_9->setMaximumSize( QSize( 85, 22 ) ); listBox4 = new QListBox( this, "listBox4" ); listBox4->setGeometry( QRect( 4, 28, 85, 140 ) ); fanhuibutton = new QPushButton( this, "fanhuibutton" ); fanhuibutton->setGeometry( QRect( 4, 4, 85, 22 ) ); widgetStack5 = new QWidgetStack( this, "widgetStack5" ); widgetStack5->setGeometry( QRect( 90, 0, 100, 490 ) ); page0 = new QWidget( widgetStack5, "page" ); beijingquantibutton = new QPushButton( page0, "beijingquantibutton" ); beijingquantibutton->setGeometry( QRect( 3, 11, 84, 22 ) ); beijingquantibutton->setMaximumSize( QSize( 85, 22 ) ); dongchenqubutton = new QPushButton( page0, "dongchenqubutton" ); dongchenqubutton->setGeometry( QRect( 3, 39, 84, 22 ) ); dongchenqubutton->setMaximumSize( QSize( 85, 22 ) ); chongwenqubutton = new QPushButton( page0, "chongwenqubutton" ); chongwenqubutton->setGeometry( QRect( 3, 67, 84, 22 ) ); chongwenqubutton->setMaximumSize( QSize( 85, 22 ) ); xuanwuqubutton = new QPushButton( page0, "xuanwuqubutton" ); xuanwuqubutton->setGeometry( QRect( 3, 95, 84, 22 ) ); xuanwuqubutton->setMaximumSize( QSize( 85, 22 ) ); chaoyanqubutton = new QPushButton( page0, "chaoyanqubutton" ); chaoyanqubutton->setGeometry( QRect(3, 123, 84, 22 ) ); chaoyanqubutton->setMaximumSize( QSize( 85, 22 ) ); feitaiqubutton = new QPushButton( page0, "feitaiqubutton" ); feitaiqubutton->setGeometry( QRect( 3, 151, 84, 22 ) ); feitaiqubutton->setMaximumSize( QSize( 85, 22 ) ); shijingshanqubutton = new QPushButton( page0, "shijingshanqubutton" ); shijingshanqubutton->setGeometry( QRect( 3, 179, 84, 22 ) ); shijingshanqubutton->setMaximumSize( QSize( 85, 22 ) ); haidianqubutton = new QPushButton( page0, "haidianqubutton" ); haidianqubutton->setGeometry( QRect( 3, 207, 84, 22 ) ); haidianqubutton->setMaximumSize( QSize( 85, 22 ) ); mengtougouqubutton = new QPushButton( page0, "mengtougouqubutton" ); mengtougouqubutton->setGeometry( QRect( 3, 235, 84, 22 ) ); mengtougouqubutton->setMaximumSize( QSize( 85, 22 ) ); fangshanqubutton = new QPushButton( page0, "fangshanqubutton" ); fangshanqubutton->setGeometry( QRect( 3, 263, 84, 22 ) ); fangshanqubutton->setMaximumSize( QSize( 85, 22 ) ); tongzhouqubutton = new QPushButton( page0, "tongzhouqubutton" ); tongzhouqubutton->setGeometry( QRect( 3, 291, 84, 22 ) ); tongzhouqubutton->setMaximumSize( QSize( 85, 22 ) ); chanpingqubutton = new QPushButton( page0, "chanpingqubutton" ); chanpingqubutton->setGeometry( QRect( 3, 319, 84, 22 ) ); chanpingqubutton->setMaximumSize( QSize( 85, 22 ) ); daxingqubutton = new QPushButton( page0, "daxingqubutton" ); daxingqubutton->setGeometry( QRect( 3, 347, 84, 22 ) ); daxingqubutton->setMaximumSize( QSize( 85, 22 ) ); huairouqubutton = new QPushButton( page0, "huairouqubutton" ); huairouqubutton->setGeometry( QRect( 3, 375, 84, 22 ) ); huairouqubutton->setMaximumSize( QSize( 85, 22 ) ); pingguqubutton = new QPushButton( page0, "pingguqubutton" ); pingguqubutton->setGeometry( QRect( 3, 403, 84, 22 ) ); pingguqubutton->setMaximumSize( QSize( 85, 22 ) ); miyunxianbutton = new QPushButton( page0, "miyunxianbutton" ); miyunxianbutton->setGeometry( QRect( 3, 431, 84, 22 ) ); miyunxianbutton->setMaximumSize( QSize( 85, 22 ) ); yanqingxianbutton = new QPushButton( page0, "yanqingxianbutton" ); yanqingxianbutton->setGeometry( QRect( 3, 459, 84, 22 ) ); yanqingxianbutton->setMaximumSize( QSize( 85, 22 ) ); widgetStack5->addWidget( page0, 0 ); page1 = new QWidget( widgetStack5, "page1" ); tianjingquantibutton = new QPushButton( page1, "tianjingquantibutton" ); tianjingquantibutton->setGeometry( QRect( 3, 11, 84, 22 ) ); tianjingquantibutton->setMaximumSize( QSize( 85, 22 ) ); widgetStack5->addWidget( page1, 1 ); page2 = new QWidget( widgetStack5, "page2" ); hebeiquantibutton = new QPushButton( page2, "hebeiquantibutton" ); hebeiquantibutton->setGeometry( QRect( 3, 11, 84, 22 ) ); hebeiquantibutton->setMaximumSize( QSize( 85, 22 ) ); widgetStack5->addWidget( page2, 2 ); page3 = new QWidget( widgetStack5, "page3" ); shanxiquantibutton = new QPushButton( page3, "shanxiquantibutton" ); shanxiquantibutton->setGeometry( QRect( 3, 11, 84, 22 ) ); shanxiquantibutton->setMaximumSize( QSize( 85, 22 ) ); widgetStack5->addWidget( page3, 3 ); languageChange(); resize( QSize(200, 176).expandedTo(minimumSizeHint()) ); QScrollView *s =new QScrollView(this); s->setGeometry (90,0,105,176); s->addChild(widgetStack5); widgetStack5->setMinimumSize(90,490); s->setHScrollBarMode(QScrollView::AlwaysOff); // signals and slots connections connect( listBox4, SIGNAL( highlighted(int) ), widgetStack5, SLOT( raiseWidget(int) ) ); connect(beijingquantibutton, SIGNAL(clicked()), this, SLOT(close())); connect(beijingquantibutton, SIGNAL(clicked()), this, SLOT(chaxundialog())); connect(fanhuibutton,SIGNAL(clicked()), this, SLOT(close())); connect(fanhuibutton,SIGNAL(clicked()), this, SLOT(fanhuidialog())); } /* * Destroys the object and frees any allocated resources */ quanguo::~quanguo() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void quanguo::languageChange() { setCaption( tr( "quanguo" ) ); pushButton93_9->setText( QString::null ); listBox4->clear(); listBox4->insertItem( tr( "beijing" ) ); listBox4->insertItem( tr( "tianjing" ) ); listBox4->insertItem( tr( "hebei" ) ); listBox4->insertItem( tr( "shanxi" ) ); listBox4->insertItem( tr( "neimenggu" ) ); listBox4->insertItem( tr( "liaoning" ) ); listBox4->insertItem( tr( "jilinsheng" ) ); listBox4->insertItem( tr( "heilonjiang" ) ); listBox4->insertItem( tr( "zhejiang" ) ); listBox4->insertItem( tr( "anhui" ) ); beijingquantibutton->setText( tr( "beijingquanti" ) ); dongchenqubutton->setText( tr( "dongchengqu" ) ); chongwenqubutton->setText( tr( "chongwenqu" ) ); xuanwuqubutton->setText( tr( "xuanwuqu" ) ); chaoyanqubutton->setText( tr( "chaoyanqu" ) ); feitaiqubutton->setText( tr( "feitaiqu" ) ); shijingshanqubutton->setText( tr( "shijingshanqu" ) ); haidianqubutton->setText( tr( "haidianqu" ) ); mengtougouqubutton->setText( tr( "mentougouqu" ) ); fangshanqubutton->setText( tr( "fangshanqu" ) ); tongzhouqubutton->setText( tr( "tongzhouqu" ) ); chanpingqubutton->setText( tr( "chanpingqu" ) ); daxingqubutton->setText( tr( "daxingqu" ) ); huairouqubutton->setText( tr( "huairouqu" ) ); pingguqubutton->setText( tr( "pingguqu" ) ); miyunxianbutton->setText( tr( "miyunxian" ) ); yanqingxianbutton->setText( tr( "yanqingxian" ) ); tianjingquantibutton->setText( tr( "tianjingquanti" ) ); hebeiquantibutton->setText( tr( "hebeiquanti" ) ); shanxiquantibutton->setText( tr( "shanxiquanti" ) ); fanhuibutton->setText( tr( "fanhui" ) ); } void quanguo::chaxundialog() { chaxun *q= new chaxun(0,"chaxun"); q->exec(); delete q; //mainmenubase *f= new mainmenubase(0,"mainmenu"); //f->exec(); //delete f; } void quanguo::fanhuidialog() { mainmenubase *q= new mainmenubase(0,"chaxun"); q->exec(); delete q; }