Commit Graph

2976 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
Matthias Melcher
0d214036bc Jenkins fixed
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9418 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-30 23:18:28 +00:00
Matthias Melcher
b5465c7cde Testing Jenkins
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9417 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-30 23:02:50 +00:00
Greg Ercolano
b395ce78de Grr, looks like Fl_Group::update_child()
doesn't include drawing the label, so include drawing that explicitly.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9414 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-30 21:42:31 +00:00
Greg Ercolano
f8d269725d Fixes focus issues:
o Nav keys were being used even if widget didn't have focus
	o When Fl_Input was used as immediate child, wasn't redrawing properly
	  when typing into input fields. (noticed problem with test program in STR# 2832)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9413 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-30 21:22:57 +00:00
Greg Ercolano
165cd2b63b Fixes STR#2832; support labels on tree child widget()s.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9411 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-30 17:14:15 +00:00
Fabien Costantini
0ab2bd9dda Added cocoa improvement inspired for from ossman improvement STR2802 for modal windows...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9407 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-28 00:46:24 +00:00
Fabien Costantini
e67e798aeb Fixed build break on FLTK_ABI_VERSION >= 10302 introduce in r9293 as extern ref to fl_copy_offscreen would not be found anymore by linker... This can't be captured yet by the Jenkins continous intergration builds as the compilation is for the FLTK_ABIVERSION >= 10302
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9406 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-28 00:42:31 +00:00
Greg Ercolano
474feee1db o Added FL_TREE_ITEM_HEIGHT_FROM_WIDGET option to item_draw_mode()
to allow widgets to control the size of items in the tree
  (instead of vice versa).

o Added item_draw_mode(int) to allow for easier bitflag maintenance,
  since enums don't seem to be typesafe yet.

o Tree demo modified to demonstrate this feature.
  An important feature for adding large widgets to tree items.
  Will probably add an example, 'tree-of-tables' to demo this usage.

o Small doc fixes.

o Had to rename FL_TREE_ITEM_DRAW_WIDGET_ONLY to FL_TREE_ITEM_DRAW_DEFAULT.
  Its meaning for the bit fields changed when new bit fields were added.
  (The prev name just didn't make sense in the new context. Since it was
  just a few svn commits old and an unreleased ABI feature, it shouldn't
  affect anyone not in R&D)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9404 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-27 02:03:48 +00:00
Fabien Costantini
fa60da1ca7 Optimized final string ending sorting test
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9403 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-24 04:58:28 +00:00
Fabien Costantini
78a8821bc5 Optimized unnecessary use of strlen()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9402 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-24 04:50:56 +00:00
Greg Ercolano
bb8f51ea1a Fixes STR #2796
Prevent situations where user finds themselves scrolled past bottom of tree.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9400 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-24 04:45:03 +00:00
Fabien Costantini
41d77efe8e Fixed comments
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9399 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-24 04:42:46 +00:00
Fabien Costantini
6588c7f390 Fixed indentation as specified by the CMP
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9398 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-24 04:40:50 +00:00
Fabien Costantini
2340ea06a6 Fixed a sorting issue w/ different sizes
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9397 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-24 04:32:51 +00:00
Fabien Costantini
8154316dc5 improved ascii strcasecmp, and use it in font sort instead of strcasecmp
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9396 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-24 03:52:00 +00:00
Fabien Costantini
d90b170c8d Fixed more warnings in VC2010 32+64 bits builds
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9395 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-24 03:34:26 +00:00
Fabien Costantini
36c52ce810 Fixed even more warnings in Fl_x.cxx & utf8Wrap.c
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9394 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-24 02:44:21 +00:00
Fabien Costantini
5e0ecd4dab Fixed a warning in utf8Wrap.c
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9393 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-24 02:28:51 +00:00
Fabien Costantini
9011c77c0e Added range test in new fl_ascii_strcasecmp to avoid potential false positives.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9390 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-24 01:12:54 +00:00
Matthias Melcher
e2d3d400cd Reverted flags in Fl_Widget to protected.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9388 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-23 20:12:06 +00:00
Greg Ercolano
d07ef80207 Various Fl_Tree enhancements:
o Added keyboard navigation table
    o Added Shift-Click to extend selection, Ctrl-Space to toggle selection, Enter key toggle
    o Added protected extend_selection(from_item,to_item)
    o Cleanup of Fl_Tree::handle()
    o Limit ^A to multi-select mode only
    o Disable focus box in SELECT_NONE mode
    o test/tree: changed default mode to 'multiselect' (most often needs testing)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9385 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-23 16:31:51 +00:00
Greg Ercolano
42416fa912 Fixed problem with linespacing(): should not affect widget() size
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9381 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-22 17:42:18 +00:00
Greg Ercolano
2ae607e8ba o doc fixes
o new calc_item_height() -> const
o Added a needed ABI ifdef



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9380 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-22 14:21:08 +00:00
Greg Ercolano
f58cd169c0 Various mods for Fl_Tree
o Fix STR#2828 (E): {Vertical|Widget} Gap
    o Moved Fabien's reselected methods to Fl_Tree_Prefs,
      return method made const, doxygen, removed underbars from methods
      (to follow general API)
    o Widgets can now appear to the right of labels.
      This can be controlled with item_draw_mode(FL_TREE_ITEM_DRAW_LABEL_AND_WIDGET)
    o Cleaned up Fl_Tree_Item::draw(), Fl_Tree::draw()
    o New methods:
            marginbottom()       -- [ABI feature] extra space below last tree element when scrolling
            widgetmarginleft()   -- [ABI feature] space to left of widget
            usericonmarginleft() -- space to left of usericon
            labelmarginleft()    -- space to left of label
            item_draw_mode()     -- control how items, widget() are drawn
    o Updated Fl_Tree docs, tree-elements.png
    o test/tree: added sliders to test the above new features,
      added "open all" and "close all" buttons
    o Probably other stuff..


TODO: Fix "scroll-beyond-bottom" (STR#2796)
TODO: Fix other items in STR#2828



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9377 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-22 13:40:02 +00:00
Fabien Costantini
dc6e8a5f8a fixed missing win32 preprocessor clause
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9375 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-22 03:09:31 +00:00
Fabien Costantini
a5196976cc restore transparent_c use for win32...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9374 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-22 02:59:27 +00:00
Fabien Costantini
822bc272fc Fixed linux 64 gcc 4.6.1 compilation problems
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9373 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-22 02:45:09 +00:00
Fabien Costantini
1b01c3a94c STR 2771 fix cont'd used the new api in scheme(const char*)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9369 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-21 17:40:07 +00:00
Fabien Costantini
56a184d529 STR 2771 fix: introduce a new ascii strcasecmp that does not rely on locale sensitive toupper tolower.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9368 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-21 17:21:11 +00:00
Fabien Costantini
157a96aa4b STR2783: make potential null string substituted to an empty string, still achieve internal cleanup in Fl_Text_Buffer::text(s)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9366 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-21 15:05:00 +00:00
Matthias Melcher
eb9b58c7cc Fl::arg now removes a command line argument that is added by Xcode. This will help "Demo" to run again
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9365 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-21 11:13:10 +00:00