// $Id: calc.h,v 1.26 2001/09/27 08:24:57 wyy Exp $ // // William Emmanuel S. YU // Ateneo de Manila University, Philippines // // QT C++ Calculator // Copyright (C) 2002 William Emmanuel S. Yu // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // #ifndef CALC_H #define CALC_H #include "FCalc.h" #include #include #include #include #include #include #include #include class FCalcMethod : public FCalc { Q_OBJECT QString* myString; double operand1; double operand2; double result; int myOperator; int myMonitor; public: FCalcMethod( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); ~FCalcMethod(); public slots: void add(); void allClear(); void divide(); void equals(); void modulo(); void multiply(); void backSpace(); void print0(); void print1(); void print2(); void print3(); void print4(); void print5(); void print6(); void print7(); void print8(); void print9(); void printDot(); void printSign(); void push(); void psqrt(); void subtract(); }; #endif // CALC_H