New Table widget
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
#define _LIBOPENUI_CONFIG_H_
|
||||
|
||||
#include "debug.h"
|
||||
#include "libopenui_types.h"
|
||||
#include "libopenui_defines.h"
|
||||
#include "colors.h"
|
||||
#include "board.h"
|
||||
#include "keys.h"
|
||||
@@ -32,7 +32,6 @@ typedef uint16_t pixel_t;
|
||||
constexpr uint32_t MENU_HEADER_BUTTON_WIDTH = 33;
|
||||
constexpr uint32_t MENU_HEADER_BUTTONS_LEFT = 47;
|
||||
|
||||
#define MENU_TOOLTIPS
|
||||
constexpr uint32_t MENU_HEADER_HEIGHT = 45;
|
||||
constexpr uint32_t MENU_TITLE_TOP = 48;
|
||||
constexpr uint32_t MENU_TITLE_HEIGHT = 21;
|
||||
@@ -58,10 +57,6 @@ constexpr uint32_t NUM_BODY_LINES = MENU_BODY_HEIGHT / PAGE_LINE_
|
||||
constexpr uint32_t FIELD_PADDING_LEFT = 3;
|
||||
constexpr uint32_t FIELD_PADDING_TOP = 0;
|
||||
|
||||
constexpr uint32_t INVERT_HORZ_MARGIN = 2;
|
||||
constexpr uint32_t INVERT_VERT_MARGIN = 1;
|
||||
constexpr uint32_t INVERT_LINE_HEIGHT = 20;
|
||||
|
||||
constexpr uint32_t CURVE_SIDE_WIDTH = 100;
|
||||
constexpr uint32_t CURVE_CENTER_X = LCD_W - CURVE_SIDE_WIDTH - 7;
|
||||
constexpr uint32_t CURVE_CENTER_Y = 151;
|
||||
@@ -130,7 +125,10 @@ enum LcdColorIndex
|
||||
BARGRAPH2_COLOR_INDEX,
|
||||
BARGRAPH_BGCOLOR_INDEX,
|
||||
SCROLLBOX_COLOR_INDEX,
|
||||
LCD_COLOR_COUNT
|
||||
LCD_COLOR_COUNT,
|
||||
|
||||
TABLE_HEADER_BGCOLOR_INDEX,
|
||||
TABLE_BGCOLOR_INDEX,
|
||||
};
|
||||
|
||||
enum FontIndex
|
||||
@@ -160,6 +158,10 @@ constexpr coord_t MENUS_FOOTER_HEIGHT = 0;
|
||||
constexpr coord_t MENUS_MIN_HEIGHT = 2 * MENUS_LINE_HEIGHT - 1;
|
||||
constexpr coord_t MENUS_MAX_HEIGHT = 7 * MENUS_LINE_HEIGHT - 1;
|
||||
constexpr coord_t MODEL_SELECT_FOOTER_HEIGHT = 24;
|
||||
constexpr coord_t SCROLLBAR_WIDTH = 3;
|
||||
|
||||
constexpr LcdFlags TABLE_HEADER_FONT = FONT(STD);
|
||||
constexpr LcdFlags TABLE_BODY_FONT = FONT(STD);
|
||||
|
||||
constexpr int CJK_FIRST_LETTER_INDEX = 187;
|
||||
|
||||
|
||||
@@ -7,7 +7,9 @@ set(PWR_BUTTON "PRESS" CACHE STRING "Pwr button type (PRESS/SWITCH)")
|
||||
set(CPU_TYPE STM32F4)
|
||||
set(HSE_VALUE 12000000)
|
||||
set(SDCARD YES)
|
||||
set(EEPROM SDCARD)
|
||||
set(SDCARD YES)
|
||||
set(STORAGE SDCARD)
|
||||
set(STORAGE_FORMAT BIN)
|
||||
set(HAPTIC YES)
|
||||
set(GUI_DIR colorlcd)
|
||||
# set(NAVIGATION_TYPE touch)
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#define _LIBOPENUI_CONFIG_H_
|
||||
|
||||
#include "debug.h"
|
||||
#include "libopenui_types.h"
|
||||
#include "libopenui_defines.h"
|
||||
#include "colors.h"
|
||||
#include "board.h"
|
||||
#include "keys.h"
|
||||
@@ -32,7 +32,6 @@ typedef uint16_t pixel_t;
|
||||
constexpr uint32_t MENU_HEADER_BUTTON_WIDTH = 60;
|
||||
constexpr uint32_t MENU_HEADER_BUTTONS_LEFT = MENU_HEADER_BUTTON_WIDTH;
|
||||
|
||||
#define MENU_TOOLTIPS
|
||||
constexpr uint32_t MENU_HEADER_HEIGHT = 60;
|
||||
constexpr uint32_t MENU_TITLE_TOP = 61;
|
||||
constexpr uint32_t MENU_TITLE_HEIGHT = 22;
|
||||
@@ -73,8 +72,6 @@ constexpr uint32_t MENUS_TOOLBAR_BUTTON_WIDTH = 50;
|
||||
constexpr uint32_t MENUS_TOOLBAR_BUTTON_PADDING = 11;
|
||||
constexpr rect_t MENUS_TOOLBAR_RECT = { 35, 95, 50, 370 };
|
||||
|
||||
//constexpr uint32_t SUBMENU_LINE_WIDTH = 230;
|
||||
|
||||
constexpr uint32_t ALERT_FRAME_TOP = 70;
|
||||
constexpr uint32_t ALERT_FRAME_HEIGHT = (LCD_H - 2 * ALERT_FRAME_TOP);
|
||||
constexpr uint32_t ALERT_BITMAP_TOP = ALERT_FRAME_TOP + 15;
|
||||
@@ -128,7 +125,10 @@ enum LcdColorIndex
|
||||
BARGRAPH2_COLOR_INDEX,
|
||||
BARGRAPH_BGCOLOR_INDEX,
|
||||
SCROLLBOX_COLOR_INDEX,
|
||||
LCD_COLOR_COUNT
|
||||
LCD_COLOR_COUNT,
|
||||
|
||||
TABLE_HEADER_BGCOLOR_INDEX,
|
||||
TABLE_BGCOLOR_INDEX,
|
||||
};
|
||||
|
||||
enum FontIndex
|
||||
@@ -157,8 +157,11 @@ constexpr coord_t MENUS_HEADER_HEIGHT = 40;
|
||||
constexpr coord_t MENUS_FOOTER_HEIGHT = 0;
|
||||
constexpr coord_t MENUS_MIN_HEIGHT = 2 * MENUS_LINE_HEIGHT - 1;
|
||||
constexpr coord_t MENUS_MAX_HEIGHT = 7 * MENUS_LINE_HEIGHT - 1;
|
||||
|
||||
constexpr coord_t MODEL_SELECT_FOOTER_HEIGHT = 24;
|
||||
constexpr coord_t SCROLLBAR_WIDTH = 3;
|
||||
|
||||
constexpr LcdFlags TABLE_HEADER_FONT = FONT(STD);
|
||||
constexpr LcdFlags TABLE_BODY_FONT = FONT(STD);
|
||||
|
||||
constexpr int CJK_FIRST_LETTER_INDEX = 187;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user