diff options
Diffstat (limited to 'src/ui/util.h')
-rw-r--r-- | src/ui/util.h | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/src/ui/util.h b/src/ui/util.h index 6595b94c..9ef166de 100644 --- a/src/ui/util.h +++ b/src/ui/util.h | |||
@@ -1,5 +1,28 @@ | |||
1 | /* Copyright 2020 Jaakko Keränen <jaakko.keranen@iki.fi> | ||
2 | |||
3 | Redistribution and use in source and binary forms, with or without | ||
4 | modification, are permitted provided that the following conditions are met: | ||
5 | |||
6 | 1. Redistributions of source code must retain the above copyright notice, this | ||
7 | list of conditions and the following disclaimer. | ||
8 | 2. Redistributions in binary form must reproduce the above copyright notice, | ||
9 | this list of conditions and the following disclaimer in the documentation | ||
10 | and/or other materials provided with the distribution. | ||
11 | |||
12 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
13 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
14 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
15 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR | ||
16 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
17 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
18 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
19 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
20 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
21 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | ||
22 | |||
1 | #pragma once | 23 | #pragma once |
2 | 24 | ||
25 | #include <the_Foundation/string.h> | ||
3 | #include <the_Foundation/rect.h> | 26 | #include <the_Foundation/rect.h> |
4 | #include <the_Foundation/vec2.h> | 27 | #include <the_Foundation/vec2.h> |
5 | #include <SDL_events.h> | 28 | #include <SDL_events.h> |
@@ -117,8 +140,11 @@ void makeFilePath_Widget (iWidget *parent, const iString *initialPath | |||
117 | iWidget * makeValueInput_Widget (iWidget *parent, const iString *initialValue, const char *title, | 140 | iWidget * makeValueInput_Widget (iWidget *parent, const iString *initialValue, const char *title, |
118 | const char *prompt, const char *acceptLabel, const char *command); | 141 | const char *prompt, const char *acceptLabel, const char *command); |
119 | void updateValueInput_Widget (iWidget *, const char *title, const char *prompt); | 142 | void updateValueInput_Widget (iWidget *, const char *title, const char *prompt); |
120 | void makeMessage_Widget (const char *title, const char *msg); | 143 | iWidget * makeMessage_Widget (const char *title, const char *msg); |
121 | iWidget * makeQuestion_Widget (const char *title, const char *msg, | 144 | iWidget * makeQuestion_Widget (const char *title, const char *msg, |
122 | const char *labels[], const char *commands[], size_t count); | 145 | const char *labels[], const char *commands[], size_t count); |
123 | iWidget * makePreferences_Widget (void); | 146 | |
124 | iWidget * makeBookmarkEditor_Widget(void); | 147 | iWidget * makePreferences_Widget (void); |
148 | iWidget * makeBookmarkEditor_Widget (void); | ||
149 | iWidget * makeBookmarkCreation_Widget (const iString *url, const iString *title, iChar icon); | ||
150 | iWidget * makeIdentityCreation_Widget (void); | ||