summaryrefslogtreecommitdiff
path: root/src/ui/util.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-07-17 09:00:40 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-07-17 09:00:40 +0300
commit3528bb86ab14c275c41adc7cfa29a5f5eb167ff2 (patch)
tree4b93b0f2bb9718408d4b855d1f8b8ed17a3e690f /src/ui/util.h
parent7e536572b602cba180ad4e85bd9c071479f6fa22 (diff)
Working on a UI for uploading text/data
`UploadWidget` allows entering long-form text or dropping a file for uploading. InputWidget isn't yet well suited for really long documents... Some optimizations will be needed.
Diffstat (limited to 'src/ui/util.h')
-rw-r--r--src/ui/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/util.h b/src/ui/util.h
index 43aeb172..5b02a4b3 100644
--- a/src/ui/util.h
+++ b/src/ui/util.h
@@ -242,6 +242,8 @@ iLabelWidget * makeMenuButton_LabelWidget (const char *label, const iMenuItem
242 242
243iWidget * makeTabs_Widget (iWidget *parent); 243iWidget * makeTabs_Widget (iWidget *parent);
244void appendTabPage_Widget (iWidget *tabs, iWidget *page, const char *label, int key, int kmods); 244void appendTabPage_Widget (iWidget *tabs, iWidget *page, const char *label, int key, int kmods);
245iWidget * appendTwoColumnTabPage_Widget(iWidget *tabs, const char *title, int shortcut, iWidget **headings,
246 iWidget **values);
245void prependTabPage_Widget (iWidget *tabs, iWidget *page, const char *label, int key, int kmods); 247void prependTabPage_Widget (iWidget *tabs, iWidget *page, const char *label, int key, int kmods);
246iWidget * removeTabPage_Widget (iWidget *tabs, size_t index); /* returns the page */ 248iWidget * removeTabPage_Widget (iWidget *tabs, size_t index); /* returns the page */
247void resizeToLargestPage_Widget (iWidget *tabs); 249void resizeToLargestPage_Widget (iWidget *tabs);
@@ -258,7 +260,9 @@ size_t tabCount_Widget (const iWidget *tabs);
258/*-----------------------------------------------------------------------------------------------*/ 260/*-----------------------------------------------------------------------------------------------*/
259 261
260iWidget * makeSheet_Widget (const char *id); 262iWidget * makeSheet_Widget (const char *id);
263void useSheetStyle_Widget (iWidget *);
261iWidget * makeDialogButtons_Widget (const iMenuItem *actions, size_t numActions); 264iWidget * makeDialogButtons_Widget (const iMenuItem *actions, size_t numActions);
265iWidget * makeTwoColumns_Widget (iWidget **headings, iWidget **values);
262 266
263iInputWidget *addTwoColumnDialogInputField_Widget(iWidget *headings, iWidget *values, 267iInputWidget *addTwoColumnDialogInputField_Widget(iWidget *headings, iWidget *values,
264 const char *labelText, const char *inputId, 268 const char *labelText, const char *inputId,