Commit Graph

2038 Commits

Author SHA1 Message Date
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
Michael R Sweet
3cd132b947 #include print_panel.cxx in fluid.cxx, so that we don't need to put it in
the makefile (which won't work for MingW).



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4278 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-13 16:36:14 +00:00
Michael R Sweet
e3ce6cd15a Cast GetCurrentProcessId to int to avoid compiler warning.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4277 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-13 16:32:52 +00:00
Michael R Sweet
27d36574ec Fix definition of auto_indent() method...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4271 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-11 21:16:25 +00:00
Matthias Melcher
e72630762d Remove all warnings for Mac buidl with gcc (except one)
- some warnings about using char for indexing
- some warnings about using signed int in strncmp
- some warnings about deprecated fl_ask (replaced with fl_choice)
The on warning not removed is the strftime("%c") in fluid since
I don't know anything about PS and I don't know if a different
data format would break PS. Mike?



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4270 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-11 07:35:33 +00:00
Michael R Sweet
e9a3f0e927 Bump width of focus box by 1 (STR #786)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4269 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-11 00:18:48 +00:00
Michael R Sweet
7102b0a38a Fixed the drawing of the Fl_Browser_ selection box (STR #786)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4268 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-10 22:44:48 +00:00
Michael R Sweet
7e79bfa611 Check for proper directory handling with FL_Enter (STR #787)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4267 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-10 22:37:04 +00:00
Michael R Sweet
c279f087a1 Add missing include for undo functions (STR #773)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4266 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-10 22:33:34 +00:00
Michael R Sweet
af500d018d Fix move within custom widget bug (STR #796)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4265 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-10 22:32:06 +00:00
Michael R Sweet
b8dd32cb0b Remove CodeWarrior directory.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4264 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-10 22:19:07 +00:00
Michael R Sweet
39505e6df8 Remove CodeWarrier files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4263 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-10 22:17:51 +00:00
Michael R Sweet
558958ad23 The FLTK string functions are now compiled in on all systems (STR
#774)

src/vsnprintf.c:
    - Replaced fl_vsnprintf() implementation with one that
      properly emulates the vsnprintf() function.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4262 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-10 22:14:08 +00:00
Michael R Sweet
5b20fbdce4 Fixed symbol demo label bug (STR #777)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4260 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-10 21:53:03 +00:00
Michael R Sweet
ba3bde19c5 Fixed position of menu titles (STR #794)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4259 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-10 18:49:43 +00:00
Michael R Sweet
9edf9a743e Add GCC printf format attribute check to catch code formatting
errors...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4256 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-10 02:07:43 +00:00
Michael R Sweet
000eca281a FLUID widget class support fixes.
fluid/Fl_Window_Type.cxx:
    - Fl_Widget_Class::write_code1(): forgot name() in window
      class constructor.

fluid/code.cxx:
    - write_code(): skip nodes as needed when writing code so we
      don't place method code in the constructor.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4252 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-09 14:17:13 +00:00
Michael R Sweet
25447eeb04 Added missing Fl_Window::copy_label() method.
Cleaned up screen_xywh() conditional stuff.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4251 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-09 13:51:32 +00:00
Matthias Melcher
147b403013 STR #792: 'preferences' test app lost the 'radio' flags on the shoe positioning buttons.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4248 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-08 18:18:26 +00:00
Matthias Melcher
4bc49798e4 fixed Xinerama compile and link bug
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4246 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-08 07:25:56 +00:00
Matthias Melcher
500665b24d This is an attempt to fix the redraw problem on WinXP and other Windows variants.
This is how the bug looks like: load a test project that uses a single buffer window, 'scroll' fails nicely. Compile (in debug mode) and run. If you now quickly drag another window across the fltk window, some white spots will remain unrefreshed. Another great candidate is 'input_choice', but 'fluid's toolbox fails as well.

This fix is part of the WM_PAINT message handler. Instead of validating the whole area that FLTK drew, we now only validate the area that Win32 beleives was damaged. This may be inefficient if we redraw larger areas, but I did not see any refresh errors anymore, which IMHO has priority.

Again, I'd be very happy if other ussers could check for and confirm the bug and the fix.

Thanks!



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4244 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-07 13:39:43 +00:00
Matthias Melcher
ae865138a6 Documentation update for Fl_Text_Buffer.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4235 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-04 06:29:26 +00:00
Matthias Melcher
6cab1f4839 Attempt to fix the missing multimonitor support in VisualC6. Well, it does compile, link and run now, but since I have only a single monitor, I can't test this. Could someone please verify this fix.
Also, it may be useful to add '#if _MSC_VER<0x0600' or something like that.

Feedback please! Thanks!

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4234 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-02 19:16:36 +00:00