replace TRUE/FALSE with true/false

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62356 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2009-10-09 17:39:19 +00:00
parent 9bd36c6c0f
commit 8e6efd1fd2
18 changed files with 37 additions and 37 deletions

View File

@@ -7,8 +7,8 @@
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#ifndef __GTKCHECKBOXH__ #ifndef _WX_GTKCHECKBOX_H_
#define __GTKCHECKBOXH__ #define _WX_GTKCHECKBOX_H_
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// wxCheckBox // wxCheckBox
@@ -39,7 +39,7 @@ public:
bool GetValue() const; bool GetValue() const;
virtual void SetLabel( const wxString& label ); virtual void SetLabel( const wxString& label );
virtual bool Enable( bool enable = TRUE ); virtual bool Enable( bool enable = true );
static wxVisualAttributes static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
@@ -64,4 +64,4 @@ private:
DECLARE_DYNAMIC_CLASS(wxCheckBox) DECLARE_DYNAMIC_CLASS(wxCheckBox)
}; };
#endif // __GTKCHECKBOXH__ #endif // _WX_GTKCHECKBOX_H_

View File

@@ -8,8 +8,8 @@
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#ifndef __GTKDIALOGH__ #ifndef _WX_GTKDIALOG_H_
#define __GTKDIALOGH__ #define _WX_GTKDIALOG_H_
class WXDLLIMPEXP_FWD_CORE wxGUIEventLoop; class WXDLLIMPEXP_FWD_CORE wxGUIEventLoop;
@@ -35,7 +35,7 @@ public:
const wxString &name = wxDialogNameStr ); const wxString &name = wxDialogNameStr );
virtual ~wxDialog(); virtual ~wxDialog();
virtual bool Show( bool show = TRUE ); virtual bool Show( bool show = true );
virtual int ShowModal(); virtual int ShowModal();
virtual void EndModal( int retCode ); virtual void EndModal( int retCode );
virtual bool IsModal() const; virtual bool IsModal() const;
@@ -53,4 +53,4 @@ private:
DECLARE_DYNAMIC_CLASS(wxDialog) DECLARE_DYNAMIC_CLASS(wxDialog)
}; };
#endif // __GTKDIALOGH__ #endif // _WX_GTKDIALOG_H_

View File

@@ -65,7 +65,7 @@ public:
// Set the label // Set the label
virtual void SetLabel(const wxString& label) { wxControl::SetLabel(label); } virtual void SetLabel(const wxString& label) { wxControl::SetLabel(label); }
virtual void SetLabel(const wxBitmap& label); virtual void SetLabel(const wxBitmap& label);
bool Enable(bool enable = TRUE); bool Enable(bool enable = true);
static wxVisualAttributes static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
@@ -123,7 +123,7 @@ public:
// Set the label // Set the label
void SetLabel(const wxString& label); void SetLabel(const wxString& label);
bool Enable(bool enable = TRUE); bool Enable(bool enable = true);
static wxVisualAttributes static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);

View File

@@ -75,9 +75,9 @@ public:
bool CanDecreaseTextSize(); bool CanDecreaseTextSize();
void DecreaseTextSize(); void DecreaseTextSize();
void Print(bool showPrompt=FALSE); void Print(bool showPrompt = false);
void MakeEditable(bool enable=TRUE); void MakeEditable(bool enable = true);
bool IsEditable(); bool IsEditable();
wxString RunScript(const wxString& javascript); wxString RunScript(const wxString& javascript);

View File

@@ -55,7 +55,7 @@ public:
// Set the label // Set the label
virtual void SetLabel(const wxString& label) { wxControl::SetLabel(label); } virtual void SetLabel(const wxString& label) { wxControl::SetLabel(label); }
virtual void SetLabel(const wxBitmap& label); virtual void SetLabel(const wxBitmap& label);
bool Enable(bool enable = TRUE); bool Enable(bool enable = true);
protected: protected:
void Init(); void Init();

View File

