diff options
author | Matt Turner <mattst88@gmail.com> | 2007-12-16 20:11:15 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2007-12-16 20:11:15 +0000 |
commit | c9858e5d78afe394c74ed138d62fbc45881939c8 (patch) | |
tree | 99d76f6500596aed764bf008ae685b476e49874c /calculator.h | |
parent | 73a5f11d23e07ce982a66ce5e24f5b3f8fea1a0f (diff) |
Add buttons. Compile with -W -Wall.
git-svn-id: svn://mattst88.com/svn/calculator/trunk@4 40705d3a-cdd4-446d-8ced-669f9f7342eb
Diffstat (limited to 'calculator.h')
-rwxr-xr-x | calculator.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/calculator.h b/calculator.h new file mode 100755 index 0000000..f6edfaa --- /dev/null +++ b/calculator.h @@ -0,0 +1,38 @@ +#include <gui/ApplicationWindow.h> +#include <gui/Application.h> + +using namespace SkyGI; + +#define BUTTON_ZERO 0 +#define BUTTON_ONE 1 +#define BUTTON_TWO 2 +#define BUTTON_THREE 3 +#define BUTTON_FOUR 4 +#define BUTTON_FIVE 5 +#define BUTTON_SIX 6 +#define BUTTON_SEVEN 7 +#define BUTTON_EIGHT 8 +#define BUTTON_NINE 9 +#define BUTTON_PLUS 10 +#define BUTTON_MINUS 11 +#define BUTTON_TIMES 12 +#define BUTTON_DIVIDE 13 +#define BUTTON_EQUALS 14 +#define BUTTON_POINT 15 +#define BUTTON_SIGN 16 +#define BUTTON_CLEAR 17 + +class Calculator : public Application { + public: + Calculator(int argc, char *argv[]); +}; + +class CalculatorWindow : public ApplicationWindow { + public: + CalculatorWindow( const Rect &rFrame, + const String& szTitle, + unsigned int nWindowLayoutFlags, + unsigned int uiFlags = 0); + void OnCommand( const MessageCommand *pMessage); + +}; |