summaryrefslogtreecommitdiff
path: root/CalculatorWindow.h
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2007-12-20 00:39:33 +0000
committerMatt Turner <mattst88@gmail.com>2007-12-20 00:39:33 +0000
commit7f01dceac3c6f5be7c6745baf14c4b0d092aa31f (patch)
treea8bc8c92fd3c9d61a17e2afaf8e8bdab4f210a66 /CalculatorWindow.h
Create branch to allow shortcuts for buttons. Partial rewrite :(CalculatorButton
git-svn-id: svn://mattst88.com/svn/calculator/branches/CalculatorButton@9 40705d3a-cdd4-446d-8ced-669f9f7342eb
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;
+};
+