Commit Graph

1390 Commits

Author SHA1 Message Date
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
Michael R Sweet
e845bebc6f Modify WIN32 scandir() function so that directories get a trailing
slash.

Modify Fl_File_Browser::load() to check for trailing slash on WIN32.
This should fix performance problems when loading large remote
directories.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2130 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-29 19:40:51 +00:00
Michael R Sweet
b5a79264a1 Radio button drawing fixes from Albrecht Schlosser.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2129 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-29 19:27:51 +00:00
Michael R Sweet
6bfe3e970a Fix uninitialized variable in Fl_Preferences::Node::remove.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2128 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-29 15:12:23 +00:00
Michael R Sweet
782b3d639a Updated credits file.
Update test program dependencies on fluid - need to make the .fl
rules dependent on fluid, and the .cxx files dependent on the .fl
files.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2127 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-29 14:32:13 +00:00
Michael R Sweet
44bb5f60de Add Fl_Preferences class to base library.
Add FLTK_DATADIR definition to config.h for system-wide configuration
data.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2126 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-28 16:41:17 +00:00
Michael R Sweet
081d369c11 Support "using" keyword.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2122 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-28 11:40:26 +00:00
Michael R Sweet
47b57655a0 Make code dialog wider.
Make menubar only 25 pixels high to match current defaults.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2121 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-28 10:12:41 +00:00
Michael R Sweet
11fccec026 Fix which icon is shown in FLUID (had it backwards)
Set pattern, type, etc. before setting value in file chooser.  Otherwise
the filename wouldn't get highlighted the second time it was shown.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2120 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-28 08:42:33 +00:00
Michael R Sweet
9f5d6a0ecb Fix rendering of Fl_Light_Button with the plastic scheme.
The "none" and "base" schemes map to no scheme (standard FLTK look-n-feel)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2119 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-27 19:35:18 +00:00
Michael R Sweet
a48e1cac3f Port 2.0 drawing optimizations for Fl_Input_ - this provides a more
efficient fix for anti-aliased text.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2118 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-27 19:20:50 +00:00
Michael R Sweet
469ba78d90 Fix font enumeration bug reported by Paul Sydney.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2117 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-27 18:37:15 +00:00
Michael R Sweet
a0021b31ef Add unlock icon for public stuff.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2116 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-27 18:34:11 +00:00
Michael R Sweet
c9013cf892 Change lock icon color to red.
Fix Widget_Browser::handle() method - wasn't offseting the mouse position
for the lock icon.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2114 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-27 18:08:46 +00:00
Michael R Sweet
eff01c14e5 AIX always needs the image libraries, since the AIX linker sucks.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2113 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-26 12:45:16 +00:00
Michael R Sweet
14b93c034b Add +z option with HP-UX compilers when compiling shared libraries.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2112 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-26 12:39:32 +00:00
Michael R Sweet
da9edc35a5 Add lock icon next to static/private elements in FLUID.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2111 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-26 11:51:54 +00:00
Michael R Sweet
ee5fdc99ce Images in menu items...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2109 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-26 11:32:37 +00:00
Michael R Sweet
b3f01efb17 Add note about images in menu items.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2108 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-26 10:33:03 +00:00
Michael R Sweet
7b99f66d03 Add check for libpng/png.h as well as png.h, and include the appropriate
one as needed...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2106 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-24 18:29:06 +00:00
Michael R Sweet
f87f7a7b14 Added set_override() call in Fl_Tooltip_Window constructor.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2105 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-24 12:30:00 +00:00
Michael R Sweet
a89ca324a4 Fix a recursion bug in the tooltip code - didn't need to grab(), but
might need to add the set_override() method to the 1.1 window classes...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2104 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-24 12:20:36 +00:00
Michael R Sweet
c90c981570 Add -g option to fltk-config.
Fix NULL filename bug in fl_file_chooser().


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2103 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-24 12:14:57 +00:00
Michael R Sweet
8d187b30e5 Actually use the MEDIA option when generating PS and PDF docos.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2101 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-20 21:07:18 +00:00
Michael R Sweet
74942d0537 Fix links in docos...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2100 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-19 11:53:40 +00:00
Michael R Sweet
c75938c4eb Don't use the returned font sizes, as they yield too much space...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2099 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-18 21:07:53 +00:00
Michael R Sweet
7e8ec10e6d Add missing docos for Fl_Progress.
Add Fl_File_Chooser::directory_label, filename_label, and filter_label
static string pointers for labels (allows for I18N of the file chooser).

Fix typos in other docos.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2098 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-18 20:37:29 +00:00
Michael R Sweet
9ca9171e7a Fl_Text_Buffer docos.
Reformat function reference (still need to add rest of drawing
functions...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2096 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-18 19:10:56 +00:00
Michael R Sweet
c2521c01da Bump version info to 1.1.0rc1.
Force full redraw in Fl_Input when using Xft or OSX anti-aliased text.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2094 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-16 17:11:11 +00:00
Michael R Sweet
8964212393 OSX threading support - a little buggy right now, but hopefully we'll be
able to work out the kinks without too much effort.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2093 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-16 15:49:06 +00:00