Some doc updates.
Corrected wxFileDialog::GetFilenames() and GetPaths() if no file is selected. Corrceted make install. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5052 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# This file was automatically generated by tmake at 02:45, 1999/12/21
|
# This file was automatically generated by tmake at 16:50, 1999/12/21
|
||||||
# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE UNX.T!
|
# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE UNX.T!
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -327,9 +327,7 @@ WX_HEADERS = \
|
|||||||
tab.h \
|
tab.h \
|
||||||
tabctrl.h \
|
tabctrl.h \
|
||||||
taskbar.h \
|
taskbar.h \
|
||||||
tbar95.h \
|
|
||||||
tbarbase.h \
|
tbarbase.h \
|
||||||
tbarmsw.h \
|
|
||||||
tbarsmpl.h \
|
tbarsmpl.h \
|
||||||
textctrl.h \
|
textctrl.h \
|
||||||
textdlg.h \
|
textdlg.h \
|
||||||
|
@@ -590,9 +590,7 @@ string.h W B
|
|||||||
tab.h W
|
tab.h W
|
||||||
tabctrl.h W
|
tabctrl.h W
|
||||||
taskbar.h W
|
taskbar.h W
|
||||||
tbar95.h W
|
|
||||||
tbarbase.h W
|
tbarbase.h W
|
||||||
tbarmsw.h W
|
|
||||||
tbarsmpl.h W
|
tbarsmpl.h W
|
||||||
textctrl.h W
|
textctrl.h W
|
||||||
textdlg.h W
|
textdlg.h W
|
||||||
|
@@ -114,7 +114,7 @@ values of wxFile::read or wxFile::write really make sense here.
|
|||||||
|
|
||||||
Attaches an existing file descriptor to the wxFile object. Example of predefined
|
Attaches an existing file descriptor to the wxFile object. Example of predefined
|
||||||
file descriptors are 0, 1 and 2 which correspond to stdin, stdout and stderr (and
|
file descriptors are 0, 1 and 2 which correspond to stdin, stdout and stderr (and
|
||||||
have symbolic names of wxFile::fd\_stdin, wxFile::fd\_stdout and wxFile::fd\_stderr).
|
have symbolic names of {\bf wxFile::fd\_stdin}, {\bf wxFile::fd\_stdout} and {\bf wxFile::fd\_stderr}).
|
||||||
|
|
||||||
The descriptor should be already opened and it will be closed by wxFile
|
The descriptor should be already opened and it will be closed by wxFile
|
||||||
object.
|
object.
|
||||||
|
@@ -89,7 +89,7 @@ $\backslash$n or $\backslash$r$\backslash$n or $\backslash$r.
|
|||||||
\section{\class{wxTextOutputStream}}\label{wxtextoutputstream}
|
\section{\class{wxTextOutputStream}}\label{wxtextoutputstream}
|
||||||
|
|
||||||
This class provides functions that write text datas using an output stream.
|
This class provides functions that write text datas using an output stream.
|
||||||
So, you can write \it{text} floats, integers.
|
So, you can write {\it text} floats, integers.
|
||||||
|
|
||||||
You can also simulate the C++ cout class:
|
You can also simulate the C++ cout class:
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
@@ -108,7 +108,7 @@ and Unix in their native formats (concerning the line ending).
|
|||||||
|
|
||||||
\membersection{wxTextOutputStream::wxTextOutputStream}\label{wxtextoutputstreamconstr}
|
\membersection{wxTextOutputStream::wxTextOutputStream}\label{wxtextoutputstreamconstr}
|
||||||
|
|
||||||
\func{}{wxTextOutputStream}{\param{wxOutputStream\&}{ stream}}
|
\func{}{wxTextOutputStream}{\param{wxOutputStream\&}{ stream}, \param{wxEOL}{ mode = wxEOL_NATIVE}}
|
||||||
|
|
||||||
Constructs a text stream object from an output stream. Only write methods will
|
Constructs a text stream object from an output stream. Only write methods will
|
||||||
be available.
|
be available.
|
||||||
@@ -117,12 +117,26 @@ be available.
|
|||||||
|
|
||||||
\docparam{stream}{The output stream.}
|
\docparam{stream}{The output stream.}
|
||||||
|
|
||||||
|
\docparam{mode}{The end-of-line mode. One of {\bf wxEOL_NATIVE}, {\bf wxEOL_DOS}, {\bf wxEOL_MAC} or {\bf wxEOL_UNIX}.}
|
||||||
|
|
||||||
\membersection{wxTextOutputStream::\destruct{wxTextOutputStream}}
|
\membersection{wxTextOutputStream::\destruct{wxTextOutputStream}}
|
||||||
|
|
||||||
\func{}{\destruct{wxTextOutputStream}}{\void}
|
\func{}{\destruct{wxTextOutputStream}}{\void}
|
||||||
|
|
||||||
Destroys the wxTextOutputStream object.
|
Destroys the wxTextOutputStream object.
|
||||||
|
|
||||||
|
\membersection{wxTextOutputStream::GetMode}
|
||||||
|
|
||||||
|
\func{wxEOL}{wxTextOutputStream::GetMode}{\void}
|
||||||
|
|
||||||
|
Returns the end-of-line mode. One of {\bf wxEOL_DOS}, {\bf wxEOL_MAC} or {\bf wxEOL_UNIX}.
|
||||||
|
|
||||||
|
\membersection{wxTextOutputStream::SetMode}
|
||||||
|
|
||||||
|
\func{void}{wxTextOutputStream::SetMode}{{\param wxEOL}{ mode = wxEOL_NATIVE}}
|
||||||
|
|
||||||
|
Set the end-of-line mode. One of {\bf wxEOL_NATIVE}, {\bf wxEOL_DOS}, {\bf wxEOL_MAC} or {\bf wxEOL_UNIX}.
|
||||||
|
|
||||||
\membersection{wxTextOutputStream::Write8}
|
\membersection{wxTextOutputStream::Write8}
|
||||||
|
|
||||||
\func{void}{wxTextOutputStream::Write8}{{\param wxUint8 }{i8}}
|
\func{void}{wxTextOutputStream::Write8}{{\param wxUint8 }{i8}}
|
||||||
@@ -143,14 +157,14 @@ Writes the 32 bit integer {\it i32} to the stream.
|
|||||||
|
|
||||||
\membersection{wxTextOutputStream::WriteDouble}
|
\membersection{wxTextOutputStream::WriteDouble}
|
||||||
|
|
||||||
\func{void}{wxTextOutputStream::WriteDouble}{{\param double }{f}}
|
\func{virtual void}{wxTextOutputStream::WriteDouble}{{\param double }{f}}
|
||||||
|
|
||||||
Writes the double {\it f} to the stream using the IEEE format.
|
Writes the double {\it f} to the stream using the IEEE format.
|
||||||
|
|
||||||
\membersection{wxTextOutputStream::WriteString}
|
\membersection{wxTextOutputStream::WriteString}
|
||||||
|
|
||||||
\func{void}{wxTextOutputStream::WriteString}{{\param const wxString\& }{string}}
|
\func{virtual void}{wxTextOutputStream::WriteString}{{\param const wxString\& }{string}}
|
||||||
|
|
||||||
Writes {\it string} as a line. Depending on the operating system, it adds
|
Writes {\it string} as a line. Depending on the end-of-line mode, it adds
|
||||||
$\backslash$n or $\backslash$r$\backslash$n.
|
$\backslash$n, $\backslash$r or $\backslash$r$\backslash$n.
|
||||||
|
|
||||||
|
@@ -901,6 +901,12 @@ void wxFileDialog::SetPath( const wxString& path )
|
|||||||
void wxFileDialog::GetPaths( wxArrayString& paths ) const
|
void wxFileDialog::GetPaths( wxArrayString& paths ) const
|
||||||
{
|
{
|
||||||
paths.Empty();
|
paths.Empty();
|
||||||
|
if (m_list->GetSelectedItemCount() == 0)
|
||||||
|
{
|
||||||
|
paths.Add( GetPath() );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
paths.Alloc( m_list->GetSelectedItemCount() );
|
paths.Alloc( m_list->GetSelectedItemCount() );
|
||||||
|
|
||||||
wxString dir;
|
wxString dir;
|
||||||
@@ -922,6 +928,11 @@ void wxFileDialog::GetPaths( wxArrayString& paths ) const
|
|||||||
void wxFileDialog::GetFilenames(wxArrayString& files) const
|
void wxFileDialog::GetFilenames(wxArrayString& files) const
|
||||||
{
|
{
|
||||||
files.Empty();
|
files.Empty();
|
||||||
|
if (m_list->GetSelectedItemCount() == 0)
|
||||||
|
{
|
||||||
|
files.Add( GetFilename() );
|
||||||
|
return;
|
||||||
|
}
|
||||||
files.Alloc( m_list->GetSelectedItemCount() );
|
files.Alloc( m_list->GetSelectedItemCount() );
|
||||||
|
|
||||||
wxListItem item;
|
wxListItem item;
|
||||||
|
Reference in New Issue
Block a user