#include "camera_info.h"
#include "conf.h"
#include "keyboard.h"
#include "font.h"
#include "lang.h"
#include "gui.h"
#include "gui_draw.h"
#include "gui_menu.h"
#include "gui_user_menu.h"
#include "gui_lang.h"
#include "ctype.h"
#include "gui_palette.h"
gehe zum Quellcode dieser Datei
#define MAX |
( |
|
a, |
|
|
|
b |
|
) |
| ((a>=b)?a:b) |
#define MENUSTACK_MAXDEPTH 4 |
static int decrement_factor |
( |
) | |
|
|
static |
static int factor_disp_len |
( |
) | |
|
|
static |
Definiert in Zeile 43 der Datei gui_menu.c.
51 gui_menu_curr_item = 0;
52 while(curr_menu->
menu[gui_menu_curr_item].
text) {
static void get_int_disp_string |
( |
int |
value, |
|
|
int |
dlen |
|
) |
| |
|
static |
Definiert in Zeile 855 der Datei gui_menu.c.
864 for (spos=0; spos<5; spos++)
if (
tbuf[spos] ==
'-')
break;
866 if ((cpos > 0) && (cpos <= spos))
void gui_activate_sub_menu |
( |
CMenu * |
sub_menu) | |
|
void gui_menu_cancel_redraw |
( |
) | |
|
static void gui_menu_color_selected |
( |
chdkColor |
clr) | |
|
|
static |
void gui_menu_draw |
( |
int |
enforce_redraw) | |
|
Definiert in Zeile 965 der Datei gui_menu.c.
970 if ( enforce_redraw )
1037 xx += ((
w - j) >> 1);
1094 if (
count > num_lines)
1097 j = i*num_lines/
count;
void gui_menu_draw_initial |
( |
) | |
|
static void gui_menu_draw_state_value |
( |
CMenuItem * |
c) | |
|
|
static |
Definiert in Zeile 875 der Datei gui_menu.c.
898 switch (c[0].type & MENUITEM_MASK)
907 ch = ((
const char* (*)(
int change,
int arg))(c[0].
value))(0, c[0].
arg);
static void gui_menu_draw_symbol |
( |
int |
num_symbols) | |
|
|
static |
static void gui_menu_draw_text |
( |
char * |
str, |
|
|
int |
num_symbols |
|
) |
| |
|
static |
static void gui_menu_draw_value |
( |
const char * |
str, |
|
|
int |
len_str |
|
) |
| |
|
static |
void gui_menu_erase_and_redraw |
( |
) | |
|
void gui_menu_init |
( |
CMenu * |
menu_ptr) | |
|
int gui_menu_kbd_process |
( |
) | |
|
Definiert in Zeile 543 der Datei gui_menu.c.
581 if (*(c[1].value) == 0)
583 switch (c[0].type & MENUITEM_MASK)
623 if (*(c[1].value) == 0)
625 switch (c[0].type & MENUITEM_MASK)
void gui_menu_kbd_process_menu_btn |
( |
) | |
|
Definiert in Zeile 1109 der Datei gui_menu.c.
1115 if ( gui_user_menu_flag )
1118 gui_user_menu_flag = 0;
static int gui_menu_rows |
( |
) | |
|
|
static |
static void gui_menu_set_curr_menu |
( |
CMenu * |
menu_ptr, |
|
|
int |
top_item, |
|
|
int |
curr_item |
|
) |
| |
|
static |
static int gui_menu_touch_handler |
( |
int |
tx, |
|
|
int |
ty |
|
) |
| |
|
static |
Definiert in Zeile 521 der Datei gui_menu.c.
524 if ((tx >=
x) && (ty >=
y) && (tx < (
x +
w)) && (ty < (
y + h)))
static void gui_menu_updown |
( |
int |
increment) | |
|
|
static |
Definiert in Zeile 469 der Datei gui_menu.c.
476 for (j = 0; j < c; ++j)
492 else if (increment == 1)
static void gui_set_int_cursor |
( |
int |
offset) | |
|
|
static |
static int increment_factor |
( |
) | |
|
|
static |
static int isText |
( |
int |
n) | |
|
|
static |
int menu_calc_max_increment_factor |
( |
int |
max_value) | |
|
Definiert in Zeile 98 der Datei gui_menu.c.
101 while (max_value/10 != 0)
int menu_get_increment_factor |
( |
) | |
|
char* menu_increment_factor_string |
( |
) | |
|
void menu_set_increment_factor |
( |
int |
n) | |
|
static void menu_text |
( |
color |
c) | |
|
|
static |
static void select_proc |
( |
) | |
|
|
static |
static void select_sub_menu |
( |
) | |
|
|
static |
unsigned int gui_menu_stack_ptr |
|
static |