forked from Miroirs/x49gp
Compare commits
2 commits
90ef530c22
...
0f9dffe8ea
Author | SHA1 | Date | |
---|---|---|---|
|
0f9dffe8ea | ||
|
7cf50df624 |
1 changed files with 100 additions and 103 deletions
203
src/x49gpng/ui.c
203
src/x49gpng/ui.c
|
@ -35,9 +35,6 @@
|
|||
#define KB_WIDTH_6_KEYS 36
|
||||
#define KB_WIDTH_5_KEYS 46
|
||||
|
||||
#define KB_WIDTH_6_KEYS 36
|
||||
#define KB_WIDTH_5_KEYS 46
|
||||
|
||||
#define KB_HEIGHT_MENU_KEYS 22
|
||||
#define KB_HEIGHT_SMALL_KEYS 28
|
||||
#define KB_HEIGHT_BIG_KEYS 32
|
||||
|
@ -58,12 +55,12 @@
|
|||
#define KEYBOARD_PADDING ( TINY_TEXT_HEIGHT + 2 )
|
||||
#define KEYBOARD_WIDTH ( ui_keys[ NB_KEYS - 1 ].x + ui_keys[ NB_KEYS - 1 ].width )
|
||||
|
||||
#define WINDOW_WIDTH ( ( 2 * KEYBOARD_PADDING ) + KEYBOARD_WIDTH )
|
||||
#define WINDOW_WIDTH ( KEYBOARD_WIDTH )
|
||||
|
||||
#define LCD_PADDING ( ( WINDOW_WIDTH - LCD_WIDTH ) / 2 )
|
||||
|
||||
static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
||||
{.css_class = "button-menu",
|
||||
{.css_class = "menu",
|
||||
.label = "F1",
|
||||
.letter = "A",
|
||||
.left = "Y=",
|
||||
|
@ -78,7 +75,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.columnbit = ( 1 << 5 ),
|
||||
.rowbit = ( 1 << 1 ),
|
||||
.eint = 1},
|
||||
{.css_class = "button-menu",
|
||||
{.css_class = "menu",
|
||||
.label = "F2",
|
||||
.letter = "B",
|
||||
.left = "WIN",
|
||||
|
@ -93,7 +90,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.columnbit = ( 1 << 5 ),
|
||||
.rowbit = ( 1 << 2 ),
|
||||
.eint = 2},
|
||||
{.css_class = "button-menu",
|
||||
{.css_class = "menu",
|
||||
.label = "F3",
|
||||
.letter = "C",
|
||||
.left = "GRAPH",
|
||||
|
@ -108,7 +105,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.columnbit = ( 1 << 5 ),
|
||||
.rowbit = ( 1 << 3 ),
|
||||
.eint = 3},
|
||||
{.css_class = "button-menu",
|
||||
{.css_class = "menu",
|
||||
.label = "F4",
|
||||
.letter = "D",
|
||||
.left = "2D/3D",
|
||||
|
@ -123,7 +120,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.columnbit = ( 1 << 5 ),
|
||||
.rowbit = ( 1 << 4 ),
|
||||
.eint = 4},
|
||||
{.css_class = "button-menu",
|
||||
{.css_class = "menu",
|
||||
.label = "F5",
|
||||
.letter = "E",
|
||||
.left = "TBLSET",
|
||||
|
@ -138,7 +135,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.columnbit = ( 1 << 5 ),
|
||||
.rowbit = ( 1 << 5 ),
|
||||
.eint = 5},
|
||||
{.css_class = "button-menu",
|
||||
{.css_class = "menu",
|
||||
.label = "F6",
|
||||
.letter = "F",
|
||||
.left = "TABLE",
|
||||
|
@ -154,7 +151,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.rowbit = ( 1 << 6 ),
|
||||
.eint = 6},
|
||||
|
||||
{.css_class = "button-function",
|
||||
{.css_class = "function",
|
||||
.label = "APPS",
|
||||
.letter = "G",
|
||||
.left = "FILES",
|
||||
|
@ -162,82 +159,82 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.below = NULL,
|
||||
.x = 0,
|
||||
.y = KB_LINE_HEIGHT,
|
||||
.width = KB_WIDTH_6_KEYS,
|
||||
.width = KB_WIDTH_5_KEYS,
|
||||
.height = KB_HEIGHT_SMALL_KEYS,
|
||||
.column = 5,
|
||||
.row = 7,
|
||||
.columnbit = ( 1 << 5 ),
|
||||
.rowbit = ( 1 << 7 ),
|
||||
.eint = 7},
|
||||
{.css_class = "button-function",
|
||||
{.css_class = "function",
|
||||
.label = "MODE",
|
||||
.letter = "H",
|
||||
.left = "CUSTOM",
|
||||
.right = "END",
|
||||
.below = NULL,
|
||||
.x = KB_COLUMN_WIDTH_6_KEYS,
|
||||
.x = KB_COLUMN_WIDTH_5_KEYS,
|
||||
.y = KB_LINE_HEIGHT,
|
||||
.width = KB_WIDTH_6_KEYS,
|
||||
.width = KB_WIDTH_5_KEYS,
|
||||
.height = KB_HEIGHT_SMALL_KEYS,
|
||||
.column = 6,
|
||||
.row = 5,
|
||||
.columnbit = ( 1 << 6 ),
|
||||
.rowbit = ( 1 << 5 ),
|
||||
.eint = 5},
|
||||
{.css_class = "button-function",
|
||||
{.css_class = "function",
|
||||
.label = "TOOL",
|
||||
.letter = "I",
|
||||
.left = "i",
|
||||
.right = "I",
|
||||
.below = NULL,
|
||||
.x = 2 * KB_COLUMN_WIDTH_6_KEYS,
|
||||
.x = 2 * KB_COLUMN_WIDTH_5_KEYS,
|
||||
.y = KB_LINE_HEIGHT,
|
||||
.width = KB_WIDTH_6_KEYS,
|
||||
.width = KB_WIDTH_5_KEYS,
|
||||
.height = KB_HEIGHT_SMALL_KEYS,
|
||||
.column = 6,
|
||||
.row = 6,
|
||||
.columnbit = ( 1 << 6 ),
|
||||
.rowbit = ( 1 << 6 ),
|
||||
.eint = 6},
|
||||
{.css_class = "button-function",
|
||||
{.css_class = "function",
|
||||
.label = "VAR",
|
||||
.letter = "J",
|
||||
.left = "UPDIR",
|
||||
.right = "COPY",
|
||||
.below = NULL,
|
||||
.x = 0,
|
||||
.y = 2 * KB_LINE_HEIGHT,
|
||||
.width = KB_WIDTH_6_KEYS,
|
||||
.x = 4 * KB_COLUMN_WIDTH_5_KEYS,
|
||||
.y = KB_LINE_HEIGHT,
|
||||
.width = KB_WIDTH_5_KEYS,
|
||||
.height = KB_HEIGHT_SMALL_KEYS,
|
||||
.column = 6,
|
||||
.row = 7,
|
||||
.columnbit = ( 1 << 6 ),
|
||||
.rowbit = ( 1 << 7 ),
|
||||
.eint = 7},
|
||||
{.css_class = "button-function",
|
||||
{.css_class = "function",
|
||||
.label = "STO⏵",
|
||||
.letter = "K",
|
||||
.left = "RCL",
|
||||
.right = "CUT",
|
||||
.below = NULL,
|
||||
.x = KB_COLUMN_WIDTH_6_KEYS,
|
||||
.x = 0,
|
||||
.y = 2 * KB_LINE_HEIGHT,
|
||||
.width = KB_WIDTH_6_KEYS,
|
||||
.width = KB_WIDTH_5_KEYS,
|
||||
.height = KB_HEIGHT_SMALL_KEYS,
|
||||
.column = 7,
|
||||
.row = 1,
|
||||
.columnbit = ( 1 << 7 ),
|
||||
.rowbit = ( 1 << 1 ),
|
||||
.eint = 1},
|
||||
{.css_class = "button-function",
|
||||
{.css_class = "function",
|
||||
.label = "NXT",
|
||||
.letter = "L",
|
||||
.left = "PREV",
|
||||
.right = "PASTE",
|
||||
.below = NULL,
|
||||
.x = 2 * KB_COLUMN_WIDTH_6_KEYS,
|
||||
.x = KB_COLUMN_WIDTH_5_KEYS,
|
||||
.y = 2 * KB_LINE_HEIGHT,
|
||||
.width = KB_WIDTH_6_KEYS,
|
||||
.width = KB_WIDTH_5_KEYS,
|
||||
.height = KB_HEIGHT_SMALL_KEYS,
|
||||
.column = 7,
|
||||
.row = 2,
|
||||
|
@ -245,68 +242,68 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.rowbit = ( 1 << 2 ),
|
||||
.eint = 2},
|
||||
|
||||
{.css_class = "button-arrow",
|
||||
.label = "▲",
|
||||
{.css_class = "arrow",
|
||||
.label = "⬆",
|
||||
.letter = NULL,
|
||||
.left = NULL,
|
||||
.right = NULL,
|
||||
.below = NULL,
|
||||
.x = 4 * KB_COLUMN_WIDTH_6_KEYS,
|
||||
.y = 0.75 * KB_LINE_HEIGHT,
|
||||
.width = KB_WIDTH_6_KEYS,
|
||||
.height = KB_HEIGHT_BIG_KEYS,
|
||||
.x = 3 * KB_COLUMN_WIDTH_5_KEYS,
|
||||
.y = KB_LINE_HEIGHT,
|
||||
.width = KB_WIDTH_5_KEYS,
|
||||
.height = KB_HEIGHT_SMALL_KEYS,
|
||||
.column = 6,
|
||||
.row = 1,
|
||||
.columnbit = ( 1 << 6 ),
|
||||
.rowbit = ( 1 << 1 ),
|
||||
.eint = 1},
|
||||
{.css_class = "button-arrow",
|
||||
.label = "◀",
|
||||
{.css_class = "arrow",
|
||||
.label = "⬅",
|
||||
.letter = NULL,
|
||||
.left = NULL,
|
||||
.right = NULL,
|
||||
.below = NULL,
|
||||
.x = 3.25 * KB_COLUMN_WIDTH_6_KEYS,
|
||||
.y = 1.25 * KB_LINE_HEIGHT,
|
||||
.width = KB_WIDTH_6_KEYS,
|
||||
.height = KB_HEIGHT_BIG_KEYS,
|
||||
.x = 2 * KB_COLUMN_WIDTH_5_KEYS,
|
||||
.y = 2 * KB_LINE_HEIGHT,
|
||||
.width = KB_WIDTH_5_KEYS,
|
||||
.height = KB_HEIGHT_SMALL_KEYS,
|
||||
.column = 6,
|
||||
.row = 2,
|
||||
.columnbit = ( 1 << 6 ),
|
||||
.rowbit = ( 1 << 2 ),
|
||||
.eint = 2},
|
||||
{.css_class = "button-arrow",
|
||||
.label = "▼",
|
||||
{.css_class = "arrow",
|
||||
.label = "⬇",
|
||||
.letter = NULL,
|
||||
.left = NULL,
|
||||
.right = NULL,
|
||||
.below = NULL,
|
||||
.x = 4 * KB_COLUMN_WIDTH_6_KEYS,
|
||||
.y = 1.75 * KB_LINE_HEIGHT,
|
||||
.width = KB_WIDTH_6_KEYS,
|
||||
.height = KB_HEIGHT_BIG_KEYS,
|
||||
.x = 3 * KB_COLUMN_WIDTH_5_KEYS,
|
||||
.y = 2 * KB_LINE_HEIGHT,
|
||||
.width = KB_WIDTH_5_KEYS,
|
||||
.height = KB_HEIGHT_SMALL_KEYS,
|
||||
.column = 6,
|
||||
.row = 3,
|
||||
.columnbit = ( 1 << 6 ),
|
||||
.rowbit = ( 1 << 3 ),
|
||||
.eint = 3},
|
||||
{.css_class = "button-arrow",
|
||||
.label = "▶",
|
||||
{.css_class = "arrow",
|
||||
.label = "⮕",
|
||||
.letter = NULL,
|
||||
.left = NULL,
|
||||
.right = NULL,
|
||||
.below = NULL,
|
||||
.x = 4.78 * KB_COLUMN_WIDTH_6_KEYS,
|
||||
.y = 1.25 * KB_LINE_HEIGHT,
|
||||
.width = KB_WIDTH_6_KEYS,
|
||||
.height = KB_HEIGHT_BIG_KEYS,
|
||||
.x = 4 * KB_COLUMN_WIDTH_5_KEYS,
|
||||
.y = 2 * KB_LINE_HEIGHT,
|
||||
.width = KB_WIDTH_5_KEYS,
|
||||
.height = KB_HEIGHT_SMALL_KEYS,
|
||||
.column = 6,
|
||||
.row = 4,
|
||||
.columnbit = ( 1 << 6 ),
|
||||
.rowbit = ( 1 << 4 ),
|
||||
.eint = 4},
|
||||
|
||||
{.css_class = "button-function",
|
||||
{.css_class = "function",
|
||||
.label = "HIST",
|
||||
.letter = "M",
|
||||
.left = "CMD",
|
||||
|
@ -321,7 +318,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.columnbit = ( 1 << 4 ),
|
||||
.rowbit = ( 1 << 1 ),
|
||||
.eint = 1},
|
||||
{.css_class = "button-function",
|
||||
{.css_class = "function",
|
||||
.label = "EVAL",
|
||||
.letter = "N",
|
||||
.left = "PRG",
|
||||
|
@ -336,7 +333,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.columnbit = ( 1 << 3 ),
|
||||
.rowbit = ( 1 << 1 ),
|
||||
.eint = 1},
|
||||
{.css_class = "button-function",
|
||||
{.css_class = "function",
|
||||
.label = "'",
|
||||
.letter = "O",
|
||||
.left = "MTRW",
|
||||
|
@ -351,7 +348,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.columnbit = ( 1 << 2 ),
|
||||
.rowbit = ( 1 << 1 ),
|
||||
.eint = 1},
|
||||
{.css_class = "button-function",
|
||||
{.css_class = "function",
|
||||
.label = "SYMB",
|
||||
.letter = "P",
|
||||
.left = "MTH",
|
||||
|
@ -366,7 +363,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.columnbit = ( 1 << 1 ),
|
||||
.rowbit = ( 1 << 1 ),
|
||||
.eint = 1},
|
||||
{.css_class = "button-function",
|
||||
{.css_class = "function",
|
||||
.label = "⬅",
|
||||
.letter = NULL,
|
||||
.left = "DEL",
|
||||
|
@ -382,7 +379,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.rowbit = ( 1 << 1 ),
|
||||
.eint = 1},
|
||||
|
||||
{.css_class = "button-function",
|
||||
{.css_class = "function",
|
||||
.label = "Y<sup>x</sup>",
|
||||
.letter = "Q",
|
||||
.left = "𝑒<sup>x</sup>",
|
||||
|
@ -397,11 +394,11 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.columnbit = ( 1 << 4 ),
|
||||
.rowbit = ( 1 << 2 ),
|
||||
.eint = 2},
|
||||
{.css_class = "button-function",
|
||||
.label = "√𝔁",
|
||||
{.css_class = "function",
|
||||
.label = "√𝓍",
|
||||
.letter = "R",
|
||||
.left = "𝔁<sup>2</sup>",
|
||||
.right = "<sup>x</sup>√y",
|
||||
.left = "𝓍<sup>2</sup>",
|
||||
.right = "<sup>x</sup>√𝓎",
|
||||
.below = NULL,
|
||||
.x = KB_COLUMN_WIDTH_5_KEYS,
|
||||
.y = 4 * KB_LINE_HEIGHT,
|
||||
|
@ -412,7 +409,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.columnbit = ( 1 << 3 ),
|
||||
.rowbit = ( 1 << 2 ),
|
||||
.eint = 2},
|
||||
{.css_class = "button-function",
|
||||
{.css_class = "function",
|
||||
.label = "SIN",
|
||||
.letter = "S",
|
||||
.left = "ASIN",
|
||||
|
@ -427,7 +424,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.columnbit = ( 1 << 2 ),
|
||||
.rowbit = ( 1 << 2 ),
|
||||
.eint = 2},
|
||||
{.css_class = "button-function",
|
||||
{.css_class = "function",
|
||||
.label = "COS",
|
||||
.letter = "T",
|
||||
.left = "ACOS",
|
||||
|
@ -442,7 +439,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.columnbit = ( 1 << 1 ),
|
||||
.rowbit = ( 1 << 2 ),
|
||||
.eint = 2},
|
||||
{.css_class = "button-function",
|
||||
{.css_class = "function",
|
||||
.label = "TAN",
|
||||
.letter = "U",
|
||||
.left = "ATAN",
|
||||
|
@ -458,10 +455,10 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.rowbit = ( 1 << 2 ),
|
||||
.eint = 2},
|
||||
|
||||
{.css_class = "button-function",
|
||||
{.css_class = "function",
|
||||
.label = "EEX",
|
||||
.letter = "V",
|
||||
.left = "10<sup>𝔁</sup>",
|
||||
.left = "10<sup>𝓍</sup>",
|
||||
.right = "LOG",
|
||||
.below = NULL,
|
||||
.x = 0,
|
||||
|
@ -473,7 +470,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.columnbit = ( 1 << 4 ),
|
||||
.rowbit = ( 1 << 3 ),
|
||||
.eint = 3},
|
||||
{.css_class = "button-function",
|
||||
{.css_class = "function",
|
||||
.label = "+/-",
|
||||
.letter = "W",
|
||||
.left = "≠",
|
||||
|
@ -488,8 +485,8 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.columnbit = ( 1 << 3 ),
|
||||
.rowbit = ( 1 << 3 ),
|
||||
.eint = 3},
|
||||
{.css_class = "button-function",
|
||||
.label = "𝔁",
|
||||
{.css_class = "function",
|
||||
.label = "𝓍",
|
||||
.letter = "X",
|
||||
.left = "≤",
|
||||
.right = ">",
|
||||
|
@ -503,8 +500,8 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.columnbit = ( 1 << 2 ),
|
||||
.rowbit = ( 1 << 3 ),
|
||||
.eint = 3},
|
||||
{.css_class = "button-function",
|
||||
.label = "1/𝔁",
|
||||
{.css_class = "function",
|
||||
.label = "1/𝓍",
|
||||
.letter = "Y",
|
||||
.left = "≥",
|
||||
.right = ">",
|
||||
|
@ -518,7 +515,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.columnbit = ( 1 << 1 ),
|
||||
.rowbit = ( 1 << 3 ),
|
||||
.eint = 3},
|
||||
{.css_class = "button-core-number",
|
||||
{.css_class = "core-number",
|
||||
.label = "÷",
|
||||
.letter = "Z",
|
||||
.left = "ABS",
|
||||
|
@ -534,7 +531,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.rowbit = ( 1 << 3 ),
|
||||
.eint = 3},
|
||||
|
||||
{.css_class = "button-alpha",
|
||||
{.css_class = "alpha",
|
||||
.label = "ALPHA",
|
||||
.letter = NULL,
|
||||
.left = "USER",
|
||||
|
@ -549,7 +546,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.columnbit = 0,
|
||||
.rowbit = 0,
|
||||
.eint = 4},
|
||||
{.css_class = "button-core-number",
|
||||
{.css_class = "core-number",
|
||||
.label = "7",
|
||||
.letter = NULL,
|
||||
.left = "S.SLV",
|
||||
|
@ -564,7 +561,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.columnbit = ( 1 << 3 ),
|
||||
.rowbit = ( 1 << 4 ),
|
||||
.eint = 4},
|
||||
{.css_class = "button-core-number",
|
||||
{.css_class = "core-number",
|
||||
.label = "8",
|
||||
.letter = NULL,
|
||||
.left = "EXP&LN",
|
||||
|
@ -579,7 +576,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.columnbit = ( 1 << 2 ),
|
||||
.rowbit = ( 1 << 4 ),
|
||||
.eint = 4},
|
||||
{.css_class = "button-core-number",
|
||||
{.css_class = "core-number",
|
||||
.label = "9",
|
||||
.letter = NULL,
|
||||
.left = "FINANCE",
|
||||
|
@ -594,7 +591,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.columnbit = ( 1 << 1 ),
|
||||
.rowbit = ( 1 << 4 ),
|
||||
.eint = 4},
|
||||
{.css_class = "button-core-number",
|
||||
{.css_class = "core-number",
|
||||
.label = "×",
|
||||
.letter = NULL,
|
||||
.left = "[ ]",
|
||||
|
@ -610,7 +607,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.rowbit = ( 1 << 4 ),
|
||||
.eint = 4},
|
||||
|
||||
{.css_class = "button-shift-left",
|
||||
{.css_class = "shift-left",
|
||||
.label = "⮢",
|
||||
.letter = NULL,
|
||||
.left = NULL,
|
||||
|
@ -625,7 +622,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.columnbit = 0,
|
||||
.rowbit = 0,
|
||||
.eint = 5},
|
||||
{.css_class = "button-core-number",
|
||||
{.css_class = "core-number",
|
||||
.label = "4",
|
||||
.letter = NULL,
|
||||
.left = "CALC",
|
||||
|
@ -640,7 +637,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.columnbit = ( 1 << 3 ),
|
||||
.rowbit = ( 1 << 5 ),
|
||||
.eint = 5},
|
||||
{.css_class = "button-core-number",
|
||||
{.css_class = "core-number",
|
||||
.label = "5",
|
||||
.letter = NULL,
|
||||
.left = "MATRICES",
|
||||
|
@ -655,7 +652,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.columnbit = ( 1 << 2 ),
|
||||
.rowbit = ( 1 << 5 ),
|
||||
.eint = 5},
|
||||
{.css_class = "button-core-number",
|
||||
{.css_class = "core-number",
|
||||
.label = "6",
|
||||
.letter = NULL,
|
||||
.left = "CONVERT",
|
||||
|
@ -670,7 +667,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.columnbit = ( 1 << 1 ),
|
||||
.rowbit = ( 1 << 5 ),
|
||||
.eint = 5},
|
||||
{.css_class = "button-core-number",
|
||||
{.css_class = "core-number",
|
||||
.label = "-",
|
||||
.letter = NULL,
|
||||
.left = "( )",
|
||||
|
@ -686,7 +683,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.rowbit = ( 1 << 5 ),
|
||||
.eint = 5},
|
||||
|
||||
{.css_class = "button-shift-right",
|
||||
{.css_class = "shift-right",
|
||||
.label = "⮣",
|
||||
.letter = NULL,
|
||||
.left = NULL,
|
||||
|
@ -701,7 +698,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.columnbit = 0,
|
||||
.rowbit = 0,
|
||||
.eint = 6},
|
||||
{.css_class = "button-core-number",
|
||||
{.css_class = "core-number",
|
||||
.label = "1",
|
||||
.letter = NULL,
|
||||
.left = "ARITH",
|
||||
|
@ -716,7 +713,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.columnbit = ( 1 << 3 ),
|
||||
.rowbit = ( 1 << 6 ),
|
||||
.eint = 6},
|
||||
{.css_class = "button-core-number",
|
||||
{.css_class = "core-number",
|
||||
.label = "2",
|
||||
.letter = NULL,
|
||||
.left = "DEF",
|
||||
|
@ -731,7 +728,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.columnbit = ( 1 << 2 ),
|
||||
.rowbit = ( 1 << 6 ),
|
||||
.eint = 6},
|
||||
{.css_class = "button-core-number",
|
||||
{.css_class = "core-number",
|
||||
.label = "3",
|
||||
.letter = NULL,
|
||||
.left = "#",
|
||||
|
@ -746,7 +743,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.columnbit = ( 1 << 1 ),
|
||||
.rowbit = ( 1 << 6 ),
|
||||
.eint = 6},
|
||||
{.css_class = "button-core-number",
|
||||
{.css_class = "core-number",
|
||||
.label = "+",
|
||||
.letter = NULL,
|
||||
.left = "{ }",
|
||||
|
@ -762,7 +759,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.rowbit = ( 1 << 6 ),
|
||||
.eint = 6},
|
||||
|
||||
{.css_class = "button-core",
|
||||
{.css_class = "core",
|
||||
.label = "ON",
|
||||
.letter = NULL,
|
||||
.left = "CONT",
|
||||
|
@ -777,7 +774,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.columnbit = 0,
|
||||
.rowbit = 0,
|
||||
.eint = 0},
|
||||
{.css_class = "button-core-number",
|
||||
{.css_class = "core-number",
|
||||
.label = "0",
|
||||
.letter = NULL,
|
||||
.left = "∞",
|
||||
|
@ -792,7 +789,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.columnbit = ( 1 << 3 ),
|
||||
.rowbit = ( 1 << 7 ),
|
||||
.eint = 7},
|
||||
{.css_class = "button-core",
|
||||
{.css_class = "core",
|
||||
.label = ".",
|
||||
.letter = NULL,
|
||||
.left = ": :",
|
||||
|
@ -807,7 +804,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.columnbit = ( 1 << 2 ),
|
||||
.rowbit = ( 1 << 7 ),
|
||||
.eint = 7},
|
||||
{.css_class = "button-core",
|
||||
{.css_class = "core",
|
||||
.label = "SPC",
|
||||
.letter = NULL,
|
||||
.left = "𝚷",
|
||||
|
@ -822,7 +819,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
|
|||
.columnbit = ( 1 << 1 ),
|
||||
.rowbit = ( 1 << 7 ),
|
||||
.eint = 7},
|
||||
{.css_class = "button-core",
|
||||
{.css_class = "core",
|
||||
.label = "ENTER",
|
||||
.letter = NULL,
|
||||
.left = "ANS",
|
||||
|
@ -856,35 +853,35 @@ char* css_global = "window {"
|
|||
" background-image: none;"
|
||||
" padding: 0px;"
|
||||
"}"
|
||||
".button-menu {"
|
||||
"button.menu {"
|
||||
" background-color: #a9a9a9;"
|
||||
"}"
|
||||
".button-function {"
|
||||
"button.function {"
|
||||
" background-color: #696969;"
|
||||
"}"
|
||||
".button-arrow {"
|
||||
"button.arrow {"
|
||||
" background-color: #e0e0e0;"
|
||||
"}"
|
||||
".button-alpha {"
|
||||
"button.alpha {"
|
||||
" background-color: #fae82c;"
|
||||
"}"
|
||||
".button-core, .button-core-number {"
|
||||
"button.core, button.core-number {"
|
||||
" background-color: #080808;"
|
||||
"}"
|
||||
".button-alpha .label-key {"
|
||||
"button.alpha .label-key, button.arrow .label-key, button.menu .label-key {"
|
||||
" color: #080808;"
|
||||
"}"
|
||||
".button-shift-left {"
|
||||
"button.shift-left {"
|
||||
" background-color: %s;"
|
||||
"}"
|
||||
".button-shift-right {"
|
||||
"button.shift-right {"
|
||||
" background-color: #8e2518;"
|
||||
"}"
|
||||
".button-shift-left .label-key, .button-shift-right .label-key, .button-arrow .label-key {"
|
||||
"button.shift-left .label-key, button.shift-right .label-key {"
|
||||
" font-size: %ipx;"
|
||||
" color: #080808;"
|
||||
"}"
|
||||
".button-core-number .label-key {"
|
||||
"button.core-number .label-key, button.arrow .label-key {"
|
||||
" font-size: %ipx;"
|
||||
"}"
|
||||
".label-key {"
|
||||
|
|
Loading…
Reference in a new issue