Commit Graph

320 Commits

Author SHA1 Message Date
Michael R Sweet
c3a5b61223 Doco fixes (show const modifier on methods)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4063 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-05 19:18:07 +00:00
Michael R Sweet
62721060db Using the layout alignment controls on a menu widget would cause
FLUID to crash (STR #742)

The Fl_Input_Choice documentation was not installed (STR #745)

documentation/Makefile:
    - Add Fl_Input_Choice.html to list of doco files.

fluid/align_widget.cxx:
    - Only do a full resize if the widget is not a menu button.
    - Also set modflag when making changes.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4060 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-05 15:09:59 +00:00
Michael R Sweet
add37faa25 Copyright updates.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4052 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-24 21:55:12 +00:00
Michael R Sweet
2df3459457 Added Greg Ercolano's simple Fl_Input_Choice widget which is a
combination of the Fl_Input and Fl_Menu_Button widgets (STR
#650)

FL/Fl_Input_Choice.H:


documentation/Fl_Input_Choice.html:
    - Added.

documentation/fltk.book:
    - Added Fl_Input_Choice.html + --no-embedfonts option.

documentation/index.html:
    - Update version number and revision.

documentation/input_choice.jpg:
    - Added.

documentation/preface.html:
    - Update version number and revision.

documentation/widgets.html:
    - Add Fl_Input_Choice to lists.

fluid/Fl_Menu_Type.cxx:
    - Add Fl_Input_Choice_Type class and instance.

fluid/Fl_Type.h:
    - Add Fl_Input_Choice_Type class and instance.

fluid/factory.cxx:
    - Add Fl_Input_Choice menu item.

test/Makefile:
    - Add input_choice example.

test/input_choice.cxx:
    - Added.

test/demo.menu:
    - Add input_choice example.




git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4050 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-24 21:14:22 +00:00
Michael R Sweet
2bbf66c7a4 Clarify Fl_Choice callback description (STR #692)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4025 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-06 00:12:15 +00:00
Michael R Sweet
4d3a3a7f66 Documentation fix (STR #648)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4019 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-05 20:35:51 +00:00
Michael R Sweet
a42ded75e2 Added the 2.0 Fl_Widget::copy_label() method to allow FLTK 1.x
applications to have their label strings managed by FLTK (STR
#630)

Added Fl::delete_widget() method to safely delete widgets in
callback methods (STR #629)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3917 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-11-23 19:47:52 +00:00
Michael R Sweet
33173bf4e5 Update the documentation for add_timeout().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3909 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-11-21 14:44:38 +00:00
Michael R Sweet
ef3cd23883 Update find_item() docos.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3903 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-11-20 15:58:52 +00:00
Michael R Sweet
ca005c4067 Documentation updates (STR #568)
More CMake updates (STR #499)

The Watcom C++ compiler needed a small change (STR #567)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3869 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-10-18 20:29:58 +00:00
Michael R Sweet
bf910884cc Documentation updates (STR #570)
Added DESTDIR support and now remove all man pages for the
"uninstall" target (STR #545)

Fix PNG drawing on buggy WIN32 graphics cards (STR #548)

The configure script didn't propagate the CPPFLAGS environment
variable (STR #549)

The numpad keys didn't work properly on WIN32 (STR #502)

fl_input() and friends now set the input focus to the text field
when the dialog is shown (STR #553)

Fixed background color mixup when drawing Fl_Choice menus (STR
#544)

Fixed MingW makefiles (STR #550)

More VC++ project file tweaking (STR #559)

Fl_PNG_Image didn't use the png_set_trns_to_alpha function when
available (STR #547)

The FL_UNFOCUS event wasn't always sent when switching tabs (STR
#558)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3868 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-10-18 20:22:25 +00:00
Michael R Sweet
18ad096722 Now look for 8 bits of alpha when the developer has requested
FL_RGB8 (STR #541)

The last line in an Fl_Help_View widget was not aligned properly
(STR #536)

The "search" symbol looked like a Q (STR #536)

Changed Fl_Help_View::get_color() to use a lookup table to avoid
serious Borland C++ 5.5 compiler bugs (STR #533)

Fixed Watcom compiler warnings with FL/Fl_Widget.H (STR #540)

The image class copy() methods did not always make a separate
copy of the image data (STR #539)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3844 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-09-24 16:00:11 +00:00
Michael R Sweet
a8b58dc223 Documentation updates (STR #505, STR #513)
The old source file "fl_set_gray.cxx" is not needed (STR #516)

Fl_Text_Display still called delete[] instead of free() in one
place (STR #503)

Fl_File_Chooser didn't correctly call isprint() and isspace()
when checking to see if the current file was text that can be
previewed (STR #517)

FLUID didn't compile with Borland C++ due to a compiler bug (STR
#496)

Fl_Positioner did not handle reversed min and max values (STR
#510)

fl_descent(), fl_height(), and fl_width() would crash a program
if you didn't call fl_font() first; they now return -1 if no
font is set (STR #500)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3805 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-09-07 20:59:18 +00:00
Michael R Sweet
62c19c63d6 More doco updates.
All of the core widgets now consistently set changed() before
calling the callback function for a change in value; this allows
programs to check the changed() state in a callback to see why
they are being called (STR #475)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3713 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-07-27 16:02:21 +00:00
Michael R Sweet
a529510e5b More documentation updates...
Fl_File_Chooser did not handle some cases for filename
completion (STR #376)

Fl_Help_View didn't properly compute the default maximum width
of the page properly, resulting in non-wrapped text in table
cells (STR #464)

Fl_Text_Editor no longer tries to emulate the Emacs CTRL-A
shortcut to move to the first column, since there is a key for
that and the widget does not emulate any other Emacs keys (STR
#421)

Fl_File_Chooser always disabled the OK button when the user
pressed DELETE or BACKSPACE (STR #397)

Added Fl_Browser::swap() methods (STR #459)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3698 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-07-26 20:52:52 +00:00
Matthias Melcher
8b298e1b9b Documentation fix (STR #412).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3447 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-06-07 17:17:24 +00:00
Michael R Sweet
c3fea65696 Fl_Widget::handle() doco update (STR #399)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3434 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-06-01 14:52:43 +00:00
Michael R Sweet
03a4621432 Documentation updates (STR #365)
The value(const Fl_Menu_Item*) method was not implemented for
Fl_Choice (STR #366)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3402 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-04-29 02:47:09 +00:00
Michael R Sweet
a3d0905c9e Copyright updates and prep for 1.1.5rc1.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3391 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-04-11 04:39:01 +00:00
Michael R Sweet
6bed8ffce8 Update Fl_Scroll background image fix...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3389 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-04-11 03:50:38 +00:00
Michael R Sweet
b4b95029e8 Added a new_directory_tooltip string pointer to allow
localization of the file chooser's new directory button (STR
#340)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3306 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-04-06 19:33:11 +00:00
Michael R Sweet
af0c12aae6 Add Fl_Menu_::find_item() method (STR #316)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3304 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-04-06 19:19:41 +00:00
Michael R Sweet
7fdbfc61be More doco updates.
FLUID's Layout->Center In Group functionality did not properly
handle widgets that were children of a Fl_Window widget (STR
#318)

The Fl_Text_Display destructor did not remove the predelete
callback associated with the current buffer (STR #332)

Fixed several bugs in the MacOS X Fl::add_fd() handling (STR
#333, STR #337)

The Fl_Text_Display widget did not display selections set by the
application (STR #322)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3299 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-04-06 17:38:36 +00:00
Michael R Sweet
70ca1d156b Fl_Value_Slider::draw_bg() didn't always apply the clipping
rectangle (STR #235)

fl_filename_relative() returned the wrong string if the absolute
pathname was equal to the current working directory (STR #224)

Fl_Help_Dialog didn't correctly restore the scroll position when
going forward/back in the link history if the file changed (STR
#218)

glutGetModifiers() did not mask off extra state bits, confusing
some GLUT-based applications (STR #213)

Fixed mouse capture problems on MacOS X (STR #209, STR #229)

Fl_Sys_Menu_Bar is now built into the library for MacOS X (STR
#229)

Fl_Menu_ now provides item_pathname() methods to get the
"pathname" of a menu item, e.g. "File/Quit" (STR #283)

Fl_Text_Display now provides cursor_color() methods to get and
set the cursor color (STR #271)

Fl_Scroll didn't honor FL_NO_BOX (STR #305)

FLUID declaration blocks didn't support public/private
definitions (STR #301)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3231 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-03-11 05:17:12 +00:00
Michael R Sweet
c5d30baf60 Documentation updates (STR #245, STR #250, STR #277, STR #281)
Fl_Preferences incorrectly created the preferences directory
before necessary (STR #247)

The WIN32 project files still defined the (obsolete) FL_STATIC
constant (STR #279)

Fl_Text_Display::buffer() did not support NULL values, making it
impossible to clean up text buffers from a subclass (STR #295)

Fl_Text_Display did not support a NULL unfinishedStyleCB
function (STR #241)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3219 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-03-01 02:05:02 +00:00
Michael R Sweet
c8c675fb4b Doco fix (STR #186)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3116 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-11-01 01:46:55 +00:00
Michael R Sweet
f6769cebc6 Add Fl_Tooltip::hoverdelay() method and code (STR #126)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3102 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-09-14 14:11:06 +00:00
Michael R Sweet
4e6a41e2cd Bump to 1.1.5rc1...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3100 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-09-09 15:15:18 +00:00
Michael R Sweet
f6a1e8ca40 Leave more space for filename label in file chooser.
1.1.4 release.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3095 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-09-08 17:11:45 +00:00
Matthias Melcher
4042047358 updated documentation and Fl_Dial. STR #101, 94, 99
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3049 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-07-18 05:53:21 +00:00
Michael R Sweet
f438ffa087 Added documentation for all forms of Fl_Widget::damage() (STR
#61)

Fl_Double_Window now has a type() value of FL_DOUBLE_WINDOW, to
allow double-buffered windows to process redraws properly on
WIN32 (STR #46)

Added FL_DAMAGE_USER1 and FL_DAMAGE_USER2 damage bits for use by
widget developers (STR #57)

Fl_Help_View didn't support numeric character entities (STR #66)

Menu shortcuts didn't use the Mac key names under MacOS X (STR
#71)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3026 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-06-12 01:36:18 +00:00
Michael R Sweet
358816af75 Update documentation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2989 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-05-20 19:16:26 +00:00
Michael R Sweet
14b142f7a8 Add Fl_Group::clear() docos.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2965 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-04-01 20:19:35 +00:00
Michael R Sweet
82a8a171e5 Bump version number for next release.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2943 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-02-13 21:58:03 +00:00
Michael R Sweet
00cb676e11 Copyright update for 1.1.3 release (not quite yet, but soon...)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2936 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-01-30 21:46:07 +00:00
Michael R Sweet
ebaaba9bd7 GLUT_STEREO is too implemented! :)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2935 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-01-30 15:48:24 +00:00
Michael R Sweet
abcc8d6d89 Position 1 is the first element in a chart, not 0.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2931 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-01-27 21:08:41 +00:00
Michael R Sweet
66529aa044 Update browser docos; value(0) doesn't do anything, only deselect() clears
the current selection.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2930 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-01-27 21:05:22 +00:00
Michael R Sweet
a2463df999 Add Fl::event_clicks(int i) docos.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2915 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-01-16 20:07:01 +00:00
Michael R Sweet
74d47ce80c Doco updates.
Added filename_setext() macro for FLTK_1_0_COMPAT.

Fixed copy() methods so they don't overflow the source image buffer.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2881 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-12-19 21:34:26 +00:00
Michael R Sweet
4842030537 Bump version number in CVS...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2857 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-11-25 18:19:46 +00:00
Michael R Sweet
2921ca57a0 Update Fl::get_color() docos.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2844 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-11-18 20:51:46 +00:00
Michael R Sweet
b579acc9b3 Fix fl_show_colormap() documentation.
Show color chooser window before grabbing it.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2842 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-11-15 02:06:57 +00:00
Matthias Melcher
41d14b074b Added icons to Fluid's menu and object list.
Previous version is tagged in cvs with
'pre_fluid_icon_changes'.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2765 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-10-30 21:08:39 +00:00
Michael R Sweet
299ebf295a Update tile documentation to be explicit about widgets touching and doing
their own borders.

Support CMD+[cxv] for copy/cut/paste on OSX.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2717 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-10-30 14:23:16 +00:00
Matthias Melcher
36656517e6 Unswapped MacOS modifier keys. event_key and event_text should return
the expected values now.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2715 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-10-30 01:01:53 +00:00
Michael R Sweet
9e0efc1e88 First fixes for 1.1.2 - Fl_Scrollbar shouldn't take keyboard focus,
move Fl_Slider focus stuff to main handle() method, use Fl_Light_Button
in scroll demo.

Bump version numbers to 1.1.2.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2690 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-10-24 12:53:41 +00:00
Michael R Sweet
02b14d5fdd Add section on the main() function to the editor example.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2685 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-10-22 20:08:37 +00:00
Michael R Sweet
2ba819c6e7 Add missing documentation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2681 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-10-21 18:05:28 +00:00
Michael R Sweet
82eeab48e6 Initialize backbuffer_bad under X11.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2680 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-10-20 06:06:31 +00:00
Michael R Sweet
f337f43ad7 Documentation tweek from Emanuele.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2673 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-10-11 16:20:43 +00:00
Michael R Sweet
6e39ebd8a0 Add link from Fl_Help_Dialog to Fl_Group.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2669 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-10-11 12:49:16 +00:00
Michael R Sweet
66e37af681 Add Fl_Check_Browser.html to book...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2661 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-10-07 13:51:10 +00:00
Michael R Sweet
b40f5fb69e Documentation updates.
Bump version to 1.1.1.

Fix "no change" button in FLUID.

Set dirty flag when changing nodes in Fl_Preferences.

Add the extra include dir options when doing "fltk-config --compile foo.cxx".


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2659 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-10-07 13:19:22 +00:00
Michael R Sweet
90b7be9aca Update documentation and web site intro.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2654 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-10-04 21:01:36 +00:00
Michael R Sweet
e4731d3f1a Final doco updates for 1.1.0.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2653 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-10-04 17:23:09 +00:00
Michael R Sweet
8d552439c7 New Fl_Widget::redraw_label() method to cleanly redraw the label of a
widget (this should eliminate the extra flicker some users have complained
about...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2652 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-10-04 15:59:29 +00:00
Michael R Sweet
5610521910 Doco updates.
Reset cursor when changing the current pane in an Fl_Wizard widget.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2648 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-10-04 02:30:34 +00:00
Michael R Sweet
a04d891607 fl_color_average, not fl_average_color... :)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2645 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-10-03 14:53:26 +00:00
Michael R Sweet
1d1c50cc4f Update MacOS and WIN32 issues to be current.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2636 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-09-24 19:21:38 +00:00
Michael R Sweet
11bf9b28da Move Fl_Help_Dialog to fltk_images library.
Add "Additional Libraries" section to docos as needed.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2625 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-09-16 01:35:34 +00:00
Matthias Melcher
6698be1be8 Mac OS X: modified Fl_Preferences::Node::search to correctly handle groups
inside the root group and to allow for relative and absolute path names.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2619 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-09-05 20:44:36 +00:00
Michael R Sweet
e532d183e4 The documentation for fl_xyline() showed the wrong prototypes...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2603 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-08-22 15:32:33 +00:00
Michael R Sweet
8448f781be Doco updates.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2576 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-08-12 19:44:59 +00:00
Michael R Sweet
a11a31ff78 Range check Fl_Text_Buffer::search_forward().
Don't use png_read_destroy() - it doesn't free all memory.

Add uncache() method to image classes.

Memory/initialization bugs in Fl_File_Chooser (valgrind)

Make sure both Fl_Window constructors have default cursor initialization
code...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2562 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-08-05 17:50:25 +00:00
Michael R Sweet
9456baab50 Fix some problems with the filename field and handling selections in the
root directory (Fl_File_Chooser).

Add documentation for the fl_cursor() function.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2558 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-30 18:33:49 +00:00
Michael R Sweet
35308e5c22 Added Fl::get_boxtype() method.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2555 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-30 14:57:02 +00:00
Michael R Sweet
d240b98ff6 Add missing color function documentation.
Fix Fl_Tabs document WRT coloring of the tabs and pane.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2549 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-25 12:46:12 +00:00
Michael R Sweet
d453884e0f Add wrap() method and bit for Fl_Input_, and make word wrap dependent
on this (wrap margin is the width of the widget less box borders)

Don't select the text in value() for a readonly() (output) field.

Display a caret instead of a vertical bar for the cursor in output fields.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2545 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-23 16:28:19 +00:00
Michael R Sweet
745cd4204a Make newButton and previewButton public, so that you can hide/disable them
as desired.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2544 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-23 15:14:17 +00:00
Michael R Sweet
57cef6a4bd Remove extra 3 pixel offset when the size is below a certain amount;
instead, use a constant +1 offset.

Add another bit to flags_, VISIBLE_FOCUS, which provides
per-widget keyboard focus control.  The default is for all
widgets to participate in keyboard focus navigation.  Use the
set_visible_focus(), clear_visible_focus(), and visible_focus()
methods on Fl_Widget to control this.

Clean up the Fl_Widget documentation and add missing stuff.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2543 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-23 15:07:33 +00:00
Michael R Sweet
3346a9fee7 Change the Fl_Group current, add, and remove methods so they are no longer
inline; this should make shared libraries work better on all platforms.

Link FLUID against shared libraries, too, so that the installed fluid is
also using shared libraries (still make a statically linked fluid for the
build)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2525 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-14 17:03:31 +00:00
Michael R Sweet
16046bf4dd Add Fl::remove_handler() method.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2491 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-08 15:14:38 +00:00
Michael R Sweet
031fef8635 File chooser updates - ../ and ./ map properly, now show ".." in the
directory list, added custom filter stuff, added filter_value() methods.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2487 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-01 21:14:20 +00:00
Michael R Sweet
6a6e4ab66c Separate the extra image functions into fltk_images.
Add new fl_register_images() function to register the extra file formats
with Fl_Shared_Image.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2329 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-28 21:04:37 +00:00
Michael R Sweet
4a6299fbcc Add FLTK_1_0_COMPAT symbol for 1.0.x compatible names.
Document this in the migration appendix, and add a section on keyboard
focus.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2316 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-24 15:22:57 +00:00
Michael R Sweet
1f30c63d32 add_check() example was wrong.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2308 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-13 12:08:49 +00:00
Michael R Sweet
34e35db71f Prefer fl_push_clip() over fl_clip().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2307 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-11 20:58:12 +00:00
Michael R Sweet
c3cde61e98 Add documentation for using styles in text editor.
Add placeholder for style attributes - hidden + underlined - for
future use.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2301 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-09 18:28:49 +00:00
Michael R Sweet
13ae564f03 Add color definitions for "dark red", etc.
Change "text" and "selecion" methods to return char *, not const char *,
since they return a changeable copy of the text.

Add range checking to style lookup in Fl_Text_Display.

Add syntax hilighting to editor example.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2299 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-09 13:35:49 +00:00
Michael R Sweet
c651bc29a3 filechooser.gif is gone, long live Fl_File_Chooser.jpg...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2292 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-07 17:23:37 +00:00
Michael R Sweet
c1fe08471c filechooser.gif is gone, long live Fl_File_Chooser.jpg.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2291 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-07 17:21:43 +00:00
Michael R Sweet
861ad9769b New file chooser.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2286 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-07 15:06:32 +00:00
Michael R Sweet
085eccc439 Spelling error...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2265 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-30 12:12:44 +00:00
Michael R Sweet
62424b33c5 Update docos to describe int/float settings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2259 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-25 12:17:18 +00:00
Michael R Sweet
6fb964c36e Add -sgi_version,sgi1.1 to the IRIX DSO command.
Add Fl_Shared_Image.html to the list of HTML files to install.

Change C++ command to C in src/flstring.h.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2244 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-19 17:44:56 +00:00
Matthias Melcher
dc5fa8454c Fl_Preferences: fixed delete/free confusion, updated docu and sample on buffer size issue (buffer needs to allow for additional byte for trailing zero)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2242 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-17 21:17:05 +00:00
Michael R Sweet
8b6acd43eb Fix tooltip documentation (too much & quoting... :)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2229 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-15 21:05:14 +00:00
Bill Spitzak
80d05eb962 Updated tooltip documentation
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2214 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-13 14:01:38 +00:00
Michael R Sweet
e2084610ad Fix link errors.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2206 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-10 15:42:44 +00:00
Michael R Sweet
c56bb65a97 Add documentation for readonly() and input_type().
Fix "make distclean" so that it removes all of the library files.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2204 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-08 12:44:52 +00:00
Michael R Sweet
b010bc55c4 Add sort function to file chooser.
Document sort function and label strings for chooser.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2179 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-02 15:24:34 +00:00
Michael R Sweet
ae0a956f2e Add sort function as optional argument to Fl_File_Browser::load().
Add docos for sort functions and changes to fl_filename_list() and
Fl_File_Browser::load().


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2176 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-02 14:31:10 +00:00
Michael R Sweet
a237472c70 Update fl_filename_list() to accept a sort function to use, and export
fl_alphasort, fl_casealphasort, fl_casenumericsort, and fl_numericsort.

Still need to document this and provide hooks in the file chooser and
browsers.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2174 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-02 11:11:01 +00:00
Matthias Melcher
508a9abbc8 Update some FLUID documentation, no snapshots though.
Tiny bug in fluid.cxx that would still show the wrong
message if it was unable to load a file from the history.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2172 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-02 04:23:33 +00:00
Michael R Sweet
94a9fb879f Fix backspace "bug" in file chooser - now treat delete and backspace the
same, eliminating any filename completion value.

Added relative argument to fl_file_chooser() and fl_dir_chooser(); both
default to 0 (return absolute paths)

Give focus to the filename field in the chooser when show() is called.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2157 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 12:41:21 +00:00
Michael R Sweet
f58d0e15d7 Add docos for Fl_File_Input.
Add Fl_Preferences to docos.

Update screenshot for file chooser.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2151 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 00:55:45 +00:00
Matthias Melcher
adb6fc4eeb added binary support and procedural names to
Fl_Preferences, updated FLUID, update documentation.

Attempted to strip all Win32 CR.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2146 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-30 22:25:18 +00:00
Michael R Sweet
44bb5f60de Add Fl_Preferences class to base library.
Add FLTK_DATADIR definition to config.h for system-wide configuration
data.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2126 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-28 16:41:17 +00:00
Michael R Sweet
b3f01efb17 Add note about images in menu items.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2108 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-26 10:33:03 +00:00