summaryrefslogtreecommitdiff
path: root/Calculator.cpp
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 /Calculator.cpp
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 'Calculator.cpp')
-rwxr-xr-xCalculator.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/Calculator.cpp b/Calculator.cpp
new file mode 100755
index 0000000..e823e25
--- /dev/null
+++ b/Calculator.cpp
@@ -0,0 +1,24 @@
+#include "Calculator.h"
+
+Calculator::Calculator(int argc, char* argv[]):
+ Application("application/x-vnd.Calculator", argc, argv) {
+
+ Rect r(Point(100, 100), Point(275, 275));
+
+ CalculatorWindow * pCalculatorWindow =
+ new CalculatorWindow(r, "Calculator", WINDOW_LAYOUT_NOTHING,
+ APPLICATION_WINDOW_NO_VIEW | WINDOW_FLAG_NOT_SIZEABLE);
+
+ pCalculatorWindow->GetTitleWindow()->SetFlags(
+ (TitleWindowFlags)(pCalculatorWindow->GetTitleWindow()->GetFlags())
+ );
+
+ pCalculatorWindow->Show();
+}
+
+int main(int argc, char *argv[]) {
+ Calculator pCalculator(argc, argv);
+
+ return pCalculator.Run();
+}
+