Commit Graph

2060 Commits

Author SHA1 Message Date
Matthias Melcher
900034ee65 Fixed the Round Plastic buttons to actually draw nice and riund, just
like the original scheme buttons. This is relatively slow, but worth
the effort, I beleive. Just use double buffered windows... .

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4374 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-27 11:33:34 +00:00
Michael R Sweet
a3af163fcb Changelog...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4373 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-26 21:13:17 +00:00
Michael R Sweet
9774446d8b Move show() after scheme() call in Fl_Window::show(argc, argv) to
eliminate scheme flicker on startup.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4372 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-26 14:03:44 +00:00
Michael R Sweet
db98aaac86 Selected tabs are now drawn slightly larger than unselected tabs
so they stand out more (STR #882)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4371 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-26 13:54:53 +00:00
Matthias Melcher
d47f353023 There are still some artefacts, probably a confusion between round and rounded box. The current fix will avaiod the artefact, but still not draw entirely correct.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4367 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-23 10:18:34 +00:00
Michael R Sweet
dfc390e735 Fix FL_PLASTIC_DOWN_BOX artifacts (STR #852)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4363 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-20 02:44:03 +00:00
Michael R Sweet
b33cc94810 Fix sentinel value for HWND on WIN32 (STR #862)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4362 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-20 02:39:39 +00:00
Michael R Sweet
74d3204304 Fl_Preferences::getUserdataPath() didn't work for sub-groups (STR
#872)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4361 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-20 02:05:38 +00:00
Michael R Sweet
461d60a0f3 Revert WIN32 redraw fix from r4244, and apply a new one that is a bit
cleaner which should not cause problems.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4360 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-19 16:22:29 +00:00
Michael R Sweet
067d8d2d16 Fix eol-style in Watcom files...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4359 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-19 16:07:13 +00:00
Michael R Sweet
13d8286b8a FLUID didn't set the initial size of widgets properly (STR #850)
Fl_Tabs would steal focus away from its children on a window
focus change (STR #870)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4358 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-19 15:57:32 +00:00
Michael R Sweet
296efbe092 Update Fl_Tabs to draw selected tabs using labelcolor() of the Fl_Tabs
widget instead of using fl_contrast.

Draw round plastic buttons round...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4357 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-19 12:13:35 +00:00
Matthias Melcher
6f946ecfc5 Fixed the silly gcc 4.0 warning about ~0 being negative 1.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4356 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-17 20:03:29 +00:00
Michael R Sweet
b49703ea3d Fix WIN32 compile errors.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4348 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-13 10:19:27 +00:00
Michael R Sweet
79de1e070d filename_relative() now converts the current directory to forward
slashes as needed on WIN32 (STR #816)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4347 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-13 03:19:13 +00:00
Michael R Sweet
2c8fc6f66a Fl_File_Chooser::value() and ::directory() now handle paths with
backslashes on WIN32 (STR #811)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4346 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-13 03:16:30 +00:00
Michael R Sweet
5ca7674da3 Updates to cmake project files (STR #813)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4345 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-13 03:05:08 +00:00
Michael R Sweet
fa986f559d Added the standard rgb.txt file from X11 to the test directory,
allowing all platforms to try the colbrowser demo (STR #843)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4343 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-12 20:03:59 +00:00
Michael R Sweet
b4a0827881 Resizing of OpenGL subwindows was broken on OSX (STR #804)
Added a FPS indicator to the fractals demo for testing purposes.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4342 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-12 19:16:27 +00:00
Michael R Sweet
743b0f984e The fltk-config script now supports running from a source
directory (STR #840)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4341 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-12 17:27:59 +00:00
Michael R Sweet
fdf8cbad74 Fl_Browser_ didn't update the position properly when an item was
deleted (STR #839)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4340 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-12 17:10:58 +00:00
Michael R Sweet
f88e7b23af fl_contrast() now compares the luminosity of each color (STR
#837)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4339 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-12 17:08:35 +00:00
Michael R Sweet
2d1eade9bf Fl_Input_ crashed on some platforms when wrapping international
text characters (STR #836)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4338 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-12 16:58:45 +00:00
Michael R Sweet
07abce4903 Check for FL_MOVE messages with the high bit set to 1 - treat as signed coordinate data.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4337 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-12 16:51:18 +00:00
Michael R Sweet
d63a4bfa74 Fixed some BMP images loading bugs (STR #825)
Remove unused variable in Fl_File_Chooser::value().


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4336 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-12 15:20:02 +00:00
Michael R Sweet
56e89999ab Fl_File_Chooser now returns directory names with a trailing slash
to avoid problems with relative filenames (STR #819)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4335 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-12 15:01:24 +00:00
Michael R Sweet
3ce3d62e9c Fl_Help_View now supports the FONT and U elements (STR #815)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4334 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-12 14:57:18 +00:00
Michael R Sweet
e4a481785d Fix drawing of non-square round boxes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4333 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-12 14:31:45 +00:00
Michael R Sweet
bce23d108a OpenGL windows that were completely off-screen caused problems
with some graphics cards on WIN32 (STR #831)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4332 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-12 14:08:02 +00:00
Michael R Sweet
7c225536ef Multiple screen support didn't work on Windows NT and 95 (STR
#821)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4331 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-12 14:00:24 +00:00
Michael R Sweet
ab1757fa7d Fl_Scrollbar didn't compute the correct knob size when using the
"nice" types (STR #845)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4330 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-12 13:48:54 +00:00
Michael R Sweet
2d35bc7a2a fl_draw() would segfault on WIN32 if no font was set; it now uses
the default font (STR #828)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4329 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-12 13:37:49 +00:00
Michael R Sweet
b289065e65 Fl_Browser_ was calling the callback multiple times for a single
selection change with FL_WHEN_CHANGED (STR #834)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4328 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-12 13:34:36 +00:00
Michael R Sweet
34d5a8b16e Remove an extra, bogus strlcpy() from the Fl_File_Chooser::value(int)
method.  This caused all filenames to be returned without their paths...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4323 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-09 20:40:24 +00:00
Michael R Sweet
28d2c320c9 Add filenew, fileopen, filesave, filesaveas, and fileprint symbols.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4302 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-30 03:02:04 +00:00
Michael R Sweet
671ef36117 Fix MacOS X 10.4 compile issues.
configure.in:
    - 10.4 doesn't include libsupc++.a, so we need to use g++ when compiling.

src/Fl_Help_View.cxx:
    - Fl_Help_View::format_table(): missing initialization of font and fsize.

src/Fl_Text_Buffer.cxx:
    - Fl_Text_Buffer::remove_rectangle(): missing initialization of endOffset.

src/Fl_Gl_Window.cxx:
    - Fl_Gl_Window::flush(): use 0xff instead of ~0 for clear_damage() call.

test/keyboard.cxx:
    - Apparently unnamed structs are not supported by Apple's GCC 4.0...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4301 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-28 17:48:04 +00:00
Michael R Sweet
8a275b2985 FLUID wasn't tracking all changes on the widget panel, so undo and save stuff
didn't work if you just changed colors, etc.

Use blue selection color for tabs.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4296 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-21 19:03:46 +00:00
Michael R Sweet
668ef918e8 Updated Fl_Tabs to check the contrast of the label color against
the tab background, and to highlight the top 5 lines of the tab
pane with the selection color so that selected tabs stand out
more.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4295 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-21 18:25:22 +00:00
Michael R Sweet
2eb4d42349 Move docdir definition to makeinclude.in (STR #824)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4294 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-21 11:24:18 +00:00
Michael R Sweet
dd0503576d Fix compiler warnings.
Add demo.menu and all xbm and xpm files in test directory to install
list.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4292 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-18 20:23:29 +00:00
Michael R Sweet
1c399af444 Update source file headers with STR web page.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4288 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-16 00:13:17 +00:00
Michael R Sweet
b41cf28662 Update "clean" targets to properly handle core files, remove backup files,
etc.

Add "install" target to test directory which installs the example programs.

Install the config.h file in the examples directory.

Make sure the example programs compile outside the FLTK source dir.

Add example programs to fltk.list.in.

Fix missing redraw() in x_cb() in FLUID...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4287 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-16 00:01:49 +00:00
Michael R Sweet
91c3b8231d Fix subclass callback output code.
Make fltk-config script executable after rerunning configure script.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4286 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-15 20:45:07 +00:00
Michael R Sweet
fc4db19395 Don't make non-inline methods from FLUID inline (that is, remove the
"inline" from non-inline methods...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4285 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-15 18:00:33 +00:00
Michael R Sweet
e4e36d8229 Move -Wconversion option for GCC to extra warning options (not enabled
by default, to eliminate image library errors...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4284 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-15 14:21:59 +00:00
Michael R Sweet
70c4cd102f Fix compiler warnings.
Use fl_yes and fl_no for the Forms emulation, instead of the hardcoded
strings.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4283 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-14 13:56:07 +00:00
Michael R Sweet
217f77c9ef Eliminate compiler warnings on Solaris...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4282 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-14 12:29:51 +00:00
Michael R Sweet
8dda432b40 Make comment strings const char *...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4281 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-14 12:20:12 +00:00
Michael R Sweet
ff60e09c09 Add -Wno-format-y2k option to eliminate Y2k warnings - ignored by some
versions of GCC, but at least the newer versions won't give us that
warning about our use of strftime()...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4280 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-13 19:40:56 +00:00
Michael R Sweet
0d231668e1 Only use __deprecated__ with GCC 3.0 and higher.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4279 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-13 19:35:28 +00:00