Commit Graph

1419 Commits

Author SHA1 Message Date
Michael R Sweet
e1c5328477 Fix scandir dirent stuff under WIN32.
Update dependencies.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2193 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-04 12:37:41 +00:00
Michael R Sweet
dc1155a116 Add FL_EXPORT as a declaration-only prefix like extern.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2192 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-04 05:28:11 +00:00
Michael R Sweet
fbf099f11e Fix portability problems with Solaris Forte C++ compiler.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2191 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-03 20:30:19 +00:00
Michael R Sweet
35d50f14a9 Add Jim to the credits file.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2190 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-03 19:34:06 +00:00
Michael R Sweet
c20f422141 Use new arc drawing code from Jim Wilson that we are also using in
2.0.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2189 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-03 19:33:39 +00:00
Michael R Sweet
9cc064677c Add Albrecht's radio circle drawing fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2188 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-03 14:59:31 +00:00
Michael R Sweet
2f9a58d608 Don't open the display to load a .fl file.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2187 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-03 14:33:00 +00:00
Michael R Sweet
5122f3b6f3 Removed extra definition of file chooser functions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2186 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-03 14:21:32 +00:00
Michael R Sweet
e2f9b55715 Remove debug statement in arc code..
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2185 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-03 12:49:36 +00:00
Michael R Sweet
c3dd2a48ad Fix teeth on wide arcs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2184 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-03 01:18:15 +00:00
Michael R Sweet
6298f9a0d8 Fix include for preferences example.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2182 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-02 19:57:24 +00:00
Michael R Sweet
a532c2689d Update source distribution script (shouldn't use ssh1)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2180 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-02 15:40:24 +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
e80eb3ebeb Tooltip fix from Albrecht.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2178 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-02 15:02:31 +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
47e7de17bc Fix new filename stuff for WIN32.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2175 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-02 14:15:46 +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
Michael R Sweet
540739e6d7 Fix filename handling; this should take care of every scenario...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2173 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-02 10:08:44 +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
4b82930e04 DND conditional stuff.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2171 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 23:45:52 +00:00
Michael R Sweet
d55d0ead70 Need to call set_filename() before reading FLUID file, since otherwise
images aren't loaded from the right directory...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2170 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 23:08:35 +00:00
Matthias Melcher
d5b98e56c0 Fixed 'Open Previuos' bug in FLUID.
'set_filename' in 'open_histroy_cb' would change the filename
before the file was opened, hence opening the file one up in the list.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2169 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 21:41:59 +00:00
Michael R Sweet
c0670cdc55 WIN32 fixes for BC++.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2168 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 20:05:19 +00:00
Michael R Sweet
11f56a0dc0 Possible BCC fix; have to check the change...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2167 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 19:44:01 +00:00
Michael R Sweet
30b61c9e03 Run "fltk-config --post" after installing and stripping fluid; otherwise
the resource fork will be lost.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2166 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 19:35:53 +00:00
Michael R Sweet
683b32002b Break grid and GUI settings into separate dialogs.
Use tabs on all of the settings windows, even when there is only one
tab.

Set the size_range() settings to use the grid values.

Add accelerator keys in all of the menus.

Rename alignment_window, etc. to project_window, etc.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2165 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 19:17:24 +00:00
Matthias Melcher
81e13dc96d Added layout menu to FLUID. The menu contains
many items th align and resize groups of selected
widgets.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2164 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 17:35:30 +00:00
Matthias Melcher
f060b88fe6 Added preferences.fl, removed preferences.cxx and .h
Updated VisualC project to handle .fl files and fluid dependencies
Updated test/Makefile (someone please test it...)
Removed all CRs :-)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2162 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 15:55:07 +00:00
Michael R Sweet
a368380f80 Update VC++ project files.
Fix double-definition in Fl_File_Chooser.cxx.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2160 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 14:15:50 +00:00
Michael R Sweet
bb126f4b8b Fix line_style project file...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2159 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 13:57:15 +00:00
Michael R Sweet
d9827f2540 Ooops, missing casts..
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2158 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 13:52:25 +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
3a33fc7d81 WIN32 doesn't support popen(), but Cygwin does.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2156 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 10:44:55 +00:00
Michael R Sweet
39a823b5e6 Add shell command support to FLUID.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2155 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 10:36:08 +00:00
Michael R Sweet
b338c743b4 Fix FLUID so that open_cb() and open_history_cb() set the filename
before reading the file so that images are loaded properly.

Return NULL if no file is selected in the file chooser.

Add Fl_File_Input to FLUID.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2154 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 08:51:59 +00:00
Michael R Sweet
43b4048b9c Fix file chooser bug - show() was calling deselect() when it shouldn't
have been.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2153 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 08:28:59 +00:00
Michael R Sweet
e5ceaa48e4 Use ascent/descent for Xft fonts.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2152 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 01:06:04 +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
Michael R Sweet
45f8282135 Don't try to use itoa(), which isn't available on most systems. Instead,
use sprintf().

getUserdataPath() call in test/preferences.cxx reverted to old 1 argument
version.  We only provide the 2-arg version (pointer + length) to enforce
safe programming.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2148 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 00:03:36 +00:00
Matthias Melcher
288f3e8c7a Fixed VisualC projects for Fl_File_Input.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2147 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-30 23:23:44 +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
8972642109 New Fl_File_Input widget, courtesy of Curtis Edwards old Fl_Input_File
widget (Fl_File_Input is much lighter-weight, and is simpler in function.)

Update file chooser dialog to use new Fl_File_Input widget and always
display absolute path.

Still need to do docos, new screenshots, and update FLUID to support the
new widget.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2145 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-30 21:50:16 +00:00
Michael R Sweet
1f5448409b Fl_Preferences::getUserdataPath() and getPath() methods now require a
length parameter for the string.

Added GUI preferences and file history to FLUID, using Fl_Preferences.

FLUID now uses getUserdataPath() for the cut buffer location.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2141 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-30 18:11:49 +00:00
Michael R Sweet
19b4d2fd1c Fix radio button drawing for menubars and light buttons. Basically,
don't use system-supplied circle drawing functions, since they don't
do a good job with small circles.

Add !__CYGWIN__ for use of WIN32 mkdir() function in preferences...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2140 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-30 15:34:58 +00:00
Michael R Sweet
2779ff9099 WIN32 project file fixes.
Tooltip window fix.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2139 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-30 12:26:33 +00:00
Michael R Sweet
c93fd74021 Fix new file browser code for fast directory checks.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2138 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-30 12:11:25 +00:00
Michael R Sweet
80c5b70c43 Add preferences demo.
Change all reference to matthiasmm.com to fltk.org.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2137 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-29 21:04:13 +00:00
Michael R Sweet
bc0389efbc Damned MS-DOS line endings!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2133 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-29 20:57:31 +00:00
Michael R Sweet
13587f41c2 Re-import the *current* version of Matthias's code, with appropriate
buffer limiting fixes, include "flstring.h" instead of <string.h>,
and replace all use of bool, true, and false, with char, 1, and 0.
(bool is not universally supported by the C++ compilers we currently
use with FLTK 1.x, so 1.x cannot use bool, true, or false without a
lot of configure crap that will make use/distribution a lot more
difficult...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2132 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-29 20:56:19 +00:00
Michael R Sweet
c8aebffa88 Flag menu and tooltip windows as WS_EX_TOOLWINDOW so they don't appear in
the task bar...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2131 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-29 20:18:01 +00:00