summaryrefslogtreecommitdiff
path: root/dw/fltkui.cc
AgeCommit message (Collapse)Author
2024-08-07Use dStrdup instead of strdupRodrigo Arias Mallo
The strdup function is not available in POSIX-2001, so we use our own implementation in dlib: dStrdup. Reviewed-by: dogma
2024-08-07Fix pedantic warningsRodrigo Arias Mallo
Reviewed-by: dogma
2016-04-18Set fallback value for textarea rows to 3.Sebastian Geerken
2015-02-04Merge with main repo.Sebastian Geerken
2015-02-03for input placeholder, set position to beginning in case it's too long to ↵corvid
show all at once
2015-02-02TEXTAREA placeholder attributecorvid
2015-01-24Merge with main repo.Sebastian Geerken
2015-01-24input init usual_colorcorvid
Not 'necessary' at present, but valgrind complains and it's always good practice.
2015-01-23Simplified interrupted drawing. (Mouse events will follow.)Sebastian Geerken
2015-01-22INPUT placeholder attributecorvid
2014-07-05Applied new RTFL macros (ENTER, LEAVE) to fltkui.cc.Sebastian Geerken
2014-03-20Merge with main repo.Sebastian Geerken
2014-03-14RTFL.Sebastian Geerken
2014-03-14Some more RTFL messages.Sebastian Geerken
2014-03-02consts for overriding const functions from Fl_Browsercorvid
clang complains about this
2013-09-02FltkToggleButtonResource: fix compilation on SGIcorvid
first brought up http://lists.auriga.wearlab.de/pipermail/dillo-dev/2013-January/009809.html
2013-04-20include optgroup-close among items in dillo-dw interface for SELECTcorvid
On the whole, this makes things easier to deal with.
2013-04-19trim some spacescorvid
2013-04-19Fl_Browser instead of Fl_Tree for <select> list box.corvid
Discussion: http://lists.auriga.wearlab.de/pipermail/dillo-dev/2012-December/009604.html http://lists.auriga.wearlab.de/pipermail/dillo-dev/2012-December/009609.html Fl_Tree didn't handle the 18000-item list in https://bugzilla.redhat.com/query.cgi?format=advanced so well, plus it's relatively heavy, plus we've found bugs in it on occasion because it's newer than Fl_Browser. Fl_Browser is naturally closer to what we use than Fl_Tree is in its ordinary default usage. Why didn't I use Fl_Browser initially when going to fltk-1.3? Documentation made it sound like fltk1 and fltk2's browsers were quite different despite having the same name (I think the APIs were rather dissimilar, although I don't feel it's worth my time to verify that right now), and I believe I had the impression that Fl_Browser was going to be too limited in some ways.
2013-01-28Fix: dialog menu is keyboard-activable again (119c5d6ba0df regression)Jorge Arellano Cid
The search engine option menu was activable with keyborad (Down key). Made this work again. Also made FORM option menus activable with Down key.
2013-01-22In textarea, ctrl-backspace deletes a word.corvid
Alexander asked for this a while back to make the behaviour more consistent -- it seems that ctrl tends to mean "a word at a time".
2012-12-30don't let form Input eat ctrl-H, eithercorvid
The other day, I saw how it uses it for backspace, and I'd left it partly because it reminds me of older unixness, but then I was reminded how ctrl-h is our default to go to the home page, so...
2012-12-28don't let form Input eat Up or Down, eithercorvid
2012-12-28don't let form Input widgets or Location eat Page_Up/Downcorvid
2012-12-25don't let form text input insert ^I, ^J, ^L, ^Mcorvid
In bug #1110, Alexander pointed out that it grabs ^L instead of letting it trigger focusing of the location bar. I note that the html5 draft currently insists that ^J and ^M not be permitted to find their way into the control's value. I imagine they could still be pasted in, but *shrugs*.
2012-12-10don't bother with FLAT_BOX for image inputcorvid
2012-12-10commentcorvid
2012-12-10fix complex button triggering from keyboardcorvid
Broken in b21a663f7de4 when fixing the coordinates for mouse click.
2012-11-30againcorvid
I think I have it just right now.
2012-11-30tweaking FltkListResource::sizeRequestcorvid
2012-11-28selection resource reset rm queueRedrawscorvid
...and do list selection through tree to get draw() calls. Selection through the item just toggles a flag, which makes sense, but I didn't particularly expect the distinction.
2012-11-28make it clear that Fl_Tree's select_only calls the callback by defaultcorvid
2012-11-28don't require an item selected for SELECT size>1 non-multiplecorvid
This had been discussed a bit a few years ago. At the time, the html4 spec's idea was that you probably should require one but that implementations varied on the details. These days, firefox doesn't, and html5 mostly tells you not to (and is clear that you can deselect the only selected one). (The world's biggest document, practically a browser written in english at the instruction level, and it still has many cases that aren't considered and spelled out carefully at this point.)
2012-11-28FltkListResource reset handle groupscorvid
2012-11-28FltkListResource: can't select groupcorvid
2012-11-25and now we can implement maxlengthcorvid
2012-11-25dw entry resource, mentions of maxLength should be sizecorvid
2012-11-24reset for <select>corvid
2012-10-31Implement some keystrokes as shortcuts to option menuitemsJorge Arellano Cid
Jump to the next menuitem whose label starts with the pressed key. If there's more than one item starting with the same letter, go to the next one, then wrap. This works when the OPTION menu is focused, not displayed. FLTK has a hacked way of handling menus which will change in FLTK3 [1] [2]. Making it work when the menu is displayed would involve copying a lot of code and dealing with hackish FLTK internals, which is not stable. It seems wiser to use this workaround until FLTK3 solves the problem. [1] http://fltk.org/newsgroups.php?s1060+gfltk.general+v1070+T0+Qmenu+scrolling [2] http://fltk.org/newsgroups.php?s1080+gfltk.general+v1087+T0+Qmenu+scrolling
2012-10-03update comments for fl_width(uint_t) workaroundcorvid
2012-06-16fix image input coordinates (bug 1070)corvid
1. coordinates weren't relative to widget. 2. margin/border/padding weren't taken into account.
2011-09-25let the enter key trigger buttons when possiblecorvid
Topic brought up by Alexander recently. In FLTK2, Enter and Space would both trigger buttons. In 1.3, only Space does it. I asked the FLTK guys about this, and I learned that Space to trigger buttons is actually old-school X behaviour that I somehow never became aware of.
2011-09-06remove trailing whitespaceJorge Arellano Cid
2011-08-04free instead of deletecorvid
2011-08-01deal with Fl_Text_Buffer::text() returning a copycorvid
2011-07-21work around a fl_width() bugcorvid
Pretty easy workaround, yes? :)
2011-07-18turn on wrapping for textareacorvid
2011-07-03draw the labels when hidden inputs are showncorvid
In fltk-1.3, it doesn't draw inside labels for Fl_Inputs, and it wasn't very nice anyway. Here I move them to the left. Johannes took a look at this change: "The only issue I could think of is that the additional draw_outside_label() would cause excessive redraws for some reason. But I didn't see anything like that during short testing here."
2011-06-29Remove wrong commentJorge Arellano Cid
2011-06-21Eliminated a pack of 22 compiler warnings (gcc-4.6.1 amd64)Jorge Arellano Cid