Update VC++ project files.

Add support for FLTK_DOCDIR env var. to FLUID.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1588 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 2001-09-23 13:08:03 +00:00
parent 5aa3ce735e
commit 91b72d0918
5 changed files with 58 additions and 12 deletions

View File

@ -27,6 +27,9 @@ CHANGES IN FLTK 1.1.0b2
COLSPAN.
- The FLUID keyboard shortcuts now work as expected
(CTRL-C copies, SHIFT-CTRL-C writes code, etc.)
- The FLTK_DOCDIR environment variable can now be
used to tell FLUID where to find the on-line
documentation files.
CHANGES IN FLTK 1.1.0b1

View File

@ -1,5 +1,5 @@
//
// "$Id: fluid.cxx,v 1.15.2.13.2.4 2001/09/13 18:21:40 easysw Exp $"
// "$Id: fluid.cxx,v 1.15.2.13.2.5 2001/09/23 13:08:02 easysw Exp $"
//
// FLUID main entry for the Fast Light Tool Kit (FLTK).
//
@ -64,6 +64,11 @@ const char *copyright =
#include <errno.h>
#include <config.h>
#if !HAVE_SNPRINTF
extern "C" {
extern int snprintf(char* str, size_t size, const char* fmt, ...);
}
#endif // !HAVE_SNPRINTF
#if defined(WIN32) && !defined(__CYGWIN__)
# include <direct.h>
@ -341,16 +346,27 @@ void about_cb(Fl_Widget *, void *) {
about_panel->show();
}
void help_cb(Fl_Widget *, void *) {
void show_help(const char *name) {
const char *docdir;
char filename[1024];
if (!help_dialog) help_dialog = new Fl_HelpDialog();
help_dialog->load(FLTK_DOCDIR "/fluid.html");
if ((docdir = getenv("FLTK_DOCDIR")) == NULL)
docdir = FLTK_DOCDIR;
snprintf(filename, sizeof(filename), "%s/%s", docdir, name);
help_dialog->load(filename);
help_dialog->show();
}
void help_cb(Fl_Widget *, void *) {
show_help("fluid.html");
}
void manual_cb(Fl_Widget *, void *) {
if (!help_dialog) help_dialog = new Fl_HelpDialog();
help_dialog->load(FLTK_DOCDIR "/index.html");
help_dialog->show();
show_help("index.html");
}
////////////////////////////////////////////////////////////////
@ -502,5 +518,5 @@ int main(int argc,char **argv) {
}
//
// End of "$Id: fluid.cxx,v 1.15.2.13.2.4 2001/09/13 18:21:40 easysw Exp $".
// End of "$Id: fluid.cxx,v 1.15.2.13.2.5 2001/09/23 13:08:02 easysw Exp $".
//

View File

@ -1,5 +1,5 @@
/*
* "$Id: config.h,v 1.5.2.5.2.2 2001/08/19 00:14:11 easysw Exp $"
* "$Id: config.h,v 1.5.2.5.2.3 2001/09/23 13:08:03 easysw Exp $"
*
* Configuration file for the Fast Light Tool Kit (FLTK) for Visual C++.
*
@ -23,8 +23,13 @@
* Please report all bugs and problems to "fltk-bugs@fltk.org".
*/
/*
* Where to find the documentation files...
*/
#define FLTK_DOCDIR "C:/FLTK/DOC"
/*
* BORDER_WIDTH:
*
@ -169,5 +174,5 @@
#undef HAVE_PNG_GET_VALID
/*
* End of "$Id: config.h,v 1.5.2.5.2.2 2001/08/19 00:14:11 easysw Exp $".
* End of "$Id: config.h,v 1.5.2.5.2.3 2001/09/23 13:08:03 easysw Exp $".
*/

View File

@ -395,6 +395,10 @@ SOURCE=..\src\Fl_Positioner.cxx
# End Source File
# Begin Source File
SOURCE=..\src\Fl_Progress.cxx
# End Source File
# Begin Source File
SOURCE=..\src\fl_rect.cxx
# End Source File
# Begin Source File

View File

@ -383,17 +383,21 @@ SOURCE=..\src\Fl_Check_Browser.cxx
DEP_CPP_FL_CHE=\
"..\fl\enumerations.h"\
"..\fl\fl.h"\
"..\fl\fl_button.h"\
"..\fl\fl_browser_.h"\
"..\fl\fl_check_browser.h"\
"..\fl\fl_draw.h"\
"..\fl\fl_export.h"\
"..\fl\fl_light_button.h"\
"..\fl\fl_group.h"\
"..\fl\fl_scrollbar.h"\
"..\fl\fl_slider.h"\
"..\fl\fl_valuator.h"\
"..\fl\fl_widget.h"\
# End Source File
# Begin Source File
SOURCE=..\src\Fl_Check_Button.cxx
DEP_CPP_FL_CHE=\
DEP_CPP_FL_CHEC=\
"..\fl\enumerations.h"\
"..\fl\fl.h"\
"..\fl\fl_button.h"\
@ -849,6 +853,7 @@ DEP_CPP_FL_HE=\
"..\fl\enumerations.h"\
"..\fl\fl.h"\
"..\fl\fl_button.h"\
"..\fl\fl_double_window.h"\
"..\fl\fl_draw.h"\
"..\fl\fl_export.h"\
"..\fl\fl_group.h"\
@ -931,6 +936,7 @@ DEP_CPP_FL_LA=\
"..\fl\fl_draw.h"\
"..\fl\fl_export.h"\
"..\fl\fl_group.h"\
"..\fl\fl_image.h"\
"..\fl\fl_input_.h"\
"..\fl\fl_widget.h"\
@ -1201,6 +1207,18 @@ DEP_CPP_FL_PO=\
# End Source File
# Begin Source File
SOURCE=..\src\Fl_Progress.cxx
DEP_CPP_FL_PR=\
"..\fl\enumerations.h"\
"..\fl\fl.h"\
"..\fl\fl_draw.h"\
"..\fl\fl_export.h"\
"..\fl\fl_progress.h"\
"..\fl\fl_widget.h"\
# End Source File
# Begin Source File
SOURCE=..\src\fl_rect.cxx
DEP_CPP_FL_RE=\
"..\fl\enumerations.h"\