git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1576
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
tools/gettext/msgunfmt.exe
src/makeb32.env
tools/gettext/msgunfmt.exe
src/makeb32.env
src/makemsc.env
src/makeprog.msc
src/makewat.env
src/makeprog.wat
src/makesc.env
src/makevc.env
src/makemsc.env
src/makeprog.msc
src/makewat.env
src/makeprog.wat
src/makesc.env
src/makevc.env
+src/makeprog.vc
+src/makelib.vc
src/makeg95.env
src/makesl.env
src/makeprog.sl
src/salford.lnk
src/maketwin.env
src/makeprog.twn
src/makeg95.env
src/makesl.env
src/makeprog.sl
src/salford.lnk
src/maketwin.env
src/makeprog.twn
-src/makeprog.vc
-src/makelib.vc
src/makefile.bcc
src/makefile.dos
src/makefile.vc
src/makefile.bcc
src/makefile.dos
src/makefile.vc
-\helpref{wxStreamBuffer}{wxstreamBuffer},\helpref{wxInputStream}{wxinputstream}
+\helpref{wxStreamBuffer}{wxstreamBuffer}, \helpref{wxInputStream}{wxinputstream}
\wxheading{Short description}
\wxheading{Short description}
-This stream uncompresses all data read from it, it uses the ``filtered''
+
+This stream uncompresses all data read from it. It uses the ``filtered''
stream to get new compressed data.
% -----------------------------------------------------------------------------
stream to get new compressed data.
% -----------------------------------------------------------------------------
-\helpref{wxStreamBuffer}{wxstreamBuffer},\helpref{wxOutputStream}{woutputstream}
+\helpref{wxStreamBuffer}{wxstreamBuffer}, \helpref{wxOutputStream}{woutputstream}
\wxheading{Short description}
\wxheading{Short description}
This stream compresses all data written to it and passed the compressed data
to the ``filtered'' stream.
This stream compresses all data written to it and passed the compressed data
to the ``filtered'' stream.
\membersection{wxFileInputStream::wxFileInputStream}
\membersection{wxFileInputStream::wxFileInputStream}
-\func{}{wxFileInputStream}{\param{const wxString&}{ ifileName}}
+\func{}{wxFileInputStream}{\param{const wxString\&}{ ifileName}}
Opens the specified file using its \it{ifilename} name in read-only mode.
Opens the specified file using its \it{ifilename} name in read-only mode.
-\func{}{wxFileInputStream}{\param{wxFile&}{ file}}
+\func{}{wxFileInputStream}{\param{wxFile\&}{ file}}
Initializes a file stream in read-only mode using the file I/O object \it{file}.
Initializes a file stream in read-only mode using the file I/O object \it{file}.
-\func{}{wxFileInputStream}{\param{int}{ fd}};
+\func{}{wxFileInputStream}{\param{int}{ fd}}
Initializes a file stream in read-only mode using the specified file descriptor.
\membersection{wxFileInputStream::\destruct{wxFileInputStream}}
Initializes a file stream in read-only mode using the specified file descriptor.
\membersection{wxFileInputStream::\destruct{wxFileInputStream}}
-\func{}{\destruct{wxFileInputStream}{\void}
+
+\func{}{\destruct{wxFileInputStream}}{\void}
Destructor.
\membersection{wxFileInputStream::Ok}
Destructor.
\membersection{wxFileInputStream::Ok}
\constfunc{bool}{Ok}{\void}
Returns TRUE if the stream is initialized and ready.
\constfunc{bool}{Ok}{\void}
Returns TRUE if the stream is initialized and ready.
\membersection{wxFileOutputStream::wxFileOutputStream}
\membersection{wxFileOutputStream::wxFileOutputStream}
-\func{}{wxFileOutputStream}{\param{const wxString&}{ ofileName}}
+\func{}{wxFileOutputStream}{\param{const wxString\&}{ ofileName}}
Creates a new file with \it{ofilename} name and initializes the stream in
write-only mode.
\func{}{wxFileOutputStream}{\param{wxFile&}{ file}}
Creates a new file with \it{ofilename} name and initializes the stream in
write-only mode.
\func{}{wxFileOutputStream}{\param{wxFile&}{ file}}
Initializes a file stream in write-only mode using the file I/O object \it{file}.
\func{}{wxFileOutputStream}{\param{int}{ fd}}
Initializes a file stream in write-only mode using the file I/O object \it{file}.
\func{}{wxFileOutputStream}{\param{int}{ fd}}
Initializes a file stream in write-only mode using the file descriptor \it{fd}.
\membersection{wxFileOutputStream::\destruct{wxFileOutputStream}}
Initializes a file stream in write-only mode using the file descriptor \it{fd}.
\membersection{wxFileOutputStream::\destruct{wxFileOutputStream}}
-\func{}{\destruct{wxFileOutputStream}{\void}
+
+\func{}{\destruct{wxFileOutputStream}}{\void}
Destructor.
\membersection{wxFileOutputStream::Ok}
Destructor.
\membersection{wxFileOutputStream::Ok}
\constfunc{bool}{Ok}{\void}
Returns TRUE if the stream is initialized and ready.
\constfunc{bool}{Ok}{\void}
Returns TRUE if the stream is initialized and ready.
\membersection{wxFileStream::wxFileStream}
\membersection{wxFileStream::wxFileStream}
-\func{}{wxFileStream}{\param{const wxString&}{ iofileName}}
+\func{}{wxFileStream}{\param{const wxString\&}{ iofileName}}
-Initializes a new file stream in read-write mode using the specified
+Initializes a new file stream in read-write mode using the specified
\it{iofilename} name.
% -----------------------------------------------------------------------------
\it{iofilename} name.
% -----------------------------------------------------------------------------
\latexignore{\rtfignore{\wxheading{Members}}}
\membersection{wxSocketInputStream::wxSocketInputStream}
\latexignore{\rtfignore{\wxheading{Members}}}
\membersection{wxSocketInputStream::wxSocketInputStream}
-\func{}{wxSocketInputStream}{\param{wxSocketBase&}{ s}}
+
+\func{}{wxSocketInputStream}{\param{wxSocketBase\&}{ s}}
Initializes a new read-only socket stream using the specified initialized
socket connection.
Initializes a new read-only socket stream using the specified initialized
socket connection.
\latexignore{\rtfignore{\wxheading{Members}}}
\membersection{wxSocketOutputStream::wxSocketOutputStream}
\latexignore{\rtfignore{\wxheading{Members}}}
\membersection{wxSocketOutputStream::wxSocketOutputStream}
-\func{}{wxSocketInputStream}{\param{wxSocketBase&}{ s}}
+
+\func{}{wxSocketInputStream}{\param{wxSocketBase\&}{ s}}
Initializes a new write-only socket stream using the specified initialized
socket connection.
Initializes a new write-only socket stream using the specified initialized
socket connection.
\constfunc [3] {{\bf #1} {\bf #2}(#3) {\bf const}\index{#2}}
\windowstyle [1] {{\bf #1}\index{#1}}
%\pythonnote [1] {{\bf wxPython note: }#1}
\constfunc [3] {{\bf #1} {\bf #2}(#3) {\bf const}\index{#2}}
\windowstyle [1] {{\bf #1}\index{#1}}
%\pythonnote [1] {{\bf wxPython note: }#1}
(*wnd) << "Welcome to text control number " << 1 << ".\n";
\end{verbatim}
(*wnd) << "Welcome to text control number " << 1 << ".\n";
\end{verbatim}
virtual bool LoadFile(const wxString& file);
virtual bool SaveFile(const wxString& file);
virtual void WriteText(const wxString& text);
virtual bool LoadFile(const wxString& file);
virtual bool SaveFile(const wxString& file);
virtual void WriteText(const wxString& text);
+ virtual void AppendText(const wxString& text);
virtual void DiscardEdits();
virtual bool IsModified() const;
virtual void DiscardEdits();
virtual bool IsModified() const;
bool wxFileDropTarget::OnDrop(long x, long y, const void *data, size_t size )
{
size_t number = 0;
bool wxFileDropTarget::OnDrop(long x, long y, const void *data, size_t size )
{
size_t number = 0;
char *text = (char*) data;
char *text = (char*) data;
- for (size_t i = 0; i < size; i++)
+ for (i = 0; i < size; i++)
if (text[i] == 0) number++;
if (number == 0) return TRUE;
if (text[i] == 0) number++;
if (number == 0) return TRUE;
char **files = new char*[number];
text = (char*) data;
char **files = new char*[number];
text = (char*) data;
- for (size_t i = 0; i < number; i++)
+ for (i = 0; i < number; i++)
{
files[i] = text;
int len = strlen( text );
{
files[i] = text;
int len = strlen( text );
bool wxFileDropTarget::OnDrop(long x, long y, const void *data, size_t size )
{
size_t number = 0;
bool wxFileDropTarget::OnDrop(long x, long y, const void *data, size_t size )
{
size_t number = 0;
char *text = (char*) data;
char *text = (char*) data;
- for (size_t i = 0; i < size; i++)
+ for ( i = 0; i < size; i++)
if (text[i] == 0) number++;
if (number == 0) return TRUE;
if (text[i] == 0) number++;
if (number == 0) return TRUE;
char **files = new char*[number];
text = (char*) data;
char **files = new char*[number];
text = (char*) data;
- for (size_t i = 0; i < number; i++)
+ for (i = 0; i < number; i++)
{
files[i] = text;
int len = strlen( text );
{
files[i] = text;
int len = strlen( text );
bool wxFileDropTarget::OnDrop(long x, long y, const void *data, size_t size )
{
size_t number = 0;
bool wxFileDropTarget::OnDrop(long x, long y, const void *data, size_t size )
{
size_t number = 0;
char *text = (char*) data;
char *text = (char*) data;
- for (size_t i = 0; i < size; i++)
+ for (i = 0; i < size; i++)
if (text[i] == 0) number++;
if (number == 0) return TRUE;
if (text[i] == 0) number++;
if (number == 0) return TRUE;
char **files = new char*[number];
text = (char*) data;
char **files = new char*[number];
text = (char*) data;
- for (size_t i = 0; i < number; i++)
+ for (i = 0; i < number; i++)
{
files[i] = text;
int len = strlen( text );
{
files[i] = text;
int len = strlen( text );
bool wxFileDropTarget::OnDrop(long x, long y, const void *data, size_t size )
{
size_t number = 0;
bool wxFileDropTarget::OnDrop(long x, long y, const void *data, size_t size )
{
size_t number = 0;
char *text = (char*) data;
char *text = (char*) data;
- for (size_t i = 0; i < size; i++)
+ for ( i = 0; i < size; i++)
if (text[i] == 0) number++;
if (number == 0) return TRUE;
if (text[i] == 0) number++;
if (number == 0) return TRUE;
char **files = new char*[number];
text = (char*) data;
char **files = new char*[number];
text = (char*) data;
- for (size_t i = 0; i < number; i++)
+ for (i = 0; i < number; i++)
{
files[i] = text;
int len = strlen( text );
{
files[i] = text;
int len = strlen( text );
{
wxLogDebug( "Got %d dropped files.", (int)nFiles );
wxLogDebug( "At x: %d, y: %d.", (int)x, (int)y );
{
wxLogDebug( "Got %d dropped files.", (int)nFiles );
wxLogDebug( "At x: %d, y: %d.", (int)x, (int)y );
- for (size_t i = 0; i < nFiles; i++)
+ size_t i;
+ for (i = 0; i < nFiles; i++)
{
wxLogDebug( aszFiles[i] );
}
{
wxLogDebug( aszFiles[i] );
}
{
size_t number = 0;
char *text = (char*) data;
{
size_t number = 0;
char *text = (char*) data;
- for (size_t i = 0; i < size; i++)
+ size_t i;
+ for (i = 0; i < size; i++)
if (text[i] == 0) number++;
if (number == 0) return TRUE;
if (text[i] == 0) number++;
if (number == 0) return TRUE;
char **files = new char*[number];
text = (char*) data;
char **files = new char*[number];
text = (char*) data;
- for (size_t i = 0; i < number; i++)
+ for ( i = 0; i < number; i++)
{
files[i] = text;
int len = strlen( text );
{
files[i] = text;
int len = strlen( text );
+void wxTextCtrl::AppendText(const wxString& text)
+{
+ long textPosition = GetLastPosition() + strlen(text);
+ XmTextInsert ((Widget) m_mainWidget, GetLastPosition(), (char*) (const char*) text);
+ XtVaSetValues ((Widget) m_mainWidget, XmNcursorPosition, textPosition, NULL);
+ SetInsertionPoint(textPosition);
+ XmTextShowPosition ((Widget) m_mainWidget, textPosition);
+ m_modified = TRUE;
+}
+
void wxTextCtrl::Clear()
{
XmTextSetString ((Widget) m_mainWidget, "");
void wxTextCtrl::Clear()
{
XmTextSetString ((Widget) m_mainWidget, "");
wxTextCtrl& wxTextCtrl::operator<<(const wxString& s)
{
wxTextCtrl& wxTextCtrl::operator<<(const wxString& s)
{
{
wxString str;
str.Printf("%.2f", f);
{
wxString str;
str.Printf("%.2f", f);
{
wxString str;
str.Printf("%.2f", d);
{
wxString str;
str.Printf("%.2f", d);
{
wxString str;
str.Printf("%d", i);
{
wxString str;
str.Printf("%d", i);
{
wxString str;
str.Printf("%ld", i);
{
wxString str;
str.Printf("%ld", i);
*/
//=======================================================================
*/
//=======================================================================
- wxString theFilter = ( Strlen(m_wildCard) == 0 ) ? wxString("*.*") : m_wildCard;
+ wxString theFilter;
+ if ( Strlen(m_wildCard) == 0 )
+ theFilter = wxString("*.*");
+ else
+ theFilter = m_wildCard ;
wxString filterBuffer;
if ( !strchr( theFilter, '|' ) ) { // only one filter ==> default text
wxString filterBuffer;
if ( !strchr( theFilter, '|' ) ) { // only one filter ==> default text