@@ -91,7 +91,7 @@ public:
// set an arbitrary command, ask confirmation if it already exists and // set an arbitrary command, ask confirmation if it already exists and
// overwriteprompt is TRUE // overwriteprompt is TRUE
bool SetCommand(const wxString& cmd, const wxString& verb, bool overwriteprompt = TRUE); bool SetCommand(const wxString& cmd, const wxString& verb, bool overwriteprompt = true);
bool SetDefaultIcon(const wxString& strIcon = wxEmptyString, int index = 0); bool SetDefaultIcon(const wxString& strIcon = wxEmptyString, int index = 0);
private: private:

View File

@@ -52,7 +52,7 @@ class WXDLLIMPEXP_CORE wxStaticBitmap: public wxStaticBitmapBase
void SetIcon(const wxIcon& icon) { SetBitmap( (const wxBitmap &)icon ) ; } void SetIcon(const wxIcon& icon) { SetBitmap( (const wxBitmap &)icon ) ; }
// overriden base class virtuals // overriden base class virtuals
virtual bool AcceptsFocus() const { return FALSE; } virtual bool AcceptsFocus() const { return false; }
protected: protected:
virtual wxSize DoGetBestSize() const; virtual wxSize DoGetBestSize() const;

View File

@@ -93,7 +93,7 @@ protected:
wxMimeTypeCommands *entry, wxMimeTypeCommands *entry,
const wxArrayString& strExtensions, const wxArrayString& strExtensions,
const wxString& strDesc, const wxString& strDesc,
bool replaceExisting = TRUE); bool replaceExisting = true);
virtual bool DoAssociation(const wxString& strType, virtual bool DoAssociation(const wxString& strType,
const wxString& strIcon, const wxString& strIcon,
wxMimeTypeCommands *entry, wxMimeTypeCommands *entry,
@@ -120,12 +120,12 @@ public:
// accessors // accessors
bool GetExtensions(wxArrayString& extensions); bool GetExtensions(wxArrayString& extensions);
bool GetMimeType(wxString *mimeType) const bool GetMimeType(wxString *mimeType) const
{ *mimeType = m_manager->m_aTypes[m_index[0]]; return TRUE; } { *mimeType = m_manager->m_aTypes[m_index[0]]; return true; }
bool GetMimeTypes(wxArrayString& mimeTypes) const; bool GetMimeTypes(wxArrayString& mimeTypes) const;
bool GetIcon(wxIconLocation *iconLoc) const; bool GetIcon(wxIconLocation *iconLoc) const;
bool GetDescription(wxString *desc) const bool GetDescription(wxString *desc) const
{ *desc = m_manager->m_aDescriptions[m_index[0]]; return TRUE; } { *desc = m_manager->m_aDescriptions[m_index[0]]; return true; }
bool GetOpenCommand(wxString *openCmd, bool GetOpenCommand(wxString *openCmd,
const wxFileType::MessageParameters& params) const const wxFileType::MessageParameters& params) const
@@ -155,7 +155,7 @@ public:
// set an arbitrary command, ask confirmation if it already exists and // set an arbitrary command, ask confirmation if it already exists and
// overwriteprompt is TRUE // overwriteprompt is TRUE
bool SetCommand(const wxString& cmd, const wxString& verb, bool overwriteprompt = TRUE); bool SetCommand(const wxString& cmd, const wxString& verb, bool overwriteprompt = true);
bool SetDefaultIcon(const wxString& strIcon = wxEmptyString, int index = 0); bool SetDefaultIcon(const wxString& strIcon = wxEmptyString, int index = 0);
private: private:

View File

@@ -59,7 +59,7 @@ public:
virtual wxPoint GetClientAreaOrigin() const; virtual wxPoint GetClientAreaOrigin() const;
// override some more virtuals // override some more virtuals
virtual bool Enable(bool enable = TRUE) ; virtual bool Enable(bool enable = true) ;
// event handlers // event handlers
void OnActivate(wxActivateEvent& event); void OnActivate(wxActivateEvent& event);

View File

@@ -137,7 +137,7 @@ public:
virtual void EnableTop( size_t pos, bool flag ); virtual void EnableTop( size_t pos, bool flag );
virtual void SetMenuLabel( size_t pos, const wxString& label ); virtual void SetMenuLabel( size_t pos, const wxString& label );
virtual wxString GetMenuLabel( size_t pos ) const; virtual wxString GetMenuLabel( size_t pos ) const;
virtual bool Enable( bool enable = TRUE ); virtual bool Enable( bool enable = true );
// for virtual function hiding // for virtual function hiding
virtual void Enable( int itemid, bool enable ) virtual void Enable( int itemid, bool enable )
{ {
@@ -163,7 +163,7 @@ public:
// if the menubar is modified, the display is not updated automatically, // if the menubar is modified, the display is not updated automatically,
// call this function to update it (m_menuBarFrame should be !NULL) // call this function to update it (m_menuBarFrame should be !NULL)
void Refresh(bool eraseBackground = TRUE, const wxRect *rect = (const wxRect *) NULL); void Refresh(bool eraseBackground = true, const wxRect *rect = NULL);
static void SetAutoWindowMenu( bool enable ) { s_macAutoWindowMenu = enable ; } static void SetAutoWindowMenu( bool enable ) { s_macAutoWindowMenu = enable ; }
static bool GetAutoWindowMenu() { return s_macAutoWindowMenu ; } static bool GetAutoWindowMenu() { return s_macAutoWindowMenu ; }

View File

@@ -133,7 +133,7 @@ private:
bool WXDLLIMPEXP_CORE wxMakeMetafilePlaceable(const wxString& filename, float scale = 1.0); bool WXDLLIMPEXP_CORE wxMakeMetafilePlaceable(const wxString& filename, float scale = 1.0);
// Optional origin and extent // Optional origin and extent
bool WXDLLIMPEXP_CORE wxMakeMetaFilePlaceable(const wxString& filename, int x1, int y1, int x2, int y2, float scale = 1.0, bool useOriginAndExtent = TRUE); bool WXDLLIMPEXP_CORE wxMakeMetaFilePlaceable(const wxString& filename, int x1, int y1, int x2, int y2, float scale = 1.0, bool useOriginAndExtent = true);
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// wxMetafileDataObject is a specialization of wxDataObject for metafile data // wxMetafileDataObject is a specialization of wxDataObject for metafile data

View File

@@ -28,7 +28,7 @@ class WXDLLIMPEXP_CORE wxMacPrinter: public wxPrinterBase
virtual bool Print(wxWindow *parent, virtual bool Print(wxWindow *parent,
wxPrintout *printout, wxPrintout *printout,
bool prompt = TRUE); bool prompt = true);
virtual wxDC* PrintDialog(wxWindow *parent); virtual wxDC* PrintDialog(wxWindow *parent);
virtual bool Setup(wxWindow *parent); virtual bool Setup(wxWindow *parent);

View File

@@ -44,12 +44,12 @@ class WXDLLIMPEXP_ADV wxSound : public wxSoundBase
{ {
public: public:
wxSound(); wxSound();
wxSound(const wxString& fileName, bool isResource = FALSE); wxSound(const wxString& fileName, bool isResource = false);
wxSound(int size, const wxByte* data); wxSound(int size, const wxByte* data);
virtual ~wxSound(); virtual ~wxSound();
// Create from resource or file // Create from resource or file
bool Create(const wxString& fileName, bool isResource = FALSE); bool Create(const wxString& fileName, bool isResource = false);
// Create from data // Create from data
bool Create(int size, const wxByte* data); bool Create(int size, const wxByte* data);

View File

@@ -78,8 +78,8 @@ public:
// implementation from now on // implementation from now on
// forward these functions to all subcontrols // forward these functions to all subcontrols
virtual bool Enable(bool enable = TRUE); virtual bool Enable(bool enable = true);
virtual bool Show(bool show = TRUE); virtual bool Show(bool show = true);
// get the subcontrols // get the subcontrols
wxTextCtrl *GetText() const { return m_text; } wxTextCtrl *GetText() const { return m_text; }

View File

@@ -38,7 +38,7 @@ public:
void SetLabel( const wxString &str ) ; void SetLabel( const wxString &str ) ;
bool SetFont( const wxFont &font ); bool SetFont( const wxFont &font );
virtual bool AcceptsFocus() const { return FALSE; } virtual bool AcceptsFocus() const { return false; }
protected : protected :

View File

@@ -142,13 +142,13 @@ public: \
#define IMPLEMENT_PROTOCOL(class, name, serv, host) \ #define IMPLEMENT_PROTOCOL(class, name, serv, host) \
wxProtoInfo class::g_proto_##class(name, serv, host, CLASSINFO(class)); \ wxProtoInfo class::g_proto_##class(name, serv, host, CLASSINFO(class)); \
bool wxProtocolUse##class = TRUE; bool wxProtocolUse##class = true;
#define USE_PROTOCOL(class) \ #define USE_PROTOCOL(class) \
extern bool wxProtocolUse##class ; \ extern bool wxProtocolUse##class ; \
static struct wxProtocolUserFor##class \ static struct wxProtocolUserFor##class \
{ \ { \
wxProtocolUserFor##class() { wxProtocolUse##class = TRUE; } \ wxProtocolUserFor##class() { wxProtocolUse##class = true; } \
} wxProtocolDoUse##class; } wxProtocolDoUse##class;
class WXDLLIMPEXP_NET wxProtoInfo : public wxObject class WXDLLIMPEXP_NET wxProtoInfo : public wxObject

View File

@@ -93,7 +93,7 @@ protected:
wxMimeTypeCommands *entry, wxMimeTypeCommands *entry,
const wxArrayString& strExtensions, const wxArrayString& strExtensions,
const wxString& strDesc, const wxString& strDesc,
bool replaceExisting = TRUE); bool replaceExisting = true);
virtual bool DoAssociation(const wxString& strType, virtual bool DoAssociation(const wxString& strType,
const wxString& strIcon, const wxString& strIcon,
wxMimeTypeCommands *entry, wxMimeTypeCommands *entry,
@@ -120,12 +120,12 @@ public:
// accessors // accessors
bool GetExtensions(wxArrayString& extensions); bool GetExtensions(wxArrayString& extensions);
bool GetMimeType(wxString *mimeType) const bool GetMimeType(wxString *mimeType) const
{ *mimeType = m_manager->m_aTypes[m_index[0]]; return TRUE; } { *mimeType = m_manager->m_aTypes[m_index[0]]; return true; }
bool GetMimeTypes(wxArrayString& mimeTypes) const; bool GetMimeTypes(wxArrayString& mimeTypes) const;
bool GetIcon(wxIconLocation *iconLoc) const; bool GetIcon(wxIconLocation *iconLoc) const;
bool GetDescription(wxString *desc) const bool GetDescription(wxString *desc) const
{ *desc = m_manager->m_aDescriptions[m_index[0]]; return TRUE; } { *desc = m_manager->m_aDescriptions[m_index[0]]; return true; }
bool GetOpenCommand(wxString *openCmd, bool GetOpenCommand(wxString *openCmd,
const wxFileType::MessageParameters& params) const const wxFileType::MessageParameters& params) const
@@ -155,7 +155,7 @@ public:
// set an arbitrary command, ask confirmation if it already exists and // set an arbitrary command, ask confirmation if it already exists and
// overwriteprompt is TRUE // overwriteprompt is TRUE
bool SetCommand(const wxString& cmd, const wxString& verb, bool overwriteprompt = TRUE); bool SetCommand(const wxString& cmd, const wxString& verb, bool overwriteprompt = true);
bool SetDefaultIcon(const wxString& strIcon = wxEmptyString, int index = 0); bool SetDefaultIcon(const wxString& strIcon = wxEmptyString, int index = 0);
private: private:

View File

@@ -46,10 +46,10 @@ public:
{ {
wxLogSysError(_("Pipe creation failed")); wxLogSysError(_("Pipe creation failed"));
return FALSE; return false;
} }
return TRUE; return true;
} }
// return TRUE if we were created successfully // return TRUE if we were created successfully