- WiFi Connect app is now hidden by default, but accessible at the bottom of the WiFi Manage app when WiFi is turned on. - WiFi service now turns on WiFi when calling connect() and WiFi is not on. - Removed `blocking` option for `service::loader::startApp()`. This feature was unused and complex. - Various apps: Moved private headers into Private/ folder. - Various apps: created start() function for easy starting. - Added documentation to all TactilityC APIs - Refactored various `enum` into `class enum` - Refactor M5Stack `initBoot()` (but VBus is still 0V for some reason)
43 lines
850 B
C++
43 lines
850 B
C++
#include "Timer.h"
|
|
#include "TactilityConfig.h"
|
|
|
|
#if TT_FEATURE_SCREENSHOT_ENABLED
|
|
|
|
#pragma once
|
|
|
|
#include "app/AppContext.h"
|
|
#include "lvgl.h"
|
|
|
|
namespace tt::app::screenshot {
|
|
|
|
class ScreenshotUi {
|
|
|
|
lv_obj_t* modeDropdown = nullptr;
|
|
lv_obj_t* pathTextArea = nullptr;
|
|
lv_obj_t* startStopButtonLabel = nullptr;
|
|
lv_obj_t* timerWrapper = nullptr;
|
|
lv_obj_t* delayTextArea = nullptr;
|
|
std::unique_ptr<Timer> updateTimer;
|
|
|
|
void createTimerSettingsWidgets(lv_obj_t* parent);
|
|
void createModeSettingWidgets(lv_obj_t* parent);
|
|
void createFilePathWidgets(lv_obj_t* parent);
|
|
|
|
void updateScreenshotMode();
|
|
|
|
public:
|
|
|
|
ScreenshotUi();
|
|
~ScreenshotUi();
|
|
|
|
void createWidgets(const AppContext& app, lv_obj_t* parent);
|
|
void onStartPressed();
|
|
void onModeSet();
|
|
void onTimerTick();
|
|
};
|
|
|
|
|
|
} // namespace
|
|
|
|
#endif
|