Repository navigation
Expand file tree
/
Copy pathMyAppConfig.hpp
More file actions
55 lines (48 loc) · 1.54 KB
/
Copy pathMyAppConfig.hpp
File metadata and controls
55 lines (48 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef LOKA_TUTORIAL_APP_CONFIG_HPP
#define LOKA_TUTORIAL_APP_CONFIG_HPP
#include "app/core/AppComposition.hpp"
#include "app/core/AppConfigurable.hpp"
#include "app/Menu.hpp"
#include "app/core/WindowDefinition.hpp"
#include "app/nodes/boundary/StdComposition.hpp"
#include "DoItYourselfNode.hpp"
#include "Step1Node.hpp"
#include "Step2Node.hpp"
#include "Step3Node.hpp"
#include "Step4Node.hpp"
#include "Step5Node.hpp"
class TutorialAppConfig : public AppConfigurable
{
public:
explicit TutorialAppConfig(PlatformContext *ctx)
: AppConfigurable(ctx)
{
}
virtual void compose(AppComposition &c)
{
typedef tutorial::DoItYourselfNode TutorialNode;
// typedef tutorial::Step1Node TutorialNode;
// typedef tutorial::Step2Node TutorialNode;
// typedef tutorial::Step3Node TutorialNode;
// typedef tutorial::Step4Node TutorialNode;
// typedef tutorial::Step5Node TutorialNode;
c << WindowDef(this->productionWindowProps(
loka::app::scene::Boundary<TutorialNode>()));
}
virtual void composeDefaultMenu(loka::app::MenuComposition &c)
{
tutorial::DeclareTutorialMenu(c);
}
protected:
/** Declares Tutorial's production window presentation around a supplied
scene so non-production vehicles cannot drift its title or frame. */
WindowProps productionWindowProps(const loka::app::scene::NodeDefinitionBase &scene) const
{
return WindowProps()
.frame(60, 60, 360, 280)
.scene(scene)
.title("LokaTutorial")
.visible(true);
}
};
#endif // LOKA_TUTORIAL_APP_CONFIG_HPP