summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2014-04-27Fix STR#3063: compilation using Mac OS 10.4 (cont'd).Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10129 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-04-27Fix STR#3063: compilation using Mac OS 10.4 (cont'd).Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10128 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-04-19Added "gleam" to docs for Fl::scheme()Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10126 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-03-30Minor reformatting to follow the coding style of the CMP.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10124 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-03-28Removes a constraint that the fancy string drawing function fl_draw() is ↵Manolo Gouy
limited to 1024 chars/line that blocked a user of the Fl_Browser widget (see "fl_draw MAXBUF limit" in fltk.coredev). Also, removed a useless computation in string expansion that checked for valid UTF-8 sequences: the point is that a valid UTF-8 sequence for a non-ascii char contains no ascii char, thus no tab, space, control, & or @ we want to process differently. Also, invalid UTF-8 sequences are copied unchanged by this procedure. Therefore, checking for tab, space, control, & or @, and copying the byte otherwise, is enough. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10123 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-03-24Fixing STR#3009 as a two step process:Greg Ercolano
1) Undo r9867 (a fix for STR#2939) which made more changes than needed Doing this will also fix #3009. 2) Apply just the small mod needed to fix STR#2939 so that both #3009 and #2939 are solved. This commit resolves (2), which re-fixes STR #2939. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10122 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-03-24Fixing STR#3009 as a two step process:Greg Ercolano
1) Undo r9867 (a fix for STR#2939) which made more changes than needed Doing this will also fix #3009. 2) Apply just the small mod needed to fix STR#2939 so that both #3009 and #2939 are solved. This commit resolves (1). Next commit will resolve (2). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10121 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-03-22Mac OS: drawing to windows at each FLTK event loop is now done as normally ↵Manolo Gouy
with Cocoa, that is, by the [NSView drawRect:] implementation. The system therefore has prepared before the adequate graphics context for the window. This introduces a limitation: it's not possible to call Fl::wait(), Fl::check() nor Fl::ready() while in the draw() function of a widget. Use an idle callback instead. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10119 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-03-13Fixed casing issue for code comment: XkbSetDetectableAuto*R*epeat()Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10118 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-03-05Removed unnecessary clip when printing a sub-window.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10116 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-25Added fl_gleam.cxx..Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10114 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-25Applying the etorres gleam patch. STR #2672.Greg Ercolano
TODO: Xcode 4 ide needs fl_gleam.cxx added Test of Visual Studio IDE mods (which were hand-modified) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10113 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-23print_window():: make the test specific to a printer device.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10112 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-22Check for use of the Fl_GDI_Printer_Graphics_Driver class to detect printer ↵Manolo Gouy
usage. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10111 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-22Better separate printer-specific code using virtual ↵Manolo Gouy
Fl_GDI_Printer_Graphics_Driver::draw(Fl_Bitmap*...) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10110 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-20It's better to reset the widget's damage bits after ↵Manolo Gouy
Fl_Paged_Device::print_widget() (cont'd). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10109 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-20It's better to reset the widget's damage bits after ↵Manolo Gouy
Fl_Paged_Device::print_widget(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10108 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-19Fixed processing of menu shortcuts for Fl_Sys_Menu_BarManolo Gouy
in the case of an invisible item. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10106 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-19Invisible items and submenus are now skipped Manolo Gouy
when building MacOS menus. Previously, corresponding MacOS items were first built and then deleted. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10105 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-16Fixes STR #3018 -- thanks kdiman for complete patch.Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10104 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-16Fixes STR #3054Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10103 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-11Completed the implementation of Fl_Sys_Menu_Bar that now accepts all calls ↵Manolo Gouy
of its parent class Fl_Menu_. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10102 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-11Exclude processing of system menu shortcuts when a modal window is running.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10100 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-10Improvement of the Fl_Sys_Menu_Bar class in relation to STR #3047:Manolo Gouy
- menu shortcuts, including function keys, are correctly handled - the mac system menus and FLTK menus share Fl_Menu_Item's, thus many member functions of the parent Fl_Menu_ class apply equally to an Fl_Sys_Menu_Bar. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10099 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-07Fix crash when Fl_Window::flush() is called before show() (STR #3028).Albrecht Schlosser
The fix is twofold: (1) if Fl_Window::flush() is called, this is ignored silently (2) if Fl_Window::make_current() is called directly, but the window is currently not shown(), then the program will be terminated with an error message. The latter is necessary because returning from make_current() would leave the program in a state where it would expect to have a valid drawing context. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10095 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-05Revert the revert in r10060, reinstating commit r10030.Pierre Ossman
The reason the code was problematic was because of r4589, where a call to PostQuitMessage() snuck in. As we could not find a valid reason for that PostQuitMessage(), it has been removed and FLTK is now again properly responsive to WM_QUIT messages. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10094 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-31Fixes STR #3040Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10089 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-30Mac OS: have Fl_Paged_Device::print_window() support all devices.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10088 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-27Fixes STR#3041, int -> size_tGreg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10086 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-25Fix potential memory leak in text buffer (STR # 3035).Albrecht Schlosser
Also small code formatting, remove one redundant statement. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10083 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-25Remove extraneous parentheses, fix STR #3036.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10082 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-24More Fl_Tree doc improvements.Greg Ercolano
Only docs changed here, no code changed.. one method's definition moved to match similar method organization. Some redundant docs (for const vs. non-const) changed by referring the non-const method to the const one, to reduce size. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10081 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-23Small doc tweaks to Fl_Tree's insert()/insert_above() docs.Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10080 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-23Added some code examples to docs forGreg Ercolano
Fl_Tree::insert() Fl_Tree::insert_above() git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10079 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-22Mac OS: handle possible NULL return after screen capture attempt.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10078 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-21Mac OS: use the exact title bar font when printing window.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10077 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-21Small documentation fixups.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10076 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-21New method Fl::scheme_is(const char *name).Albrecht Schlosser
This is a convenience method to support easier implementation of scheme-specific code in draw() methods and elsewhere. Also improved Fl::scheme(const char *name) documentation. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10075 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-21Fix strcasecmp() issues (again), see STR #2994.Albrecht Schlosser
This new temporary fix improves handling of strcasecmp() for CMake-generated Makefiles (cmake -G "MSYS Makefiles" ..). For some unknown reason (maybe other compiler flags?) this showed lots of *warnings* again. A better fix (replacing direct calls to strcasecmp() with fl_strcasecmp() or similar will follow later. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10074 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-21Mac OS: improved window printing when window title is longer than the window ↵Manolo Gouy
width. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10073 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-21Added missing non-const versions of find_clicked()Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10072 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-20o Added draw_item_content() to Fl_Tree_Item,Greg Ercolano
a volatile method that can be overridden by subclasses to take drawing control of tree item's content. This replaces the old "item_draw_callback()" technique added a few months ago as an ABI feature; turned out the new technique is a better way to go. o The examples/tree-custom-draw-items.cxx demo adjusted accordingly. o Added missing docs for some methods that had none, including label_[xywh](). o Added related methods needed to implement this, including: Fl_Tree_Item_Array::replace() Fl_Tree_Item::replace() Fl_Tree::root(item) Fl_Tree::add() variations Fl_Tree_Item::drawbgcolor()/drawfgcolor() o Carefully worked the FLTK_ABI_VERSION macros so as to be ABI compatible with 1.3.0. o Verified 1.3.0 ABI compatibility with ABI Compliance Checker 1.99.8.5: http://ispras.linuxbase.org/index.php/ABI_compliance_checker git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10071 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-20Implements STR#3031:Greg Ercolano
* Adds '!' (FL_META) and '@' (FL_COMMAND) modifiers to fl_old_shortcut() * Also adds more specific docs on how to properly use git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10070 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-19It was incorrect to keep in the system menu pointers to menu items become ↵Manolo Gouy
items move around. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10069 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-19Mac OS: drawing to screen is now performed by direct drawing to windows ↵Manolo Gouy
(drawing was done to views before). This eliminates the necessity to lock/unlock views that was tricky to do properly because of interaction with undocumented system-performed locks. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10068 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-18Mac OS: put idle processing under an alloc/release pair of an NSAutoreleasePool.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10066 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-16Two functions strcnt() with distinct prototypes where defined and only one ↵Manolo Gouy
was used, causing a -Wunused-function warning. Also strcnt() is used in WIN32 only, so should not belong to Fl_Native_File_Chooser_common.cxx that contains functions used across platforms. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10064 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-16Better way to force linking of Fl_Gl_Device_Plugin.o whenever Fl_Gl_Window.o ↵Manolo Gouy
is linked, that doesn't use the "volatile" attribute (suggested by Albrecht). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10063 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-16ABI fixes.Greg Ercolano
These are problems "ABI Compliance Checker" found with the recent Fl_Tree mods. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10062 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-15Mac OS: when computing a texture, save/restore the global fl_gc variable.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10061 ea41ed52-d2ee-0310-a9c1-e6b18d33e121