Some doc corrections

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2001-04-25 15:38:00 +00:00
parent 6a611b39fe
commit a98f98ac6f
11 changed files with 40 additions and 17 deletions

View File

@@ -683,7 +683,9 @@ int MyApp::OnExit()
delete NormalFont; delete NormalFont;
delete BoldFont; delete BoldFont;
delete ItalicFont; delete ItalicFont;
delete poem_buffer; delete[] poem_buffer;
if (search_string)
delete[] search_string;
return 0; return 0;
} }
@@ -993,7 +995,7 @@ long MainWindow::DoSearch(void)
// Load index (or compile it if none found) // Load index (or compile it if none found)
void TryLoadIndex() void TryLoadIndex()
{ {
index_ok = LoadIndex(index_filename); index_ok = (LoadIndex(index_filename) != 0);
if (!index_ok || (nitems == 0)) if (!index_ok || (nitems == 0))
{ {
PoetryError("Index file not found; will compile new one", "wxPoem"); PoetryError("Index file not found; will compile new one", "wxPoem");

View File

@@ -6,12 +6,10 @@ database connection allows function to be performed directly on the
datasource, as well as allowing access to any tables/views defined in datasource, as well as allowing access to any tables/views defined in
the datasource to which the user has sufficient privileges. the datasource to which the user has sufficient privileges.
\wxheading{Include files} \wxheading{Include files}
<wx/db.h> <wx/db.h>
\wxheading{Helper classes and data structures} \wxheading{Helper classes and data structures}
The following classes and structs are defined in db.cpp/.h for use with the wxDb class. The following classes and structs are defined in db.cpp/.h for use with the wxDb class.
@@ -23,13 +21,11 @@ The following classes and structs are defined in db.cpp/.h for use with the wxDb
\item \helpref{wxDbInf}{wxdbinf} \item \helpref{wxDbInf}{wxdbinf}
\end{itemize} \end{itemize}
\wxheading{Constants} \wxheading{Constants}
NOTE: In a future release, all ODBC class constants will be prefaced with 'wx' NOTE: In a future release, all ODBC class constants will be prefaced with 'wx'.
\begin{verbatim} \begin{verbatim}
wxDB_PATH_MAX Maximum path length allowed to be passed to wxDB_PATH_MAX Maximum path length allowed to be passed to
the ODBC driver to indicate where the data the ODBC driver to indicate where the data
file(s) are located. file(s) are located.
@@ -57,8 +53,8 @@ NOTE: In a future release, all ODBC class constants will be prefaced with 'wx'
data type data type
\end{verbatim} \end{verbatim}
\subsection{Enumerated types}\label{wxdbenumeratedtypes} \subsection{Enumerated types}\label{wxdbenumeratedtypes}
\wxheading{Enumerated types} \wxheading{Enumerated types}
\docparam{enum {\bf wxDbSqlLogState}}{sqlLogOFF, sqlLogON} \docparam{enum {\bf wxDbSqlLogState}}{sqlLogOFF, sqlLogON}
@@ -3970,8 +3966,8 @@ structure.
Eventually, accessor functions will be added for this class Eventually, accessor functions will be added for this class
\membersection{wxDbTableInf::Initialize}\label{wxdbtableinfinitialize} \membersection{wxDbTableInf::Initialize}\label{wxdbtableinfinitialize}
Simply initializes all member variables to a cleared state. Called by Simply initializes all member variables to a cleared state. Called by
the constructor automatically. the constructor automatically.

View File

@@ -49,3 +49,4 @@ output. Default is 720ppi.
Return resolution used in PostScript output. See Return resolution used in PostScript output. See
\helpref{SetResolution}{wxpostscriptdcsetresolution}. \helpref{SetResolution}{wxpostscriptdcsetresolution}.

View File

@@ -395,3 +395,4 @@ parameters and returns a tuple of values for x and y.}
\perlnote{In wxPerl this method takes no parameters and returns a \perlnote{In wxPerl this method takes no parameters and returns a
2-element list {\tt ( x, y )}.} 2-element list {\tt ( x, y )}.}

View File

@@ -270,3 +270,4 @@ variable fields.
integers.} integers.}
\perlnote{In wxPerl this method takes as parameters the field widths.} \perlnote{In wxPerl this method takes as parameters the field widths.}

View File

@@ -1075,8 +1075,7 @@ delete DbConnectInf;
\end{verbatim} \end{verbatim}
\subsection{wxDatabase ODBC class overview [DEPRECATED]}\label{oldwxodbcoverview}
\subsection{wxDatabase ODBC class overview [DEPRECATED]}\label{wxodbcoverview}
Classes: \helpref{wxDatabase}{wxdatabase}, \helpref{wxRecordSet}{wxrecordset}, \helpref{wxQueryCol}{wxquerycol}, Classes: \helpref{wxDatabase}{wxdatabase}, \helpref{wxRecordSet}{wxrecordset}, \helpref{wxQueryCol}{wxquerycol},
\rtfsp\helpref{wxQueryField}{wxqueryfield} \rtfsp\helpref{wxQueryField}{wxqueryfield}

View File

@@ -32,7 +32,7 @@ No base class
\membersection{Constructors} \membersection{Constructors}
\helpref{wxTimeSpan()}{wxtimespandef} wxTimeSpan()\\
\helpref{wxTimeSpan(hours, min, sec, msec)}{wxtimespan} \helpref{wxTimeSpan(hours, min, sec, msec)}{wxtimespan}
\membersection{Accessors} \membersection{Accessors}

View File

@@ -1,5 +1,5 @@
[OPTIONS] [OPTIONS]
BMROOT=n:\wx2dev\wxWind~1\docs/latex/wx ; Assume that bitmaps are where the source is BMROOT=c:\wx2dev\wxWind~1\docs/latex/wx ; Assume that bitmaps are where the source is
TITLE=wxWindows Manual TITLE=wxWindows Manual
CONTENTS=Contents CONTENTS=Contents
COMPRESS=HIGH COMPRESS=HIGH

View File

@@ -362,7 +362,7 @@ as possible to the C++ spec over time.
\item \helpref{wxIndividualLayoutConstraint}{wxindividuallayoutconstraint} \item \helpref{wxIndividualLayoutConstraint}{wxindividuallayoutconstraint}
\item \helpref{wxInitDialogEvent}{wxinitdialogevent} \item \helpref{wxInitDialogEvent}{wxinitdialogevent}
\item \helpref{wxInputStream}{wxinputstream} \item \helpref{wxInputStream}{wxinputstream}
\item \helpref{wxInternetFSHandler}{wxinternetfshandler} \item \helpref{wxInternetFSHandler}{fs}
\item \helpref{wxJoystickEvent}{wxjoystickevent} \item \helpref{wxJoystickEvent}{wxjoystickevent}
\item wxJPEGHandler \item wxJPEGHandler
\item \helpref{wxKeyEvent}{wxkeyevent} \item \helpref{wxKeyEvent}{wxkeyevent}
@@ -461,7 +461,7 @@ as possible to the C++ spec over time.
\item \helpref{wxValidator}{wxvalidator} \item \helpref{wxValidator}{wxvalidator}
\item \helpref{wxWindowDC}{wxwindowdc} \item \helpref{wxWindowDC}{wxwindowdc}
\item \helpref{wxWindow}{wxwindow} \item \helpref{wxWindow}{wxwindow}
\item \helpref{wxZipFSHandler}{wxzipfshandler} \item \helpref{wxZipFSHandler}{fs}
\end{itemize} \end{itemize}
%---------------------------------------------------------------------- %----------------------------------------------------------------------

View File

@@ -665,7 +665,7 @@ clean: $(PERIPH_CLEAN_TARGET)
# Making documents # Making documents
docs: allhlp allhtml allpdfrtf htb htmlhelp docs: allhlp allhtml allpdfrtf allhtb allhtmlhelp
alldocs: docs alldocs: docs
hlp: wxhlp hlp: wxhlp
wxhlp: $(DOCDIR)/winhelp/wx.hlp wxhlp: $(DOCDIR)/winhelp/wx.hlp
@@ -684,11 +684,15 @@ referencps: $(WXDIR)\docs\ps\referenc.ps
allhlp: wxhlp allhlp: wxhlp
cd $(WXDIR)\utils\dialoged\src cd $(WXDIR)\utils\dialoged\src
nmake -f makefile.vc hlp nmake -f makefile.vc hlp
cd $(WXDIR)\utils\tex2rtf\src
nmake -f makefile.vc hlp
cd $(THISDIR) cd $(THISDIR)
allhtml: wxhtml allhtml: wxhtml
cd $(WXDIR)\utils\dialoged\src cd $(WXDIR)\utils\dialoged\src
nmake -f makefile.vc html nmake -f makefile.vc html
cd $(WXDIR)\utils\tex2rtf\src
nmake -f makefile.vc html
cd $(THISDIR) cd $(THISDIR)
allps: wxps referencps allps: wxps referencps
@@ -699,12 +703,29 @@ allps: wxps referencps
allpdfrtf: pdfrtf allpdfrtf: pdfrtf
cd $(WXDIR)\utils\dialoged\src cd $(WXDIR)\utils\dialoged\src
nmake -f makefile.vc pdfrtf nmake -f makefile.vc pdfrtf
cd $(WXDIR)\utils\tex2rtf\src
nmake -f makefile.vc pdfrtf
cd $(THISDIR)
allhtmlhelp: htmlhelp
cd $(WXDIR)\utils\dialoged\src
nmake -f makefile.vc htmlhelp
cd $(WXDIR)\utils\tex2rtf\src
nmake -f makefile.vc htmlhelp
cd $(THISDIR)
allhtb: htb
cd $(WXDIR)\utils\dialoged\src
nmake -f makefile.vc htb
cd $(WXDIR)\utils\tex2rtf\src
nmake -f makefile.vc htb
cd $(THISDIR) cd $(THISDIR)
$(DOCDIR)/winhelp/wx.hlp: $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj $(DOCDIR)/winhelp/wx.hlp: $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj
cd $(DOCDIR)/latex/wx cd $(DOCDIR)/latex/wx
-erase wx.ph -erase wx.ph
hc wx hc wx
-mkdir $(DOCDIR)\winhelp
-erase $(DOCDIR)\winhelp\wx.hlp -erase $(DOCDIR)\winhelp\wx.hlp
-erase $(DOCDIR)\winhelp\wx.cnt -erase $(DOCDIR)\winhelp\wx.cnt
move wx.hlp $(DOCDIR)\winhelp\wx.hlp move wx.hlp $(DOCDIR)\winhelp\wx.hlp
@@ -731,6 +752,7 @@ $(DOCDIR)/latex/techref/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
$(DOCDIR)/pdf/wx.rtf: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex
cd $(DOCDIR)\latex\wx cd $(DOCDIR)\latex\wx
-mkdir $(DOCDIR)\pdf
-copy *.wmf $(DOCDIR)\pdf -copy *.wmf $(DOCDIR)\pdf
-copy *.bmp $(DOCDIR)\pdf -copy *.bmp $(DOCDIR)\pdf
-start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf
@@ -745,6 +767,7 @@ $(DOCDIR)/pdf/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
$(DOCDIR)\html\wx\wx.htm: $(DOCDIR)\latex\wx\classes.tex $(DOCDIR)\latex\wx\body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\html\wx\wx.htm: $(DOCDIR)\latex\wx\classes.tex $(DOCDIR)\latex\wx\body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)\latex\wx\manual.tex
cd $(DOCDIR)\latex\wx cd $(DOCDIR)\latex\wx
-mkdir $(DOCDIR)\html
-mkdir $(DOCDIR)\html\wx -mkdir $(DOCDIR)\html\wx
copy *.gif $(DOCDIR)\html\wx copy *.gif $(DOCDIR)\html\wx
-start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\html\wx\wx.htm -twice -html -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\html\wx\wx.htm -twice -html

View File

@@ -1,5 +1,5 @@
[OPTIONS] [OPTIONS]
BMROOT=d:\wx2dev\wxWind~1\utils\tex2rtf\docs ; Assume that bitmaps are where the source is BMROOT=c:\wx2dev\wxWind~1\utils\tex2rtf\docs ; Assume that bitmaps are where the source is
TITLE=Tex2RTF Manual TITLE=Tex2RTF Manual
CONTENTS=Contents CONTENTS=Contents
COMPRESS=HIGH COMPRESS=HIGH