summaryrefslogtreecommitdiff
path: root/CalculatorWindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'CalculatorWindow.h')
-rw-r--r--CalculatorWindow.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/CalculatorWindow.h b/CalculatorWindow.h
new file mode 100644
index 0000000..8a29e6a
--- /dev/null
+++ b/CalculatorWindow.h
@@ -0,0 +1,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;
+};
+