blob: e823e25fda2b1b7e45013375eeb904f9f9771243 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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();
}
|