Commit Graph

2016 Commits

Author SHA1 Message Date
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
Matthias Melcher
f12052870c STR #784: Fixed tooltip stating 'function' instead of 'comment'
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4233 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-02 18:57:49 +00:00
Matthias Melcher
aed7263678 STR #783: added zlib to fluid path
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4232 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-02 18:37:42 +00:00
Michael R Sweet
17ea3de1e7 Fixed WIN32 monitor enum proc.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4229 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-01 00:42:55 +00:00
Michael R Sweet
e50e551f7c Fl_Chart would draw outside its bounding box (STR #780)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4228 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-31 20:59:10 +00:00
Michael R Sweet
782abe6de6 Added MacOS X monitor support.
Now use new screen_xywh() API for keeping things on the current screen.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4227 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-31 20:31:39 +00:00
Michael R Sweet
3ec9646eea Add WIN32 code for screen support.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4225 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-31 16:52:10 +00:00
Michael R Sweet
868b248b98 Cache screen information.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4224 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-31 16:11:14 +00:00
Michael R Sweet
cc593f6b64 Add Fl::screen_count() and Fl::screen_xywh() APIs to support multi-
screen displays (currently only X11 support with Xinerama)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4223 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-31 16:01:24 +00:00
Michael R Sweet
81fd6777b2 Finished changes needed to support full widget classes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4201 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-29 13:28:43 +00:00
Matthias Melcher
af10e22140 Made fluid compile under VicualC6 again. Unfortunatly , the wonderful 'print' addition crashes in fl_color_win32.cxx, line 72.
Fixed a silly 'I have a great idea - wait - what was it again'-bug that would use a static buffer twice - although without causing any bugs.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4200 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-28 21:12:54 +00:00
Michael R Sweet
119f78bee0 Handle window class methods.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4199 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-28 13:38:23 +00:00
Michael R Sweet
bae6f62ea8 Fixed window class code generation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4198 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-28 13:35:12 +00:00
Michael R Sweet
c94a59c3f7 Add support to FLUID for widget class creation without the intermediate
class stuff.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4197 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-28 05:04:13 +00:00
Michael R Sweet
2abfda36ab Preliminary support for widget classes (still need to do code writing
methods...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4196 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-28 04:23:32 +00:00
Michael R Sweet
9f6d4ada32 Save work on FLUID printing on Windows.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4195 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-26 16:02:27 +00:00
Michael R Sweet
3b6c4b788e FLUID printing support for Windows (still working on some
issues with printing the simulated window borders, and the
page range/selection/all stuff doesn't seem to work...)
 

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4194 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-26 05:58:20 +00:00
Michael R Sweet
f6a137b998 Fixed VC++.NET project files (FLTK, FLTKDLL, FLUID).
Fixed Cygwin FLUID compile problem (STR #772)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4192 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-25 21:12:15 +00:00
Michael R Sweet
f5ed012b28 Updated Fl_File_Chooser to correctly deselect other items when
the user picks a file or directory in multiple selection mode
(only files or directories, not both at once...)

Use the fl_file_chooser_ok_label() function in FLUID.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4191 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-25 18:58:18 +00:00
Michael R Sweet
2ccbfdccc9 Fl_File_Chooser no longer resets the type() when choosing a
single file, and it now works when selecting multiple directories
(STR #747)

Fl_File_Icon::load_system_icons() now only loads 16x16 and 32x32
icon images to improve startup performance.

Fixed an error dialog message in FLUID.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4189 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-25 17:27:07 +00:00
Michael R Sweet
a343b0d4e4 Pressing Enter in the file chooser when selecting a directory
will choose that directory if it is currently shown (STR #746)

Added a fl_file_chooser_ok_label() function to set the "OK"
button label for the fl_file_chooser() and fl_dir_chooser()
functions.

Added Fl_File_Chooser::ok_label() methods to set the "OK" button
label.

The fl_ask() function is now deprecated since it does not conform
to the FLTK Human Interface Guidelines.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4188 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-25 16:11:07 +00:00
Michael R Sweet
ce40d4a0e6 The Fl_File_Chooser window now properly resizes its controls (STR
#766)

The Fl_Help_Dialog window now properly resizes its controls (STR
#768)

The Fl_File_Chooser favorites window is now resizable (STR #770)

Added more documentation on the file chooser filter pattern format
(in both functions.html and Fl_File_Chooser.html)

Added Fl_File_Chooser::save_label (for favorites dialog) and
Fl_File_Chooser::ok_label() to change the default "OK" button
label to something more appropriate according to the HIG.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4187 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-25 15:20:26 +00:00
Michael R Sweet
6d65dcba88 Change Fl_Spinner to use double values instead of ints.
Update FLUID dependencies.

The # copies spinner was just a bit too small for 100 copies.

Didn't set the menu divider if there were exactly 10 files in the history.

Add documentation for Fl_Spinner.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4186 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-25 02:39:25 +00:00