From 7f01dceac3c6f5be7c6745baf14c4b0d092aa31f Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Thu, 20 Dec 2007 00:39:33 +0000 Subject: Create branch to allow shortcuts for buttons. Partial rewrite :( git-svn-id: svn://mattst88.com/svn/calculator/branches/CalculatorButton@9 40705d3a-cdd4-446d-8ced-669f9f7342eb --- CalculatorWindow.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 CalculatorWindow.h (limited to 'CalculatorWindow.h') 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; +}; + -- cgit v1.2.3