Replaced TRUE and FALSE with true and false
(or True and False when calling Motif APIs). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -57,7 +57,7 @@ public:
|
||||
|
||||
virtual void Exit();
|
||||
|
||||
virtual bool Yield(bool onlyIfNeeded = FALSE);
|
||||
virtual bool Yield(bool onlyIfNeeded = false);
|
||||
virtual void WakeUpIdle(); // implemented in motif/evtloop.cpp
|
||||
|
||||
virtual bool OnInitGui();
|
||||
|
@@ -61,7 +61,7 @@ public:
|
||||
|
||||
// items may be checked
|
||||
bool IsChecked(size_t uiIndex) const;
|
||||
void Check(size_t uiIndex, bool bCheck = TRUE);
|
||||
void Check(size_t uiIndex, bool bCheck = true);
|
||||
|
||||
// override base class functions
|
||||
virtual int DoAppend(const wxString& item);
|
||||
|
@@ -100,7 +100,7 @@ public:
|
||||
void SetFocus();
|
||||
|
||||
// Implementation
|
||||
virtual void ChangeFont(bool keepOriginalSize = TRUE);
|
||||
virtual void ChangeFont(bool keepOriginalSize = true);
|
||||
virtual void ChangeBackgroundColour();
|
||||
virtual void ChangeForegroundColour();
|
||||
WXWidget GetTopWidget() const { return m_formWidget; }
|
||||
|
@@ -93,8 +93,8 @@ protected:
|
||||
// note that this function will call colour.SetPixel,
|
||||
// and will do one of curCol = colour, curCol = wxWHITE, curCol = wxBLACK
|
||||
// roundToWhite has an effect for monochrome display only
|
||||
// if roundToWhite == TRUE then the colour will be set to white unless
|
||||
// it is RGB 0x000000;if roundToWhite == FALSE the colour wull be set to
|
||||
// if roundToWhite == true then the colour will be set to white unless
|
||||
// it is RGB 0x000000;if roundToWhite == true the colour wull be set to
|
||||
// black unless it id RGB 0xffffff
|
||||
int CalculatePixel(wxColour& colour, wxColour& curCol,
|
||||
bool roundToWhite) const;
|
||||
@@ -129,7 +129,7 @@ protected:
|
||||
|
||||
virtual bool DoBlit(wxCoord xdest, wxCoord ydest, wxCoord width, wxCoord height,
|
||||
wxDC *source, wxCoord xsrc, wxCoord ysrc,
|
||||
int rop = wxCOPY, bool useMask = FALSE, wxCoord xsrcMask = -1, wxCoord ysrcMask = -1);
|
||||
int rop = wxCOPY, bool useMask = false, wxCoord xsrcMask = -1, wxCoord ysrcMask = -1);
|
||||
|
||||
virtual void DoSetClippingRegionAsRegion(const wxRegion& region);
|
||||
virtual void DoSetClippingRegion(wxCoord x, wxCoord y,
|
||||
|
@@ -24,7 +24,7 @@ public:
|
||||
DECLARE_CLASS(wxPrinterDC)
|
||||
|
||||
// Create a printer DC
|
||||
wxPrinterDC(const wxString& driver, const wxString& device, const wxString& output, bool interactive = TRUE, int orientation = wxPORTRAIT);
|
||||
wxPrinterDC(const wxString& driver, const wxString& device, const wxString& output, bool interactive = true, int orientation = wxPORTRAIT);
|
||||
|
||||
~wxPrinterDC();
|
||||
};
|
||||
|
@@ -38,7 +38,7 @@ public:
|
||||
}
|
||||
|
||||
bool Create(wxWindow *parent, wxWindowID id,
|
||||
const wxString& title, // bool modal = FALSE, // TODO make this a window style?
|
||||
const wxString& title,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxDEFAULT_DIALOG_STYLE,
|
||||
@@ -48,7 +48,7 @@ public:
|
||||
|
||||
virtual bool Destroy();
|
||||
|
||||
virtual bool Show(bool show = TRUE);
|
||||
virtual bool Show(bool show = true);
|
||||
|
||||
void SetTitle(const wxString& title);
|
||||
|
||||
@@ -61,7 +61,7 @@ public:
|
||||
virtual void EndModal(int retCode);
|
||||
|
||||
// Implementation
|
||||
virtual void ChangeFont(bool keepOriginalSize = TRUE);
|
||||
virtual void ChangeFont(bool keepOriginalSize = true);
|
||||
virtual void ChangeBackgroundColour();
|
||||
virtual void ChangeForegroundColour();
|
||||
inline WXWidget GetTopWidget() const { return m_mainWidget; }
|
||||
|
@@ -153,7 +153,7 @@ public:
|
||||
void SetData( wxDataObject &data );
|
||||
wxDragResult DoDragDrop(int flags = wxDrag_CopyOnly);
|
||||
|
||||
virtual bool GiveFeedback( wxDragResult WXUNUSED(effect), bool WXUNUSED(bScrolling) ) { return TRUE; };
|
||||
virtual bool GiveFeedback( wxDragResult WXUNUSED(effect), bool WXUNUSED(bScrolling) ) { return true; };
|
||||
|
||||
// implementation
|
||||
#if 0
|
||||
|
@@ -30,7 +30,7 @@ public:
|
||||
int family,
|
||||
int style,
|
||||
int weight,
|
||||
bool underlined = FALSE,
|
||||
bool underlined = false,
|
||||
const wxString& face = wxEmptyString,
|
||||
wxFontEncoding encoding = wxFONTENCODING_DEFAULT)
|
||||
{
|
||||
@@ -45,7 +45,7 @@ public:
|
||||
int family,
|
||||
int style,
|
||||
int weight,
|
||||
bool underlined = FALSE,
|
||||
bool underlined = false,
|
||||
const wxString& face = wxEmptyString,
|
||||
wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
|
||||
|
||||
@@ -113,7 +113,7 @@ protected:
|
||||
void Init();
|
||||
|
||||
// VZ: IMHO, we don't need it at all...
|
||||
bool RealizeResource() { return TRUE; }
|
||||
bool RealizeResource() { return true; }
|
||||
void Unshare();
|
||||
|
||||
private:
|
||||
|
@@ -31,7 +31,7 @@ class WXDLLEXPORT wxGDIObject: public wxObject
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxGDIObject)
|
||||
public:
|
||||
inline wxGDIObject() { m_visible = FALSE; };
|
||||
inline wxGDIObject() { m_visible = false; };
|
||||
inline ~wxGDIObject() {};
|
||||
|
||||
inline bool IsNull() const { return (m_refData == 0); }
|
||||
|
@@ -84,7 +84,7 @@ public:
|
||||
virtual wxString GetString(int n) const;
|
||||
|
||||
// implementation of wxListBoxbase
|
||||
virtual void SetSelection(int n, bool select = TRUE);
|
||||
virtual void SetSelection(int n, bool select = true);
|
||||
virtual void DoInsertItems(const wxArrayString& items, int pos);
|
||||
virtual void DoSetItems(const wxArrayString& items, void **clientData);
|
||||
virtual void DoSetFirstItem(int n);
|
||||
|
@@ -161,15 +161,15 @@ public:
|
||||
// MDI operations
|
||||
virtual void Maximize();
|
||||
virtual void Maximize(bool WXUNUSED(maximize)) { };
|
||||
inline void Minimize() { Iconize(TRUE); };
|
||||
inline void Minimize() { Iconize(true); };
|
||||
virtual void Iconize(bool iconize);
|
||||
virtual void Restore();
|
||||
virtual void Activate();
|
||||
virtual bool IsIconized() const ;
|
||||
|
||||
virtual bool IsTopLevel() const { return FALSE; }
|
||||
virtual bool IsTopLevel() const { return false; }
|
||||
|
||||
// Is the frame maximized? Returns TRUE for
|
||||
// Is the frame maximized? Returns true for
|
||||
// wxMDIChildFrame due to the tabbed implementation.
|
||||
virtual bool IsMaximized(void) const ;
|
||||
|
||||
|
@@ -67,7 +67,7 @@ public:
|
||||
|
||||
WXWidget CreateMenu(wxMenuBar *menuBar, WXWidget parent, wxMenu *topMenu,
|
||||
const wxString& title = wxEmptyString,
|
||||
bool isPulldown = FALSE);
|
||||
bool isPulldown = false);
|
||||
|
||||
// For popups, need to destroy, then recreate menu for a different (or
|
||||
// possibly same) window, since the parent may change.
|
||||
@@ -81,7 +81,7 @@ public:
|
||||
void SetBackgroundColour(const wxColour& colour);
|
||||
void SetForegroundColour(const wxColour& colour);
|
||||
void SetFont(const wxFont& colour);
|
||||
void ChangeFont(bool keepOriginalSize = FALSE);
|
||||
void ChangeFont(bool keepOriginalSize = false);
|
||||
|
||||
WXWidget GetHandle() const { return m_menuWidget; }
|
||||
|
||||
@@ -158,7 +158,7 @@ public:
|
||||
virtual bool SetBackgroundColour(const wxColour& colour);
|
||||
virtual bool SetForegroundColour(const wxColour& colour);
|
||||
virtual bool SetFont(const wxFont& colour);
|
||||
void ChangeFont(bool keepOriginalSize = FALSE);
|
||||
void ChangeFont(bool keepOriginalSize = false);
|
||||
|
||||
public:
|
||||
// common part of all ctors
|
||||
|
@@ -38,8 +38,8 @@ public:
|
||||
|
||||
// accessors (some more are inherited from wxOwnerDrawn or are below)
|
||||
virtual void SetText(const wxString& label);
|
||||
virtual void Enable(bool enable = TRUE);
|
||||
virtual void Check(bool check = TRUE);
|
||||
virtual void Enable(bool enable = true);
|
||||
virtual void Check(bool check = true);
|
||||
// included SetBitmap and GetBitmap as copied from the GTK include file
|
||||
// I'm not sure if this works but it silences the linker in the
|
||||
// menu sample.
|
||||
|
@@ -30,7 +30,7 @@ public:
|
||||
wxPrinter(wxPrintData *data = NULL);
|
||||
~wxPrinter();
|
||||
|
||||
virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = TRUE);
|
||||
virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = true);
|
||||
virtual bool PrintDialog(wxWindow *parent);
|
||||
virtual bool Setup(wxWindow *parent);
|
||||
};
|
||||
|
@@ -94,7 +94,7 @@ extern void wxDoChangeForegroundColour(WXWidget widget,
|
||||
wxColour& foregroundColour);
|
||||
extern void wxDoChangeBackgroundColour(WXWidget widget,
|
||||
wxColour& backgroundColour,
|
||||
bool changeArmColour = FALSE);
|
||||
bool changeArmColour = false);
|
||||
extern void wxDoChangeFont(WXWidget widget, wxFont& font);
|
||||
|
||||
#define wxNO_COLORS 0x00
|
||||
|
@@ -84,10 +84,10 @@ public:
|
||||
|
||||
void SetString(int item, const wxString& label) ;
|
||||
wxString GetString(int item) const;
|
||||
virtual bool Enable(bool enable = TRUE);
|
||||
virtual bool Enable(bool enable = true);
|
||||
void Enable(int item, bool enable);
|
||||
void Show(int item, bool show) ;
|
||||
virtual bool Show(bool show = TRUE) ;
|
||||
virtual bool Show(bool show = true) ;
|
||||
|
||||
virtual wxString GetStringSelection() const;
|
||||
virtual bool SetStringSelection(const wxString& s);
|
||||
@@ -101,7 +101,7 @@ public:
|
||||
void SetNumberOfRowsOrCols(int n) { m_noRowsOrCols = n; }
|
||||
|
||||
// Implementation
|
||||
virtual void ChangeFont(bool keepOriginalSize = TRUE);
|
||||
virtual void ChangeFont(bool keepOriginalSize = true);
|
||||
virtual void ChangeBackgroundColour();
|
||||
virtual void ChangeForegroundColour();
|
||||
const wxWidgetArray& GetRadioButtons() const { return m_radioButtons; }
|
||||
|
@@ -48,12 +48,12 @@ public:
|
||||
|
||||
virtual void SetThumbPosition(int viewStart);
|
||||
virtual void SetScrollbar(int position, int thumbSize, int range, int pageSize,
|
||||
bool refresh = TRUE);
|
||||
bool refresh = true);
|
||||
|
||||
void Command(wxCommandEvent& event);
|
||||
|
||||
// Implementation
|
||||
virtual void ChangeFont(bool keepOriginalSize = TRUE);
|
||||
virtual void ChangeFont(bool keepOriginalSize = true);
|
||||
virtual void ChangeBackgroundColour();
|
||||
|
||||
protected:
|
||||
|
@@ -58,7 +58,7 @@ public:
|
||||
// Implementation
|
||||
virtual void Command(wxCommandEvent& event)
|
||||
{ (void)ProcessCommand(event); };
|
||||
virtual void ChangeFont(bool keepOriginalSize = TRUE);
|
||||
virtual void ChangeFont(bool keepOriginalSize = true);
|
||||
virtual void ChangeBackgroundColour();
|
||||
virtual void ChangeForegroundColour();
|
||||
public:
|
||||
|
@@ -48,7 +48,7 @@ public:
|
||||
|
||||
virtual bool ProcessCommand(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
wxBitmap GetBitmap() const { return m_messageBitmap; }
|
||||
|
@@ -44,7 +44,7 @@ public:
|
||||
|
||||
virtual bool ProcessCommand(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
virtual WXWidget GetLabelWidget() const { return m_labelWidget; }
|
||||
|
@@ -46,7 +46,7 @@ public:
|
||||
// operations
|
||||
virtual bool ProcessCommand(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
virtual void SetLabel(const wxString& label);
|
||||
|
@@ -26,7 +26,7 @@ public:
|
||||
{ Init(); }
|
||||
~wxTimer();
|
||||
|
||||
virtual bool Start(int milliseconds = -1, bool oneShot = FALSE);
|
||||
virtual bool Start(int milliseconds = -1, bool oneShot = false);
|
||||
virtual void Stop();
|
||||
|
||||
virtual bool IsRunning() const { return m_id != 0; }
|
||||
|
@@ -44,9 +44,9 @@ public:
|
||||
virtual bool ShowFullScreen( bool show, long style = wxFULLSCREEN_ALL );
|
||||
virtual bool IsFullScreen() const;
|
||||
|
||||
virtual void Maximize(bool maximize = TRUE);
|
||||
virtual void Maximize(bool maximize = true);
|
||||
virtual void Restore();
|
||||
virtual void Iconize(bool iconize = TRUE);
|
||||
virtual void Iconize(bool iconize = true);
|
||||
virtual bool IsMaximized() const;
|
||||
virtual bool IsIconized() const;
|
||||
|
||||
@@ -79,7 +79,7 @@ private:
|
||||
long style,
|
||||
const wxString& name )
|
||||
{
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
virtual void DoDestroy() { }
|
||||
|
@@ -57,14 +57,14 @@ public:
|
||||
virtual void Raise();
|
||||
virtual void Lower();
|
||||
|
||||
virtual bool Show( bool show = TRUE );
|
||||
virtual bool Enable( bool enable = TRUE );
|
||||
virtual bool Show( bool show = true );
|
||||
virtual bool Enable( bool enable = true );
|
||||
|
||||
virtual void SetFocus();
|
||||
|
||||
virtual void WarpPointer(int x, int y);
|
||||
|
||||
virtual void Refresh( bool eraseBackground = TRUE,
|
||||
virtual void Refresh( bool eraseBackground = true,
|
||||
const wxRect *rect = (const wxRect *) NULL );
|
||||
|
||||
virtual bool SetBackgroundColour( const wxColour &colour );
|
||||
@@ -83,8 +83,8 @@ public:
|
||||
const;
|
||||
|
||||
virtual void SetScrollbar( int orient, int pos, int thumbVisible,
|
||||
int range, bool refresh = TRUE );
|
||||
virtual void SetScrollPos( int orient, int pos, bool refresh = TRUE );
|
||||
int range, bool refresh = true );
|
||||
virtual void SetScrollPos( int orient, int pos, bool refresh = true );
|
||||
virtual int GetScrollPos( int orient ) const;
|
||||
virtual int GetScrollThumb( int orient ) const;
|
||||
virtual int GetScrollRange( int orient ) const;
|
||||
@@ -196,7 +196,7 @@ public:
|
||||
|
||||
// Change properties
|
||||
// Change to the current font (often overridden)
|
||||
virtual void ChangeFont(bool keepOriginalSize = TRUE);
|
||||
virtual void ChangeFont(bool keepOriginalSize = true);
|
||||
|
||||
// Change background and foreground colour using current background colour
|
||||
// setting (Motif generates foreground based on background)
|
||||
@@ -214,9 +214,9 @@ protected:
|
||||
// wxWidgets wxKeyEvent form. Find a widget for the window. Now find a
|
||||
// wxWindow for the widget. If there isn't one, go up the widget hierarchy
|
||||
// trying to find one. Once one is found, call ProcessAccelerator for the
|
||||
// window. If it returns TRUE (processed the event), skip the X event,
|
||||
// window. If it returns true (processed the event), skip the X event,
|
||||
// otherwise carry on up the wxWidgets window hierarchy calling
|
||||
// ProcessAccelerator. If all return FALSE, process the X event as normal.
|
||||
// ProcessAccelerator. If all return false, process the X event as normal.
|
||||
// Eventually we can implement OnCharHook the same way, but concentrate on
|
||||
// accelerators for now. ProcessAccelerator must look at the current
|
||||
// accelerator table, and try to find what menu id or window (beneath it)
|
||||
@@ -230,7 +230,7 @@ protected:
|
||||
void UnmanageAndDestroy(WXWidget widget);
|
||||
|
||||
// map or unmap an X widget (passing NULL is ok),
|
||||
// returns TRUE if widget was mapped/unmapped
|
||||
// returns true if widget was mapped/unmapped
|
||||
bool MapOrUnmap(WXWidget widget, bool map);
|
||||
|
||||
// scrolling stuff
|
||||
|
Reference in New Issue
Block a user