- Added wxLocale::IsAvailable() (Creighton).
- Added Malay translations (Mahrazi Mohd Kamal)
- Added reference counting for wxVariant
+- For consistency, all classes having Ok() method now also have IsOk() one, use
+ of the latter form is preferred although the former hasn't been deprecated yet
All (GUI):
Destroys the wxAcceleratorTable object.
-\membersection{wxAcceleratorTable::Ok}\label{wxacceleratortableok}
+\membersection{wxAcceleratorTable::IsOk}\label{wxacceleratortableisok}
-\constfunc{bool}{Ok}{\void}
+\constfunc{bool}{IsOk}{\void}
Returns true if the accelerator table is valid.
\helpref{wxBitmap::SaveFile}{wxbitmapsavefile}
-\membersection{wxBitmap::Ok}\label{wxbitmapok}
+\membersection{wxBitmap::IsOk}\label{wxbitmapisok}
-\constfunc{bool}{Ok}{\void}
+\constfunc{bool}{IsOk}{\void}
Returns true if bitmap data is present.
\func{}{wxBrush}{\void}
-Default constructor. The brush will be uninitialised, and \helpref{wxBrush::Ok}{wxbrushok} will
+Default constructor. The brush will be uninitialised, and \helpref{wxBrush:IsOk}{wxbrushisok} will
return false.
\func{}{wxBrush}{\param{const wxColour\&}{ colour}, \param{int}{ style = {\tt wxSOLID}}}
\constfunc{wxBitmap *}{GetStipple}{\void}
Gets a pointer to the stipple bitmap. If the brush does not have a wxSTIPPLE style,
-this bitmap may be non-NULL but uninitialised (\helpref{wxBitmap::Ok}{wxbitmapok} returns false).
+this bitmap may be non-NULL but uninitialised (\helpref{wxBitmap:IsOk}{wxbitmapisok} returns false).
\wxheading{See also}
\helpref{wxBrush::GetStyle}{wxbrushgetstyle}
-\membersection{wxBrush::Ok}\label{wxbrushok}
+\membersection{wxBrush::IsOk}\label{wxbrushisok}
-\constfunc{bool}{Ok}{\void}
+\constfunc{bool}{IsOk}{\void}
Returns true if the brush is initialised. It will return false if the default
constructor has been used (for example, the brush is a member of a class, or
Returns the green intensity.
-\membersection{wxColour::Ok}\label{wxcolourok}
+\membersection{wxColour::IsOk}\label{wxcolourisok}
-\constfunc{bool}{Ok}{\void}
+\constfunc{bool}{IsOk}{\void}
Returns \true if the colour object is valid (the colour has been initialised with RGB values).
\func{wxColour}{Find}{\param{const wxString\& }{colourName}}
Finds a colour given the name. Returns an invalid colour object (that is, such
-that its \helpref{Ok()}{wxcolourok} method returns \false) if the colour wasn't
+that its \helpref{Ok()}{wxcolourisok} method returns \false) if the colour wasn't
found in the database.
destroyed. wxWidgets destroys all cursors on application exit, although
it is best to clean them up explicitly.
-\membersection{wxCursor::Ok}\label{wxcursorok}
+\membersection{wxCursor::IsOk}\label{wxcursorisok}
-\constfunc{bool}{Ok}{\void}
+\constfunc{bool}{IsOk}{\void}
Returns true if cursor data is present.
Gets the minimum vertical extent used in drawing commands so far.
-\membersection{wxDC::Ok}\label{wxdcok}
+\membersection{wxDC::IsOk}\label{wxdcisok}
\func{bool}{Ok}{\void}
Destructor.
-\membersection{wxFFileInputStream::Ok}\label{wxffileinputstreamok}
+\membersection{wxFFileInputStream::IsOk}\label{wxffileinputstreamisok}
-\constfunc{bool}{Ok}{\void}
+\constfunc{bool}{IsOk}{\void}
Returns true if the stream is initialized and ready.
Destructor.
-\membersection{wxFFileOutputStream::Ok}\label{wxffileoutputstreamok}
+\membersection{wxFFileOutputStream::IsOk}\label{wxffileoutputstreamisok}
-\constfunc{bool}{Ok}{\void}
+\constfunc{bool}{IsOk}{\void}
Returns true if the stream is initialized and ready.
Destructor.
-\membersection{wxFileInputStream::Ok}\label{wxfileinputstreamok}
+\membersection{wxFileInputStream::IsOk}\label{wxfileinputstreamisok}
-\constfunc{bool}{Ok}{\void}
+\constfunc{bool}{IsOk}{\void}
Returns true if the stream is initialized and ready.
Destructor.
-\membersection{wxFileOutputStream::Ok}\label{wxfileoutputstreamok}
+\membersection{wxFileOutputStream::IsOk}\label{wxfileoutputstreamisok}
-\constfunc{bool}{Ok}{\void}
+\constfunc{bool}{IsOk}{\void}
Returns true if the stream is initialized and ready.
the given size in pixels on platforms other than wxMSW.
-\membersection{wxFont::Ok}\label{wxfontok}
+\membersection{wxFont::IsOk}\label{wxfontisok}
-\constfunc{bool}{Ok}{\void}
+\constfunc{bool}{IsOk}{\void}
Returns {\tt true} if this object is a valid font, {\tt false} otherwise.
\func{wxColour}{wxGetColourFromUser}{\param{wxWindow *}{parent}, \param{const wxColour\& }{colInit}, \param{const wxString\& }{caption = wxEmptyString}}
Shows the colour selection dialog and returns the colour selected by user or
-invalid colour (use \helpref{wxColour::Ok}{wxcolourok} to test whether a colour
+invalid colour (use \helpref{wxColour:IsOk}{wxcolourisok} to test whether a colour
is valid) if the dialog was cancelled.
\wxheading{Parameters}
\func{wxFont}{wxGetFontFromUser}{\param{wxWindow *}{parent}, \param{const wxFont\& }{fontInit}, \param{const wxString\& }{caption = wxEmptyString}}
Shows the font selection dialog and returns the font selected by user or
-invalid font (use \helpref{wxFont::Ok}{wxfontok} to test whether a font
+invalid font (use \helpref{wxFont:IsOk}{wxfontisok} to test whether a font
is valid) if the dialog was cancelled.
\wxheading{Parameters}
\helpref{wxIcon::wxIcon}{wxiconctor}
-\membersection{wxIcon::Ok}\label{wxiconok}
+\membersection{wxIcon::IsOk}\label{wxiconisok}
-\constfunc{bool}{Ok}{\void}
+\constfunc{bool}{IsOk}{\void}
Returns true if icon data is present.
-\membersection{wxImage::Ok}\label{wximageok}
+\membersection{wxImage::IsOk}\label{wximageisok}
-\constfunc{bool}{Ok}{\void}
+\constfunc{bool}{IsOk}{\void}
Returns true if image data is present.
Constructor. If a filename is given, the Windows disk metafile is
read in. Check whether this was performed successfully by
-using the \helpref{wxMetafile::Ok}{wxmetafileok} member.
+using the \helpref{wxMetafile:IsOk}{wxmetafileisok} member.
\membersection{wxMetafile::\destruct{wxMetafile}}\label{wxmetafiledtor}
Destructor.
-\membersection{wxMetafile::Ok}\label{wxmetafileok}
+\membersection{wxMetafile::IsOk}\label{wxmetafileisok}
\func{bool}{Ok}{\void}
Returns the \helpref{page setup data}{wxpagesetupdialogdata} associated with the dialog.
-%\membersection{wxPageSetupDialog::Ok}\label{wxpagesetupdialogok}
+%\membersection{wxPageSetupDialog::IsOk}\label{wxpagesetupdialogisok}
%
-%\constfunc{bool}{Ok}{\void}
+%\constfunc{bool}{IsOk}{\void}
%
%Returns true if the print data associated with the dialog data is valid.
%This can return false on Windows if the current printer is not set, for example.
Returns a reference to the \helpref{print data}{wxprintdata} associated with this object.
-\membersection{wxPageSetupDialogData::Ok}\label{wxpagesetupdialogdataok}
+\membersection{wxPageSetupDialogData::IsOk}\label{wxpagesetupdialogdataisok}
-\constfunc{bool}{Ok}{\void}
+\constfunc{bool}{IsOk}{\void}
Returns true if the print data associated with the dialog data is valid.
This can return false on Windows if the current printer is not set, for example.
\perlnote{In wxPerl this method takes only the {\tt pixel} parameter and
returns a 3-element list ( or the empty list upon failure ).}
-\membersection{wxPalette::Ok}\label{wxpaletteok}
+\membersection{wxPalette::IsOk}\label{wxpaletteisok}
-\constfunc{bool}{Ok}{\void}
+\constfunc{bool}{IsOk}{\void}
Returns true if palette data is present.
\func{}{wxPen}{\void}
-Default constructor. The pen will be uninitialised, and \helpref{wxPen::Ok}{wxpenok} will
+Default constructor. The pen will be uninitialised, and \helpref{wxPen:IsOk}{wxpenisok} will
return false.
\func{}{wxPen}{\param{const wxColour\&}{ colour}, \param{int}{ width = $1$}, \param{int}{ style = {\tt wxSOLID}}}
\helpref{wxPen::SetWidth}{wxpensetwidth}
-\membersection{wxPen::Ok}\label{wxpenok}
+\membersection{wxPen::IsOk}\label{wxpenisok}
-\constfunc{bool}{Ok}{\void}
+\constfunc{bool}{IsOk}{\void}
Returns true if the pen is initialised.
indicating the current resolution setting.
-\membersection{wxPrintData::Ok}\label{wxprintdataok}
+\membersection{wxPrintData::IsOk}\label{wxprintdataisok}
-\constfunc{bool}{Ok}{\void}
+\constfunc{bool}{IsOk}{\void}
Returns true if the print data is valid for using in print dialogs.
This can return false on Windows if the current printer is not set, for example.
Returns the {\it to} page number, as entered by the user.
-\membersection{wxPrintDialogData::Ok}\label{wxprintdialogdataok}
+\membersection{wxPrintDialogData::IsOk}\label{wxprintdialogdataisok}
-\constfunc{bool}{Ok}{\void}
+\constfunc{bool}{IsOk}{\void}
Returns true if the print data is valid for using in print dialogs.
This can return false on Windows if the current printer is not set, for example.
or NULL if none exists.
-\membersection{wxPrintPreview::Ok}\label{wxprintpreviewok}
+\membersection{wxPrintPreview::IsOk}\label{wxprintpreviewisok}
\func{bool}{Ok}{\void}
\helpref{IsDisconnected}{wxsocketbaseisdisconnected}\\
\helpref{LastCount}{wxsocketbaselastcount}\\
\helpref{LastError}{wxsocketbaselasterror}\\
-\helpref{Ok}{wxsocketbaseok}\\
+\helpref{IsOk}{wxsocketbaseisok}\\
\helpref{SaveState}{wxsocketbasesavestate}\\
\helpref{RestoreState}{wxsocketbaserestorestate}
will be sent.
%
-% Ok
+% IsOk
%
-\membersection{wxSocketBase::Ok}\label{wxsocketbaseok}
+\membersection{wxSocketBase::IsOk}\label{wxsocketbaseisok}
-\constfunc{bool}{Ok}{\void}
+\constfunc{bool}{IsOk}{\void}
Returns true if the socket is initialized and ready and false in other
cases.
Constructs a new server and tries to bind to the specified {\it address}.
Before trying to accept new connections, test whether it succeeded with
-\helpref{wxSocketBase::Ok}{wxsocketbaseok}.
+\helpref{wxSocketBase:IsOk}{wxsocketbaseisok}.
\wxheading{Parameters}
static void InitStandardHandlers();
*/
- virtual bool Ok() const = 0;
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const = 0;
virtual int GetHeight() const = 0;
virtual int GetWidth() const = 0;
int GetOrientation() const { return m_printOrientation; }
// Is this data OK for showing the print dialog?
- bool Ok() const ;
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const ;
const wxString& GetPrinterName() const { return m_printerName; }
bool GetColour() const { return m_colour; }
bool GetEnableHelp() const { return m_printEnableHelp; };
// Is this data OK for showing the print dialog?
- bool Ok() const { return m_printData.Ok() ; }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return m_printData.Ok() ; }
wxPrintData& GetPrintData() { return m_printData; }
void SetPrintData(const wxPrintData& printData) { m_printData = printData; }
bool GetEnableHelp() const { return m_enableHelp; };
// Is this data OK for showing the page setup dialog?
- bool Ok() const { return m_printData.Ok() ; }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return m_printData.Ok() ; }
// If a corresponding paper type is found in the paper database, will set the m_printData
// paper size id member as well.
// get the given part of bitmap
wxBitmap GetSubBitmap( const wxRect& rect ) const;
- bool Ok() const;
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const;
int GetWidth() const;
int GetHeight() const;
int GetDepth() const;
virtual int GetStyle() const;
wxBitmap *GetStipple() const;
- virtual bool Ok() const
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const
{ return (m_refData != NULL); }
// wxObjectRefData
virtual ~wxColour();
// accessors
- bool Ok() const { return m_cocoaNSColor; }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return m_cocoaNSColor; }
WX_NSColor GetNSColor() { return m_cocoaNSColor; }
unsigned char Red() const { return m_red; }
wxCursor(int cursor_type);
virtual ~wxCursor();
- virtual bool Ok() const { return m_refData ; }
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const { return m_refData ; }
inline bool operator == (const wxCursor& cursor) const { return m_refData == cursor.m_refData; }
inline bool operator != (const wxCursor& cursor) const { return m_refData != cursor.m_refData; }
// ctors, assignment operators...), but it's ok to have such function
void CopyFromBitmap(const wxBitmap& bmp);
- bool Ok() const;
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const;
int GetWidth() const;
int GetHeight() const;
inline bool operator != (const wxPen& pen) const
{ return m_refData != pen.m_refData; }
- virtual bool Ok() const { return (m_refData != NULL) ; }
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const { return (m_refData != NULL) ; }
void SetColour(const wxColour& col) ;
void SetColour(unsigned char r, unsigned char g, unsigned char b) ;
// accessors
// ---------
- virtual bool Ok() const = 0;
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const = 0;
virtual ChannelType Red() const = 0;
virtual ChannelType Green() const = 0;
// Resolution in Pixels per inch
virtual wxSize GetPPI() const = 0;
- virtual bool Ok() const { return m_ok; }
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const { return m_ok; }
// accessors and setters
// ---------------------
virtual bool CanGetTextExtent() const { return m_dc.CanGetTextExtent(); }
virtual int GetDepth() const { return m_dc.GetDepth(); }
virtual wxSize GetPPI() const { return m_dc.GetPPI(); }
- virtual bool Ok() const { return m_dc.Ok(); }
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const { return m_dc.Ok(); }
virtual void SetMapMode(int mode) { m_dc.SetMapMode(mode); }
virtual void SetUserScale(double x, double y)
{ m_dc.SetUserScale(GetX(x, y), GetY(x, y)); }
wxBitmap(const wxImage& image, int depth = -1);
#endif
- bool Ok() const;
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const;
bool operator==(const wxBitmap& bmp) const;
bool operator!=(const wxBitmap& bmp) const { return !(*this == bmp); }
wxBrush(const wxColour &colour, int style = wxSOLID);
wxBrush(const wxBitmap &stippleBitmap);
- bool Ok() const;
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const;
bool operator==(const wxBrush& brush) const;
bool operator!=(const wxBrush& brush) const { return !(*this == brush); }
long flags = wxBITMAP_TYPE_CUR_RESOURCE,
int hotSpotX = 0, int hotSpotY = 0);
- bool Ok() const;
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const;
bool operator==(const wxCursor& cursor) const;
bool operator!=(const wxCursor& cursor) const { return !(*this == cursor); }
wxDash* GetDash() const;
wxBitmap *GetStipple() const;
- bool Ok() const;
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const;
protected:
// ref counting code
static wxFont *New(const wxString& strNativeFontDesc);
// was the font successfully created?
- bool Ok() const { return m_refData != NULL; }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return m_refData != NULL; }
// comparison
bool operator == (const wxFont& font) const;
{ return !(*this == accel); }
#endif
- bool Ok() const;
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const;
void Add(const wxAcceleratorEntry& entry);
void Remove(const wxAcceleratorEntry& entry);
virtual ~wxColour();
// accessors
- bool Ok() const { return m_isInit; }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return m_isInit; }
unsigned char Red() const { return m_red; }
unsigned char Green() const { return m_green; }
// Recommended destructor :-)
virtual ~wxPostScriptDC();
- virtual bool Ok() const;
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const;
bool CanDrawBitmap() const { return true; }
virtual ~wxPalette();
bool operator == ( const wxPalette& palette ) const;
bool operator != ( const wxPalette& palette ) const;
- virtual bool Ok() const;
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const;
bool Create( int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue);
int GetPixel( unsigned char red, unsigned char green, unsigned char blue ) const;
virtual bool TransferTo( wxPrintData &data );
virtual bool TransferFrom( const wxPrintData &data );
- virtual bool Ok() const { return true; }
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const { return true; }
const wxString& GetPrinterCommand() const { return m_printerCommand; }
const wxString& GetPrinterOptions() const { return m_printerOptions; }
virtual ~wxBitmap();
bool operator == ( const wxBitmap& bmp ) const;
bool operator != ( const wxBitmap& bmp ) const { return !(*this == bmp); }
- bool Ok() const;
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const;
bool Create(int width, int height, int depth = -1);
wxBrush( const wxBitmap &stippleBitmap );
virtual ~wxBrush();
- bool Ok() const { return m_refData != NULL; }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return m_refData != NULL; }
bool operator == ( const wxBrush& brush ) const;
bool operator != (const wxBrush& brush) const { return !(*this == brush); }
virtual ~wxColour();
- bool Ok() const { return m_refData != NULL; }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return m_refData != NULL; }
bool operator == ( const wxColour& col ) const;
bool operator != ( const wxColour& col ) const { return !(*this == col); }
virtual ~wxCursor();
bool operator == ( const wxCursor& cursor ) const;
bool operator != ( const wxCursor& cursor ) const;
- bool Ok() const;
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const;
// implementation
virtual bool TransferTo( wxPrintData &data );
virtual bool TransferFrom( const wxPrintData &data );
- virtual bool Ok() const { return true; }
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const { return true; }
GnomePrintConfig* GetPrintConfig() { return m_config; }
void SetPrintJob( GnomePrintJob *job ) { m_job = job; }
wxGnomePrintDC( wxGnomePrinter *printer );
virtual ~wxGnomePrintDC();
- bool Ok() const;
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const;
bool DoFloodFill(wxCoord x1, wxCoord y1, const wxColour &col, int style=wxFLOOD_SURFACE );
bool DoGetPixel(wxCoord x1, wxCoord y1, wxColour *col) const;
wxPen( const wxColour &colour, int width = 1, int style = wxSOLID );
virtual ~wxPen();
- bool Ok() const { return m_refData != NULL; }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return m_refData != NULL; }
bool operator == ( const wxPen& pen ) const;
bool operator != (const wxPen& pen) const { return !(*this == pen); }
virtual ~wxBitmap();
bool operator == ( const wxBitmap& bmp ) const;
bool operator != ( const wxBitmap& bmp ) const;
- bool Ok() const;
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const;
bool Create(int width, int height, int depth = -1);
wxBrush( const wxBitmap &stippleBitmap );
virtual ~wxBrush();
- bool Ok() const { return m_refData != NULL; }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return m_refData != NULL; }
bool operator == ( const wxBrush& brush ) const;
bool operator != (const wxBrush& brush) const { return !(*this == brush); }
virtual bool FromString(const wxChar *str);
- bool Ok() const { return m_refData != NULL; }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return m_refData != NULL; }
bool operator == ( const wxColour& col ) const;
bool operator != ( const wxColour& col ) const { return !(*this == col); }
virtual ~wxCursor();
bool operator == ( const wxCursor& cursor ) const;
bool operator != ( const wxCursor& cursor ) const;
- bool Ok() const;
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const;
// implementation
wxPen( const wxColour &colour, int width = 1, int style = wxSOLID );
virtual ~wxPen();
- bool Ok() const { return m_refData != NULL; }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return m_refData != NULL; }
bool operator == ( const wxPen& pen ) const;
bool operator != (const wxPen& pen) const { return !(*this == pen); }
virtual bool SaveFile( wxOutputStream& stream, const wxString& mimetype ) const;
#endif
- bool Ok() const;
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const;
int GetWidth() const;
int GetHeight() const;
bool operator != (const wxAcceleratorTable& accel) const
{ return m_refData != accel.m_refData; }
- bool Ok() const;
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const;
int GetCommand( wxKeyEvent &event );
};
// copies the contents and mask of the given (colour) icon to the bitmap
virtual bool CopyFromIcon(const wxIcon& icon);
- bool Ok() const;
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const;
int GetWidth() const;
int GetHeight() const;
int GetDepth() const;
virtual int GetStyle() const ;
wxBitmap *GetStipple() const ;
- virtual bool Ok() const { return (m_refData != NULL) ; }
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const { return (m_refData != NULL) ; }
// Implementation
virtual ~wxColour();
// accessors
- bool Ok() const {return m_isInit; }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const {return m_isInit; }
unsigned char Red() const { return m_red; }
unsigned char Green() const { return m_green; }
virtual ~wxCursor();
bool CreateFromXpm(const char **bits) ;
- virtual bool Ok() const ;
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const ;
inline bool operator == (const wxCursor& cursor) const { return m_refData == cursor.m_refData; }
inline bool operator != (const wxCursor& cursor) const { return m_refData != cursor.m_refData; }
// ctors, assignment operators...), but it's ok to have such function
void CopyFromBitmap(const wxBitmap& bmp);
- bool Ok() const;
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const;
int GetWidth() const;
int GetHeight() const;
int GetDepth() const;
virtual bool SetClipboard(int width = 0, int height = 0);
virtual bool Play(wxDC *dc);
- bool Ok() const ;
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const ;
wxSize GetSize() const;
int GetWidth() const { return GetSize().x; }
int GetPixel(unsigned char red, unsigned char green, unsigned char blue) const;
bool GetRGB(int pixel, unsigned char *red, unsigned char *green, unsigned char *blue) const;
- virtual bool Ok() const { return (m_refData != NULL) ; }
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const { return (m_refData != NULL) ; }
inline bool operator == (const wxPalette& palette) const { return m_refData == palette.m_refData; }
inline bool operator != (const wxPalette& palette) const { return m_refData != palette.m_refData; }
inline bool operator == (const wxPen& pen) const { return m_refData == pen.m_refData; }
inline bool operator != (const wxPen& pen) const { return m_refData != pen.m_refData; }
- virtual bool Ok() const { return (m_refData != NULL) ; }
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const { return (m_refData != NULL) ; }
// Override in order to recreate the pen
void SetColour(const wxColour& col) ;
virtual bool InstantiateBitmap(wxBitmap *bitmap);
wxMask *CreateMask(void);
- inline bool Ok(void) { return imageOK; }
+ inline bool Ok() const { return IsOk(); }
+ inline bool IsOk(void) { return imageOK; }
};
class wxPNGReaderIter
public:
wxMacDrawingHelper( wxWindowMac * theWindow , bool clientArea = false );
~wxMacDrawingHelper();
- bool Ok() { return m_ok; }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() { return m_ok; }
void LocalToWindow( Rect *rect) { OffsetRect( rect , m_origin.h , m_origin.v ); }
void LocalToWindow( Point *pt ) { AddPt( m_origin , pt ); }
void LocalToWindow( RgnHandle rgn ) { OffsetRgn( rgn , m_origin.h , m_origin.v ); }
virtual void Dispose();
- bool Ok() const { return GetControlRef() != NULL; }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return GetControlRef() != NULL; }
void SetReferenceInNativeControl();
static wxMacControl* GetReferenceFromNativeControl(ControlRef control);
virtual ~wxBitmapRefData();
void Free();
- bool Ok() const { return m_ok; }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return m_ok; }
void SetOk( bool isOk) { m_ok = isOk; }
void SetWidth( int width ) { m_width = width; }
bool operator != (const wxAcceleratorTable& accel) const
{ return m_refData != accel.m_refData; }
- bool Ok() const;
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const;
int GetCommand( wxKeyEvent &event );
};
// copies the contents and mask of the given (colour) icon to the bitmap
virtual bool CopyFromIcon(const wxIcon& icon);
- bool Ok() const;
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const;
int GetWidth() const;
int GetHeight() const;
int GetDepth() const;
virtual int GetStyle() const ;
wxBitmap *GetStipple() const ;
- virtual bool Ok() const { return (m_refData != NULL) ; }
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const { return (m_refData != NULL) ; }
// Implementation
virtual ~wxColour();
// accessors
- bool Ok() const {return m_isInit; }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const {return m_isInit; }
unsigned char Red() const { return m_red; }
unsigned char Green() const { return m_green; }
virtual ~wxCursor();
bool CreateFromXpm(const char **bits) ;
- virtual bool Ok() const { return (m_refData != NULL && ( M_CURSORDATA->m_hCursor != NULL || M_CURSORDATA->m_themeCursor != -1 ) ) ; }
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const { return (m_refData != NULL && ( M_CURSORDATA->m_hCursor != NULL || M_CURSORDATA->m_themeCursor != -1 ) ) ; }
inline bool operator == (const wxCursor& cursor) const { return m_refData == cursor.m_refData; }
inline bool operator != (const wxCursor& cursor) const { return m_refData != cursor.m_refData; }
virtual bool SetClipboard(int width = 0, int height = 0);
virtual bool Play(wxDC *dc);
- inline bool Ok(void) const { return (M_METAFILEDATA && (M_METAFILEDATA->m_metafile != 0)); };
+ inline bool Ok() const { return IsOk(); }
+ inline bool IsOk(void) const { return (M_METAFILEDATA && (M_METAFILEDATA->m_metafile != 0)); };
wxSize GetSize() const;
int GetWidth() const { return GetSize().x; }
int GetPixel(unsigned char red, unsigned char green, unsigned char blue) const;
bool GetRGB(int pixel, unsigned char *red, unsigned char *green, unsigned char *blue) const;
- virtual bool Ok() const { return (m_refData != NULL) ; }
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const { return (m_refData != NULL) ; }
inline bool operator == (const wxPalette& palette) const { return m_refData == palette.m_refData; }
inline bool operator != (const wxPalette& palette) const { return m_refData != palette.m_refData; }
inline bool operator == (const wxPen& pen) const { return m_refData == pen.m_refData; }
inline bool operator != (const wxPen& pen) const { return m_refData != pen.m_refData; }
- virtual bool Ok() const { return (m_refData != NULL) ; }
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const { return (m_refData != NULL) ; }
// Override in order to recreate the pen
void SetColour(const wxColour& col) ;
virtual bool InstantiateBitmap(wxBitmap *bitmap);
wxMask *CreateMask(void);
- inline bool Ok(void) { return imageOK; }
+ inline bool Ok() const { return IsOk(); }
+ inline bool IsOk(void) { return imageOK; }
};
class wxPNGReaderIter
public:
wxMacDrawingHelper( wxWindowMac * theWindow , bool clientArea = false ) ;
~wxMacDrawingHelper() ;
- bool Ok() { return m_ok ; }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() { return m_ok ; }
void LocalToWindow( Rect *rect) { OffsetRect( rect , m_origin.h , m_origin.v ) ; }
void LocalToWindow( Point *pt ) { AddPt( m_origin , pt ) ; }
void LocalToWindow( RgnHandle rgn ) { OffsetRgn( rgn , m_origin.h , m_origin.v ) ; }
virtual ~wxBitmap() {}
bool operator == (const wxBitmap& bmp) const;
bool operator != (const wxBitmap& bmp) const;
- bool Ok() const;
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const;
bool Create(int width, int height, int depth = -1);
virtual ~wxBrush() {}
bool operator == (const wxBrush& brush) const;
bool operator != (const wxBrush& brush) const;
- bool Ok() const;
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const;
virtual int GetStyle() const;
wxColour &GetColour() const;
virtual ~wxCursor();
bool operator == (const wxCursor& cursor) const;
bool operator != (const wxCursor& cursor) const;
- bool Ok() const;
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const;
// implementation
MGLCursor *GetMGLCursor() const;
virtual ~wxPalette();
bool operator == (const wxPalette& palette) const;
bool operator != (const wxPalette& palette) const;
- virtual bool Ok() const;
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const;
bool Create(int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue);
int GetPixel(unsigned char red, unsigned char green, unsigned char blue) const;
wxDash* GetDash() const;
wxBitmap *GetStipple() const;
- bool Ok() const;
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const;
// implementation:
void* GetPixPattern() const;
bool operator == (const wxAcceleratorTable& accel) const { return m_refData == accel.m_refData; }
bool operator != (const wxAcceleratorTable& accel) const { return m_refData != accel.m_refData; }
- bool Ok() const;
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const;
// Implementation only
int GetCount() const;
// accessors
- bool Ok() const {return m_isInit; }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const {return m_isInit; }
unsigned char Red() const { return m_red; }
unsigned char Green() const { return m_green; }
unsigned char Blue() const { return m_blue; }
wxCursor(wxStockCursor id);
virtual ~wxCursor();
- virtual bool Ok() const;
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const;
bool operator == (const wxCursor& cursor) const
{ return m_refData == cursor.m_refData; }
int GetPixel(unsigned char red, unsigned char green, unsigned char blue) const;
bool GetRGB(int pixel, unsigned char *red, unsigned char *green, unsigned char *blue) const;
- virtual bool Ok() const { return (m_refData != NULL) ; }
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const { return (m_refData != NULL) ; }
bool operator == (const wxPalette& palette) const { return m_refData == palette.m_refData; }
bool operator != (const wxPalette& palette) const { return m_refData != palette.m_refData; }
bool operator!=(const wxAcceleratorTable& accel) const
{ return !(*this == accel); }
- bool Ok() const;
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const;
void SetHACCEL(WXHACCEL hAccel);
WXHACCEL GetHACCEL() const;
virtual int GetStyle() const;
wxBitmap *GetStipple() const;
- bool Ok() const { return m_refData != NULL; }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return m_refData != NULL; }
// return the HBRUSH for this brush
virtual WXHANDLE GetResourceHandle() const;
// accessors
// ---------
- bool Ok() const { return m_isInit; }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return m_isInit; }
unsigned char Red() const { return m_red; }
unsigned char Green() const { return m_green; }
bool Play(wxDC *dc, wxRect *rectBound = (wxRect *)NULL);
// accessors
- bool Ok() const { return m_hMF != 0; }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return m_hMF != 0; }
wxSize GetSize() const;
int GetWidth() const { return GetSize().x; }
void SetHandle(WXHANDLE handle)
{ AllocExclusive(); GetGDIImageData()->m_handle = handle; }
- bool Ok() const { return GetHandle() != 0; }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return GetHandle() != 0; }
int GetWidth() const { return IsNull() ? 0 : GetGDIImageData()->m_width; }
int GetHeight() const { return IsNull() ? 0 : GetGDIImageData()->m_height; }
virtual bool SetClipboard(int width = 0, int height = 0);
virtual bool Play(wxDC *dc);
- bool Ok() const { return (M_METAFILEDATA && (M_METAFILEDATA->m_metafile != 0)); };
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return (M_METAFILEDATA && (M_METAFILEDATA->m_metafile != 0)); };
// set/get the size of metafile for clipboard operations
wxSize GetSize() const { return wxSize(GetWidth(), GetHeight()); }
inline operator I *() const {return m_interface;}\
inline I* operator ->() {return m_interface;}\
inline I** GetRef() {return &m_interface;}\
- inline bool Ok() const {return m_interface != NULL;}\
+ inline bool Ok() const { return IsOk(); }
+ inline bool IsOk() const {return m_interface != NULL;}\
};
WX_DECLARE_AUTOOLE(wxAutoIDispatch, IDispatch)
virtual int GetColoursCount() const;
- virtual bool Ok(void) const { return (m_refData != NULL) ; }
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk(void) const { return (m_refData != NULL) ; }
inline bool operator == (const wxPalette& palette) const { return m_refData == palette.m_refData; }
inline bool operator != (const wxPalette& palette) const { return m_refData != palette.m_refData; }
bool operator!=(const wxPen& pen) const { return !(*this == pen); }
- virtual bool Ok() const { return (m_refData != NULL); }
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const { return (m_refData != NULL); }
// Override in order to recreate the pen
void SetColour(const wxColour& col);
virtual bool TransferTo( wxPrintData &data );
virtual bool TransferFrom( const wxPrintData &data );
- virtual bool Ok() const;
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const;
void* GetDevMode() const { return m_devMode; }
void SetDevMode(void* data) { m_devMode = data; }
inline bool operator!= (const wxAcceleratorTable& rAccel) const
{ return m_refData != rAccel.m_refData; };
- bool Ok() const;
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const;
void SetHACCEL(WXHACCEL hAccel);
WXHACCEL GetHACCEL(void) const;
inline wxBitmap* GetStipple(void) const { return (M_BRUSHDATA ? & M_BRUSHDATA->m_vStipple : 0); };
inline int GetPS(void) const { return (M_BRUSHDATA ? M_BRUSHDATA->m_hBrush : 0); };
- inline virtual bool Ok(void) const { return (m_refData != NULL) ; }
+ inline virtual bool Ok() const { return IsOk(); }
+ inline virtual bool IsOk(void) const { return (m_refData != NULL) ; }
//
// Implementation
virtual ~wxColour();
// Accessors
- bool Ok(void) const {return m_bIsInit; }
+ bool Ok() const { return IsOk(); }
+ bool IsOk(void) const {return m_bIsInit; }
unsigned char Red(void) const { return m_cRed; }
unsigned char Green(void) const { return m_cGreen; }
pData->m_hHandle = hHandle;
}
- bool Ok() const { return GetHandle() != 0; }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return GetHandle() != 0; }
int GetWidth() const { return IsNull() ? 0 : GetGDIImageData()->m_nWidth; }
int GetHeight() const { return IsNull() ? 0 : GetGDIImageData()->m_nHeight; }
virtual bool SetClipboard(int width = 0, int height = 0);
virtual bool Play(wxDC *dc);
- inline bool Ok(void) const { return (M_METAFILEDATA && (M_METAFILEDATA->m_metafile != 0)); };
+ inline bool Ok() const { return IsOk(); }
+ inline bool IsOk(void) const { return (M_METAFILEDATA && (M_METAFILEDATA->m_metafile != 0)); };
// Implementation
inline WXHANDLE GetHMETAFILE(void) { return M_METAFILEDATA->m_metafile; }
,unsigned char* pBlue
) const;
- virtual bool Ok(void) const { return (m_refData != NULL) ; }
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk(void) const { return (m_refData != NULL) ; }
inline bool operator == (const wxPalette& rPalette) const
{ return m_refData == rPalette.m_refData; }
inline bool operator != (const wxPen& rPen) const
{ return m_refData != rPen.m_refData; }
- virtual bool Ok(void) const { return (m_refData != NULL); }
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk(void) const { return (m_refData != NULL); }
//
// Override in order to recreate the pen
virtual bool InstantiateBitmap(wxBitmap *bitmap);
wxMask *CreateMask(void);
- inline bool Ok(void) { return imageOK; }
+ inline bool Ok() const { return IsOk(); }
+ inline bool IsOk(void) { return imageOK; }
};
class wxPNGReaderIter
public:
virtual ~wxPaletteBase() { }
- virtual bool Ok() const = 0;
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const = 0;
virtual int GetColoursCount() const { wxFAIL_MSG( _T("not implemented") ); return 0; }
};
{ return !(*this == accel); }
#endif
- bool Ok() const;
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const;
void SetHACCEL(WXHACCEL hAccel);
WXHACCEL GetHACCEL() const;
virtual int GetStyle() const;
wxBitmap *GetStipple() const;
- bool Ok() const { return m_refData != NULL; }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return m_refData != NULL; }
// return the HBRUSH for this brush
virtual WXHANDLE GetResourceHandle() const;
bool Play(wxDC *dc, wxRect *rectBound = (wxRect *)NULL);
// accessors
- bool Ok() const { return m_hMF != 0; }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return m_hMF != 0; }
wxSize GetSize() const;
int GetWidth() const { return GetSize().x; }
void SetHandle(WXHANDLE handle)
{ EnsureHasData(); GetGDIImageData()->m_handle = handle; }
- bool Ok() const { return GetHandle() != 0; }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return GetHandle() != 0; }
int GetWidth() const { return IsNull() ? 0 : GetGDIImageData()->m_width; }
int GetHeight() const { return IsNull() ? 0 : GetGDIImageData()->m_height; }
virtual bool SetClipboard(int width = 0, int height = 0);
virtual bool Play(wxDC *dc);
- bool Ok() const { return (M_METAFILEDATA && (M_METAFILEDATA->m_metafile != 0)); };
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return (M_METAFILEDATA && (M_METAFILEDATA->m_metafile != 0)); };
// set/get the size of metafile for clipboard operations
wxSize GetSize() const { return wxSize(GetWidth(), GetHeight()); }
int GetPixel(unsigned char red, unsigned char green, unsigned char blue) const;
bool GetRGB(int pixel, unsigned char *red, unsigned char *green, unsigned char *blue) const;
- virtual bool Ok(void) const { return (m_refData != NULL) ; }
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk(void) const { return (m_refData != NULL) ; }
inline bool operator == (const wxPalette& palette) const { return m_refData == palette.m_refData; }
inline bool operator != (const wxPalette& palette) const { return m_refData != palette.m_refData; }
bool operator!=(const wxPen& pen) const { return !(*this == pen); }
- virtual bool Ok() const { return (m_refData != NULL); }
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const { return (m_refData != NULL); }
// Override in order to recreate the pen
void SetColour(const wxColour& col);
virtual bool TransferTo( wxPrintData &data ) = 0;
virtual bool TransferFrom( const wxPrintData &data ) = 0;
- virtual bool Ok() const = 0;
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const = 0;
int m_ref;
virtual int GetMaxPage() const;
virtual int GetMinPage() const;
- virtual bool Ok() const;
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const;
virtual void SetOk(bool ok);
///////////////////////////////////////////////////////////////////////////
virtual int GetMaxPage() const;
virtual int GetMinPage() const;
- virtual bool Ok() const;
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const;
virtual void SetOk(bool ok);
private:
// accessors
// ---------
- bool Ok() const { return m_refData != NULL; }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return m_refData != NULL; }
// Is region empty?
virtual bool IsEmpty() const = 0;
void SetDataSize(size_t size) { m_dataSize = size; }
void SetImageType(int imageType) { m_imageType = imageType; }
- bool Ok() const { return GetData() != NULL; }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return GetData() != NULL; }
/// Implementation
bool Destroy();
// state
- inline bool Ok() const { return (m_socket != NULL); };
+ inline bool Ok() const { return IsOk(); }
+ inline bool IsOk() const { return (m_socket != NULL); };
inline bool Error() const { return m_error; };
inline bool IsConnected() const { return m_connected; };
inline bool IsData() { return WaitForRead(0, 0); };
wxCountingOutputStream();
wxFileOffset GetLength() const;
- bool Ok() const { return true; }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return true; }
protected:
virtual size_t OnSysWrite(const void *buffer, size_t size);
wxFileOffset GetLength() const;
- bool Ok() const { return m_file->IsOpened(); }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return m_file->IsOpened(); }
bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; }
protected:
bool Close() { return m_file_destroy ? m_file->Close() : true; }
wxFileOffset GetLength() const;
- bool Ok() const { return m_file->IsOpened(); }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return m_file->IsOpened(); }
bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; }
protected:
wxFileOffset GetLength() const;
- bool Ok() const { return m_file->IsOpened(); }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return m_file->IsOpened(); }
bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; }
protected:
bool Close() { return m_file_destroy ? m_file->Close() : true; }
wxFileOffset GetLength() const;
- bool Ok() const { return m_file->IsOpened(); }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return m_file->IsOpened(); }
bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; }
protected:
bool operator == ( const wxBitmap& bmp ) const;
bool operator != ( const wxBitmap& bmp ) const;
- bool Ok() const;
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const;
static void InitStandardHandlers();
wxBrush( const wxBitmap &stippleBitmap );
virtual ~wxBrush();
- bool Ok() const { return m_refData != NULL; }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return m_refData != NULL; }
bool operator == ( const wxBrush& brush ) const;
bool operator != (const wxBrush& brush) const { return !(*this == brush); }
virtual ~wxColour();
- bool Ok() const { return m_refData != NULL; }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return m_refData != NULL; }
bool operator == ( const wxColour& col ) const;
bool operator != ( const wxColour& col ) const { return !(*this == col); }
virtual ~wxCursor();
bool operator == ( const wxCursor& cursor ) const;
bool operator != ( const wxCursor& cursor ) const;
- bool Ok() const;
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const;
// implementation
int GetPixel(unsigned char red, unsigned char green, unsigned char blue) const;
bool GetRGB(int pixel, unsigned char *red, unsigned char *green, unsigned char *blue) const;
- virtual bool Ok() const { return (m_refData != NULL) ; }
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const { return (m_refData != NULL) ; }
bool operator == (const wxPalette& palette) const { return m_refData == palette.m_refData; }
bool operator != (const wxPalette& palette) const { return m_refData != palette.m_refData; }
wxPen( const wxBitmap &stipple, int width );
virtual ~wxPen();
- bool Ok() const { return m_refData != NULL; }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return m_refData != NULL; }
bool operator == ( const wxPen& pen ) const;
bool operator != (const wxPen& pen) const { return !(*this == pen); }
M_BITMAPDATA->m_bitmapMask = mask ;
}
-bool wxBitmap::Ok() const
+bool wxBitmap::IsOk() const
{
return m_refData && M_BITMAPDATA->m_ok;
}
M_ICONDATA->m_quality = 0;
}
-bool wxIcon::Ok() const
+bool wxIcon::IsOk() const
{
return m_refData && M_ICONDATA->m_ok;
}
}
// Is this data OK for showing the print dialog?
-bool wxPrintData::Ok() const
+bool wxPrintData::IsOk() const
{
m_nativeData->TransferFrom( *this );
}
wxUint32 Size = cStream.GetSize();
- // wxCountingOutputStream::Ok() always returns true for now and this
+ // wxCountingOutputStream::IsOk() always returns true for now and this
// "if" provokes VC++ warnings in optimized build
#if 0
if ( !cStream.Ok() )
return M_IMGDATA->m_data[pos+2];
}
-bool wxImage::Ok() const
+bool wxImage::IsOk() const
{
// image of 0 width or height can't be considered ok - at least because it
// causes crashes in ConvertToBitmap() if we don't catch it in time
{ return m_maxPage; }
int wxPrintPreviewBase::GetMinPage() const
{ return m_minPage; }
-bool wxPrintPreviewBase::Ok() const
+bool wxPrintPreviewBase::IsOk() const
{ return m_isOk; }
void wxPrintPreviewBase::SetOk(bool ok)
{ m_isOk = ok; }
return m_pimpl->GetMinPage();
}
-bool wxPrintPreview::Ok() const
+bool wxPrintPreview::IsOk() const
{
return m_pimpl->Ok();
}
wxFAIL_MSG( _T("not implemented") );
}
-bool wxBitmap::Ok() const
+bool wxBitmap::IsOk() const
{
return (m_refData != NULL && M_BITMAP->m_surface);
}
return m_refData == brush.m_refData;
}
-bool wxBrush::Ok() const
+bool wxBrush::IsOk() const
{
return ((m_refData) && M_BRUSHDATA->m_colour.Ok());
}
#warning "FIXME"
}
-bool wxCursor::Ok() const
+bool wxCursor::IsOk() const
{
return m_refData && M_CURSOR->m_bitmap.Ok();
}
return NULL;
}
-bool wxPen::Ok() const
+bool wxPen::IsOk() const
{
return ((m_refData) && M_PENDATA->m_colour.Ok());
}
{
}
-bool wxAcceleratorTable::Ok() const
+bool wxAcceleratorTable::IsOk() const
{
return m_refData != NULL;
}
}
}
-bool wxPostScriptDC::Ok() const
+bool wxPostScriptDC::IsOk() const
{
return m_ok;
}
return m_refData != palette.m_refData;
}
-bool wxPalette::Ok() const
+bool wxPalette::IsOk() const
{
return (m_refData != NULL);
}
return m_refData == bmp.m_refData;
}
-bool wxBitmap::Ok() const
+bool wxBitmap::IsOk() const
{
return (m_refData != NULL) &&
(
return m_refData != cursor.m_refData;
}
-bool wxCursor::Ok() const
+bool wxCursor::IsOk() const
{
return (m_refData != NULL);
}
{
}
-bool wxGnomePrintDC::Ok() const
+bool wxGnomePrintDC::IsOk() const
{
return true;
}
return m_refData != bmp.m_refData;
}
-bool wxBitmap::Ok() const
+bool wxBitmap::IsOk() const
{
return (m_refData != NULL) &&
(M_BMPDATA->m_bitmap || M_BMPDATA->m_pixmap);
return m_refData != cursor.m_refData;
}
-bool wxCursor::Ok() const
+bool wxCursor::IsOk() const
{
return (m_refData != NULL);
}
}
}
-bool wxAcceleratorTable::Ok() const
+bool wxAcceleratorTable::IsOk() const
{
return (m_refData != NULL);
}
return success;
}
-bool wxBitmap::Ok() const
+bool wxBitmap::IsOk() const
{
return (M_BITMAPDATA && M_BITMAPDATA->Ok());
}
return (M_CURSORDATA ? M_CURSORDATA->m_hCursor : 0);
}
-bool wxCursor::Ok() const
+bool wxCursor::IsOk() const
{
return (m_refData != NULL && ( M_CURSORDATA->m_hCursor != NULL || M_CURSORDATA->m_themeCursor != -1 ) ) ;
}
{
}
-bool wxIcon::Ok() const
+bool wxIcon::IsOk() const
{
return m_refData != NULL ;
}
{
}
-bool wxMetaFile::Ok() const
+bool wxMetaFile::IsOk() const
{
return (M_METAFILEDATA && (M_METAFILEDATA->m_metafile != NULL));
}
IMPLEMENT_DYNAMIC_CLASS(wxMacPrinter, wxPrinterBase)
IMPLEMENT_CLASS(wxMacPrintPreview, wxPrintPreviewBase)
-bool wxMacCarbonPrintData::Ok() const
+bool wxMacCarbonPrintData::IsOk() const
{
return (m_macPageFormat != kPMNoPageFormat) && (m_macPrintSettings != kPMNoPrintSettings) && (m_macPrintSession != kPMNoReference);
}
}
}
-bool wxAcceleratorTable::Ok() const
+bool wxAcceleratorTable::IsOk() const
{
return (m_refData != NULL);
}
return false;
}
-bool wxBitmap::Ok() const
+bool wxBitmap::IsOk() const
{
return (M_BITMAPDATA && M_BITMAPDATA->m_ok);
}
return (m_refData != bmp.m_refData);
}
-bool wxBitmap::Ok() const
+bool wxBitmap::IsOk() const
{
return (m_refData != NULL && M_BMPDATA->m_bitmap != NULL);
}
return m_refData != brush.m_refData;
}
-bool wxBrush::Ok() const
+bool wxBrush::IsOk() const
{
return ((m_refData) && M_BRUSHDATA->m_colour.Ok());
}
return (m_refData != cursor.m_refData);
}
-bool wxCursor::Ok() const
+bool wxCursor::IsOk() const
{
return (m_refData != NULL);
}
return m_refData != palette.m_refData;
}
-bool wxPalette::Ok(void) const
+bool wxPalette::IsOk(void) const
{
return (m_refData != NULL);
}
}
-bool wxPen::Ok() const
+bool wxPen::IsOk() const
{
return (m_refData != NULL);
}
}
-bool wxAcceleratorTable::Ok() const
+bool wxAcceleratorTable::IsOk() const
{
return (m_refData != (wxAcceleratorRefData*) NULL);
}
{
}
-bool wxCursor::Ok() const
+bool wxCursor::IsOk() const
{
return m_refData != NULL;
}
: !accelData;
}
-bool wxAcceleratorTable::Ok() const
+bool wxAcceleratorTable::IsOk() const
{
return (M_ACCELDATA && (M_ACCELDATA->m_ok));
}
GlobalFree(hDevNames);
}
-bool wxWindowsPrintNativeData::Ok() const
+bool wxWindowsPrintNativeData::IsOk() const
{
return (m_devMode != NULL) ;
}
M_ACCELDATA->m_ok = (M_ACCELDATA->m_hAccel != 0);
} // end of wxAcceleratorTable::wxAcceleratorTable
-bool wxAcceleratorTable::Ok() const
+bool wxAcceleratorTable::IsOk() const
{
return(M_ACCELDATA && (M_ACCELDATA->m_ok));
-} // end of wxAcceleratorTable::Ok
+} // end of wxAcceleratorTable::IsOk
void wxAcceleratorTable::SetHACCEL(WXHACCEL hAccel)
{
{
}
-bool wxAcceleratorTable::Ok() const
+bool wxAcceleratorTable::IsOk() const
{
return false;
}
return m_refData != bmp.m_refData;
}
-bool wxBitmap::Ok() const
+bool wxBitmap::IsOk() const
{
return (m_refData != NULL);
}
return m_refData != cursor.m_refData;
}
-bool wxCursor::Ok() const
+bool wxCursor::IsOk() const
{
return (m_refData != NULL);
}