Commit Graph

5219 Commits

Author SHA1 Message Date
Manolo Gouy
fdb8fdfb2a Mac OS X: don't use the HAVE_SCANDIR_POSIX preprocessor variable because it has an
OS version-dependent value.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9665 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-08-14 09:23:22 +00:00
Matthias Melcher
4c11d57da7 OS X: fixed compilation on Xcode 4.4. Removed SDKROOT dependency on 10.6
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9660 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-08-06 08:16:37 +00:00
Manolo Gouy
bf6024175d Fixed compilation under Mac OS X 10.8 "Mountain Lion".
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9649 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-08-01 08:43:20 +00:00
Greg Ercolano
71a2e6dd32 Doc fixes for resize() and fullscreen_off():
added variable names to prototypes so doxygen will doc them properly.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9645 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-07-26 00:40:37 +00:00
Greg Ercolano
dd966cb135 Doc fixes for Fl_Window::size_range().
Fixes STR#2863.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9644 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-07-26 00:30:25 +00:00
Matthias Melcher
4e0bc49713 Fixed fl_utf_strncasecmp etc.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9639 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-07-24 19:49:37 +00:00
Matthias Melcher
398acd9c2a STR 2705: moved all inline constructors (that I could find) from header files into source files. Even though this breaks downward compatibility, it does make dynamic linking possible for all classes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9637 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-07-24 04:37:22 +00:00
Greg Ercolano
e607c90877 Added docs to Fl_Sys_Menu_Bar to refer to fl_mac_set_about().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9636 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-07-23 15:31:38 +00:00
Albrecht Schlosser
ba8fd78d6b Fix cast using both (unsigned char) and (int) to make sure that
char values > 127 are *positive* int's. (STR #2726)
--This line, and those below, will be ignored--

