Commit Graph

205 Commits

Author SHA1 Message Date
Greg Ercolano c5d5ba1cf5 Applying the etorres gleam patch. STR #2672.
TODO: Xcode 4 ide needs fl_gleam.cxx added
      Test of Visual Studio IDE mods (which were hand-modified)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10113 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-25 04:24:41 +00:00
Fabien Costantini 8809c5d65d Fixed build error in msvs because Fl ref to FULLSCREEN enum was not accessible in Fl_Widget. new inline is_fullscreen() getter has been implemented to avoid a build error with (at least) msvc compilers. Fixed a ton of warnings / problems when bilding on windows 64 bits target with ms toolchain. cleaned up about 200 warnings raised when building win74 targets.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9325 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-05 05:12:30 +00:00
Greg Ercolano e76a22d6c0 Fixed build problem on Linux.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9060 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-22 23:03:12 +00:00
Manolo Gouy 45ad71dbc3 Use the Fl_Printer and Fl_Native_File_Chooser classes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9054 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-21 14:11:44 +00:00
Matthias Melcher 041a459814 Fluid -c would destroy the file history every time it was run.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8980 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-18 13:43:39 +00:00
Greg Ercolano 4f4a8fc3c7 Modifications to all LGPL headers for STR #2685.
(to clarify static exception LGPL by changing license references)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8864 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-19 04:49:30 +00:00
Manolo Gouy 0aafa58701 Fix STR #2661: fluid may crash when printing.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8801 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-10 13:37:07 +00:00
Matthias Melcher fe25f19767 Adding embedded documentation to Fluid if installed odcs are not found. Falls back to the internet if that does not exist either. Also, adds JPEG and PNG images to the Shared Image list if they were loaded from memory - see example use in fluid.cxx which loads and embedded html document containing an embedded PNG image.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8306 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-24 17:04:22 +00:00
Matthias Melcher 3ed49c0793 STR 2510: send Fluid help string to an FLTK dialog box for Visual Studio builds.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8202 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-06 21:36:04 +00:00
Matthias Melcher a8e8831559 Moved global FLTK options into Fluid until we find a better setup. Restored the original Preferences demo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8089 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-20 22:19:24 +00:00
Matthias Melcher 88093df6e8 Removed IDE support from Fluid because it never got finished and seemed more like a race against windmills. I may pick this up again later - maybe.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8086 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-20 20:33:24 +00:00
Matthias Melcher 9092dccab8 Changed all fixed filename buffers (that I could find) to use FL_PATH_MX instead. Raised FL_PATH_MX from skipy 256 characters to 2048, which corresponds with modern file systems.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8063 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-19 21:20:10 +00:00
Albrecht Schlosser 97b4b0c704 Fixed Compiling with mingw-w64 (STR #2308).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7978 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-08 14:00:35 +00:00
Manolo Gouy 2f8b7e47c2 Should fix STR #2464 by not calling fl_open_display when running fluid in command line mode
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7934 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-01 18:31:23 +00:00
Matthias Melcher e454f97acc Fixed Copyright to 2010.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7903 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-28 21:06:39 +00:00
Matthias Melcher 1e77c19688 Fixed file access code to use UTF-8 strings (STR #2440)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7874 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-18 20:00:01 +00:00
Matthias Melcher 1725a85468 Rename variable in Fluid to make more sense
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7827 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-14 15:03:57 +00:00
Matthias Melcher 48f107775d Fixed outside label redraw damage areas (STR #2436)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7787 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-31 19:35:23 +00:00
Matthias Melcher e1d22ebba7 Added ide generating code to command line version of Fluid.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7484 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-12 05:18:38 +00:00
Matthias Melcher ed2870637f Fluid IDE support: rewrite all Makefiles. This has no smart parts inside yet.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7482 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-11 20:16:47 +00:00
Matthias Melcher c35463fdbe Starting to add a GUI to manage the IDE database.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7169 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-27 22:38:25 +00:00
Matthias Melcher 5f1ca6a2b0 Added the IDE database file to the SVN, hoping that even without a visual editor yet, I can keep it consitent.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7167 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-27 14:28:22 +00:00
Matthias Melcher 597e726f91 Removed VisualC projects file in old naming convention.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7153 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-26 16:00:57 +00:00
Matthias Melcher 4a802a3159 Fixed menu item counting issue in Fluid (STR #2322), Added Fl_Menu_::find_item by callback
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7150 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-26 13:03:21 +00:00
Matthias Melcher 60c1ccd33e Working VisualC suport in IDE's (dll's are still missing). Fixed a few warnings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7147 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-25 23:29:42 +00:00
Matthias Melcher 2f82fd0663 Mixed bag. Please see CHANGES.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7117 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-20 21:14:47 +00:00
Matthias Melcher 092c86c704 This is a very simple implementation of the host side of plugins. Plugins can be linked at compile time to extend Fluid with new command line options. A sample plugin will follow soon.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7024 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-24 00:20:26 +00:00
Matthias Melcher 38c15442a4 Changed widget bin closing behavior when pressing ESC (which IMO should quit the app, not the widget bin).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6981 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-12-25 20:53:22 +00:00
Matthias Melcher bcd43ecb7d Fixed Fluid dependency on X11 (STR #226)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6896 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-09-23 19:24:34 +00:00
Albrecht Schlosser 5a8e28d30b Fluid printing used wrong colors under Windows (STR #2195)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6784 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-27 15:51:21 +00:00
Fabien Costantini 49bb1ab55d Fluid: fixed Help dialog would open the non handled frame version (index.html) instead of the non framed version (main.html) of the documentation, thus making necessary to click to the redirected non-framed page. Now fluid opens directly the non framed documentation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6639 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-01-20 08:47:18 +00:00
Matthias Melcher 167d767e0f Changed the copyright to 2009 for header files. Still todo: src and test directory.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6614 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-01-01 16:11:32 +00:00
Ian MacArthur 17e38137d8 STR #2093 - fix typo (name case) FCNTL.H should be fcntl.h, affecting some mingw builds
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6532 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-11-29 17:06:31 +00:00
Matthias Melcher 4e8e8b9f02 More Doxygen comment support for Fluid.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6302 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-18 21:11:28 +00:00
Fabien Costantini ae697b80b2 Doxygen documentation : took the opportunity to update copyright info as we modified already in batch almost all sources, added also a fil doxygen command to class headers to harmonize with original matt Fl_Widget dox. format.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6265 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-16 07:26:22 +00:00
Fabien Costantini c7f4b8c930 merged modification from my private branch after successful regression testing on win32,cygwin/mingw, mac osx, linux.
Fl_win32.cxx and Fl_x.cxx modified for:
======================================
 - STR# 2029 fix: async select using USE_ASYNC_SELECT def. would not work. Obsoleted and commented as discussed
 - STR# 2032 fix: fl_ready would load wsock dll unnecessarily. Bad indents corrected

fluid.cxx modifed for:
======================
Added a local portable Fl_Process class to fluid enabling popen encapsulated win32 impl. based on CreateProcess() to work as expected in non console apps, so that exec command output window is now also implemented in win32, also permitting testing add_fd()/remove_fd() API relying on winsock on win32.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6188 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-02 12:03:30 +00:00
Michael R Sweet 00c66abc0e Update copyright years and use "#ifndef" instead of "#if !defined".
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5701 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-20 18:43:10 +00:00
Matthias Melcher 8ea59b412e Fixed Watcom compiler setup without verification using a patch by mnieuw
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5699 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-20 17:02:41 +00:00
Michael R Sweet 2d2b24b781 Fix dead pixel in FL_GTK_UP_BOX/FRAME (STR #1471)
Use FL_COMMAND modifier in FLUID menus (CTRL for non-OSX, CMD for OSX)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5522 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-14 04:35:24 +00:00
Michael R Sweet b4c1d3ef03 Implement new "gtk+" scheme which provides a Bluecurve look-n-feel.
Fix size and position of dialog controls in FLUID to match the HIG.

Add "GTK+" scheme to the list of selectable schemes in FLUID.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5438 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-17 14:58:25 +00:00
Michael R Sweet e321cb37bf VC++ 2005 Support, drop old files, add icons for Sudoku
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4660 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-27 14:45:48 +00:00
Matthias Melcher 7f6bacf237 FLUID1: The comment entry in the Browser now reveals some more information by showing multiple lines up to 50 characters. Also, a change just to make sure our Code View won't harm.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4638 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-04 15:16:24 +00:00
Matthias Melcher 1b43ec7690 Added some safety measures that assure safe compile only mode
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4631 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-03 21:04:18 +00:00
Matthias Melcher 1a5288e8fe Fluid Source Code preview panel with automatic refresh and selected object code highlighting.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4630 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-03 20:43:19 +00:00
Matthias Melcher 576fd78bde STR #985: This is a medium size change in the way that FLUID manages widget label sizes. I moved the 'preset' functionality from the 'widget size' menu into the grid setting window. The menu now only changes selected widgets while the setting panel modifies newly created widgets. Settings are stored in the preferences.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4561 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-09-09 11:36:36 +00:00
Dejan Lekic 1cd06f3ad0 This commit contains patch submitted by "fltk.x0" (thanks fltk.x0!) in the middle of May this year - STR #863. Also small change in fluid.cxx - time.h was needed for successful build on MinGW.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4468 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-06 05:02:56 +00:00
Matthias Melcher 59b74e9fcb If starting Fluid with the -c (compile only) option, Fluid should not require a connection to the X11 Display anymore, allowing fluid to create code on head-less terminals.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4422 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-15 09:48:09 +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 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 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
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 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 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
Michael R Sweet 60b5a637f3 Add option to control the number of file history that is shown
(default 5, range 1 to 10 files)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4185 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-24 17:45:50 +00:00
Michael R Sweet ae55d848e9 More HIG stuff - file menu now shows recent files in-line, above the "Quit"
item.

Removed debug stuff from template panel.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4184 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-24 16:31:59 +00:00
Michael R Sweet 55002148cd More printing tweaks (nicer looking simulated windows...)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4158 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-21 19:35:43 +00:00
Michael R Sweet 880928146d Image reading, template handling, and printing bug fixes.
CHANGES:
    - Add fl_read_image() note and move documentation STRs back
      to the top of the list...

fluid/fluid.cxx:
    - Use printer choice data instead of the label text, since
      we have to escape / in printer names.
    - Change page number in header to n/N.

fluid/print_panel.*:
    - Don't disable properties button, ever.
    - Quote / in printer names.
    - Put copy of real printer name in the user data.
    - Use user data instead of label text for printer name.

fluid/template_panel.*:
    - Only free the files array if num_files > 0.

src/fl_read_image.cxx:
    - Use fl_visual->visual->*_mask instead of fl_*mask and
      fl_*shift when the XGetImage() data does not have them
      set.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4157 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-21 17:34:03 +00:00
Michael R Sweet 8a5eef2917 Fix minor printing glitch with simulated window borders.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4151 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-21 05:02:05 +00:00
Michael R Sweet bcadb07bb2 Printing support for FLUID...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4150 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-21 04:51:16 +00:00
Michael R Sweet 0919d57c33 Template panel for "new" and "save template" actions, complete with
preview images that are generated when you save the template.

Use @INSTANCE@ anywhere you want to substitute an instance name.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4148 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-20 21:27:20 +00:00
Michael R Sweet 0bc98fd29e Preliminary template save support in FLUID, plus some bug fixes.
fluid/Fl_Type.h:
    - Added read_image() declaration to Fl_Window_Type class.

fluid/Fl_Window_Type.cxx:
    - Added Overlay_Window::read_image() and
      Fl_Window_Type::read_image() functions.
    - Fl_Window_Type::fix_overlay(): update menu indices.
    - toggle_overlays(): update menu indices.

fluid/fluid.cxx:
    - save_template_cb(): Added to save to
      ~/.fltk/fltk.org/fluid/templates, along with PNG screenshot
      of first window.
    - "Save To" instead of "Save to".
    - Use fl_alert() for errors, not fl_message().
    - Add "File/Save Template..." and "File/Print..." (not yet
      implemented) menu items.
    - toggle_widgetbin_cb(): update menu indices.

fluid/undo.cxx:
    - Update menu item indices.
    - Don't need extra slash in undo checkpoint filename.

src/Fl_PNG_Image.cxx:
    - Fix typo in #endif comment.

src/Fl_Window.cxx:
    - Fl_Window::draw(): save/restore flags() when changing label.
    - Fl_Window::iconlabel(): save/restore flags() when changing label.

src/fl_rect.cxx:
    - fl_not_clipped(): don't use current window for gross clipping.





git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4147 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-20 17:41:56 +00:00
Michael R Sweet 4e965380bc Use uppercase letters for shortcut labels (e.g. "Ctrl+N", not
"Ctrl+n") to be consistent with other toolkits.

Remove debug printf from undo_checkpoint().

Change "Show Widget Panel" to "Show Properties" since it displays any
Fl_Type dialog, not just the widget panel.

Add "properties" to all of the type dialogs (UI consistency)

Remove extra elipsis (...) from code items in the new menu.

Revert Grid shortcut to Ctrl+G, since Alt+G is used to run a shell
command again.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4146 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-20 14:35:18 +00:00
Matthias Melcher a4786598bb 'Show/Hide Widget Bin menu item is 39, not 38
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4145 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-20 14:02:21 +00:00
Michael R Sweet a2f4b27b27 Undo/redo support for FLUID.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4142 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-20 04:00:48 +00:00
Michael R Sweet 665a2c1b7d Add "Edit/Delete".
Clean up menus.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4141 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-20 01:49:46 +00:00
Michael R Sweet 921dabf5b8 Add "scheme" chooser in GUI settings dialog.
Set window image to scheme_bg image when the window is shown.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4140 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-20 00:51:02 +00:00
Michael R Sweet 2cef7d91d3 Hide/Show Widget Bin and Overlays, instead of checks.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4139 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-20 00:12:21 +00:00
Michael R Sweet 46476b4e37 Fix order of Cancel, Save, and Don't Save buttons.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4138 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-19 23:49:46 +00:00
Matthias Melcher 009283b48c file fluid.cxx must include <io.h> on Windows to find the access() function.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4132 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-19 14:54:54 +00:00
Michael R Sweet 81bd60b47d More UI cleanup.
fluid/*.fl:
    - Go through all of the UIs and make sure they conform to the
      UI guidelines.

fluid/fluid.cxx:
    - Change fl_ask() and fl_choice() to use the "Save"/"Don't
      Save" and similar button labels instead of "Yes" and "No",
      per UI guidelines.

fluid/factory.cxx:
fluid/Fl_Type.h:
    - Make sure that widget and type names are capitalized.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4130 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-19 08:38:21 +00:00
Michael R Sweet 59004878f3 Many FLUID updates...
fluid/align_widget.cxx:
    - Add widget_size_cb() to set default size and size of
      labels and text for selected widgets.

fluid/factory.cxx:
    - More normalization of menus - "..." when opening a window,
      Capitalized Words.
    - cb(): Assign default label/text size and resize to ideal
      size.
    - Make sure that all buttons, input, and valuator widgets
      have default label strings.
    - Fl_*_Button::ideal_size(): fix ideal width calcs to match
      widget.

fluid/Fl_Menu_Type.cxx:
    - Fl_Menu_Item_Type::make(): set default label size.

fluid/Fl_Type.h:
    - Add Fl_Widget_Type::default_size global.
    - Fl_Menu_Item_Type::type_name(): return "Menu_Item".
    - Fl_Submenu_Type::type_name(): return "Submenu".
    - Update ideal_size() methods to use a default height that
      is evenly divisible by 5.
    - Fl_Choice_Type::ideal_size() and
      Fl_Menubutton_Type::ideal_size(): fix ideal width calcs to
      match widget.
    - Fl_Menu_Bar::ideal_size(): add, returning the window
      width.

fluid/fluid.cxx:
    - Add "Layout/Widget Size" submenu.
    - "File/Write code..." becomes "File/Write Code..." and
      "File/Write strings..." becomes "File/Write Strings..."

fluid/fluid.plist:
    - Bump version number and copyright info.

fluid/Fl_Widget_Type.cxx:
    - Fl_Widget_Type::ideal_size(): add box dw/dh and enforce a
      minimum size of 15x15.
    - labelsize_cb(): use Fl_Widget_Type::default_size instead
      of FL_NORMAL_SIZE.
    - textsize_cb(): use Fl_Widget_Type::default_size instead of
      FL_NORMAL_SIZE.

fluid/Fl_Window_Type.cxx:
    - Fl_Window_Type::newdx(): require at least 2 pixels of
      movement.
    - Fl_Window_Type::draw_overlay(): adjust bounding box for
      outside labels above and below.
    - Fl_Window_Type::handle(): reset dx/dy on FL_PUSH.

fluid/function_panel.cxx:
fluid/function_panel.fl:
fluid/function_panel.h:
    - Update some of the windows for the "small" size.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4129 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-19 04:09:32 +00:00
Michael R Sweet 1e742cc41f Use check items for overlays and the widget bin, and track their state.
Add Edit/Duplicate to duplicate the current selection; this functions
independently of the cut/copy/paste buffer.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4126 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-17 21:57:17 +00:00
Michael R Sweet 8fcd08ffaa Tweak 1.1.x FLUID some more...
fluid/about_panel.*:
    - Finish cleanup of about dialog.

fluid/comments.h:
    - Change default FLTK header comment to refer to the STR
      page instead of fltk-bugs (will update the CMP
      accordingly)

fluid/fluid.cxx:
    - Update all menu items that open a window to have "..."
    - Change overlays/widget bin on/off to "Toggle foo"
    - Add a divider after toggle items.

fluid/makedepend:
    - Update FLUID dependencies so that changes to comments.h
      will cause an rebuild of the affected files.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4125 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-17 07:11:57 +00:00
Michael R Sweet fb820bcf23 Add icon images (still need to update OSX icon file...)
Update FLUID about window to use new icon and clean up layout.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4103 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-10 12:23:43 +00:00
Matthias Melcher 5b49a9ae51 Added visual gudelines for widget distances and sizes to fluid. It is disabled by default, but can be enabled in the "Grid" dialog box. I am not sure if this is actually a good change, but thanks to SVN I'll risk a commit to get some feedback fro the early adopters.
Fluid now indicates a "good" (according to some Apple guidelines, but that's not permanent y any means) distance of widgets to the window border, indicates vertical and horizontal alignment with other widgets, shows "good" sizes for buttons, and indicates a good distance between two buttons at the same y-position.

Achtung, Baby: I wrote this on a WIndows machine, hoping that SVN will replce CR/LF with LF's, as promised by the documentation. Unix users: please check and blame me!

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4057 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-26 20:27:19 +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
Matthias Melcher 53e7546c23 Fixed a few warnings in OS X. The fluid stuff was 'touche'd, but not changed.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4036 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-06 16:28:36 +00:00
Michael R Sweet 53d7e32ff3 Clean up compiler warnings...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3806 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-09-08 15:42:47 +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 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 c99d122b45 Fix FLUID redraw bug when changing X,Y,W,H in the widget panel (STR #120)
Fix copyrights on some files that still showed -2002...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3070 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-08-02 21:17:30 +00:00
Michael R Sweet afbeea5714 Bump to 1.1.4 and fix changelog.
#ifdef in fluid was wrong - didn't use piping on OSX when not compiling
against Metroworks compiler.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3068 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-08-02 12:38:10 +00:00
Matthias Melcher c2e8891693 OS X: some changes to support Apples ProjectBuilder.
OS X: FLTK now queries the true windows position from the
window manager after creating a new window. This fixes the
problem with popup menues showing up at the wrong position.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3067 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-08-02 05:54:43 +00:00
Michael R Sweet 520d44ebf6 Fix scheme and image drawing bugs.
Bump to 1.1.4rc2.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3064 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-07-29 02:12:36 +00:00
Matthias Melcher b70c9661a0 STR #88: changed fluid behaviour to always paste into a selected
group instead of appending (see paste_cb, force_parent). Mike,
could you please check if this has any side effects somewhere?


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3052 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-07-19 06:10:20 +00:00
Michael R Sweet 9c7ec90412 Fix open-documents callback stuff.
Add open documents callback to FLUID.

Add FLUID application to fltk.list file for packaging.

Add FLUID application icon and data files.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3020 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-06-01 00:23:57 +00:00
Michael R Sweet cd339710f0 FLUID shell command patch from Erco.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2963 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-04-01 19:58:08 +00:00
Matthias Melcher c3de2a22c0 Replaced 'callback' and 'code' input in FLUID with Fl_Text_Editor.
Made widget pannel resize only text fields (which I see as the
logical way to do it. Opinions welcome).

 Matthias


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2822 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-11-03 00:01:21 +00:00
Michael R Sweet da5525cfcb Don't allow multiple shell commands to run at the same time.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2770 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-11-01 00:32:05 +00:00
Matthias Melcher f4a60090ba Added WidgetBin/ToolBox to fluid. Made fluid remember window
positions (only main and toolbox yet). Toolbox can be switched
off. Position remeber function can be switched off.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2767 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-10-31 18:49:05 +00:00
Michael R Sweet 886261af33 fl_register_images() was already getting called (two lines above), and
needs to be before the make_main_window() call to load the file icons.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2615 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-09-02 10:41:51 +00:00
Bill Spitzak 13dfd24a57 Small changes to images from Csaba Biegl <cbiegl@bellsouth.net>
Seems to work and enables all image formats to work in fluid.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2613 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-09-02 04:33:10 +00:00
Michael R Sweet ab53ef9a44 Fix FLUID image problems.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2591 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-08-16 20:10:21 +00:00
Michael R Sweet b2e9308751 More shadowed variables in FLUID, plus use snprintf, strlcpy, and strlcat.
Don't use extra warning flags for normal compiles.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2568 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-08-09 22:57:00 +00:00
Michael R Sweet 8efe8dcc23 Don't need to manually register image formats in these programs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2330 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-28 21:10: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