You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.0 KiB
41 lines
1.0 KiB
2 years ago
|
#include <eez/gui/gui.h>
|
||
|
|
||
|
#include "../gui/app_context.h"
|
||
|
#include "../gui/document.h"
|
||
|
|
||
|
#include "front_panel.h"
|
||
|
|
||
|
namespace eez {
|
||
|
namespace gui {
|
||
|
|
||
|
FrontPanelAppContext g_frontPanelAppContext;
|
||
|
|
||
|
////////////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
void FrontPanelAppContext::stateManagment() {
|
||
|
AppContext::stateManagment();
|
||
|
|
||
|
if (getActivePageId() == PAGE_ID_NONE) {
|
||
|
showPage(getMainPageId());
|
||
|
}
|
||
|
}
|
||
|
|
||
|
int FrontPanelAppContext::getMainPageId() {
|
||
|
return PAGE_ID_FRONT_PANEL;
|
||
|
}
|
||
|
|
||
|
int FrontPanelAppContext::getLongTouchActionHook(const WidgetCursor &widgetCursor) {
|
||
|
return AppContext::getLongTouchActionHook(widgetCursor);
|
||
|
}
|
||
|
|
||
|
////////////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
void data_main_app_view(DataOperationEnum operation, const WidgetCursor &widgetCursor, Value &value) {
|
||
|
if (operation == DATA_OPERATION_GET) {
|
||
|
value = Value(&g_deviceAppContext);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
} // namespace gui
|
||
|
} // namespace eez
|