M    fluid/Fl_Type.cxx


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9635 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-07-14 18:31:43 +00:00
Manolo Gouy
88793e46cb Correct a dead URL in code comments.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9630 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-06-28 08:38:14 +00:00
Greg Ercolano
4b80dde748 Imported Walter Garms' comments re:BIF_SHAREABLE from the
./TODO file that came with the original version of FNFC.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9629 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-06-26 07:03:46 +00:00
Manolo Gouy
cbcf0c9312 Fixed STR #2644: support horizontal wheel movement under X11 and MSWindows.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9624 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-06-21 08:52:29 +00:00
Manolo Gouy
27e406f751 Mac OS: some optimization of timer objects + code reordering.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9618 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-06-16 08:49:52 +00:00
Manolo Gouy
51ca904eb3 Mac OS: improved Fl::repeat_timeout() so the next scheduled timeout is counted from the previous one.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9611 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-06-15 15:08:17 +00:00
Manolo Gouy
a413dd4340 Fix STR#2856: extend the fullscreen demo to show screen and work area sizes (cont'd).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9605 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-06-14 15:09:46 +00:00
Manolo Gouy
483d064559 Fix STR#2856: extend the fullscreen demo to show screen and work area sizes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9604 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-06-14 14:36:11 +00:00
Manolo Gouy
c0e01b24da Mac OS: added necessary fl_open_display() in Fl::y() and Fl_X::screen_work_area() functions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9602 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-06-14 12:41:19 +00:00
Manolo Gouy
25bfd177ef Fix STR#2855: improved detection of screen configuration changes under X11
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9600 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-06-14 08:36:43 +00:00
Greg Ercolano
adf9aff218 Removed errant D=0 docs that were not relevant to Fl_RGB_Image (thanks manolo).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9595 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-06-13 17:47:03 +00:00
Greg Ercolano
8116b1d6cb Improved docs for Fl_RGB_Image() ctor.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9594 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-06-13 13:13:40 +00:00
Manolo Gouy
f656c0627c Mac OS: improved behavior when unhiding an application with minimized windows.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9592 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-06-13 10:46:53 +00:00
Greg Ercolano
1e9a7ae21d Removed unused argument..
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9590 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-06-12 18:32:36 +00:00
Manolo Gouy
3ce92f408f Fixed STR#2848: Mac OS: close putative memory leak when detaching child threads.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9588 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-06-12 15:36:33 +00:00
Manolo Gouy
25b66914d5 Document that the dropping of filenames under X11 produces a URL-encoded, UTF_8 string.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9584 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-06-10 12:33:04 +00:00
Manolo Gouy
2e2e637c2f Added declaration of fl_decode_uri(char*) to filename.H.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9581 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-06-10 09:38:29 +00:00
Manolo Gouy
3c87a80279 Added function fl_decode_uri(char*) to support the drag-and-drop of files to FLTK widgets
on the X11 platform (see STR#2849).

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9580 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-06-10 09:24:33 +00:00
Fabien Costantini
145b44110b Minor comments formatting discrepancies fix.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9573 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-06-06 03:38:02 +00:00
Manolo Gouy
0cfd9a1a23 button demo program: use fl_beep() function.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9570 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-06-02 08:59:45 +00:00
Manolo Gouy
7fadd473af Fix STR#2846: revert CMakeLists.txt as before libpng upgrade
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9556 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-05-29 14:08:40 +00:00
Greg Ercolano
df5c8cc76f Fixed some keynav problems:
No focus, hitting down would skip first item
    Enter key to toggle was falling through to other widgets
    Removing an item that has focus clears item focus (to prevent wild ptr)

Added new methods:
	Fl_Tree::get_item_focus()
	Fl_Tree::first_visible()
	Fl_Tree::last_visible()
	Fl_Tree::is_vscroll_visible()

Simplified + fixed Fl_Tree_Item::next_displayed()

Fixed Fl_Tree_Item::visible_r(), was skipping item if it was a closed branch.

tree demo: fixed button ordering for "Test Suggestions" button



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9555 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-05-29 13:34:39 +00:00
Greg Ercolano
3bcc267052 Mac only: centered down arrow for mac.
This helps user's clicking accuracy;
clicks on lower part of the down arrow's geoemtry was being missed.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9554 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-05-28 19:13:07 +00:00
Greg Ercolano
b547a4f5dc Fixed doc typo
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9553 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-05-28 15:39:12 +00:00
Manolo Gouy
aa2ed50292 Added Doxygen doc of Fl_File_Chooser::showHiddenButton.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9551 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-05-27 15:41:20 +00:00
Greg Ercolano
6295b803b7 SGI fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9549 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-05-26 22:51:07 +00:00
Manolo Gouy
f1210a7fd2 Fixed Doxygen doc of Fl_File_Native_Chooser::SAVEAS_CONFIRM
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9547 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-05-25 14:46:02 +00:00
Manolo Gouy
b05079b38a Fixed the Doxygen doc of Fl_Slider::Fl_Slider(uchar t, int X, int Y, int W, int H, const char* L).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9538 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-05-20 17:06:10 +00:00
Greg Ercolano
b879b0673a Added some descriptions to colors, switched jpg -> png.
(jpeg was 2x larger)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9524 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-05-17 23:34:17 +00:00
Greg Ercolano
7dcf31ff36 Added colormap with index numbers in the legends to the "Colors"
section of the 'Drawing Things in FLTK' section. This should make it easy
to quickly identify the color numbers of the default FLTK colormap entries.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9521 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-05-17 22:42:26 +00:00
Greg Ercolano
34716f86a0 Added three methods and dox to Fl_Tooltip:
margin_width()	-- controls margins around tooltip's text
	margin_height()	-- controls margins above and below tooltip's text
	wrap_width()	-- controls maximum width of text before wordwrapping is enforced

These are read-only for the current release, 
and read/write as an ABI feature.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9510 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-05-16 23:19:37 +00:00
Greg Ercolano
f9d8abbf7b o Added color() methods to get/set color of input field.
o ABI feature: change input and up/down buttons from 'private' to 'protected'



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9500 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-05-16 07:25:11 +00:00
Greg Ercolano
041a77c347 Small adjust
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9481 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-05-11 12:19:04 +00:00
Greg Ercolano
7e66b6ee3c Added screenshot for Fl_Spinner docs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9480 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-05-11 12:12:00 +00:00
Greg Ercolano
31f320e2c6 o Added new 0xffffffff 'transparent' color behavior for the item's bg color;
with this as the default color, Fl_Tree::color() can control the tree's background.
  Tests added to the test/tree application.

o test/tree.fl modified:
    o Added a 'Test Suggestions' button to document various tests
    o Added tests for new 'transparent' color behavior
    o Added test for STR#2832 to check if items can be drawn to the /right/ of child widgets

o Added new methods to Fl_Tree_Prefs:
    item_labelfont()     -- obsoletes labelfont()
    item_labelsize()     -- obsoletes labelsize()
    item_labelfgcolor()  -- obsoletes labelfgcolor()
    item_labelbgcolor()  -- obsoletes labelbgcolor()

o Added 'Fonts and Colors' section to Fl_Tree docs

o Fl_Tree_Item ABI feature added: using bitflags instead of chars
  to keep the class small, as it gets instanced a lot. (fast + LIGHT)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9478 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-05-09 21:26:32 +00:00
Manolo Gouy
4a5e1ec196 Fixed Fl_PostScript_Graphics_Driver::pie().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9469 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-05-09 11:45:08 +00:00
Greg Ercolano
ebf71d633b Documentation improvements:
o Added fl_text_extents() to the 'Drawing things in FLTK' section
	o Added 'see also' sections to all the text measuring functions in that section
	o Added detail to fl_text_extents() docs regarding it not handling FLTK symbols,
	  as non-public comment for that method indicates.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9463 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-05-08 16:15:34 +00:00
Albrecht Schlosser
21520a3d5e Remove redundant redraw_label() call from copy_label(), STR #2836.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9452 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-05-07 07:18:11 +00:00
Albrecht Schlosser
66cea4322f Fix STR #2836: copy_label() with old label() value failed.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9443 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-05-05 13:36:47 +00:00
Greg Ercolano
93fd842a5b Fixes small redraw problem with Fl_Tree child widgets on linux, perhaps others.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9431 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-05-02 18:37:00 +00:00
Manolo Gouy
547fc0a3f0 Added Fl_Graphics_Driver::vertex_no(), vertices() and vextex_kind() accessor functions useful
to implement some virtual functions of new graphics drivers.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9427 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-05-02 13:44:52 +00:00
Manolo Gouy
1229ac8808 Fix STR#2831: regression in Fl_Pixmap drawing under X11.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9421 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-05-01 14:33:30 +00:00