Commit Graph

4720 Commits

Author SHA1 Message Date
Manolo Gouy
9bca5472d5 Corrected typo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8363 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-03 09:31:51 +00:00
Manolo Gouy
8072ef8ce8 Replaced a bunch of delete by delete[] where it's legitimate.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8362 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-02 18:39:34 +00:00
Manolo Gouy
40624df4a9 Removed iff's from Doxygen comments.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8361 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-02 17:53:14 +00:00
Manolo Gouy
18156dfb30 Removed global variable fl_surface that was not very useful because equivalent
to Fl_Surface_Device::surface().

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8360 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-02 12:42:47 +00:00
Manolo Gouy
bb29437427 Removed global variable fl_display_device that was not very useful because equivalent
to Fl_Display_Device::display_device().

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8359 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-02 11:29:18 +00:00
Manolo Gouy
864918b6b2 Minor change in Fl_System_Printer constructors: use the same graphics driver as the display.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8358 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-02 09:55:47 +00:00
Manolo Gouy
816fc3b971 Mac OS only: added class Fl_Mac_App_Menu to support localization
of the application menu. Added corresponding Doxygen doc.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8357 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-01 21:31:57 +00:00
Greg Ercolano
073e051589 Mods to examples Makefile for windows mingw/msys builds.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8356 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-01 19:10:13 +00:00
Manolo Gouy
3204979d8b Some Doxygen doc cleaning.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8355 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-01 15:42:04 +00:00
Manolo Gouy
b313a441cd Some Doxygen doc cleaning.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8354 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-01 15:41:04 +00:00
Manolo Gouy
e7813bd7dc Some Doxygen doc cleaning.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8353 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-01 15:05:41 +00:00
Greg Ercolano
7faf669422 Documentation fixups, code examples added.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8352 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-01 14:13:18 +00:00
Manolo Gouy
348e3367d9 Minor code simplification.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8351 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-01 12:43:31 +00:00
Manolo Gouy
45e539fff8 fl_draw_image() on Mac OS and to a printer requires the image data to be kept until the
page is finished. Thus, we now duplicate this data when the output is a printer, so the
caller of the function does not have to take into account this Mac OS specificity.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8349 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-01 10:13:54 +00:00
Greg Ercolano
2192b8aed2 Separated tree and tree_item methods.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8348 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-01 03:27:23 +00:00
Greg Ercolano
9510d1d52b Fixes to help build on SGI.
Mainly: problem with C++ style comments that were in C code and headers.
SGI C compiler / pre processor no grok C++ comments.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8347 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-01 01:06:27 +00:00
Greg Ercolano
5759f3151f Avoid non-ansi scoping issue with variables defined inside for() loops.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8346 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-01 00:08:45 +00:00
Manolo Gouy
7531d0e95f Some Doxygen doc fine tuning.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8345 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-31 18:04:09 +00:00
Manolo Gouy
caef04e057 Fixed WIN32 crash when the file dialog window is cancelled.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8344 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-31 17:46:55 +00:00
Manolo Gouy
b42f5ebdbf Fl_Paged_Device::print_window_part() doesn't need special WIN32 processing any more.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8343 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-31 17:17:54 +00:00
Manolo Gouy
535f0c2d3b Introduction of the Fl_Printer class requires all member functions of class
Fl_Paged_Device to be virtual. That is done here.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8342 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-31 15:53:23 +00:00
Manolo Gouy
1993f08a33 Added Fl_Printer::add_image(const ichar*) needed for correct memory usage by
Fl_Paged_Device::print_window_part().

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8341 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-31 13:02:55 +00:00
Greg Ercolano
2c5006563f Fl_Tree API breaking changes (we haven't released 1.3.0 yet..):
Fl_Tree::labelsize() -> item_labelsize()            -- TO AVOID COLLISION WITH Fl_Widget::labelsize()!
    Fl_Tree::labelfont() -> item_labelfont()            -- TO AVOID COLLISION WITH Fl_Widget::labelfont()!

Fl_Tree_Prefs (internal) changes:
    Fl_Tree_Prefs::fgcolor() -> labelfgcolor()          -- for consistency with above
    Fl_Tree_Prefs::bgcolor() -> labelbgcolor()          -- for consistency with above
    Fl_Tree_Prefs::selectcolor() removed                -- uses Fl_Widget::selection_color() instead
    Fl_Tree_Prefs::inactivecolor() removed              -- was unused; inactive color procedurally calculated

Other Fl_Tree mods:
    o Fixed bug with select_all(item) and deselect_all(item)
      (they were not limiting themselves to children of specified item)
    o Fixed bug with item not drawing in its /own/ bgcolor when item selected
    o Fl_Tree uses the Fl_Widget::selection_color()
    o All methods that deal with 'font types' changed int -> Fl_Font
    o All methods that deal with 'font sizes' changed int -> Fl_Fontsize
    o Added needed methods to Fl_Tree for accessing colors:

        item_labelfgcolor()     -- access default fg color used for new items
        item_labelbgcolor()     -- access default bg color used for new items
        tree_connectorcolor()   -- access the connector line color

    o Small doxygen comment adjustments and general clarifications
    o test/tree demo modified to include testing of new label color methods, cleanup



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8340 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-30 20:22:06 +00:00
Ian MacArthur
31db787583 Oops - someone committed a typo in Fl_Spinner.H - I think this is an adequate fix.
Needed this change to make r8338 build for me.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8339 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-30 12:50:19 +00:00
Manolo Gouy
d4ad141d4d Reorganization of the Doxygen docs of some Fl_Image class functions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8338 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-30 09:24:40 +00:00
Manolo Gouy
5850cc1334 Minor changes in Doxygen docs of Fl_Value_Input::shortcut() functions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8337 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-30 09:04:59 +00:00
Manolo Gouy
802aff1785 Minor changes in Doxygen docs of Fl_Window constructors.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8336 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-30 08:55:46 +00:00
Manolo Gouy
ff39941c20 Reorganized Doxygen docs of Fl_Spinner::type() functions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8335 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-30 08:45:34 +00:00
Manolo Gouy
0e55ee68d0 Minor change in Doxygen docs of Fl::wait() functions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8334 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-30 08:36:33 +00:00
Manolo Gouy
f832f4af57 Reorganized Doxygen docs of Fl::event_is_click() functions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8333 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-30 08:18:52 +00:00
Manolo Gouy
d51f3b0898 Reorganized Doxygen docs of Fl::grab() functions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8332 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-30 08:06:06 +00:00
Manolo Gouy
a1d85a742b Fix STR #2549: error in sizeof arithmetic
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8331 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-29 16:20:16 +00:00
Matthias Melcher
e77d29a1ee Doc update for OS X installation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8330 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-29 14:35:01 +00:00
Greg Ercolano
909cf0061b Fixes STR#2547.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8327 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-29 06:00:46 +00:00
Manolo Gouy
8181b42f88 Removed compilation warning for pre-10.5 Mac OS.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8326 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-28 18:10:39 +00:00
Manolo Gouy
5e50478380 Fix STR #2541. The code is unchanged for Mac OS and MSWindows because the bug
does not occur there.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8325 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-28 17:38:07 +00:00
Greg Ercolano
35c7c2f14c Makefile modified to demonstrate use of fltk-config.
FLTK settings defined in a separate Makefile.FLTK
    which users can nab for their own use.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8324 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-28 16:11:45 +00:00
Manolo Gouy
23ab3ff119 Corrected typo in Doxygen doc (again).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8323 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-28 08:37:49 +00:00
Manolo Gouy
12f064a121 Corrected typo in Doxygen doc
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8322 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-28 08:20:34 +00:00
Greg Ercolano
d8d04b2485 Removed unncessary calls to set_value_hide() which was
causing a crash on windows.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8321 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-28 01:34:22 +00:00
Manolo Gouy
4df0320ec6 Clarified the Doxygen docs of fl_utf8toUtf16() and fl_utf8towc() where there was some mixup.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8320 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-27 17:27:52 +00:00
Manolo Gouy
8d4dea4bc0 Allow easier modification of the block size for character widths.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8319 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-27 16:55:43 +00:00
Matthias Melcher
60eae78679 Slightly changed the event dispatch functions to allow for exception handling.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8318 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-26 19:14:38 +00:00
Matthias Melcher
5e0710fcd0 Stupid bug removed
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8315 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-25 22:16:49 +00:00
Matthias Melcher
7b832a512e Added Fl::event_dispatch() which can add a function to FLTK that monitors all events before they reach Fl::handle(). STR 2532
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8314 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-25 19:54:09 +00:00
Manolo Gouy
ece27e347c Fix STR #2530 (Mac OS only)-continued. Change to allow display of the surrogate zone of UniChar.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8311 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-24 21:58:44 +00:00
Manolo Gouy
37180e08b3 Fix STR #2530 (Mac OS only)-continued. Use 512 blocks of 128 character widths-continued:
two 256->512 substitutions were missing.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8310 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-24 21:00:17 +00:00
Manolo Gouy
e3a96057c1 Fix STR #2530 (Mac OS only)-continued. Use 512 blocks of 128 character widths
(instead of 256x256) because this reduces greatly the opening time of windows
with several new fonts.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8309 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-24 20:05:34 +00:00
Albrecht Schlosser
5824eb4eb9 Removed unnecessary dependencies from ide/VisualC6/fltkdll.dsp.
This is a try to get rid of bogus X11 warnings (STR #2521).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8308 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-24 19:48:36 +00:00
Albrecht Schlosser
ddc3d3b8c5 Fixed ide/VisualC6/fltkdll.dsp to writed the correct dll in debug mode.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8307 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-24 19:04:18 +00:00