Source cleaning: whitespaces, tabs, -1/wxID_ANY/wxNOT_FOUND/wxDefaultCoord, TRUE/true, FALSE/false.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29319 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -78,7 +78,7 @@
|
||||
#endif // wxUSE_CARET
|
||||
|
||||
#if wxUSE_SYSTEM_OPTIONS
|
||||
#include "wx/sysopt.h"
|
||||
#include "wx/sysopt.h"
|
||||
#endif
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -156,7 +156,7 @@ wxWindowBase::wxWindowBase()
|
||||
// no style bits
|
||||
m_exStyle =
|
||||
m_windowStyle = 0;
|
||||
|
||||
|
||||
m_backgroundStyle = wxBG_STYLE_SYSTEM;
|
||||
|
||||
#if wxUSE_CONSTRAINTS
|
||||
@@ -490,7 +490,7 @@ void wxWindowBase::Centre(int direction)
|
||||
}
|
||||
|
||||
// move the window to this position (keeping the old size but using
|
||||
// SetSize() and not Move() to allow xNew and/or yNew to be -1)
|
||||
// SetSize() and not Move() to allow xNew and/or yNew to be wxDefaultCoord)
|
||||
SetSize(xNew, yNew, width, height, wxSIZE_ALLOW_MINUS_ONE);
|
||||
}
|
||||
|
||||
@@ -518,7 +518,7 @@ void wxWindowBase::FitInside()
|
||||
static bool wxHasRealChildren(const wxWindowBase* win)
|
||||
{
|
||||
int realChildCount = 0;
|
||||
|
||||
|
||||
for ( wxWindowList::compatibility_iterator node = win->GetChildren().GetFirst();
|
||||
node;
|
||||
node = node->GetNext() )
|
||||
@@ -660,7 +660,7 @@ void wxWindowBase::SetBestFittingSize(const wxSize& size)
|
||||
|
||||
// Merge the size with the best size if needed
|
||||
wxSize best = GetBestFittingSize();
|
||||
|
||||
|
||||
// If the current size doesn't match then change it
|
||||
if (GetSize() != best)
|
||||
SetSize(best);
|
||||
@@ -1027,7 +1027,7 @@ wxColour wxWindowBase::GetForegroundColour() const
|
||||
|
||||
bool wxWindowBase::SetBackgroundColour( const wxColour &colour )
|
||||
{
|
||||
if ( colour == m_backgroundColour )
|
||||
if ( colour == m_backgroundColour )
|
||||
return false;
|
||||
|
||||
m_hasBgCol = colour.Ok();
|
||||
@@ -2089,10 +2089,10 @@ wxPoint wxWindowBase::ConvertPixelsToDialog(const wxPoint& pt)
|
||||
{
|
||||
int charWidth = GetCharWidth();
|
||||
int charHeight = GetCharHeight();
|
||||
wxPoint pt2(-1, -1);
|
||||
if (pt.x != -1)
|
||||
wxPoint pt2 = wxDefaultPosition;
|
||||
if (pt.x != wxDefaultCoord)
|
||||
pt2.x = (int) ((pt.x * 4) / charWidth);
|
||||
if (pt.y != -1)
|
||||
if (pt.y != wxDefaultCoord)
|
||||
pt2.y = (int) ((pt.y * 8) / charHeight);
|
||||
|
||||
return pt2;
|
||||
@@ -2102,10 +2102,10 @@ wxPoint wxWindowBase::ConvertDialogToPixels(const wxPoint& pt)
|
||||
{
|
||||
int charWidth = GetCharWidth();
|
||||
int charHeight = GetCharHeight();
|
||||
wxPoint pt2(-1, -1);
|
||||
if (pt.x != -1)
|
||||
wxPoint pt2 = wxDefaultPosition;
|
||||
if (pt.x != wxDefaultCoord)
|
||||
pt2.x = (int) ((pt.x * charWidth) / 4);
|
||||
if (pt.y != -1)
|
||||
if (pt.y != wxDefaultCoord)
|
||||
pt2.y = (int) ((pt.y * charHeight) / 8);
|
||||
|
||||
return pt2;
|
||||
@@ -2886,7 +2886,7 @@ wxAccStatus wxWindowAccessible::GetFocus(int* WXUNUSED(childId), wxAccessible**
|
||||
// Gets a variant representing the selected children
|
||||
// of this object.
|
||||
// Acceptable values:
|
||||
// - a null variant (IsNull() returns TRUE)
|
||||
// - a null variant (IsNull() returns true)
|
||||
// - a list variant (GetType() == wxT("list")
|
||||
// - an integer representing the selected child element,
|
||||
// or 0 if this object is selected (GetType() == wxT("long")
|
||||
|
Reference in New Issue
Block a user