Added helpview utility
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16111 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
298fe32f7a
commit
4e4152e4a8
27
utils/helpview/src/Makefile.in
Normal file
27
utils/helpview/src/Makefile.in
Normal file
@ -0,0 +1,27 @@
|
||||
#
|
||||
# File: Makefile.in
|
||||
# Author: Julian Smart
|
||||
# Created: 1998
|
||||
# Updated:
|
||||
# Copyright: (c) 1998 Julian Smart
|
||||
#
|
||||
# "%W% %G%"
|
||||
#
|
||||
# Makefile for html about example (UNIX).
|
||||
|
||||
top_srcdir = @top_srcdir@/..
|
||||
top_builddir = ../../..
|
||||
program_dir = utils/helpview/src
|
||||
|
||||
VPATH = :$(top_srcdir)/utils/helpview/src
|
||||
|
||||
DATAFILES = test.zip
|
||||
|
||||
PROGRAM=helpview
|
||||
|
||||
OBJECTS =$(PROGRAM).o
|
||||
DEPFILES=$(PROGRAM).d
|
||||
|
||||
include ../../../src/makeprog.env
|
||||
|
||||
@IF_GNU_MAKE@-include $(DEPFILES)
|
18
utils/helpview/src/Makefile.vc
Normal file
18
utils/helpview/src/Makefile.vc
Normal file
@ -0,0 +1,18 @@
|
||||
#
|
||||
# File: makefile.vc
|
||||
# Author: Julian Smart
|
||||
# Created: 1999
|
||||
# Updated:
|
||||
# Copyright: (c) Julian Smart
|
||||
#
|
||||
# Makefile : Builds HelpView application (VC++, WIN32)
|
||||
# Use FINAL=1 argument to nmake to build final version with no debug info.
|
||||
|
||||
# Set WXDIR for your system
|
||||
WXDIR = $(WXWIN)
|
||||
|
||||
PROGRAM=helpview
|
||||
OBJECTS = $(PROGRAM).obj
|
||||
|
||||
!include $(WXDIR)\src\makeprog.vc
|
||||
|
21
utils/helpview/src/bitmaps/helpback.xpm
Normal file
21
utils/helpview/src/bitmaps/helpback.xpm
Normal file
@ -0,0 +1,21 @@
|
||||
/* XPM */
|
||||
static char * helpback_xpm[] = {
|
||||
"16 15 3 1",
|
||||
" c None",
|
||||
". c Black",
|
||||
"X c Gray100",
|
||||
" ",
|
||||
" ",
|
||||
" . ",
|
||||
" .. ",
|
||||
" .X. ",
|
||||
" .XX........ ",
|
||||
" .XXXXXXXXXX. ",
|
||||
" .XXXXXXXXXXX. ",
|
||||
" .XXXXXXXXXXX. ",
|
||||
" .XXXXXXXXXX. ",
|
||||
" .XX........ ",
|
||||
" .X. ",
|
||||
" .. ",
|
||||
" . ",
|
||||
" "};
|
25
utils/helpview/src/bitmaps/helpbook.xpm
Normal file
25
utils/helpview/src/bitmaps/helpbook.xpm
Normal file
@ -0,0 +1,25 @@
|
||||
/* XPM */
|
||||
static char * helpbook_xpm[] = {
|
||||
"16 16 6 1",
|
||||
" c None",
|
||||
". c Black",
|
||||
"X c #000080",
|
||||
"o c #c0c0c0",
|
||||
"O c #808080",
|
||||
"+ c Gray100",
|
||||
" ",
|
||||
" .. ",
|
||||
" ..XX. ",
|
||||
" ..XXXXX. ",
|
||||
" ..XXXXXXXX. ",
|
||||
".oXXXXXXXXXX. ",
|
||||
".XoXXXXXXXXXX. ",
|
||||
".XXoXXXXXXXXXX. ",
|
||||
".XXXoXXXXXXXXX..",
|
||||
".XXXXoXXXXXX..O ",
|
||||
" .XXXXoXXX..O+O ",
|
||||
" .XXXXo..O++o..",
|
||||
" .XXX.O+++o.. ",
|
||||
" .XX.o+o.. ",
|
||||
" .X.o.. ",
|
||||
" ... "};
|
21
utils/helpview/src/bitmaps/helpdown.xpm
Normal file
21
utils/helpview/src/bitmaps/helpdown.xpm
Normal file
@ -0,0 +1,21 @@
|
||||
/* XPM */
|
||||
static char * helpdown_xpm[] = {
|
||||
"16 15 3 1",
|
||||
" c None",
|
||||
". c Black",
|
||||
"X c Gray100",
|
||||
" ",
|
||||
" ...... ",
|
||||
" .XXXX. ",
|
||||
" .XXXX. ",
|
||||
" .XXXX. ",
|
||||
" .XXXX. ",
|
||||
" .XXXX. ",
|
||||
" .XXXX. ",
|
||||
" ....XXXX.... ",
|
||||
" .XXXXXXXX. ",
|
||||
" .XXXXXX. ",
|
||||
" .XXXX. ",
|
||||
" .XX. ",
|
||||
" .. ",
|
||||
" "};
|
21
utils/helpview/src/bitmaps/helpforward.xpm
Normal file
21
utils/helpview/src/bitmaps/helpforward.xpm
Normal file
@ -0,0 +1,21 @@
|
||||
/* XPM */
|
||||
static char * helpforward_xpm[] = {
|
||||
"16 15 3 1",
|
||||
" c None",
|
||||
". c Black",
|
||||
"X c Gray100",
|
||||
" ",
|
||||
" ",
|
||||
" . ",
|
||||
" .. ",
|
||||
" .X. ",
|
||||
" ........XX. ",
|
||||
" .XXXXXXXXXX. ",
|
||||
" .XXXXXXXXXXX. ",
|
||||
" .XXXXXXXXXXX. ",
|
||||
" .XXXXXXXXXX. ",
|
||||
" ........XX. ",
|
||||
" .X. ",
|
||||
" .. ",
|
||||
" . ",
|
||||
" "};
|
41
utils/helpview/src/bitmaps/helpicon.xpm
Normal file
41
utils/helpview/src/bitmaps/helpicon.xpm
Normal file
@ -0,0 +1,41 @@
|
||||
/* XPM */
|
||||
static char * helpicon_xpm[] = {
|
||||
"32 32 6 1",
|
||||
" c None",
|
||||
". c #808080",
|
||||
"X c Black",
|
||||
"o c #c0c0c0",
|
||||
"O c Gray100",
|
||||
"+ c #000080",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" .......X ",
|
||||
" ...ooooooo.X ",
|
||||
" o.....XoooOoOOOOoX ",
|
||||
" .oOoOoO.ooOoOoOOOO.X ",
|
||||
" o.o.oOoOoOoO.ooOoOoOOOOX ",
|
||||
" +oOoOoOoOOOOXoooOoOOOOOoX ",
|
||||
" +oOoOoOoOOOO.oooOoOOOOOX ",
|
||||
" +OoOoOoOOOOOXooOoOoOOOOoX ",
|
||||
" o+OoOoOoOOOOO.ooOoOoOOOO.X ",
|
||||
" o+oOoOoOoOOOOXoooOoOOOOOOX ",
|
||||
" o+oOoOoOoOOOO.oooOooOOOooX ",
|
||||
" o+OoOoOoOOOOOXooOo...oooX+ ",
|
||||
" o+OoOoOoOOoooXooXXXXXXX++ ",
|
||||
" o+OoOoOo.o.oXXX++++++++. ",
|
||||
" o+oOoOo.oXXX+++...... ",
|
||||
" o+oOoXXX+++.+ ",
|
||||
" o+OXX+++... ",
|
||||
" o+++... ",
|
||||
" o+.. ",
|
||||
" o. ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "};
|
22
utils/helpview/src/bitmaps/helpopen.xpm
Normal file
22
utils/helpview/src/bitmaps/helpopen.xpm
Normal file
@ -0,0 +1,22 @@
|
||||
/* XPM */
|
||||
static char * helpopen_xpm[] = {
|
||||
"16 15 4 1",
|
||||
" c None",
|
||||
". c Black",
|
||||
"X c Gray100",
|
||||
"o c #848484",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ... ",
|
||||
" .XXX....... ",
|
||||
" .XXXXXXXXX. ",
|
||||
" .XXXXXXXXX. ",
|
||||
" .XXXX..........",
|
||||
" .XXX.ooooooooo.",
|
||||
" .XX.ooooooooo. ",
|
||||
" .X.ooooooooo. ",
|
||||
" ..ooooooooo. ",
|
||||
" ........... ",
|
||||
" ",
|
||||
" "};
|
21
utils/helpview/src/bitmaps/helpoptions.xpm
Normal file
21
utils/helpview/src/bitmaps/helpoptions.xpm
Normal file
@ -0,0 +1,21 @@
|
||||
/* XPM */
|
||||
static char * helpoptions_xpm[] = {
|
||||
"16 16 2 1",
|
||||
" c None",
|
||||
". c #000000",
|
||||
" ",
|
||||
" .. ",
|
||||
" ... ",
|
||||
" .... ",
|
||||
" . ... ",
|
||||
" .. ... ",
|
||||
" . .. ",
|
||||
" .. ... ",
|
||||
" . .. ",
|
||||
" ......... ",
|
||||
" .. ... ",
|
||||
" . ... ",
|
||||
" .. ... ",
|
||||
" .... ....... ",
|
||||
" ",
|
||||
" "};
|
23
utils/helpview/src/bitmaps/helppage.xpm
Normal file
23
utils/helpview/src/bitmaps/helppage.xpm
Normal file
@ -0,0 +1,23 @@
|
||||
/* XPM */
|
||||
static char * helppage_xpm[] = {
|
||||
"16 16 4 1",
|
||||
" c None",
|
||||
". c #808080",
|
||||
"X c Gray100",
|
||||
"o c Black",
|
||||
" ",
|
||||
" .......... ",
|
||||
" .XXXXXXXX.. ",
|
||||
" .XXXXXXXXooo ",
|
||||
" .X......XXXo ",
|
||||
" .XXXXXXXXXXo ",
|
||||
" .X........Xo ",
|
||||
" .XXXXXXXXXXo ",
|
||||
" .X........Xo ",
|
||||
" .XXXXXXXXXXo ",
|
||||
" .X........Xo ",
|
||||
" .XXXXXXXXXXo ",
|
||||
" .X........Xo ",
|
||||
" .XXXXXXXXXXo ",
|
||||
" .XXXXXXXXXXo ",
|
||||
" oooooooooooo "};
|
35
utils/helpview/src/bitmaps/helpsidepanel.xpm
Normal file
35
utils/helpview/src/bitmaps/helpsidepanel.xpm
Normal file
@ -0,0 +1,35 @@
|
||||
/* XPM */
|
||||
static char * helpsidepanel_xpm[] = {
|
||||
"16 15 17 1",
|
||||
" c None",
|
||||
". c #000000",
|
||||
"+ c #800000",
|
||||
"@ c #008000",
|
||||
"# c #808000",
|
||||
"$ c #000080",
|
||||
"% c #800080",
|
||||
"& c #008080",
|
||||
"* c #C0C0C0",
|
||||
"= c #808080",
|
||||
"- c #FF0000",
|
||||
"; c #00FF00",
|
||||
"> c #FFFF00",
|
||||
", c #0000FF",
|
||||
"' c #FF00FF",
|
||||
") c #00FFFF",
|
||||
"! c #FFFFFF",
|
||||
"****************",
|
||||
"*..............*",
|
||||
"*.************.*",
|
||||
"*..............*",
|
||||
"*.****.!!!!!!!.*",
|
||||
"*.****.!====*!.*",
|
||||
"*.****.!!!!!!!.*",
|
||||
"*.****.!===*!!.*",
|
||||
"*.****.!!!!!!!.*",
|
||||
"*.****.!====*!.*",
|
||||
"*.****.!!!!!!!.*",
|
||||
"*.****.!===*!!.*",
|
||||
"*.****.!!!!!!!.*",
|
||||
"*..............*",
|
||||
"****************"};
|
21
utils/helpview/src/bitmaps/helpup.xpm
Normal file
21
utils/helpview/src/bitmaps/helpup.xpm
Normal file
@ -0,0 +1,21 @@
|
||||
/* XPM */
|
||||
static char * helpup_xpm[] = {
|
||||
"16 15 3 1",
|
||||
" c None",
|
||||
". c Black",
|
||||
"X c Gray100",
|
||||
" ",
|
||||
" .. ",
|
||||
" .XX. ",
|
||||
" .XXXX. ",
|
||||
" .XXXXXX. ",
|
||||
" .XXXXXXXX. ",
|
||||
" ....XXXX.... ",
|
||||
" .XXXX. ",
|
||||
" .XXXX. ",
|
||||
" .XXXX. ",
|
||||
" .XXXX. ",
|
||||
" .XXXX. ",
|
||||
" .XXXX. ",
|
||||
" ...... ",
|
||||
" "};
|
21
utils/helpview/src/bitmaps/helpuplevel.xpm
Normal file
21
utils/helpview/src/bitmaps/helpuplevel.xpm
Normal file
@ -0,0 +1,21 @@
|
||||
/* XPM */
|
||||
static char * helpuplevel_xpm[] = {
|
||||
"16 15 3 1",
|
||||
" c None",
|
||||
". c Black",
|
||||
"X c Gray100",
|
||||
" ",
|
||||
" .. ",
|
||||
" .XX. ",
|
||||
" .XXXX. ",
|
||||
" .XXXXXX. ",
|
||||
" .XXXXXXXX. ",
|
||||
" ....XXXX.... ",
|
||||
" .XXXX. ",
|
||||
" .XXXX..... ",
|
||||
" .XXXXXXXX. ",
|
||||
" .XXXXXXXX. ",
|
||||
" .XXXXXXXX. ",
|
||||
" .XXXXXXXX. ",
|
||||
" .......... ",
|
||||
" "};
|
228
utils/helpview/src/helpview.cpp
Normal file
228
utils/helpview/src/helpview.cpp
Normal file
@ -0,0 +1,228 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: helpview.h
|
||||
// Purpose: HelpView application
|
||||
// A standalone viewer for wxHTML Help (.htb) files
|
||||
// Author: Vaclav Slavik, Julian Smart
|
||||
// Modified by:
|
||||
// Created: 2002-07-09
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) 2002 Vaclav Slavik, Julian Smart and others
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef __GNUG__
|
||||
#pragma implementation "help.cpp"
|
||||
#endif
|
||||
|
||||
// For compilers that support precompilation, includes "wx/wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
// for all others, include the necessary headers (this file is usually all you
|
||||
// need because it includes almost all "standard" wxWindows headers
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/wx.h"
|
||||
#endif
|
||||
|
||||
#include "wx/image.h"
|
||||
#include "wx/wxhtml.h"
|
||||
#include "wx/fs_zip.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/artprov.h"
|
||||
#include "wx/filedlg.h"
|
||||
|
||||
class AlternateArtProvider : public wxArtProvider
|
||||
{
|
||||
protected:
|
||||
virtual wxBitmap CreateBitmap(const wxArtID& id, const wxArtClient& client,
|
||||
const wxSize& size);
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// private classes
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
|
||||
IMPLEMENT_APP(hvApp)
|
||||
|
||||
|
||||
bool hvApp::OnInit()
|
||||
{
|
||||
#ifdef __WXMOTIF__
|
||||
delete wxLog::SetActiveTarget(new wxLogStderr); // So dialog boxes aren't used
|
||||
#endif
|
||||
|
||||
wxArtProvider::PushProvider(new AlternateArtProvider);
|
||||
|
||||
wxInitAllImageHandlers();
|
||||
wxFileSystem::AddHandler(new wxZipFSHandler);
|
||||
|
||||
SetVendorName("wxWindows");
|
||||
SetAppName("wxHTMLHelp");
|
||||
wxConfig::Get(); // create an instance
|
||||
|
||||
help = new wxHtmlHelpController(
|
||||
wxHF_DEFAULT_STYLE|wxHF_FLAT_TOOLBAR|wxHF_OPEN_FILES
|
||||
);
|
||||
|
||||
help->SetTitleFormat(wxT("%s"));
|
||||
if (argc < 2) {
|
||||
if (!OpenBook(help))
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
for (int i = 1; i < argc; i++)
|
||||
help -> AddBook(argv[i]);
|
||||
|
||||
#ifdef __WXMOTIF__
|
||||
delete wxLog::SetActiveTarget(new wxLogGui);
|
||||
#endif
|
||||
|
||||
help -> DisplayContents();
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
int hvApp::OnExit()
|
||||
{
|
||||
delete help;
|
||||
delete wxConfig::Set(NULL);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool hvApp::OpenBook(wxHtmlHelpController* controller)
|
||||
{
|
||||
wxString s = wxFileSelector(_("Open help file"),
|
||||
wxGetCwd(),
|
||||
wxEmptyString,
|
||||
wxEmptyString,
|
||||
_(
|
||||
"Help books (*.htb)|*.htb|Help books (*.zip)|*.zip|\
|
||||
HTML Help Project (*.hhp)|*.hhp"),
|
||||
wxOPEN | wxFILE_MUST_EXIST,
|
||||
NULL);
|
||||
|
||||
if (!s.IsEmpty())
|
||||
{
|
||||
wxString ext = s.Right(4).Lower();
|
||||
if (ext == _T(".zip") || ext == _T(".htb") || ext == _T(".hhp"))
|
||||
{
|
||||
wxBusyCursor bcur;
|
||||
controller->AddBook(s);
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/*
|
||||
* Art provider class
|
||||
*/
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
// helper macros
|
||||
// ---------------------------------------------------------------------
|
||||
|
||||
// Standard macro for getting a resource from XPM file:
|
||||
#define ART(artId, xpmRc) \
|
||||
if ( id == artId ) return wxBitmap(xpmRc##_xpm);
|
||||
|
||||
// Compatibility hack to use wxApp::GetStdIcon of overriden by the user
|
||||
#if WXWIN_COMPATIBILITY_2_2
|
||||
#define GET_STD_ICON_FROM_APP(iconId) \
|
||||
if ( client == wxART_MESSAGE_BOX ) \
|
||||
{ \
|
||||
wxIcon icon = wxTheApp->GetStdIcon(iconId); \
|
||||
if ( icon.Ok() ) \
|
||||
{ \
|
||||
wxBitmap bmp; \
|
||||
bmp.CopyFromIcon(icon); \
|
||||
return bmp; \
|
||||
} \
|
||||
}
|
||||
#else
|
||||
#define GET_STD_ICON_FROM_APP(iconId)
|
||||
#endif
|
||||
|
||||
// There are two ways of getting the standard icon: either via XPMs or via
|
||||
// wxIcon ctor. This depends on the platform:
|
||||
#if defined(__WXUNIVERSAL__)
|
||||
#define CREATE_STD_ICON(iconId, xpmRc) return wxNullBitmap;
|
||||
#elif defined(__WXGTK__) || defined(__WXMOTIF__)
|
||||
#define CREATE_STD_ICON(iconId, xpmRc) return wxBitmap(xpmRc##_xpm);
|
||||
#else
|
||||
#define CREATE_STD_ICON(iconId, xpmRc) \
|
||||
{ \
|
||||
wxIcon icon(_T(iconId)); \
|
||||
wxBitmap bmp; \
|
||||
bmp.CopyFromIcon(icon); \
|
||||
return bmp; \
|
||||
}
|
||||
#endif
|
||||
|
||||
// Macro used in CreateBitmap to get wxICON_FOO icons:
|
||||
#define ART_MSGBOX(artId, iconId, xpmRc) \
|
||||
if ( id == artId ) \
|
||||
{ \
|
||||
GET_STD_ICON_FROM_APP(iconId) \
|
||||
CREATE_STD_ICON(#iconId, xpmRc) \
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
// XPMs with the art
|
||||
// ---------------------------------------------------------------------
|
||||
|
||||
// XPM hack: make the arrays const
|
||||
//#define static static const
|
||||
|
||||
#include "bitmaps/helpback.xpm"
|
||||
#include "bitmaps/helpbook.xpm"
|
||||
#include "bitmaps/helpdown.xpm"
|
||||
#include "bitmaps/helpforward.xpm"
|
||||
#include "bitmaps/helpoptions.xpm"
|
||||
#include "bitmaps/helppage.xpm"
|
||||
#include "bitmaps/helpsidepanel.xpm"
|
||||
#include "bitmaps/helpup.xpm"
|
||||
#include "bitmaps/helpuplevel.xpm"
|
||||
#include "bitmaps/helpicon.xpm"
|
||||
#include "bitmaps/helpopen.xpm"
|
||||
|
||||
//#undef static
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
// CreateBitmap routine
|
||||
// ---------------------------------------------------------------------
|
||||
|
||||
wxBitmap AlternateArtProvider::CreateBitmap(const wxArtID& id,
|
||||
const wxArtClient& client,
|
||||
const wxSize& WXUNUSED(size))
|
||||
{
|
||||
ART(wxART_HELP_SIDE_PANEL, helpsidepanel)
|
||||
ART(wxART_HELP_SETTINGS, helpoptions)
|
||||
ART(wxART_HELP_BOOK, helpbook)
|
||||
ART(wxART_HELP_FOLDER, helpbook)
|
||||
ART(wxART_HELP_PAGE, helppage)
|
||||
//ART(wxART_ADD_BOOKMARK, addbookm)
|
||||
//ART(wxART_DEL_BOOKMARK, delbookm)
|
||||
ART(wxART_GO_BACK, helpback)
|
||||
ART(wxART_GO_FORWARD, helpforward)
|
||||
ART(wxART_GO_UP, helpup)
|
||||
ART(wxART_GO_DOWN, helpdown)
|
||||
ART(wxART_GO_TO_PARENT, helpuplevel)
|
||||
ART(wxART_FILE_OPEN, helpopen)
|
||||
if (client == wxART_HELP_BROWSER)
|
||||
{
|
||||
ART(wxART_FRAME_ICON, helpicon)
|
||||
}
|
||||
|
||||
//ART(wxART_GO_HOME, home)
|
||||
|
||||
// Any wxWindows icons not implemented here
|
||||
// will be provided by the default art provider.
|
||||
return wxNullBitmap;
|
||||
}
|
159
utils/helpview/src/helpview.dsp
Normal file
159
utils/helpview/src/helpview.dsp
Normal file
@ -0,0 +1,159 @@
|
||||
# Microsoft Developer Studio Project File - Name="htmlhelpview" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Application" 0x0101
|
||||
|
||||
CFG=htmlhelpview - Win32 Debug
|
||||
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||
!MESSAGE use the Export Makefile command and run
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "helpview.mak".
|
||||
!MESSAGE
|
||||
!MESSAGE You can specify a configuration when running NMAKE
|
||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "helpview.mak" CFG="htmlhelpview - Win32 Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "htmlhelpview - Win32 Release DLL" (based on "Win32 (x86) Application")
|
||||
!MESSAGE "htmlhelpview - Win32 Debug DLL" (based on "Win32 (x86) Application")
|
||||
!MESSAGE "htmlhelpview - Win32 Release" (based on "Win32 (x86) Application")
|
||||
!MESSAGE "htmlhelpview - Win32 Debug" (based on "Win32 (x86) Application")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
CPP=cl.exe
|
||||
MTL=midl.exe
|
||||
RSC=rc.exe
|
||||
|
||||
!IF "$(CFG)" == "htmlhelpview - Win32 Release DLL"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "ReleaseDll"
|
||||
# PROP BASE Intermediate_Dir "ReleaseDll"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "ReleaseDll"
|
||||
# PROP Intermediate_Dir "ReleaseDll"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W4 /O2 /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D WINVER=0x400 /YX /FD /c
|
||||
# ADD CPP /nologo /MD /W4 /O2 /I "../../../include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D WINVER=0x400 /D "_MT" /D wxUSE_GUI=1 /D "WXUSINGDLL" /YX /FD /I../../..\lib\mswdll /c
|
||||
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
|
||||
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
|
||||
# ADD BASE RSC /l 0x409 /i "../../../include" /d "NDEBUG"
|
||||
# ADD RSC /l 0x409 /i "../../../include" /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib /nologo /subsystem:windows /machine:I386
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib ../../..\lib\wxmsw233.lib /nologo /subsystem:windows /machine:I386
|
||||
|
||||
!ELSEIF "$(CFG)" == "htmlhelpview - Win32 Debug DLL"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "DebugDll"
|
||||
# PROP BASE Intermediate_Dir "DebugDll"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "DebugDll"
|
||||
# PROP Intermediate_Dir "DebugDll"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W4 /Zi /Od /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D WINVER=0x400 /YX /FD /c
|
||||
# ADD CPP /nologo /MDd /W4 /Zi /Od /I "../../../include" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D WINVER=0x400 /D "_MT" /D wxUSE_GUI=1 /D "__WXDEBUG__" /D WXDEBUG=1 /D "WXUSINGDLL" /YX /FD /I../../..\lib\mswdlld /c
|
||||
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
|
||||
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
|
||||
# ADD BASE RSC /l 0x409 /i "../../../include" /d "_DEBUG"
|
||||
# ADD RSC /l 0x409 /i "../../../include" /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib ../../..\lib\wxmsw233d.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
||||
|
||||
!ELSEIF "$(CFG)" == "htmlhelpview - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "Release"
|
||||
# PROP BASE Intermediate_Dir "Release"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "Release"
|
||||
# PROP Intermediate_Dir "Release"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W4 /O2 /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D WINVER=0x400 /YX /FD /c
|
||||
# ADD CPP /nologo /MD /W4 /O2 /I "../../../include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D WINVER=0x400 /D "_MT" /D wxUSE_GUI=1 /YX /FD /I../../..\lib\msw /c
|
||||
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
|
||||
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
|
||||
# ADD BASE RSC /l 0x409 /i "../../../include" /d "NDEBUG"
|
||||
# ADD RSC /l 0x409 /i "../../../include" /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib /nologo /subsystem:windows /machine:I386
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib ../../..\lib\zlib.lib ../../..\lib\regex.lib ../../..\lib\png.lib ../../..\lib\jpeg.lib ../../..\lib\tiff.lib ../../..\lib\wxmsw.lib /nologo /subsystem:windows /machine:I386
|
||||
|
||||
!ELSEIF "$(CFG)" == "htmlhelpview - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "Debug"
|
||||
# PROP BASE Intermediate_Dir "Debug"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "Debug"
|
||||
# PROP Intermediate_Dir "Debug"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W4 /Zi /Od /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D WINVER=0x400 /YX /FD /c
|
||||
# ADD CPP /nologo /MDd /W4 /Zi /Od /I "../../../include" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D WINVER=0x400 /D "_MT" /D wxUSE_GUI=1 /D "__WXDEBUG__" /D WXDEBUG=1 /YX /FD /I../../..\lib\mswd /c
|
||||
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
|
||||
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
|
||||
# ADD BASE RSC /l 0x409 /i "../../../include" /d "_DEBUG"
|
||||
# ADD RSC /l 0x409 /i "../../../include" /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib ../../..\lib\zlibd.lib ../../..\lib\regexd.lib ../../..\lib\pngd.lib ../../..\lib\jpegd.lib ../../..\lib\tiffd.lib ../../..\lib\wxmswd.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "htmlhelpview - Win32 Release DLL"
|
||||
# Name "htmlhelpview - Win32 Debug DLL"
|
||||
# Name "htmlhelpview - Win32 Release"
|
||||
# Name "htmlhelpview - Win32 Debug"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\helpview.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\helpview.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\helpview.rc
|
||||
# End Source File
|
||||
# End Target
|
||||
# End Project
|
29
utils/helpview/src/helpview.dsw
Normal file
29
utils/helpview/src/helpview.dsw
Normal file
@ -0,0 +1,29 @@
|
||||
Microsoft Developer Studio Workspace File, Format Version 6.00
|
||||
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "htmlhelpview"=.\helpview.dsp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Global:
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<3>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
40
utils/helpview/src/helpview.h
Normal file
40
utils/helpview/src/helpview.h
Normal file
@ -0,0 +1,40 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: helpview.h
|
||||
// Purpose: HelpView application class
|
||||
// Author: Vaclav Slavik, Julian Smart
|
||||
// Modified by:
|
||||
// Created: 2002-07-09
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) 2002 Vaclav Slavik, Julian Smart and others
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_HELPVIEW_H_
|
||||
#define _WX_HELPVIEW_H_
|
||||
|
||||
#pragma interface "help.cpp"
|
||||
|
||||
// Define a new application type, each program should derive a class from wxApp
|
||||
class hvApp : public wxApp
|
||||
{
|
||||
public:
|
||||
// override base class virtuals
|
||||
// ----------------------------
|
||||
|
||||
// this one is called on application startup and is a good place for the app
|
||||
// initialization (doing it here and not in the ctor allows to have an error
|
||||
// return: if OnInit() returns false, the application terminates)
|
||||
|
||||
virtual bool OnInit();
|
||||
virtual int OnExit();
|
||||
|
||||
// Prompt the user for a book to open
|
||||
bool OpenBook(wxHtmlHelpController* controller);
|
||||
|
||||
private:
|
||||
wxHtmlHelpController *help;
|
||||
};
|
||||
|
||||
#endif
|
||||
// _WX_HELPVIEW_H_
|
||||
|
BIN
utils/helpview/src/helpview.ico
Normal file
BIN
utils/helpview/src/helpview.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
5
utils/helpview/src/helpview.rc
Normal file
5
utils/helpview/src/helpview.rc
Normal file
@ -0,0 +1,5 @@
|
||||
/* We need this to get the right default icon. */
|
||||
aaaaaa ICON "helpview.ico"
|
||||
helpview ICON "helpview.ico"
|
||||
|
||||
#include "wx/msw/wx.rc"
|
3835
utils/helpview/src/helpviewM5.xml
Normal file
3835
utils/helpview/src/helpviewM5.xml
Normal file
File diff suppressed because it is too large
Load Diff
16
utils/helpview/src/makefile.b32
Normal file
16
utils/helpview/src/makefile.b32
Normal file
@ -0,0 +1,16 @@
|
||||
#
|
||||
# File: makefile.b32
|
||||
# Author: Julian Smart
|
||||
# Created: 1999
|
||||
# Updated:
|
||||
# Copyright:
|
||||
#
|
||||
# Makefile : Builds sample for 32-bit BC++
|
||||
|
||||
WXDIR = $(WXWIN)
|
||||
|
||||
TARGET=helpview
|
||||
OBJECTS = $(TARGET).obj
|
||||
|
||||
!include $(WXDIR)\src\makeprog.b32
|
||||
|
16
utils/helpview/src/makefile.g95
Normal file
16
utils/helpview/src/makefile.g95
Normal file
@ -0,0 +1,16 @@
|
||||
#
|
||||
# File: makefile.g95
|
||||
# Author: Julian Smart
|
||||
# Created: 1999
|
||||
# Updated:
|
||||
# Copyright: (c) Julian Smart, 1999
|
||||
#
|
||||
# Makefile for wxWindows sample (Cygwin/Mingw32).
|
||||
|
||||
WXDIR = ../../..
|
||||
|
||||
TARGET=helpview
|
||||
OBJECTS = $(TARGET).o
|
||||
|
||||
include $(WXDIR)/src/makeprog.g95
|
||||
|
15
utils/helpview/src/makefile.wat
Normal file
15
utils/helpview/src/makefile.wat
Normal file
@ -0,0 +1,15 @@
|
||||
#
|
||||
# Makefile for WATCOM
|
||||
#
|
||||
# Created by Julian Smart, January 1999
|
||||
#
|
||||
#
|
||||
|
||||
WXDIR = $(%WXWIN)
|
||||
|
||||
PROGRAM = helpview
|
||||
OBJECTS = $(PROGRAM).obj
|
||||
|
||||
!include $(WXDIR)\src\makeprog.wat
|
||||
|
||||
|
BIN
utils/helpview/src/test.zip
Normal file
BIN
utils/helpview/src/test.zip
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user