commit 654ccc02e5836d9d292146d9e50f022ceecad261
parent 3aa85d8a79af1a2befe0dbbc86c7656d4b608893
Author: pancake <pancake@nopcode.org>
Date: Sun, 9 May 2010 04:37:48 +0200
Apply Robert Ransom patchset fixing make clean and removing debug printf
Cleanup README and split it into TODO
Diffstat:
README | | | 59 | ----------------------------------------------------------- |
TODO | | | 15 | +++++++++++++++ |
2 files changed, 15 insertions(+), 59 deletions(-)
diff --git a/README b/README
@@ -11,62 +11,3 @@ ArchLinux: pacman -S sdl sdl_ttf sdl_image
Debian/Ubuntu: apt-get install libsdl-dev libsdl-ttf libsdl-image
Maemo n900: apt-get install libsdl1.3-dev libsdl-image1.2-dev libsdl-ttf2.0-0
-> cp config.n900.h config.h
-
-TODO
-====
-*
-* receive fine-grained x,y in Point? for sketch or imaging stuff is important
-* support for clipboard (implemented in gi_ backend)
-* simple way to define callback for buttons instead of reimplementing widget
-* full text editing widget
-* scroll on focus (discuss)
-* mouse bindings in config.h
-* allow widgets to define to force size (height, width)
-* add support to resize images (scaling)
-* only focus buttons and entries (input widgets)
-* add function to click button 1, 2, 3, ...
-* allow to load images from memory instead of files
-* default image path
-
-Text format UI design
-=====================
-
- \n -> newline
- \t -> swk_filler
- ".." -> swk_label
- ---- -> swk_separator
- ==== -> newline(-1)
- [..] -> button
- (..) -> option
- <.*> -> image
-
-Example description:
---------------------
-
- {HelloWorld
- "Press a button"
- ----------------
- (save password)
- (store options)
- [Ok] [Cancel]
- ================
- "This is new"
- <image.png>
- }
-
-Test program:
--------------
-
- void onclick() {
- if(e->type != EClick || e->box->text==NULL)
- return;
- if(!strcmp(e->box->text, "Ok")) {
- }
- }
- SwkWindow *w = swk_ui(
- "{HelloWorld\n
- "\"Press a button\"\n"
- "--\n"
- "[Ok] [Cancel]\n==\n");
- w->cb = onclick;
- swk_ui_free(w);
diff --git a/TODO b/TODO
@@ -0,0 +1,15 @@
+TODO
+====
+
+* receive fine-grained x,y in Point? for sketch or imaging stuff is important
+* support for clipboard (implemented in gi_ backend)
+* simple way to define callback for buttons instead of reimplementing widget (?)
+* full text editing widget (multiline, cursor support, text format, ...)
+* scroll on focus (if focused widget is not in screen, just scroll there..)
+* mouse bindings in config.h (which mouse bindings we need? wheel to scroll?)
+* allow widgets to force its own size (height, width)
+* add support to resize images (scaling)
+* only focus buttons and entries (input widgets)
+* add function to click button 1, 2, 3, ... // clicking from code..
+* allow to load images from memory instead of files
+* default image path (?)