Logo Search packages:      
Sourcecode: qt-at-spi version File versions  Download package

Public Member Functions | Private Types | Private Slots | Private Member Functions | Private Attributes

Calculator Class Reference

[0] More...

#include <calculator.h>

Collaboration diagram for Calculator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Calculator (QWidget *parent=0)
 [0]

Private Types

enum  { NumDigitButtons = 10 }
 

[9] //! [10]


Private Slots

void additiveOperatorClicked ()
 [9]
void addToMemory ()
void backspaceClicked ()
 [24]
void changeSignClicked ()
 [22]
void clear ()
 [26]
void clearAll ()
 [28]
void clearMemory ()
 [30]
void digitClicked ()
 [6]
void equalClicked ()
 [18]
void multiplicativeOperatorClicked ()
 [17]
void pointClicked ()
 [20]
void readMemory ()
void setMemory ()
void unaryOperatorClicked ()
 [7]

Private Member Functions

void abortOperation ()
 [34]
bool calculate (double rightOperand, const QString &pendingOperator)
 [36]
ButtoncreateButton (const QString &text, const char *member)
 [0]

Private Attributes

ButtondigitButtons [NumDigitButtons]
QLineEdit * display
 [8]
double factorSoFar
 [4] //! [5]
QString pendingAdditiveOperator
 [5] //! [6]
QString pendingMultiplicativeOperator
 [6] //! [7]
double sumInMemory
 [2]
double sumSoFar
 [3] //! [4]
bool waitingForOperand
 [7] //! [8]

Detailed Description

[0]

Definition at line 29 of file calculator.h.


The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index