summaryrefslogtreecommitdiff
path: root/Calculator.cpp
diff options
context:
space:
mode:
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();
+}
+