Commit Graph

4134 Commits

Author SHA1 Message Date
Matthias Melcher
35c8c77e5e This should fix all remaining issues with Fl_Text_*. Wrapping is no pixel aligned. Pressing up and down will be pixle bound. A few crashes removed (we still crash with faulty UTF-8svn diff | grep Index:). Fixed blinking selection when outside the widget. Added dnd sending and receiving.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7819 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-11 19:08:52 +00:00
engelsman
473d8af1a4 Added mouse!=0 check in Fl_Glut_Window::handle (STR #2381)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7818 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-11 18:22:43 +00:00
Albrecht Schlosser
1b8c550f40 Fixed compiler warning (Windows):
"`class FLEnum' has virtual functions but non-virtual destructor"


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7817 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-11 11:15:18 +00:00
Albrecht Schlosser
2105f203f1 Fixed menu and shortcut handling (STR #2243). This partly reverts the
fix for STR #2199 - for details see STR #2243.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7816 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-11 09:12:05 +00:00
Albrecht Schlosser
832c8787ab fixed erroneous removal of three lines from fltk-config.cmake.in
(STR #2408)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7815 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-11 08:54:33 +00:00
Albrecht Schlosser
3cf2305b5c removed support for gcc 2.x (or older), as discussed in fltk.development
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7814 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-11 08:38:36 +00:00
engelsman
db8d9893eb Fixed fltk-config to give --use on one line (STR #2408)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7813 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-10 21:18:17 +00:00
Matthias Melcher
d9be6bbddf Found a few more bugs in Fl_Text_* when using wrapping. Vertical slider is still off.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7812 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-09 23:32:36 +00:00
Greg Ercolano
bc3437bb15 Small documentation fix.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7811 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-08 17:21:02 +00:00
Matthias Melcher
6fbc3f3556 Added smarter Macro to check for utf-8 violations in Fl_Text_*
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7810 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-08 14:19:47 +00:00
Manolo Gouy
d2f4577fc3 Fixed crash under Mac OS X 10.3
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7809 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-08 08:10:48 +00:00
Matthias Melcher
accf34f276 Implemented search backwards for utf-8. Tested on MSWindows - OK. Tested on Linux (Ubuntu) - K.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7808 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-07 20:13:50 +00:00
Matthias Melcher
f099311481 Better alignment testing
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7807 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-06 23:58:57 +00:00
Matthias Melcher
213318ccb3 Removed some unused stuff and duplicates.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7806 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-06 23:16:07 +00:00
Matthias Melcher
b1c062ebd1 Minor changes of Fl_Text_Editor.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7805 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-06 17:51:00 +00:00
Matthias Melcher
1d9781a7ae A bunch more UTF-8 fixes for Fl_Text_Display.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7804 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-06 17:20:32 +00:00
Matthias Melcher
4758e39d28 Fixed accidental deletion of 'del'
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7803 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-06 15:23:50 +00:00
Manolo Gouy
ae9da5cff9 Simpler and cleaner handling of cocoa keyboard events.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7802 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-06 15:06:25 +00:00
Matthias Melcher
17259bcbfc One more fix
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7801 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-06 14:32:55 +00:00
Matthias Melcher
8ae745f5b3 UTF8 Text Display and Editor: added tons of tests for utf8 alignment, fixed a bunch of methods that did not understand utf8. Still lots of places to visit.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7800 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-06 14:29:12 +00:00
Albrecht Schlosser
d1a09ad73c Fixed documentation (ws2_32.lib linked dynamically)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7799 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-06 13:14:47 +00:00
Albrecht Schlosser
3e1a8e17af fixed missing header file for UTF-8 test (assert.h)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7798 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-06 13:13:28 +00:00
Matthias Melcher
0fb4feb11a Working on correct line wrapping in Fl_Text_Display: starting to replace all byte based charracter calculations with utf8 functions. Current version wraps, but scroll bars are wrong. Non-wrapping text display starts to work better.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7797 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-06 00:29:58 +00:00
Matthias Melcher
5027ca90d3 Mark all funcitons in Fl_Text_Display as not yet Unicode safe.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7796 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-05 22:01:02 +00:00
Matthias Melcher
7ab2acfbff Reformatted and completed (where possible) all comments on FL_Text_Display - maybe a rewrite from scratch *would* have been easier - sigh ;-)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7795 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-05 21:54:47 +00:00
Matthias Melcher
38dcb5a463 Starting to rework Fl_Text_Display from scratch to make wrapping work correctly. Fixed a few issues that made wrapping crash. Using ASCII range only with fixed character sizes should still wrap as expected?!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7794 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-04 21:53:56 +00:00
Matthias Melcher
644fe62283 Uninitialized variable.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7793 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-03 22:11:20 +00:00
Matthias Melcher
cac40a9b02 STR 2158: partially solved. This commit is huge, I admit. I recoded most of Fl_Text_Buffer and large chunks of Fl_Text_Display to make it UTF-8 safe. Rendering of all left-to-right scripts works well on OS X for all tested fonts. International input works AFAIK. Copy and paste of UTF-8 data works. ----> what's not working yet though is line wrapping. Also, text search for internationsl characters is not working yet.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7792 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-03 22:01:43 +00:00
engelsman
ddd4bbff1b minor formatting changes to Fl_Text_Display.cxx
fixed some out-dented text (but not exaggerated indents)
split some doxygen comments and added blank lines
added indenting to complex if statement in draw_vline()



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7791 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-02 20:30:42 +00:00
Greg Ercolano
8dac539491 Fixed docs for fl_color_chooser() function's optional 'm' flag (renamed 'cmode' for clarity).
to prevent doxygen errors. Solves engelsman's comments at bottom of STR#2226.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7790 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-01 00:29:08 +00:00
Matthias Melcher
5560a4f0f1 Fixed a few pedantic warnings. Added Fl::option as discussed in STR #2368, but I am not too happy with it yet. Please see discussion in that STR.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7789 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-31 22:39:40 +00:00
Matthias Melcher
1e26ada2c5 Fixed tab key navigation to inactive widgets (STR #2420), fixed a few pedantic warnings
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7788 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-31 20:47:50 +00:00
Matthias Melcher
48f107775d Fixed outside label redraw damage areas (STR #2436)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7787 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-31 19:35:23 +00:00
Greg Ercolano
e811ef7138 Doc for arg to Fl_Window::icon(arg) changed to match actual prototype.
(char* -> const void*)

Noticed this because docs for this method under OS issues 
wasn't showing up with html highlights.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7786 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-31 18:58:58 +00:00
Greg Ercolano
f52f1c603c Doxygen mods so fl_show_colormap() shows up in the "Color & Font functions" chapter.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7785 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-31 18:00:37 +00:00
Greg Ercolano
5a461b0ff4 Some widgets reordered for consistent keyboard navigation in tree test program.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7784 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-31 16:54:00 +00:00
Matthias Melcher
8ad7e5ccc0 Added callback when double-clicking file in a file chooser (STR#2346)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7783 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-30 21:52:38 +00:00
Matthias Melcher
b5a73c78e6 Fixed label alignment (STR #2436)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7782 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-30 21:32:15 +00:00
Matthias Melcher
9b6f68dd7c Added interface to set color chooser mode (STR #2407)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7781 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-30 20:16:43 +00:00
Matthias Melcher
f1f1d8ed42 STR 2382: Fixed compile errors when HAVE_LIBJPEG was not defined
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7780 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-30 20:01:16 +00:00
Matthias Melcher
8e30c66a92 Fixed special handling for ISO back-tab keycode (STR #2369)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7779 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-30 19:56:20 +00:00
Matthias Melcher
6017a6fae6 STR 2348: fixed possibly wrong relative path
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7778 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-30 19:46:05 +00:00
Matthias Melcher
e923015b01 STR 2370: fixed static allocation in Fl_Tabs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7777 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-30 19:28:17 +00:00
Matthias Melcher
2ca4600a7e STR 2406: Fl_Widget::measure_label made const
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7776 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-30 19:18:05 +00:00
Matthias Melcher
a04cc6b3ce Added instructions on how to create a Linux 'Code::Blocks' project
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7775 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-30 18:21:40 +00:00
Matthias Melcher
ff09e7237c Fl_Button shortcut handling would crash if the widget was deleted in the callback.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7774 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-30 16:50:44 +00:00
Matthias Melcher
9b2d8347de Added alternative names for Xft. On all Linux distors I tested, it makes no difference. If there are Unixes that need other names, the ifdef should be changed accordingly.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7773 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-30 16:32:04 +00:00
Matthias Melcher
ea2b414845 Added documentation for Fl_Tabs resizable.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7772 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-30 16:10:37 +00:00
Matthias Melcher
c18d7d5070 Added instructions for Mint Linux and Fedora.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7771 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-30 14:51:32 +00:00
engelsman
efd349ddce updated documentation for color handling - see STR #2226
- added text about color(0xRRGGBBII) call to common.dox and drawing.dox
- added doxygen comments for fl_show_chooser(), including image.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7770 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-29 22:14:59 +00:00