SWILIB API (SG)    
Loading...
Searching...
No Matches
ui.h
Go to the documentation of this file.
1#pragma once
2
3#ifndef __IN_SWILIB__
4#include "base.h"
5#include "wstring.h"
6#include "date.h"
7#include "gui.h"
8#endif
9
11
20typedef struct EDITCONTROL EDITCONTROL;
22typedef struct EDITQ EDITQ;
25typedef struct HEADER_DESC HEADER_DESC;
27typedef struct SOFTKEYSTAB SOFTKEYSTAB;
29typedef struct MENU_DESC MENU_DESC;
31typedef struct POPUP_DESC POPUP_DESC;
32typedef struct TABGUI_DESC TABGUI_DESC;
33typedef struct TVIEW_DESC TVIEW_DESC;
34typedef struct PBAR_DESC PBAR_DESC;
36
43typedef void (*MENUITEM_DRAW_PROC)(void *gui, int item_n, void *user_pointer);
44
49typedef void (*MENUPROCS_DESC)(GUI *gui);
50
57typedef int (*GUI_ONKEY_CALLBACK)(GUI *gui, GUI_MSG *msg);
58
64typedef void (*GUI_GHOOK_CALLBACK)(GUI *gui, int cmd);
65
69typedef void (*GUI_LOCRET_CALLBACK)(void);
70
77typedef int (*MenuSearchCallBack)(void *gui, WSHDR *search);
78
87
92
97
102#ifdef NEWSGOLD
103 SET_LEFT_SOFTKEY = 0,
106#else
110#endif
111};
112
113#define SET_SOFT_KEY_N SET_LEFT_SOFTKEY
114#define SET_SOFT_KEY_M SET_MIDDLE_SOFTKEY
115
116#ifdef ELKA
117 #define MENU_FLAG3 3
118 #define MENU_FLAG2 0x5A2
119 #define YDISP (24)
120#elif defined(NEWSGOLD)
121 #define MENU_FLAG3 3
122 #define MENU_FLAG2 0x59D
123 #define YDISP (0)
124#else
125 #define MENU_FLAG3 3
126 #define MENU_FLAG2 0x578
127 #define YDISP (0)
128#endif
129
147
174
185
198
207
220
226 int *icon;
227 int lgp_id;
228#ifdef SWILIB_MODERN
230#else
231 int lgp_null;
232#endif
233};
234
239 short key1;
240 short key2;
241 int lgp_id;
242};
243
249 int n;
250};
251
255struct EDITQ {
256 void *next;
257 void *prev;
258 void *data;
259};
260
265 uint16_t invert;
266 uint16_t bitmask;
267 char font;
268 char align;
269 char pen[4];
270 char brush[4];
271};
272
276#pragma pack(2)
293#pragma pack()
294
299 int one;
303 int zero1;
306 int font;
307 int _100;
308 int _101;
309 int zero2;
311#ifdef SWILIB_MODERN
313 int flags;
314#else
315 union { int zero3; int text_attrs; };
316 union { int _0x40000000; int flags; };
317#endif
318};
319
324 char type;
326 uint16_t cur_item;
328};
329
334 int *icon;
337 int zero;
338 const int *softkeys;
339 int flag1;
340#ifdef SWILIB_MODERN
342#else
343 int flag2;
344#endif
345};
346
363
381
402
407 int flag;
411 const int *softkeys;
414 int font;
415 int unk1;
416 int unk2;
417 int unk3;
418#ifdef SWILIB_MODERN
420#else
421 int unk4;
422#endif
423};
424
436
449
455 char dummy[16];
456};
457
469__swi_begin(0x2A6)
470void SetHeader(void *gui, const HEADER_DESC *header, const void *malloc_fn)
471__swi_end(0x2A6, SetHeader, (gui, header, malloc_fn));
472
478__swi_begin(0x2AE)
479void *GetHeaderPointer(void *gui)
480__swi_end(0x2AE, GetHeaderPointer, (gui));
481
489__swi_begin(0x2AF)
490void SetHeaderText(void *header, const WSHDR *title, const void *malloc_fn, const void *mfree_fn)
491__swi_end(0x2AF, SetHeaderText, (header, title, malloc_fn, mfree_fn));
492
500__swi_begin(0x3C6)
501void SetHeaderScrollText(void *header, const WSHDR *title, const void *malloc_fn, const void *mfree_fn)
502__swi_end(0x3C6, SetHeaderScrollText, (header, title, malloc_fn, mfree_fn));
503
511__swi_begin(0x3C7)
512void SetHeaderExtraText(void *header, const WSHDR *ws, const void *malloc_fn, const void *mfree_fn)
513__swi_end(0x3C7, SetHeaderExtraText, (header, ws, malloc_fn, mfree_fn));
514
523__swi_begin(0x2BA)
524void SetHeaderIcon(void *header, const int *icons, const void *malloc_fn, const void *mfree_fn)
525__swi_end(0x2BA, SetHeaderIcon, (header, icons, malloc_fn, mfree_fn));
526
533__swi_begin(0x168)
534void SetSoftKey(void *gui, const SOFTKEY_DESC *softkey, int softkey_id)
535__swi_end(0x168, SetSoftKey, (gui, softkey, softkey_id));
536
540__swi_begin(0x196)
541void RefreshGUI(void)
542__swi_end(0x196, RefreshGUI, ());
543
549__swi_begin(0x2BC)
550void SetGUIDefinition(void *gui, const void *definition)
551__swi_end(0x2BC, SetGUIDefinition, (gui, definition));
552
559__swi_begin(0x14E)
560void *FindItemByID(GUI *gui, int id)
561__swi_end(0x14E, FindItemByID, (gui, id));
562
569__swi_begin(0x14F)
570void *GetDataOfItemByID(GUI *gui, int id)
571__swi_end(0x14F, GetDataOfItemByID, (gui, id));
572
577__swi_begin(0x83D6)
579__swi_end(0x83D6, GetHeaderRECT, ());
580
585__swi_begin(0x83D7)
588
593__swi_begin(0x83D8)
595__swi_end(0x83D8, GetMainAreaRECT, ());
596
605__swi_begin(0x3ED)
606void SetWidgetRect(void *widget, int x, int y, int x2, int y2)
607__swi_end(0x3ED, SetWidgetRect, (widget, x, y, x2, y2));
608
625__swi_begin(0x027)
626void AddIconToIconBar(int pic, short* num)
627__swi_end(0x027, AddIconToIconBar, (pic, num));
628
634__swi_begin(0x1E0)
635void *GUI_GetUserPointer(void *gui)
636__swi_end(0x1E0, GUI_GetUserPointer, (gui));
637
643__swi_begin(0x255)
644void GUI_SetUserPointer(void *gui, void *user_pointer)
645__swi_end(0x255, GUI_SetUserPointer, (gui, user_pointer));
646
656__swi_begin(0x8237)
658__swi_end(0x8237, RamIconBar, ());
659
665__swi_begin(0x3D2)
667__swi_end(0x3D2, IsIconBarDisabled, ());
668
673__swi_begin(0x23B)
674void DisableIconBar(int disable)
675__swi_end(0x23B, DisableIconBar, (disable));
676
684__swi_begin(0x3EE)
685void AttachWidget(void *gui, const void *widget, int id, const void *malloc_fn)
686__swi_end(0x3EE, AttachWidget, (gui, widget, id, malloc_fn));
687
688
706__swi_begin(0x148)
707int ShowMSG(int flags, int message)
708__swi_end(0x148, ShowMSG, (flags, message));
709
720__swi_begin(0x04E)
721int MsgBoxError(int flags, int message)
722__swi_end(0x04E, MsgBoxError, (flags, message));
723
743__swi_begin(0x04F)
744int MsgBoxYesNo(int flags, int message, void (*callback)(int canceled))
745__swi_end(0x04F, MsgBoxYesNo, (flags, message, callback));
746
766__swi_begin(0x050)
767int MsgBoxOkCancel(int flags, int message, void (*callback)(int canceled))
768__swi_end(0x050, MsgBoxOkCancel, (flags, message, callback));
769
776__swi_begin(0x3C0)
777int ShowWaitBox(int flags, int message)
778__swi_end(0x3C0, ShowWaitBox, (flags, message));
779
785__swi_begin(0x3C1)
786int ShowPleaseWaitBox(int flags)
787__swi_end(0x3C1, ShowPleaseWaitBox, (flags));
788
794__swi_begin(0x83C5)
796__swi_end(0x83C5, GetPBarProc3, ());
807__swi_begin(0x3C2)
808int ShowPBarBox(int flags, int message, PBAR_DESC *pbar_desc, int initial_value, WSHDR *initial_ws)
809__swi_end(0x3C2, ShowPBarBox, (flags, message, pbar_desc, initial_value, initial_ws));
810
817__swi_begin(0x3C3)
818int SetPBarValue(int gui_id, int value)
819__swi_end(0x3C3, SetPBarValue, (gui_id, value));
820
827__swi_begin(0x3C4)
828int SetPBarText(int gui_id, WSHDR *ws)
829__swi_end(0x3C4, SetPBarText, (gui_id, ws));
830
839__swi_begin(0x2A9)
840int CreatePopupGUI(int flags, void *user_pointer, const POPUP_DESC *popup, int lgp_id)
841__swi_end(0x2A9, CreatePopupGUI, (flags, user_pointer, popup, lgp_id));
842
851__swi_begin(0x2AA)
852int CreatePopupGUI_ws(int flags, void *user_pointer, const POPUP_DESC *popup, const WSHDR *message)
853__swi_end(0x2AA, CreatePopupGUI_ws, (flags, user_pointer, popup, message));
854
860__swi_begin(0x2AB)
861void *GetPopupUserPointer(void *gui)
862__swi_end(0x2AB, GetPopupUserPointer, (gui));
863
880__swi_begin(0x167)
881int CreateInputTextDialog(const INPUTDIA_DESC *input_desc, const HEADER_DESC *header_desc, EDITQ *eq, int do_mfree, void *user_pointer)
882__swi_end(0x167, CreateInputTextDialog, (input_desc, header_desc, eq, do_mfree, user_pointer));
883
890__swi_begin(0x3E9)
891void *EDIT_GetGUI(const void *malloc_fn, const void *mfree_fn)
892__swi_end(0x3E9, EDIT_GetGUI, (malloc_fn, mfree_fn));
893
899__swi_begin(0x3EA)
900void EDIT_SetDefinition(void *gui, const INPUTDIA_DESC *input_desc)
901__swi_end(0x3EA, EDIT_SetDefinition, (gui, input_desc));
902
908__swi_begin(0x3EC)
909void EDIT_SetUserPointer(void *gui, void *user_pointer)
910__swi_end(0x3EC, EDIT_SetUserPointer, (gui, user_pointer));
911
917__swi_begin(0x1DF)
918void *EDIT_GetUserPointer(void *gui)
919__swi_end(0x1DF, EDIT_GetUserPointer, (gui));
920
926__swi_begin(0x21C)
927int EDIT_IsBusy(void *gui)
928__swi_end(0x21C, EDIT_IsBusy, (gui));
929
930__swi_begin(0x1E5)
931int EDIT_OpenOptionMenuWithUserItems(void *gui, void (*itemhandler)(USR_MENU_ITEM *item), void *user_pointer, int to_add)
932__swi_end(0x1E5, EDIT_OpenOptionMenuWithUserItems, (gui, itemhandler, user_pointer, to_add));
933
940__swi_begin(0x163)
941EDITQ *AllocEQueue(const void *malloc_func, const void *mfree_func)
942__swi_end(0x163, AllocEQueue, (malloc_func, mfree_func));
943
951__swi_begin(0x3EB)
952void EDIT_SetEQueue(void *gui, const EDITQ *eq, int do_mfree, const void *malloc_fn)
953__swi_end(0x3EB, EDIT_SetEQueue, (gui, eq, do_mfree, malloc_fn));
954
976__swi_begin(0x164)
978__swi_end(0x164, PrepareEditControl, (ec));
979
988__swi_begin(0x165)
989void ConstructEditControl(EDITCONTROL *ec, int type, int flags, const WSHDR *title, int maxlen)
990__swi_end(0x165, ConstructEditControl, (ec, type, flags, title, maxlen));
991
1004__swi_begin(0x184)
1005void ConstructComboBox(EDITCONTROL *ec, int type, int flags, WSHDR *title, int maxlen, int unk_zero, int items_count, int selected_item)
1006__swi_end(0x184, ConstructComboBox, (ec, type, flags, title, maxlen, unk_zero, items_count, selected_item));
1007
1014__swi_begin(0x20E)
1016__swi_end(0x20E, ConstructEditTime, (ec, time));
1017
1024__swi_begin(0x20F)
1026__swi_end(0x20F, ConstructEditDate, (ec, date));
1027
1033__swi_begin(0x1CE)
1035__swi_end(0x1CE, CopyOptionsToEditControl, (ec, options));
1036
1045__swi_begin(0x166)
1046int AddEditControlToEditQend(EDITQ *eq, const EDITCONTROL *ec, const void *malloc_func)
1047__swi_end(0x166, AddEditControlToEditQend, (eq, ec, malloc_func));
1048
1053__swi_begin(0x182)
1054int EDIT_GetFocus(void *gui)
1055__swi_end(0x182, EDIT_GetFocus, (gui));
1056
1061__swi_begin(0x183)
1062int EDIT_GetUnFocus(void *gui)
1063__swi_end(0x183, EDIT_GetUnFocus, (gui));
1064
1070__swi_begin(0x19B)
1071void EDIT_SetFocus(void *gui, int n)
1072__swi_end(0x19B, EDIT_SetFocus, (gui, n));
1073
1079__swi_begin(0x1D1)
1080void EDIT_RemoveEditControl(void *gui, int n)
1081__swi_end(0x1D1, EDIT_RemoveEditControl, (gui, n));
1082
1090__swi_begin(0x1D2)
1091void EDIT_InsertEditControl(void *gui, int n, const EDITCONTROL *ec)
1092__swi_end(0x1D2, EDIT_InsertEditControl, (gui, n, ec));
1093
1101__swi_begin(0x169)
1102int ExtractEditControl(void *gui, int n, EDITCONTROL *ec)
1103__swi_end(0x169, ExtractEditControl, (gui, n, ec));
1104
1110__swi_begin(0x1C6)
1112__swi_end(0x1C6, EDIT_ExtractFocusedControl, (gui, ec));
1113
1122__swi_begin(0x16A)
1123int StoreEditControl(void *gui, int n, const EDITCONTROL *ec)
1124__swi_end(0x16A, StoreEditControl, (gui, n, ec));
1125
1133__swi_begin(0x1C7)
1135__swi_end(0x1C7, EDIT_StoreControlToFocused, (gui, ec));
1136
1142__swi_begin(0x181)
1143void EDIT_SetTextToFocused(void *gui, const WSHDR *value)
1144__swi_end(0x181, EDIT_SetTextToFocused, (gui, value));
1145
1152__swi_begin(0x1DE)
1153int EDIT_SetTextToEditControl(void *gui, int n, const WSHDR *value)
1154__swi_end(0x1DE, EDIT_SetTextToEditControl, (gui, n, value));
1155
1161__swi_begin(0x180)
1164
1171__swi_begin(0x20A)
1172void EDIT_SetDate(void *gui, int n, const TDate *date)
1173__swi_end(0x20A, EDIT_SetDate, (gui, n, date));
1174
1181__swi_begin(0x20B)
1182void EDIT_SetTime(void *gui, int n, const TTime *time)
1183__swi_end(0x20B, EDIT_SetTime, (gui, n, time));
1184
1191__swi_begin(0x20C)
1192void EDIT_GetDate(void *gui, int n, TDate *date)
1193__swi_end(0x20C, EDIT_GetDate, (gui, n, date));
1194
1201__swi_begin(0x20D)
1202void EDIT_GetTime(void *gui, int n, TTime *time)
1203__swi_end(0x20D, EDIT_GetTime, (gui, n, time));
1204
1211__swi_begin(0x1D3)
1212int EDIT_GetCursorPos(void *gui)
1213__swi_end(0x1D3, EDIT_GetCursorPos, (gui));
1214
1221__swi_begin(0x1D4)
1222void EDIT_SetCursorPos(void *gui, int position)
1223__swi_end(0x1D4, EDIT_SetCursorPos, (gui, position));
1224
1231__swi_begin(0x1D8)
1233__swi_end(0x1D8, EDIT_IsMarkModeActive, (gui));
1234
1242__swi_begin(0x1D9)
1243int EDIT_GetMarkedText(void *gui, WSHDR *selected_text)
1244__swi_end(0x1D9, EDIT_GetMarkedText, (gui, selected_text));
1245
1254__swi_begin(0x21A)
1255int EDIT_SetTextInvert(void *gui, int position, int len)
1256__swi_end(0x21A, EDIT_SetTextInvert, (gui, position, len));
1257
1263__swi_begin(0x21B)
1265__swi_end(0x21B, EDIT_RemoveTextInvert, (gui));
1266
1279__swi_begin(0x1C8)
1281__swi_end(0x1C8, PrepareEditCOptions, (options));
1282
1288__swi_begin(0x1C9)
1289void SetInvertToEditCOptions(EDITC_OPTIONS *options, int invert)
1290__swi_end(0x1C9, SetInvertToEditCOptions, (options, invert));
1291
1297__swi_begin(0x1CA)
1298void SetFontToEditCOptions(EDITC_OPTIONS *options, int font)
1299__swi_end(0x1CA, SetFontToEditCOptions, (options, font));
1300
1306__swi_begin(0x1CB)
1308__swi_end(0x1CB, SetTextAttrToEditCOptions, (options, flags));
1309
1314__swi_begin(0x1CB)
1315void SetAlignToEditCOptions(EDITC_OPTIONS *options, int flags)
1316__swi_end(0x1CB, SetAlignToEditCOptions, (options, flags));
1317
1323__swi_begin(0x1CC)
1325__swi_end(0x1CC, SetPenColorToEditCOptions, (options, pen));
1326
1332__swi_begin(0x1CD)
1334__swi_end(0x1CD, SetBrushColorToEditCOptions, (options, brush));
1335
1356__swi_begin(0x152)
1357int CreateMenu(int style, int zero, const MENU_DESC *menu, const HEADER_DESC *header, int selected_item, int items_count, void *user_pointer, int *to_remove)
1358__swi_end(0x152, CreateMenu, (style, zero, menu, header, selected_item, items_count, user_pointer, to_remove));
1369__swi_begin(0x217)
1370int CreateMultiLinesMenu(int style, int zero, const ML_MENU_DESC *menu, const HEADER_DESC *header, int selected_item, int items_count)
1371__swi_end(0x217, CreateMultiLinesMenu, (style, zero, menu, header, selected_item, items_count));
1372
1378__swi_begin(0x18F)
1379int GetCurMenuItem(void *gui)
1380__swi_end(0x18F, GetCurMenuItem, (gui));
1381
1389__swi_begin(0x195)
1390void SetMenuItemIcon(void *gui, int item_n, int icon)
1391__swi_end(0x195, SetMenuItemIcon, (gui, item_n, icon));
1392
1399__swi_begin(0x3A3)
1400void SetMenuItemIconIMGHDR(void *gui, void *item, IMGHDR *icon)
1401__swi_end(0x3A3, SetMenuItemIconIMGHDR, (gui, item, icon));
1402
1409__swi_begin(0x197)
1410void *AllocMenuItem(void *gui)
1411__swi_end(0x197, AllocMenuItem, (gui));
1412
1419__swi_begin(0x219)
1420void *AllocMLMenuItem(void *gui)
1421__swi_end(0x219, AllocMLMenuItem, (gui));
1422
1429__swi_begin(0x198)
1430WSHDR *AllocMenuWS(void *gui, int len)
1431__swi_end(0x198, AllocMenuWS, (gui, len));
1432
1440__swi_begin(0x199)
1441void SetMenuItemIconArray(void *gui, void *item, const int *icons)
1442__swi_end(0x199, SetMenuItemIconArray, (gui, item, icons));
1443
1452__swi_begin(0x19A)
1453void SetMenuItemText(void *gui, void *item, WSHDR *text, int item_n)
1454__swi_end(0x19A, SetMenuItemText, (gui, item, text, item_n));
1455
1465__swi_begin(0x218)
1466void SetMLMenuItemText(void *gui, void *item, WSHDR *text1, WSHDR *text2, int item_n)
1467__swi_end(0x218, SetMLMenuItemText, (gui, item, text1, text2, item_n));
1468
1474__swi_begin(0x2A8)
1475int GetMenuItemCount(void *gui)
1476__swi_end(0x2A8, GetMenuItemCount, (gui));
1477
1484__swi_begin(0x1C3)
1485void SetMenuItemCount(void *gui, int items_count)
1486__swi_end(0x1C3, SetMenuItemCount, (gui, items_count));
1487
1493__swi_begin(0x1E6)
1494void Menu_SetItemCountDyn(void *gui, int items_count)
1495__swi_end(0x1E6, Menu_SetItemCountDyn, (gui, items_count));
1496
1502__swi_begin(0x1C4)
1503void SetCursorToMenuItem(void *gui, int item_n)
1504__swi_end(0x1C4, SetCursorToMenuItem, (gui, item_n));
1505
1513__swi_begin(0x2A3)
1514void UpdateMenuCursorItem(void *gui, int item_n)
1515__swi_end(0x2A3, UpdateMenuCursorItem, (gui, item_n));
1516
1522__swi_begin(0x24B)
1524__swi_end(0x24B, SetMenuSearchCallBack, (gui, callback));
1525
1533__swi_begin(0x2B0)
1534void SetMenuSoftKey(void *gui, const SOFTKEY_DESC *softkey, int softkey_id)
1535__swi_end(0x2B0, SetMenuSoftKey, (gui, softkey, softkey_id));
1536
1541__swi_begin(0x2A6)
1542void SetHeaderToMenu(void *gui, const HEADER_DESC *header, const void *malloc_fn)
1543__swi_end(0x2A6, SetHeaderToMenu, (gui, header, malloc_fn));
1544
1550__swi_begin(0x1E0)
1551void *MenuGetUserPointer(void *gui)
1552__swi_end(0x1E0, MenuGetUserPointer, (gui));
1553
1559__swi_begin(0x255)
1560void MenuSetUserPointer(void *gui, void *user_pointer)
1561__swi_end(0x255, MenuSetUserPointer, (gui, user_pointer));
1562
1570__swi_begin(0x2A4)
1571void *GetMenuGUI(const void *malloc_fn, const void *mfree_fn)
1572__swi_end(0x2A4, GetMenuGUI, (malloc_fn, mfree_fn));
1573
1581__swi_begin(0x2A5)
1582void *GetMultiLinesMenuGUI(const void *malloc_fn, const void *mfree_fn)
1583__swi_end(0x2A5, GetMultiLinesMenuGUI, (malloc_fn, mfree_fn));
1584
1591__swi_begin(0x2A7)
1592void SetMenuToGUI(void *gui, const void *menu)
1593__swi_end(0x2A7, SetMenuToGUI, (gui, menu));
1594
1608__swi_begin(0x2BB)
1609void *GetTabGUI(void *malloc_fn, void *mfree_fn)
1610__swi_end(0x2BB, GetTabGUI, (malloc_fn, mfree_fn));
1611
1620__swi_begin(0x2BD)
1621int SetGUIToTabGUI(void *gui, int tab_n, const int *icons, void *content_gui)
1622__swi_end(0x2BD, SetGUIToTabGUI, (gui, tab_n, icons, content_gui));
1623
1630__swi_begin(0x2C1)
1631void *GetGuiByTab(void *gui, int tab_n)
1632__swi_end(0x2C1, GetGuiByTab, (gui, tab_n));
1633
1640__swi_begin(0x2BE)
1641int SetCursorTab(void *gui, int tab_n)
1642__swi_end(0x2BE, SetCursorTab, (gui, tab_n));
1643
1649__swi_begin(0x2C0)
1650int GetCursorTab(void *gui)
1651__swi_end(0x2C0, GetCursorTab, (gui));
1652
1659__swi_begin(0x2BF)
1660int UpdateTab1stItem(void *gui, int unk_0)
1661__swi_end(0x2BF, UpdateTab1stItem, (gui, unk_0));
1662
1676__swi_begin(0x2D6)
1677void *TViewGetGUI(const void *malloc_fn, const void *mfree_fn)
1678__swi_end(0x2D6, TViewGetGUI, (malloc_fn, mfree_fn));
1679
1685__swi_begin(0x2D7)
1687__swi_end(0x2D7, TViewSetDefinition, (gui, tv));
1688
1696__swi_begin(0x2D8)
1697void TViewSetText(void *gui, const WSHDR *text, const void *malloc_fn, const void *mfree_fn)
1698__swi_end(0x2D8, TViewSetText, (gui, text, malloc_fn, mfree_fn));
1699
1705__swi_begin(0x2D9)
1706void TViewSetUserPointer(void *gui, void *user_pointer)
1707__swi_end(0x2D9, TViewSetUserPointer, (gui, user_pointer));
1708
1714__swi_begin(0x2DA)
1715void *TViewGetUserPointer(void *gui)
1716__swi_end(0x2DA, TViewGetUserPointer, (gui));
1717
1740__swi_begin(0x22B)
1741int CreateRadioButtonList(const void *items, int num, const int *exclude_ids, int exclude_count, int selected_id, int (*handler)(int item_id, int key, int user1, int user2), int flags, int header_lgp, const int *header_icon, int user1, int user2)
1742__swi_end(0x22B, CreateRadioButtonList, (items, num, exclude_ids, exclude_count, selected_id, handler, flags, header_lgp, header_icon, user1, user2));
1743
1756__swi_begin(0x3F6)
1758__swi_end(0x3F6, CreateScrollbarWidget, (malloc_fn));
1759
1767__swi_begin(0x3F7)
1768void Scrollbar_Configure(WIDGET *scrollbar, int limit, int unk1, int unk2)
1769__swi_end(0x3F7, Scrollbar_Configure, (scrollbar, limit, unk1, unk2));
1770
1776__swi_begin(0x3F8)
1777void Scrollbar_SetValue(WIDGET *scrollbar, int value)
1778__swi_end(0x3F8, Scrollbar_SetValue, (scrollbar, value));
1779
1792__swi_begin(0x80D8)
1794__swi_end(0x80D8, RamMenuAnywhere, ());
1795
1799
#define __swilib_begin
Definition doxygen.h:29
#define __swi_end(number, func, call)
Definition doxygen.h:33
#define __swi_begin(number)
Definition doxygen.h:32
#define __swilib_end
Definition doxygen.h:30
Date of the day.
Definition date.h:26
Time of the day.
Definition date.h:35
GUI description and state.
Definition gui.h:424
GUI GBS message for onKey callback.
Definition gui.h:362
Rectangle region.
Definition gui.h:352
Image header.
Definition image.h:62
int lgp_id_large
LGP ID or pointer to the C-string.
Definition ui.h:336
uint16_t invert
Enable invertion.
Definition ui.h:265
int _100
Set to 100.
Definition ui.h:307
int flag
0,8 etc
Definition ui.h:386
int flag
Definition ui.h:280
GUI_ONKEY_CALLBACK onkey
Key handler.
Definition ui.h:442
void * user_pointer
Custom user pointer.
Definition ui.h:325
void * locret
Pointer to the empty function.
Definition ui.h:432
GUI_GHOOK_CALLBACK global_hook_proc
Global hook handler (ghook)
Definition ui.h:409
int flags2
Menu options, see MenuDialogFlags.
Definition ui.h:357
int n_items
Number of the items.
Definition ui.h:361
void * next
Next item.
Definition ui.h:256
GUI_ONKEY_CALLBACK onKey
Key handler.
Definition ui.h:408
GUI_ONKEY_CALLBACK onkey
Key handler.
Definition ui.h:352
int flags2
Popup options.
Definition ui.h:392
RECT rc
Rectangular region on the screen.
Definition ui.h:413
int zero2
Set to 0.
Definition ui.h:309
RECT rc
Rectangular region on the screen.
Definition ui.h:305
const SOFTKEY_DESC * desc
C-array of the softkeys.
Definition ui.h:248
void * data
EditControl.
Definition ui.h:258
short unk9
Definition ui.h:287
int one
Set to 1.
Definition ui.h:299
int flag
0,8 etc
Definition ui.h:351
const SOFTKEYSTAB * softkeystab
Pointer to the softkeys definition.
Definition ui.h:434
void * proc3
Pointer to the function, see GetPBarProc3()
Definition ui.h:444
GUI_ONKEY_CALLBACK onkey
Key handler.
Definition ui.h:369
const SOFTKEYSTAB * softkeystab
Pointer to the softkeys definition.
Definition ui.h:356
int font
Font size, see SystemFontID.
Definition ui.h:414
const SOFTKEYSTAB * softkeystab
Pointer to the softkeys definition.
Definition ui.h:446
int unk1
0x64, 0x81
Definition ui.h:415
int * icon
Pointer to the varibale with actual header icon or NULL.
Definition ui.h:226
int flags
InputDialog flags, see InputDialogFlags (old name _0x40000000)
Definition ui.h:313
int lgp_id_small
LGP ID or pointer to the C-string.
Definition ui.h:335
GUI_LOCRET_CALLBACK proc3
Pointer to the empty function.
Definition ui.h:354
GUI_GHOOK_CALLBACK ghook
Global hook handler (ghook)
Definition ui.h:353
const int * softkeys
Softkeys mapping from softkeystab, example: {0, 1, 2}.
Definition ui.h:433
char dummy[16]
Unknown data.
Definition ui.h:455
uint16_t cur_item
Definition ui.h:326
short start_item_cbox
Index of the selected item in combo-box.
Definition ui.h:286
int flag1
MENU_FLAG3
Definition ui.h:339
int text_attrs
Text attributes, see TextAttributesFlags (old name zero3)
Definition ui.h:312
const int * softkeys
Softkeys mapping from softkeystab, example: {0, 1, 2}.
Definition ui.h:355
int _101
Set to 101.
Definition ui.h:308
int _101
Set to 101.
Definition ui.h:398
char zero_cbox
If text input field: lang 0 - default, 2 - english.
Definition ui.h:281
const SOFTKEYSTAB * softkeystab
Pointer to the softkeys definition.
Definition ui.h:412
int flag
0, 8
Definition ui.h:441
int time
Show timeout in clocks (1 clock = 4.615 ms)
Definition ui.h:400
int font
Set to 0.
Definition ui.h:396
MENUITEM_DRAW_PROC itemproc
Definition ui.h:375
int unk3
0
Definition ui.h:417
char align
Text attributes, see TextAttributesFlags.
Definition ui.h:268
int _100
Set to 100.
Definition ui.h:397
int font
Font size, see SystemFontID.
Definition ui.h:306
GUI_ONKEY_CALLBACK onKey
Key handler.
Definition ui.h:387
const MENUITEM_DESC * items
Called when draw item.
Definition ui.h:359
short maxlen
Maximum length of the value.
Definition ui.h:284
uint16_t bitmask
Definition ui.h:266
GUI_GHOOK_CALLBACK ghook
Global hook handler (ghook)
Definition ui.h:370
GUI_LOCRET_CALLBACK locret
Pointer to the empty function.
Definition ui.h:410
const int * softkeys
Softkeys mapping from softkeystab, example: {0, 1, 2}.
Definition ui.h:372
WSHDR * pWS
Current value.
Definition ui.h:291
int n
Count of the softkeys in array.
Definition ui.h:249
char unk5
Definition ui.h:282
char pen[4]
RGBA text color.
Definition ui.h:269
char zero[32]
Unknown data.
Definition ui.h:447
int feature_id
Feature ID.
Definition ui.h:341
void * prev
Prev item.
Definition ui.h:257
const MENUPROCS_DESC * procs
C-array of the default items, or NULL.
Definition ui.h:377
WSHDR * ws
Text of the menu item.
Definition ui.h:327
const SOFTKEYSTAB * softkeystab
Pointer to the softkeys definition.
Definition ui.h:304
int lgp_id
Header title, LGP ID or pointer to the C-string.
Definition ui.h:227
int flag
0,8 etc
Definition ui.h:368
GUI_ONKEY_CALLBACK onKey
Key handler.
Definition ui.h:300
int flags2
Menu options, see MenuDialogFlags.
Definition ui.h:374
int flag
?
Definition ui.h:407
MENUITEM_DRAW_PROC itemproc
Definition ui.h:358
char font
Font id, see SystemFontID.
Definition ui.h:267
int * icon
Item icons array.
Definition ui.h:334
GUI_LOCRET_CALLBACK proc3
Pointer to the empty function.
Definition ui.h:389
short num_of_items_cbox
Number of the items in combo-box.
Definition ui.h:285
int n_lines
Number of the lines in selected item.
Definition ui.h:379
RECT rc
Rectangular region on the screen.
Definition ui.h:454
int extra_lgp_id
Extra header title, LGP ID or pointer to the C-string.
Definition ui.h:229
GUI_LOCRET_CALLBACK proc3
Pointer to the empty function.
Definition ui.h:371
int zero2
Set to 0.
Definition ui.h:399
char unk2[3]
Definition ui.h:279
int unk12
Definition ui.h:290
const SOFTKEYSTAB * softkeystab
Pointer to the softkeys definition.
Definition ui.h:373
char type
Type of item.
Definition ui.h:324
const int * softkeys
Custom softkeys mapping or NULL.
Definition ui.h:338
const SOFTKEYSTAB * softkeystab
Pointer to the softkeys definition.
Definition ui.h:391
int zero0
Definition ui.h:395
GUI_ONKEY_CALLBACK onKey
Key handler.
Definition ui.h:430
const int * softkeys
Softkeys mapping from softkeystab, example: {0, 1, 2}.
Definition ui.h:445
const MENUPROCS_DESC * procs
C-array of the default items, or NULL.
Definition ui.h:360
const MENUITEM_DESC * items
Called when draw item.
Definition ui.h:376
GUI_GHOOK_CALLBACK global_hook_proc
Global hook handler (ghook)
Definition ui.h:301
char brush[4]
RGBA background color.
Definition ui.h:270
short key1
Definition ui.h:239
int lgp_null
Set to LGP_NULL.
Definition ui.h:393
GUI_GHOOK_CALLBACK global_hook_proc
Global hook handler (ghook)
Definition ui.h:388
short unk11
Definition ui.h:289
short unk10
Definition ui.h:288
int zero1
Set to 0.
Definition ui.h:303
int n_items
Number of the items.
Definition ui.h:378
const int * icons
C-array of the icons (ID from PIT or pointer to IMGHDR), last item is always 0.
Definition ui.h:394
const int * softkeys
Softkeys mapping from softkeystab, example: {0, 1, 2}.
Definition ui.h:390
int unk2
0x65, 0x82
Definition ui.h:416
const int * softkeys
Softkeys mapping from softkeystab, example: {0, 1, 2}.
Definition ui.h:411
EDITC_OPTIONS ed_options
Custom options.
Definition ui.h:283
char type
EditControlTypeID
Definition ui.h:278
short key2
Definition ui.h:240
int zero
0
Definition ui.h:337
int lgp_id
LGP ID or pointer to the C-string.
Definition ui.h:241
RECT rc
Rectangular region on the screen.
Definition ui.h:225
int text_attrs
Text attributes, see TextAttributesFlags (old name unk4)
Definition ui.h:419
GUI_LOCRET_CALLBACK locret
Pointer to the empty function.
Definition ui.h:302
GUI_GHOOK_CALLBACK global_hook_proc
Global hook handler (ghook)
Definition ui.h:431
int flag
8, a, b etc
Definition ui.h:429
GUI_GHOOK_CALLBACK ghook
Global hook handler (ghook)
Definition ui.h:443
int ExtractEditControl(void *gui, int n, EDITCONTROL *ec)
Get a copy of the edit control in the InputDialog.
void SetTextAttrToEditCOptions(EDITC_OPTIONS *options, int flags)
Set text attributes.
int EDIT_OpenOptionMenuWithUserItems(void *gui, void(*itemhandler)(USR_MENU_ITEM *item), void *user_pointer, int to_add)
void EDIT_SetFocus(void *gui, int n)
Focus given edit control.
int UpdateTab1stItem(void *gui, int unk_0)
Update content of the active tab.
void * AllocMenuItem(void *gui)
Dynamic allocation of the menu item.
void SetSoftKey(void *gui, const SOFTKEY_DESC *softkey, int softkey_id)
Add softkey to the GUI.
void ConstructComboBox(EDITCONTROL *ec, int type, int flags, WSHDR *title, int maxlen, int unk_zero, int items_count, int selected_item)
Create new edit control (ComboBox).
void EDIT_SetCursorPos(void *gui, int position)
Set cursor position in text.
void SetHeaderToMenu(void *gui, const HEADER_DESC *header, const void *malloc_fn)
Set header to the GUI.
void SetMLMenuItemText(void *gui, void *item, WSHDR *text1, WSHDR *text2, int item_n)
Set text to menu item.
int ShowPleaseWaitBox(int flags)
'Please wait' popup.
int EDIT_GetUnFocus(void *gui)
Get index of the previous focused edit control.
void * GetPopupUserPointer(void *gui)
Get user pointer from the popup.
void(* GUI_GHOOK_CALLBACK)(GUI *gui, int cmd)
GUI global hook.
Definition ui.h:64
int EDIT_GetItemNumInFocusedComboBox(void *gui)
Get item index in the focused ComboBox.
int CreatePopupGUI(int flags, void *user_pointer, const POPUP_DESC *popup, int lgp_id)
Create custom Popup.
void EDIT_InsertEditControl(void *gui, int n, const EDITCONTROL *ec)
Insert edit control to the InputDialog.
void Scrollbar_SetValue(WIDGET *scrollbar, int value)
Set the scrollbar's current position.
MenuDialogFlags
Menu options.
Definition ui.h:211
RECT * GetHeaderRECT(void)
Size of UI header.
void TViewSetUserPointer(void *gui, void *user_pointer)
Set custom user pointer to the TextView.
void * GetPBarProc3()
Get pointer for proc3 method of PBAR_DESC struct.
int CreateRadioButtonList(const void *items, int num, const int *exclude_ids, int exclude_count, int selected_id, int(*handler)(int item_id, int key, int user1, int user2), int flags, int header_lgp, const int *header_icon, int user1, int user2)
Create radio button list.
int EDIT_GetCursorPos(void *gui)
Get cursor position in text.
int GetCurMenuItem(void *gui)
Get index of the selected item in menu.
int EDIT_IsBusy(void *gui)
Check if InputDialog is busy.
int MsgBoxYesNo(int flags, int message, void(*callback)(int canceled))
Confirmation popup with Yes/No.
int CreateMenu(int style, int zero, const MENU_DESC *menu, const HEADER_DESC *header, int selected_item, int items_count, void *user_pointer, int *to_remove)
Create menu (list with items).
void TViewSetText(void *gui, const WSHDR *text, const void *malloc_fn, const void *mfree_fn)
Set text to the TextView.
void TViewSetDefinition(void *gui, const TVIEW_DESC *tv)
Attach the TextView definition to the allocated GUI.
RECT * GetOptionsHeaderRECT(void)
Size of UI options header.
int CreateInputTextDialog(const INPUTDIA_DESC *input_desc, const HEADER_DESC *header_desc, EDITQ *eq, int do_mfree, void *user_pointer)
Create InputDialog GUI.
void SetWidgetRect(void *widget, int x, int y, int x2, int y2)
Dynamically set the bounding rectangle for the widget.
void EDIT_SetEQueue(void *gui, const EDITQ *eq, int do_mfree, const void *malloc_fn)
Set list of the edit controls to the allocated GUI.
UIDialogCmdID
Ghook commands.
Definition ui.h:178
int MsgBoxOkCancel(int flags, int message, void(*callback)(int canceled))
Confirmation popup with Ok/Cancel.
int(* MenuSearchCallBack)(void *gui, WSHDR *search)
Menu search callback.
Definition ui.h:77
EDITQ * AllocEQueue(const void *malloc_func, const void *mfree_func)
List of the edit controls.
int ShowPBarBox(int flags, int message, PBAR_DESC *pbar_desc, int initial_value, WSHDR *initial_ws)
Progressbar popup.
int StoreEditControl(void *gui, int n, const EDITCONTROL *ec)
Replace the edit control in the InputDialog.
void SetBrushColorToEditCOptions(EDITC_OPTIONS *options, int brush)
Set background color.
int ShowWaitBox(int flags, int message)
Wait popup.
int SetGUIToTabGUI(void *gui, int tab_n, const int *icons, void *content_gui)
Link content gui with tab.
void AddIconToIconBar(int pic, short *num)
Push icon to the iconbar (E/EL71).
void EDIT_SetUserPointer(void *gui, void *user_pointer)
Set custom user pointer to the Input.
void * GetMenuGUI(const void *malloc_fn, const void *mfree_fn)
Allocate GUI for single-line menu.
int AddEditControlToEditQend(EDITQ *eq, const EDITCONTROL *ec, const void *malloc_func)
Add edit control to the end of the list.
void * EDIT_GetGUI(const void *malloc_fn, const void *mfree_fn)
Allocate GUI for the Input.
void DisableIconBar(int disable)
Enable or disable global iconbar on EL/E71.
int SetPBarValue(int gui_id, int value)
Set value to progressbar popup.
void SetCursorToMenuItem(void *gui, int item_n)
Scroll to the given menu item.
void EDIT_SetTextToFocused(void *gui, const WSHDR *value)
Set value to the focused edit control.
void * GetHeaderPointer(void *gui)
Get pointer to the UI header.
int(* GUI_ONKEY_CALLBACK)(GUI *gui, GUI_MSG *msg)
GUI keys handler.
Definition ui.h:57
int ConstructEditTime(EDITCONTROL *ec, const TTime *time)
Create new edit control (Time).
void SetMenuSearchCallBack(void *gui, const MenuSearchCallBack callback)
Set callback for the searching in the menu.
void SetMenuToGUI(void *gui, const void *menu)
Attach the menu definition to the allocated GUI (by GetMenuGUI or GetMultiLinesMenuGUI).
int EDIT_GetMarkedText(void *gui, WSHDR *selected_text)
Get value of the selected text.
void * MenuGetUserPointer(void *gui)
Get custom user pointer from menu.
WSHDR * AllocMenuWS(void *gui, int len)
Allocate WSHDR for using it in SetMenuItemText.
void GUI_SetUserPointer(void *gui, void *user_pointer)
Set custom user pointer to the GUI, like Menu.
void MenuSetUserPointer(void *gui, void *user_pointer)
Set custom user pointer to the menu.
int MsgBoxError(int flags, int message)
Show error popup.
void EDIT_SetDate(void *gui, int n, const TDate *date)
Set date value to the edit control.
void(* GUI_LOCRET_CALLBACK)(void)
GUI locret callback (empty stub).
Definition ui.h:69
void(* MENUITEM_DRAW_PROC)(void *gui, int item_n, void *user_pointer)
Menu item draw callback.
Definition ui.h:43
void RefreshGUI(void)
Force refresh current GUI.
void EDIT_GetTime(void *gui, int n, TTime *time)
Get time value from the edit control.
void SetFontToEditCOptions(EDITC_OPTIONS *options, int font)
Change text font.
void SetMenuItemIconArray(void *gui, void *item, const int *icons)
Set the icon array used by the menu.
WIDGET * CreateScrollbarWidget(const void *malloc_fn)
Allocate Scrollbar WIDGET.
void SetPenColorToEditCOptions(EDITC_OPTIONS *options, int pen)
Set text color.
int EDIT_SetTextToEditControl(void *gui, int n, const WSHDR *value)
Set value to the given edit control.
void * TViewGetUserPointer(void *gui)
Get custom user pointer from TextView.
void AttachWidget(void *gui, const void *widget, int id, const void *malloc_fn)
Attach a widget to the GUI.
void EDIT_RemoveEditControl(void *gui, int n)
Remove edit control for the InputDialog.
int ConstructEditDate(EDITCONTROL *ec, const TDate *date)
Create new edit control (Date).
void * GetTabGUI(void *malloc_fn, void *mfree_fn)
Allocate GUI for tabs.
EditControlFlags
Flags for the EditControl.
Definition ui.h:151
SetSoftKeyID
Softkey IDs for SetSoftKey.
Definition ui.h:101
void * FindItemByID(GUI *gui, int id)
Find private item in the GUI.
void SetGUIDefinition(void *gui, const void *definition)
Set UI definition to the GUI.
void SetMenuItemText(void *gui, void *item, WSHDR *text, int item_n)
Set text to menu item.
int EDIT_SetTextInvert(void *gui, int position, int len)
Invert background of the part of text.
void SetMenuSoftKey(void *gui, const SOFTKEY_DESC *softkey, int softkey_id)
Add softkey to the menu.
InputDialogFlags
InputDialog options.
Definition ui.h:202
void * GetMultiLinesMenuGUI(const void *malloc_fn, const void *mfree_fn)
Allocate GUI for multi-line menu.
void ConstructEditControl(EDITCONTROL *ec, int type, int flags, const WSHDR *title, int maxlen)
Create new edit control.
void SetAlignToEditCOptions(EDITC_OPTIONS *options, int flags)
Set text attributes.
void * GetGuiByTab(void *gui, int tab_n)
Get GUI of the tab content.
void * EDIT_GetUserPointer(void *gui)
Get user pointer from the InputDialog.
void SetHeaderScrollText(void *header, const WSHDR *title, const void *malloc_fn, const void *mfree_fn)
Set scolled text to the UI header.
void SetMenuItemCount(void *gui, int items_count)
Statically set items count in the menu.
void EDIT_RemoveTextInvert(void *gui)
Remove text background ivertion.
int SetCursorTab(void *gui, int tab_n)
Switch to the given tab.
int SetPBarText(int gui_id, WSHDR *ws)
Set WSHDR string to progressbar popup.
void Menu_SetItemCountDyn(void *gui, int items_count)
Dynamically set items count on the menu.
RECT * GetMainAreaRECT(void)
Size of UI main area.
void SetHeaderText(void *header, const WSHDR *title, const void *malloc_fn, const void *mfree_fn)
Set main text to the UI header.
EDITCONTROL * PrepareEditControl(EDITCONTROL *ec)
Pre-initialize EDITCONTROL structure.
void UpdateMenuCursorItem(void *gui, int item_n)
Scroll to the given menu item and refresh the menu.
void SetHeader(void *gui, const HEADER_DESC *header, const void *malloc_fn)
Set header to the GUI.
TextInputDialogCmdID
TextInputDialog ghook commands.
Definition ui.h:189
void * GUI_GetUserPointer(void *gui)
Get custom user pointer from standard GUI, like Menu.
void SetMenuItemIconIMGHDR(void *gui, void *item, IMGHDR *icon)
Add icon to the list item (IMGHDR).
void(* MENUPROCS_DESC)(GUI *gui)
Menu item select callback.
Definition ui.h:49
int IsIconBarDisabled()
Check state of iconbar (EL71/E71).
int GetMenuItemCount(void *gui)
Get count of items on the menu.
void * GetDataOfItemByID(GUI *gui, int id)
Get data of the private item in the GUI.
void SetInvertToEditCOptions(EDITC_OPTIONS *options, int invert)
Enable background inversion.
DialogFlags
Dialog windows style flags.
Definition ui.h:82
void CopyOptionsToEditControl(EDITCONTROL *ec, const EDITC_OPTIONS *options)
Set options to the edit control.
void * AllocMLMenuItem(void *gui)
Dynamic allocation of the menu item.
void Scrollbar_Configure(WIDGET *scrollbar, int limit, int unk1, int unk2)
Configure the scrollbar's behavior constraints.
int EDIT_IsMarkModeActive(void *gui)
Check if text selection enabled.
int ShowMSG(int flags, int message)
Show info popup.
int CreatePopupGUI_ws(int flags, void *user_pointer, const POPUP_DESC *popup, const WSHDR *message)
Create custom Popup.
int GetCursorTab(void *gui)
Get index of the active tab.
void EDIT_ExtractFocusedControl(void *gui, EDITCONTROL *ec)
Get a copy of the focused edit control in the InputDialog.
int EDIT_GetFocus(void *gui)
Get index of the focused edit control.
DialogFlags PopupDialogFlags
Popup dialog flags.
Definition ui.h:91
char * RamIconBar()
Pointer to the status of iconbar (EL/E71).
EDITC_OPTIONS * PrepareEditCOptions(EDITC_OPTIONS *options)
Initialize EDITC_OPTIONS structure.
int CreateMultiLinesMenu(int style, int zero, const ML_MENU_DESC *menu, const HEADER_DESC *header, int selected_item, int items_count)
Create menu with multiline items (list with items).
void * TViewGetGUI(const void *malloc_fn, const void *mfree_fn)
Allocate GUI for TextView.
DialogFlags MsgBoxFlags
Flags for ShowMSG.
Definition ui.h:96
void EDIT_SetTime(void *gui, int n, const TTime *time)
Set time value to the edit control.
void * RamMenuAnywhere()
Key sequence buffer of the "menu anywhere" shortcut (char[4]).
void EDIT_SetDefinition(void *gui, const INPUTDIA_DESC *input_desc)
Attach the Input definition to the allocated GUI.
void SetHeaderIcon(void *header, const int *icons, const void *malloc_fn, const void *mfree_fn)
Set icons of the UI header.
void SetHeaderExtraText(void *header, const WSHDR *ws, const void *malloc_fn, const void *mfree_fn)
Set extra text to the UI header.
EditControlTypeID
Types of the EditControl.
Definition ui.h:133
void SetMenuItemIcon(void *gui, int item_n, int icon)
Set icon for a menu item.
void EDIT_GetDate(void *gui, int n, TDate *date)
Get date value from the edit control.
int EDIT_StoreControlToFocused(void *gui, const EDITCONTROL *ec)
Replace focused edit control in the InputDialog.
@ MENU_FLAGS_DISABLE_BREAKLINE
Definition ui.h:217
@ MENU_FLAGS_DISABLE_SCROLLBAR
Definition ui.h:214
@ MENU_FLAGS_ENABLE_SEARCH
Definition ui.h:218
@ MENU_FLAGS_ENABLE_BIG_LETTERS
Definition ui.h:215
@ MENU_FLAGS_ENABLE_ICONS
Definition ui.h:212
@ MENU_FLAGS_ENABLE_TEXT_SCROLLING
Definition ui.h:213
@ MENU_FLAGS_ALIGN_RIGHT
Definition ui.h:216
@ UI_CMD_FOCUS
Definition ui.h:183
@ UI_CMD_DESTROY
Definition ui.h:180
@ UI_CMD_REDRAW
Definition ui.h:181
@ UI_CMD_CREATE
Definition ui.h:179
@ UI_CMD_UNFOCUS
Definition ui.h:182
@ ECF_DISABLE_BIG_LETTERS
Definition ui.h:161
@ ECF_DEFAULT_DIGIT
Definition ui.h:165
@ ECF_DEFAULT_BIG_LETTER
Enable big letter after ". ".
Definition ui.h:162
@ ECF_DELSTR
Definition ui.h:156
@ ECF_DISABLE_EOLCHAR
In chartable.
Definition ui.h:166
@ ECF_DISABLE_SMALL_LETTERS
Definition ui.h:160
@ ECF_NORMAL_STR
Definition ui.h:152
@ ECF_DISABLE_T9
Definition ui.h:163
@ ECF_MARKED
Definition ui.h:171
@ ECF_GRAY
Definition ui.h:172
@ ECF_DISABLE_NUM
Definition ui.h:159
@ ECF_PASSW
Definition ui.h:155
@ ECF_SKIP
Definition ui.h:153
@ ECF_APPEND_EOL
Definition ui.h:157
@ ECF_DISABLE_MINUS
Also disable #.
Definition ui.h:167
@ ECF_ENABLE_TEXT_FORMAT
Definition ui.h:170
@ ECF_DISABLE_POINT
Also disable *.
Definition ui.h:168
@ ECF_SET_CURSOR_END
Definition ui.h:158
@ ECF_INVISIBLE_CURSOR
Definition ui.h:154
@ ECF_LONGDIEZ_EQ_QUESTION
Definition ui.h:169
@ ECF_DEFAULT_ITAP
Definition ui.h:164
@ SET_RIGHT_SOFTKEY
Right softkey.
Definition ui.h:108
@ SET_LEFT_SOFTKEY
Left softkey.
Definition ui.h:107
@ SET_MIDDLE_SOFTKEY
Middle softkey.
Definition ui.h:109
@ INPUTDIA_FLAGS_SWAP_SOFTKEYS
Definition ui.h:205
@ INPUTDIA_FLAGS_LOCK_CURSOR
Definition ui.h:204
@ INPUTDIA_FLAGS_READONLY
Definition ui.h:203
@ TI_CMD_COMBOBOX_FOCUS
Definition ui.h:196
@ TI_CMD_SUBFOCUS_CHANGE
Definition ui.h:195
@ TI_CMD_FOCUS
Definition ui.h:194
@ TI_CMD_UNFOCUS
Definition ui.h:193
@ TI_CMD_DESTROY
Definition ui.h:191
@ TI_CMD_REDRAW
Definition ui.h:192
@ TI_CMD_CREATE
Definition ui.h:190
@ DIALOG_NORMAL
Normal (small) window.
Definition ui.h:84
@ DIALOG_FULLSCREEN
Full-screen window.
Definition ui.h:83
@ DIALOG_DUMMY_CSM
Create a dummy CSM.
Definition ui.h:85
@ ECT_LINK
Definition ui.h:143
@ ECT_TIME
Definition ui.h:145
@ ECT_NORMAL_TEXT
Definition ui.h:137
@ ECT_CALENDAR
Definition ui.h:144
@ ECT_READ_ONLY_SELECTED
Definition ui.h:142
@ ECT_CURSOR_STAY
Definition ui.h:138
@ ECT_HEADER
Definition ui.h:135
@ ECT_FIXED_STR_NUM
Definition ui.h:139
@ ECT_READ_ONLY
Definition ui.h:134
@ ECT_NORMAL_NUM
Definition ui.h:140
@ ECT_COMBO_BOX
Definition ui.h:141
@ ECT_NUMBER_TYPING
Definition ui.h:136
Custom options for EditControl.
Definition ui.h:264
EditControl definition.
Definition ui.h:277
Linked-list of the EditControl's.
Definition ui.h:255
UI header definition.
Definition ui.h:224
InputDialog definition.
Definition ui.h:298
Menu definition (single-line).
Definition ui.h:350
Menu item.
Definition ui.h:333
Menu definition (multi-line).
Definition ui.h:367
Progressbar definition.
Definition ui.h:440
Popup definition.
Definition ui.h:385
Scrollbar widget definition.
Definition ui.h:453
UI softkey definition.
Definition ui.h:238
List of the softkeys.
Definition ui.h:247
Tabs definition.
Definition ui.h:428
Popup definition.
Definition ui.h:406
Custom options menu item for InputDialog.
Definition ui.h:323
Wide-string header.
Definition wstring.h:35
#define const
Definition zconf.h:115