Add AMI screen
This commit is contained in:
@ -0,0 +1,38 @@
|
||||
/*********************************************************************************/
|
||||
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
|
||||
/*********************************************************************************/
|
||||
#ifndef AMIVIEWBASE_HPP
|
||||
#define AMIVIEWBASE_HPP
|
||||
|
||||
#include <gui/common/FrontendApplication.hpp>
|
||||
#include <mvp/View.hpp>
|
||||
#include <gui/ami_screen/AMIPresenter.hpp>
|
||||
#include <touchgfx/widgets/Box.hpp>
|
||||
#include <touchgfx/widgets/Image.hpp>
|
||||
#include <touchgfx/widgets/TextArea.hpp>
|
||||
|
||||
class AMIViewBase : public touchgfx::View<AMIPresenter>
|
||||
{
|
||||
public:
|
||||
AMIViewBase();
|
||||
virtual ~AMIViewBase();
|
||||
virtual void setupScreen();
|
||||
|
||||
protected:
|
||||
FrontendApplication& application() {
|
||||
return *static_cast<FrontendApplication*>(touchgfx::Application::getInstance());
|
||||
}
|
||||
|
||||
/*
|
||||
* Member Declarations
|
||||
*/
|
||||
touchgfx::Box __background;
|
||||
touchgfx::Image logo;
|
||||
touchgfx::TextArea title;
|
||||
touchgfx::TextArea currentMission;
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
|
||||
#endif // AMIVIEWBASE_HPP
|
||||
@ -23,6 +23,9 @@ public:
|
||||
// MissionSelect
|
||||
void gotoMissionSelectScreenNoTransition();
|
||||
|
||||
// AMI
|
||||
void gotoAMIScreenNoTransition();
|
||||
|
||||
protected:
|
||||
touchgfx::Callback<FrontendApplicationBase> transitionCallback;
|
||||
FrontendHeap& frontendHeap;
|
||||
@ -30,6 +33,9 @@ protected:
|
||||
|
||||
// MissionSelect
|
||||
void gotoMissionSelectScreenNoTransitionImpl();
|
||||
|
||||
// AMI
|
||||
void gotoAMIScreenNoTransitionImpl();
|
||||
};
|
||||
|
||||
#endif // FRONTENDAPPLICATIONBASE_HPP
|
||||
|
||||
@ -14,6 +14,8 @@
|
||||
|
||||
#include <gui/missionselect_screen/MissionSelectView.hpp>
|
||||
#include <gui/missionselect_screen/MissionSelectPresenter.hpp>
|
||||
#include <gui/ami_screen/AMIView.hpp>
|
||||
#include <gui/ami_screen/AMIPresenter.hpp>
|
||||
|
||||
|
||||
/**
|
||||
@ -37,7 +39,8 @@ public:
|
||||
* @note All view types used in the application MUST be added to this list!
|
||||
*/
|
||||
typedef touchgfx::meta::TypeList< MissionSelectView,
|
||||
touchgfx::meta::Nil
|
||||
touchgfx::meta::TypeList< AMIView,
|
||||
touchgfx::meta::Nil >
|
||||
> GeneratedViewTypes;
|
||||
|
||||
/**
|
||||
@ -50,7 +53,8 @@ public:
|
||||
* @note All presenter types used in the application MUST be added to this list!
|
||||
*/
|
||||
typedef touchgfx::meta::TypeList< MissionSelectPresenter,
|
||||
touchgfx::meta::Nil
|
||||
touchgfx::meta::TypeList< AMIPresenter,
|
||||
touchgfx::meta::Nil >
|
||||
> GeneratedPresenterTypes;
|
||||
|
||||
/**
|
||||
|
||||
@ -34,6 +34,10 @@ public:
|
||||
{
|
||||
// Override and implement this function in MissionSelect
|
||||
}
|
||||
virtual void confirmMission()
|
||||
{
|
||||
// Override and implement this function in MissionSelect
|
||||
}
|
||||
|
||||
protected:
|
||||
FrontendApplication& application() {
|
||||
|
||||
Reference in New Issue
Block a user