blob: 8a29e6a5f24a5e150a8b416a943531854d815562 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
class CalculatorWindow : public ApplicationWindow {
public:
CalculatorWindow( const Rect &rFrame,
const String& szTitle,
unsigned int nWindowLayoutFlags,
unsigned int uiFlags = 0);
void OnCommand( const MessageCommand *pMessage);
private:
void Clear();
void doOperation( int next_operation);
TextView * pText;
String * line;
double total;
double operand;
int operation;
bool new_operand;
};
|