/****************************************************************************
** Form implementation generated from reading ui file 'rg.ui'
**
** Created: 三 12月 2 14:46:28 2009
** 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 "rg.h"
#include <qvariant.h>
#include <qlineedit.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>
#include "../rg.ui.h"
/*
* Constructs a jisuan 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.
*/
jisuan::jisuan( QWidget* parent, const char* name, bool modal, WFlags fl )
: QDialog( parent, name, modal, fl )
{
if ( !name )
setName( "jisuan" );
pushButtonjia = new QPushButton( this, "pushButtonjia" );
pushButtonjia->setGeometry( QRect( 20, 50, 30, 30 ) );
pushButtonjian = new QPushButton( this, "pushButtonjian" );
pushButtonjian->setGeometry( QRect( 70, 50, 30, 30 ) );
pushButtonchen = new QPushButton( this, "pushButtonchen" );
pushButtonchen->setGeometry( QRect( 120, 50, 30, 30 ) );
pushButtonchu = new QPushButton( this, "pushButtonchu" );
pushButtonchu->setGeometry( QRect( 160, 50, 30, 30 ) );
pushButton1 = new QPushButton( this, "pushButton1" );
pushButton1->setGeometry( QRect( 20, 90, 30, 30 ) );
pushButton2 = new QPushButton( this, "pushButton2" );
pushButton2->setGeometry( QRect( 70, 90, 30, 30 ) );
pushButton3 = new QPushButton( this, "pushButton3" );
pushButton3->setGeometry( QRect( 120, 90, 30, 30 ) );
pushButton4 = new QPushButton( this, "pushButton4" );
pushButton4->setGeometry( QRect( 160, 90, 30, 30 ) );
pushButton5 = new QPushButton( this, "pushButton5" );
pushButton5->setGeometry( QRect( 20, 130, 30, 30 ) );
pushButton6 = new QPushButton( this, "pushButton6" );
pushButton6->setGeometry( QRect( 70, 130, 30, 30 ) );
pushButton7 = new QPushButton( this, "pushButton7" );
pushButton7->setGeometry( QRect( 120, 130, 30, 30 ) );
pushButton8 = new QPushButton( this, "pushButton8" );
pushButton8->setGeometry( QRect( 160, 130, 30, 30 ) );
pushButton9 = new QPushButton( this, "pushButton9" );
pushButton9->setGeometry( QRect( 20, 170, 30, 30 ) );
pushButton0 = new QPushButton( this, "pushButton0" );
pushButton0->setGeometry( QRect( 70, 170, 30, 30 ) );
pushButtondeng = new QPushButton( this, "pushButtondeng" );
pushButtondeng->setGeometry( QRect( 120, 170, 30, 30 ) );
pushButtonshan = new QPushButton( this, "pushButtonshan" );
pushButtonshan->setGeometry( QRect( 160, 170, 30, 30 ) );
lineEdit1 = new QLineEdit( this, "lineEdit1" );
lineEdit1->setGeometry( QRect( 28, 20, 160, 22 ) );
pushButton121 = new QPushButton( this, "pushButton121" );
pushButton121->setGeometry( QRect( 20, 210, 30, 31 ) );
pushButton18 = new QPushButton( this, "pushButton18" );
pushButton18->setGeometry( QRect( 70, 210, 120, 31 ) );
languageChange();
resize( QSize(219, 263).expandedTo(minimumSizeHint()) );
// signals and slots connections
connect( pushButton0, SIGNAL( clicked() ), this, SLOT( shuru() ) );
connect( pushButton1, SIGNAL( clicked() ), this, SLOT( shuru() ) );
connect( pushButton2, SIGNAL( clicked() ), this, SLOT( shuru() ) );
connect( pushButton3, SIGNAL( clicked() ), this, SLOT( shuru() ) );
connect( pushButton4, SIGNAL( clicked() ), this, SLOT( shuru() ) );
connect( pushButton5, SIGNAL( clicked() ), this, SLOT( shuru() ) );
connect( pushButton6, SIGNAL( clicked() ), this, SLOT( shuru() ) );
connect( pushButton7, SIGNAL( clicked() ), this, SLOT( shuru() ) );
connect( pushButton8, SIGNAL( clicked() ), this, SLOT( shuru() ) );
connect( pushButton9, SIGNAL( clicked() ), this, SLOT( shuru() ) );
connect( pushButtonchen, SIGNAL( clicked() ), this, SLOT( suanfa() ) );
connect( pushButtonchu, SIGNAL( clicked() ), this, SLOT( suanfa() ) );
connect( pushButtonjia, SIGNAL( clicked() ), this, SLOT( suanfa() ) );
connect( pushButtonjian, SIGNAL( clicked() ), this, SLOT( suanfa() ) );
connect( pushButton121, SIGNAL( clicked() ), this, SLOT( dian() ) );
connect( pushButtondeng, SIGNAL( clicked() ), this, SLOT( jieguo() ) );
connect( pushButtonshan, SIGNAL( clicked() ), this, SLOT( tuige() ) );
}
/*
* Destroys the object and frees any allocated resources
*/
jisuan::~jisuan()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void jisuan::languageChange()
{
setCaption( tr( "jisuan" ) );
pushButtonjia->setText( tr( "+" ) );
pushButtonjian->setText( tr( "-" ) );
pushButtonchen->setText( tr( "*" ) );
pushButtonchu->setText( tr( "/" ) );
pushButton1->setText( tr( "1" ) );
pushButton2->setText( tr( "2" ) );
pushButton3->setText( tr( "3" ) );
pushButton4->setText( tr( "4" ) );
pushButton5->setText( tr( "5" ) );
pushButton6->setText( tr( "6" ) );
pushButton7->setText( tr( "7" ) );
pushButton8->setText( tr( "8" ) );
pushButton9->setText( tr( "9" ) );
pushButton0->setText( tr( "0" ) );
pushButtondeng->setText( tr( "=" ) );
pushButtonshan->setText( tr( "c" ) );
pushButton121->setText( tr( "." ) );
pushButton18->setText( trUtf8( "鲍日光-08" ) );
}
评论0