Some corrections for BC++ compilation; Latex doc corrections
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1531 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -23,7 +23,7 @@ and \helpref{WriteData}{wxbitmapdataobjectwritedata} will have to be overridden.
|
|||||||
|
|
||||||
\func{}{wxBitmapDataObject}{\void}
|
\func{}{wxBitmapDataObject}{\void}
|
||||||
|
|
||||||
Default constructor. Call \helpref{SetBitmap}{wxbitmapdataobjectsettext} later
|
Default constructor. Call \helpref{SetBitmap}{wxbitmapdataobjectsetbitmap} later
|
||||||
or override \helpref{WriteData}{wxbitmapdataobjectwritedata} and
|
or override \helpref{WriteData}{wxbitmapdataobjectwritedata} and
|
||||||
\helpref{GetSize}{wxbitmapdataobjectgetsize} for providing data on-demand.
|
\helpref{GetSize}{wxbitmapdataobjectgetsize} for providing data on-demand.
|
||||||
|
|
||||||
@@ -36,7 +36,7 @@ Constructor, passing a bitmap.
|
|||||||
\constfunc{virtual size\_t}{GetSize}{\void}
|
\constfunc{virtual size\_t}{GetSize}{\void}
|
||||||
|
|
||||||
Returns the data size. By default, returns the size of the bitmap data
|
Returns the data size. By default, returns the size of the bitmap data
|
||||||
set in the constructor or using \helpref{SetBitmap}{wxbitmapdataobjectsettext}.
|
set in the constructor or using \helpref{SetBitmap}{wxbitmapdataobjectsetbitmap}.
|
||||||
This can be overridden to provide size data on-demand. Note that you'd
|
This can be overridden to provide size data on-demand. Note that you'd
|
||||||
have to call the inherited GetSize method as this is the only way
|
have to call the inherited GetSize method as this is the only way
|
||||||
to get to know the transfer size of the bitmap in a platform dependent
|
to get to know the transfer size of the bitmap in a platform dependent
|
||||||
@@ -82,7 +82,7 @@ this method when offering data on-demand, but this is not required by
|
|||||||
wxWindows' internals. Use this method to get data in bitmap form from
|
wxWindows' internals. Use this method to get data in bitmap form from
|
||||||
the \helpref{wxClipboard}{wxclipboard}.
|
the \helpref{wxClipboard}{wxclipboard}.
|
||||||
|
|
||||||
\membersection{wxBitmapDataObject::SetBitmap}\label{wxbitmapdataobjectsettext}
|
\membersection{wxBitmapDataObject::SetBitmap}\label{wxbitmapdataobjectsetbitmap}
|
||||||
|
|
||||||
\func{virtual void}{SetBitmap}{\param{const wxBitmap\& }{bitmap}}
|
\func{virtual void}{SetBitmap}{\param{const wxBitmap\& }{bitmap}}
|
||||||
|
|
||||||
|
@@ -64,10 +64,10 @@ on-demand).
|
|||||||
\constfunc{virtual void}{WriteData}{\param{void}{*dest} }
|
\constfunc{virtual void}{WriteData}{\param{void}{*dest} }
|
||||||
|
|
||||||
Write the data owned by this class to {\it dest}. By default, this
|
Write the data owned by this class to {\it dest}. By default, this
|
||||||
calls \helpref{WriteString}{wxtextobjectwritestring} with the string
|
calls \helpref{WriteString}{wxtextdataobjectwritestring} with the string
|
||||||
set in the constructor or using \helpref{SetText}{wxtextdataobjectsettext}.
|
set in the constructor or using \helpref{SetText}{wxtextdataobjectsettext}.
|
||||||
This can be overridden to provide text data on-demand; in this case
|
This can be overridden to provide text data on-demand; in this case
|
||||||
\helpref{WriteString}{wxtextobjectwritestring} must be called from
|
\helpref{WriteString}{wxtextdataobjectwritestring} must be called from
|
||||||
within the overriding WriteData() method.
|
within the overriding WriteData() method.
|
||||||
|
|
||||||
\membersection{wxTextDataObject::WriteString}\label{wxtextdataobjectwritestring}
|
\membersection{wxTextDataObject::WriteString}\label{wxtextdataobjectwritestring}
|
||||||
|
@@ -27,6 +27,7 @@ class WXDLLEXPORT wxBitmap;
|
|||||||
class WXDLLEXPORT wxBitmapHandler;
|
class WXDLLEXPORT wxBitmapHandler;
|
||||||
class WXDLLEXPORT wxIcon;
|
class WXDLLEXPORT wxIcon;
|
||||||
class WXDLLEXPORT wxCursor;
|
class WXDLLEXPORT wxCursor;
|
||||||
|
class WXDLLEXPORT wxControl;
|
||||||
|
|
||||||
// A mask is a mono bitmap used for drawing bitmaps
|
// A mask is a mono bitmap used for drawing bitmaps
|
||||||
// transparently.
|
// transparently.
|
||||||
@@ -129,9 +130,8 @@ public:
|
|||||||
// Initialize with raw data
|
// Initialize with raw data
|
||||||
wxBitmap(const char bits[], int width, int height, int depth = 1);
|
wxBitmap(const char bits[], int width, int height, int depth = 1);
|
||||||
|
|
||||||
class WXDLLEXPORT wxItem;
|
|
||||||
// Initialize with XPM data
|
// Initialize with XPM data
|
||||||
wxBitmap(char **data, wxItem *anItem = NULL);
|
wxBitmap(char **data, wxControl *anItem = NULL);
|
||||||
|
|
||||||
// Load a file or resource
|
// Load a file or resource
|
||||||
wxBitmap(const wxString& name, long type = wxBITMAP_TYPE_BMP_RESOURCE);
|
wxBitmap(const wxString& name, long type = wxBITMAP_TYPE_BMP_RESOURCE);
|
||||||
|
@@ -162,19 +162,7 @@ public:
|
|||||||
// get value type
|
// get value type
|
||||||
ValueType GetValueType(const char *szValue) const;
|
ValueType GetValueType(const char *szValue) const;
|
||||||
// returns TRUE if the value contains a number (else it's some string)
|
// returns TRUE if the value contains a number (else it's some string)
|
||||||
bool IsNumericValue(const char *szValue) const
|
bool IsNumericValue(const char *szValue) const;
|
||||||
{
|
|
||||||
ValueType type = GetValueType(szValue);
|
|
||||||
switch ( type ) {
|
|
||||||
case Type_Dword:
|
|
||||||
case Type_Dword_little_endian:
|
|
||||||
case Type_Dword_big_endian:
|
|
||||||
return TRUE;
|
|
||||||
|
|
||||||
default:
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// assignment operators set the default value of the key
|
// assignment operators set the default value of the key
|
||||||
wxRegKey& operator=(const wxString& strValue)
|
wxRegKey& operator=(const wxString& strValue)
|
||||||
|
@@ -450,11 +450,12 @@ public:
|
|||||||
// convert to upper case in place, return the string itself
|
// convert to upper case in place, return the string itself
|
||||||
wxString& MakeUpper();
|
wxString& MakeUpper();
|
||||||
// convert to upper case, return the copy of the string
|
// convert to upper case, return the copy of the string
|
||||||
wxString Upper() const { wxString s(*this); return s.MakeUpper(); }
|
// Here's something to remember: BC++ doesn't like returns in inlines.
|
||||||
|
wxString Upper() const ;
|
||||||
// convert to lower case in place, return the string itself
|
// convert to lower case in place, return the string itself
|
||||||
wxString& MakeLower();
|
wxString& MakeLower();
|
||||||
// convert to lower case, return the copy of the string
|
// convert to lower case, return the copy of the string
|
||||||
wxString Lower() const { wxString s(*this); return s.MakeLower(); }
|
wxString Lower() const ;
|
||||||
|
|
||||||
// trimming/padding whitespace (either side) and truncating
|
// trimming/padding whitespace (either side) and truncating
|
||||||
// remove spaces from left or from right (default) side
|
// remove spaces from left or from right (default) side
|
||||||
|
@@ -18,7 +18,7 @@
|
|||||||
#define wxRELEASE_NUMBER 1
|
#define wxRELEASE_NUMBER 1
|
||||||
#define wxVERSION_STRING "wxWindows 2.0.1"
|
#define wxVERSION_STRING "wxWindows 2.0.1"
|
||||||
#define wxVERSION_NUMBER (wxMAJOR_VERSION * 1000) + (wxMINOR_VERSION * 100) + wxRELEASE_NUMBER
|
#define wxVERSION_NUMBER (wxMAJOR_VERSION * 1000) + (wxMINOR_VERSION * 100) + wxRELEASE_NUMBER
|
||||||
#define wxBETA_NUMBER 17
|
#define wxBETA_NUMBER 3
|
||||||
#define wxVERSION_FLOAT wxMAJOR_VERSION + (wxMINOR_VERSION/10.0) + (wxRELEASE_NUMBER/100.0) + (wxBETA_NUMBER/10000.0)
|
#define wxVERSION_FLOAT wxMAJOR_VERSION + (wxMINOR_VERSION/10.0) + (wxRELEASE_NUMBER/100.0) + (wxBETA_NUMBER/10000.0)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -1092,6 +1092,13 @@ int wxString::Freq(char ch) const
|
|||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// convert to upper case, return the copy of the string
|
||||||
|
wxString wxString::Upper() const
|
||||||
|
{ wxString s(*this); return s.MakeUpper(); }
|
||||||
|
|
||||||
|
// convert to lower case, return the copy of the string
|
||||||
|
wxString wxString::Lower() const { wxString s(*this); return s.MakeLower(); }
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
// standard C++ library string functions
|
// standard C++ library string functions
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
@@ -142,7 +142,7 @@ wxBitmap::wxBitmap(const char bits[], int the_width, int the_height, int no_bits
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Create from XPM data
|
// Create from XPM data
|
||||||
wxBitmap::wxBitmap(char **data, wxItem *WXUNUSED(anItem))
|
wxBitmap::wxBitmap(char **data, wxControl *WXUNUSED(anItem))
|
||||||
{
|
{
|
||||||
(void) Create((void *)data, wxBITMAP_TYPE_XPM_DATA, 0, 0, 0);
|
(void) Create((void *)data, wxBITMAP_TYPE_XPM_DATA, 0, 0, 0);
|
||||||
}
|
}
|
||||||
|
@@ -34,15 +34,16 @@
|
|||||||
#include "wx/module.h"
|
#include "wx/module.h"
|
||||||
#include "wx/dde.h"
|
#include "wx/dde.h"
|
||||||
|
|
||||||
|
#include "wx/msw/private.h"
|
||||||
|
#include <windows.h>
|
||||||
|
#include <ddeml.h>
|
||||||
|
|
||||||
#ifndef __TWIN32__
|
#ifndef __TWIN32__
|
||||||
#ifdef __GNUWIN32__
|
#ifdef __GNUWIN32__
|
||||||
#include "wx/msw/gnuwin32/extra.h"
|
#include "wx/msw/gnuwin32/extra.h"
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "wx/msw/private.h"
|
|
||||||
#include <windows.h>
|
|
||||||
#include <ddeml.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#ifdef __WIN32__
|
#ifdef __WIN32__
|
||||||
|
@@ -788,6 +788,21 @@ bool wxRegKey::GetNextKey(wxString& strKeyName, long& lIndex) const
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// returns TRUE if the value contains a number (else it's some string)
|
||||||
|
bool wxRegKey::IsNumericValue(const char *szValue) const
|
||||||
|
{
|
||||||
|
ValueType type = GetValueType(szValue);
|
||||||
|
switch ( type ) {
|
||||||
|
case Type_Dword:
|
||||||
|
case Type_Dword_little_endian:
|
||||||
|
case Type_Dword_big_endian:
|
||||||
|
return TRUE;
|
||||||
|
|
||||||
|
default:
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
// implementation of global private functions
|
// implementation of global private functions
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
Reference in New Issue
Block a user