Bsongis/refactoring before x10 ui merge (#6678)

UI functions refactoring
This commit is contained in:
Bertrand Songis
2019-08-28 17:31:26 +02:00
committed by GitHub
parent ebb1cb7cb3
commit f6646b0190
20 changed files with 409 additions and 256 deletions
-6
View File
@@ -26,12 +26,6 @@ set(GUI_SRC
view_statistics.cpp
)
set(SRC
${SRC}
gui/common/widgets.cpp
gui/common/arm/widgets.cpp
)
if(FLIGHT_MODES)
set(GUI_SRC
${GUI_SRC}
@@ -18,11 +18,11 @@
* GNU General Public License for more details.
*/
#ifndef _WIDGETS_H_
#define _WIDGETS_H_
#ifndef _DRAW_FUNCTIONS_H_
#define _DRAW_FUNCTIONS_H_
#include "opentx.h"
#include <stdio.h>
#include "common/colorlcd/draw_functions.h"
#define OPTION_MENU_NO_FOOTER 0x01
#define OPTION_MENU_TITLE_BAR 0x02
@@ -78,4 +78,4 @@ void drawTrims(uint8_t flightMode);
void drawReceiverName(coord_t x, coord_t y, uint8_t moduleIdx, uint8_t receiverIdx, LcdFlags flags);
#endif // _WIDGETS_H_
#endif // _DRAW_FUNCTIONS_H_
+1 -1
View File
@@ -24,7 +24,7 @@
#include "gui_common.h"
#include "lcd.h"
#include "menus.h"
#include "widgets.h"
#include "draw_functions.h"
#include "bitmaps.h"
#include "theme.h"
+1
View File
@@ -18,6 +18,7 @@
* GNU General Public License for more details.
*/
#include <stdio.h>
#include "opentx.h"
unsigned int Topbar::getZonesCount() const