Changeset 5e109e1 in mainline for uspace/lib/ui
- Timestamp:
- 2021-08-10T09:49:21Z (4 years ago)
- Branches:
- master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 307d4d2, 3a4a944f
- Parents:
- edeee9f
- git-author:
- Jiri Svoboda <jiri@…> (2021-08-09 18:49:14)
- git-committer:
- Jiri Svoboda <jiri@…> (2021-08-10 09:49:21)
- Location:
- uspace/lib/ui
- Files:
-
- 5 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/include/ui/entry.h
redeee9f r5e109e1 52 52 extern void ui_entry_set_read_only(ui_entry_t *, bool); 53 53 extern errno_t ui_entry_set_text(ui_entry_t *, const char *); 54 extern const char *ui_entry_get_text(ui_entry_t *); 54 55 extern errno_t ui_entry_paint(ui_entry_t *); 55 56 extern void ui_entry_backspace(ui_entry_t *); -
uspace/lib/ui/include/ui/msgdialog.h
redeee9f r5e109e1 31 31 */ 32 32 /** 33 * @file Message Dialog33 * @file Message dialog 34 34 */ 35 35 36 #ifndef _UI_MSG _DIALOG_H37 #define _UI_MSG _DIALOG_H36 #ifndef _UI_MSGDIALOG_H 37 #define _UI_MSGDIALOG_H 38 38 39 39 #include <errno.h> -
uspace/lib/ui/meson.build
redeee9f r5e109e1 33 33 'src/dummygc.c', 34 34 'src/entry.c', 35 'src/filedialog.c', 35 36 'src/fixed.c', 36 37 'src/image.c', … … 55 56 'test/control.c', 56 57 'test/entry.c', 58 'test/filedialog.c', 57 59 'test/fixed.c', 58 60 'test/image.c', -
uspace/lib/ui/src/entry.c
redeee9f r5e109e1 190 190 entry->pos = str_size(text); 191 191 entry->sel_start = entry->pos; 192 192 193 ui_entry_scroll_update(entry, false); 193 194 ui_entry_paint(entry); 194 195 195 196 return EOK; 197 } 198 199 /** Get entry text. 200 * 201 * @return Pointer to entry text. 202 */ 203 const char *ui_entry_get_text(ui_entry_t *entry) 204 { 205 return entry->text; 196 206 } 197 207 -
uspace/lib/ui/src/msgdialog.c
redeee9f r5e109e1 177 177 goto error; 178 178 179 dialog->bok = bok; 179 180 bok = NULL; 180 181 … … 187 188 188 189 dialog->window = window; 189 dialog->bok = bok;190 190 *rdialog = dialog; 191 191 return EOK; 192 192 error: 193 if (bok != NULL) 194 ui_pbutton_destroy(bok); 193 195 if (label != NULL) 194 196 ui_label_destroy(label); -
uspace/lib/ui/test/main.c
redeee9f r5e109e1 34 34 PCUT_IMPORT(checkbox); 35 35 PCUT_IMPORT(entry); 36 PCUT_IMPORT(file_dialog); 36 37 PCUT_IMPORT(fixed); 37 38 PCUT_IMPORT(image); … … 40 41 PCUT_IMPORT(menubar); 41 42 PCUT_IMPORT(menuentry); 43 PCUT_IMPORT(msg_dialog); 42 44 PCUT_IMPORT(paint); 43 45 PCUT_IMPORT(pbutton); -
uspace/lib/ui/test/msgdialog.c
redeee9f r5e109e1 108 108 ui_pbutton_clicked(dialog->bok); 109 109 110 /* Button callback with unfocuscallback not implemented */110 /* Button callback with callback not implemented */ 111 111 ui_msg_dialog_set_cb(dialog, &dummy_msg_dialog_cb, NULL); 112 112 ui_pbutton_clicked(dialog->bok);
Note:
See TracChangeset
for help on using the changeset viewer.