Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

simpleimpl.cpp

Go to the documentation of this file.
00001 /**********************************************************************
00002 ** Copyright (C) 2000 Trolltech AS.  All rights reserved.
00003 **
00004 ** This file is part of Qtopia Environment.
00005 **
00006 ** This file may be distributed and/or modified under the terms of the
00007 ** GNU General Public License version 2 as published by the Free Software
00008 ** Foundation and appearing in the file LICENSE.GPL included in the
00009 ** packaging of this file.
00010 **
00011 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00012 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00013 **
00014 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
00015 **
00016 ** Contact info@trolltech.com if any conditions of this licensing are
00017 ** not clear to you.
00018 **
00019 **********************************************************************/
00020 
00021 #include <qpushbutton.h>
00022 #include <qlcdnumber.h>
00023 
00024 #include "simpleimpl.h"
00025 #include "stdinstructions.h"
00026 
00027 void FormSimpleImpl::CEClicked() {
00028     engine->hardReset();
00029 }
00030 
00031 void FormSimpleImpl::MCClicked() {
00032     engine->memClear();
00033 }
00034 
00035 void FormSimpleImpl::MRClicked() {
00036     engine->memRecall();
00037 }
00038 
00039 void FormSimpleImpl::MPlusClicked() {
00040     engine->memSave();
00041 }
00042 
00043 void FormSimpleImpl::evalClicked() {
00044     engine->eval();
00045 }
00046 
00047 void FormSimpleImpl::addClicked ()
00048 {
00049   engine->pushInstruction (new iAdd ());
00050 }
00051 
00052 void FormSimpleImpl::subClicked ()
00053 {
00054   engine->pushInstruction (new iSub ());
00055 }
00056 
00057 void FormSimpleImpl::mulClicked ()
00058 {
00059   engine->pushInstruction (new iMul ());
00060 }
00061 
00062 void FormSimpleImpl::divClicked ()
00063 {
00064   engine->pushInstruction (new iDiv ());
00065 }
00066 
00067 void FormSimpleImpl::decimalClicked ()
00068 {
00069   engine->pushValue ('.');
00070 }
00071 
00072 void FormSimpleImpl::val1Clicked ()
00073 {
00074   engine->pushValue ('1');
00075 }
00076 
00077 void FormSimpleImpl::val2Clicked ()
00078 {
00079   engine->pushValue ('2');
00080 }
00081 
00082 void FormSimpleImpl::val3Clicked ()
00083 {
00084   engine->pushValue ('3');
00085 }
00086 
00087 void FormSimpleImpl::val4Clicked ()
00088 {
00089   engine->pushValue ('4');
00090 }
00091 
00092 void FormSimpleImpl::val5Clicked ()
00093 {
00094   engine->pushValue ('5');
00095 }
00096 
00097 void FormSimpleImpl::val6Clicked ()
00098 {
00099   engine->pushValue ('6');
00100 }
00101 
00102 void FormSimpleImpl::val7Clicked ()
00103 {
00104   engine->pushValue ('7');
00105 }
00106 
00107 void FormSimpleImpl::val8Clicked ()
00108 {
00109   engine->pushValue ('8');
00110 }
00111 
00112 void FormSimpleImpl::val9Clicked ()
00113 {
00114   engine->pushValue ('9');
00115 }
00116 
00117 void FormSimpleImpl::val0Clicked ()
00118 {
00119   engine->pushValue ('0');
00120 }

Generated on Sat Nov 5 16:15:58 2005 for OPIE by  doxygen 1.4.2