mirror of
https://github.com/UberGuidoZ/Flipper.git
synced 2024-12-25 16:00:12 +00:00
94 lines
3.0 KiB
C
94 lines
3.0 KiB
C
|
/*
|
|||
|
Unitemp - Universal temperature reader
|
|||
|
Copyright (C) 2022 Victor Nikitchuk (https://github.com/quen0n)
|
|||
|
|
|||
|
This program is free software: you can redistribute it and/or modify
|
|||
|
it under the terms of the GNU General Public License as published by
|
|||
|
the Free Software Foundation, either version 3 of the License, or
|
|||
|
(at your option) any later version.
|
|||
|
|
|||
|
This program is distributed in the hope that it will be useful,
|
|||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|||
|
GNU General Public License for more details.
|
|||
|
|
|||
|
You should have received a copy of the GNU General Public License
|
|||
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|||
|
*/
|
|||
|
#ifndef UNITEMP_SCENES
|
|||
|
#define UNITEMP_SCENES
|
|||
|
|
|||
|
#include "../unitemp.h"
|
|||
|
|
|||
|
//Виды менюшек
|
|||
|
typedef enum UnitempViews {
|
|||
|
UnitempViewGeneral,
|
|||
|
UnitempViewMainMenu,
|
|||
|
UnitempViewSettings,
|
|||
|
UnitempViewSensorsList,
|
|||
|
UnitempViewSensorEdit,
|
|||
|
UnitempViewSensorNameEdit,
|
|||
|
UnitempViewSensorActions,
|
|||
|
UnitempViewWidget,
|
|||
|
UnitempViewPopup,
|
|||
|
|
|||
|
UnitempViewsCount
|
|||
|
} UnitempViews;
|
|||
|
|
|||
|
/**
|
|||
|
* @brief Вывести всплывающее окно
|
|||
|
*
|
|||
|
* @param icon Указатель на иконку
|
|||
|
* @param header Заголовок
|
|||
|
* @param message Сообщение
|
|||
|
* @param prev_view_id ID вида куда в который нужно вернуться
|
|||
|
*/
|
|||
|
void unitemp_popup(const Icon* icon, char* header, char* message, uint32_t prev_view_id);
|
|||
|
|
|||
|
/* Общий вид на датчики */
|
|||
|
void unitemp_General_alloc(void);
|
|||
|
void unitemp_General_switch(void);
|
|||
|
void unitemp_General_free(void);
|
|||
|
|
|||
|
/* Главное меню */
|
|||
|
void unitemp_MainMenu_alloc(void);
|
|||
|
void unitemp_MainMenu_switch(void);
|
|||
|
void unitemp_MainMenu_free(void);
|
|||
|
|
|||
|
/* Настройки */
|
|||
|
void unitemp_Settings_alloc(void);
|
|||
|
void unitemp_Settings_switch(void);
|
|||
|
void unitemp_Settings_free(void);
|
|||
|
|
|||
|
/* Список датчиков */
|
|||
|
void unitemp_SensorsList_alloc(void);
|
|||
|
void unitemp_SensorsList_switch(void);
|
|||
|
void unitemp_SensorsList_free(void);
|
|||
|
|
|||
|
/* Редактор датчка */
|
|||
|
void unitemp_SensorEdit_alloc(void);
|
|||
|
//sensor - указатель на редактируемый датчик
|
|||
|
void unitemp_SensorEdit_switch(Sensor* sensor);
|
|||
|
void unitemp_SensorEdit_free(void);
|
|||
|
|
|||
|
/* Редактор имени датчика */
|
|||
|
void unitemp_SensorNameEdit_alloc(void);
|
|||
|
void unitemp_SensorNameEdit_switch(Sensor* sensor);
|
|||
|
void unitemp_SensorNameEdit_free(void);
|
|||
|
|
|||
|
/* Список действий с датчиком */
|
|||
|
void unitemp_SensorActions_alloc(void);
|
|||
|
void unitemp_SensorActions_switch(Sensor* sensor);
|
|||
|
void unitemp_SensorActions_free(void);
|
|||
|
|
|||
|
/* Виджеты */
|
|||
|
void unitemp_widgets_alloc(void);
|
|||
|
void unitemp_widgets_free(void);
|
|||
|
|
|||
|
/* Подтверждение удаления */
|
|||
|
void unitemp_widget_delete_switch(Sensor* sensor);
|
|||
|
/* Помощь */
|
|||
|
void unitemp_widget_help_switch(void);
|
|||
|
/* О приложении */
|
|||
|
void unitemp_widget_about_switch(void);
|
|||
|
#endif
|