projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
correction to last commit: Korean and Romanian translations will only be in 2.9.1...
[wxWidgets.git]
/
src
/
common
/
layout.cpp
diff --git
a/src/common/layout.cpp
b/src/common/layout.cpp
index f94d850617cac6cf324a22115389676de01f6f9b..d479f3476e8bc85e1e79a5e57511080417f840eb 100644
(file)
--- a/
src/common/layout.cpp
+++ b/
src/common/layout.cpp
@@
-1,12
+1,12
@@
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
-// Name: layout.cpp
+// Name:
src/common/
layout.cpp
// Purpose: Constraint layout system classes
// Author: Julian Smart
// Modified by:
// Created: 04/01/98
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
// Purpose: Constraint layout system classes
// Author: Julian Smart
// Modified by:
// Created: 04/01/98
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
-// Licence:
wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// =============================================================================
/////////////////////////////////////////////////////////////////////////////
// =============================================================================
@@
-17,36
+17,28
@@
// headers
// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma implementation "layout.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#ifdef __BORLANDC__
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
-
-#ifndef WX_PRECOMP
- #include "wx/defs.h"
+ #pragma hdrstop
#endif
#if wxUSE_CONSTRAINTS
#endif
#if wxUSE_CONSTRAINTS
+#include "wx/layout.h"
+
#ifndef WX_PRECOMP
#ifndef WX_PRECOMP
- #include "wx/window.h"
- #include "wx/utils.h"
- #include "wx/dialog.h"
- #include "wx/msgdlg.h"
- #include "wx/intl.h"
+
#include "wx/window.h"
+
#include "wx/utils.h"
+
#include "wx/dialog.h"
+
#include "wx/msgdlg.h"
+
#include "wx/intl.h"
#endif
#endif
-#include "wx/layout.h"
-
- IMPLEMENT_DYNAMIC_CLASS(wxIndividualLayoutConstraint, wxObject)
- IMPLEMENT_DYNAMIC_CLASS(wxLayoutConstraints, wxObject)
+IMPLEMENT_DYNAMIC_CLASS(wxIndividualLayoutConstraint, wxObject)
+IMPLEMENT_DYNAMIC_CLASS(wxLayoutConstraints, wxObject)
inline void wxGetAsIs(wxWindowBase* win, int* w, int* h)
inline void wxGetAsIs(wxWindowBase* win, int* w, int* h)
@@
-55,7
+47,7
@@
inline void wxGetAsIs(wxWindowBase* win, int* w, int* h)
// The old way. Works for me.
win->GetSize(w, h);
#endif
// The old way. Works for me.
win->GetSize(w, h);
#endif
-
+
#if 0
// Vadim's change. Breaks wxPython's LayoutAnchors
win->GetBestSize(w, h);
#if 0
// Vadim's change. Breaks wxPython's LayoutAnchors
win->GetBestSize(w, h);
@@
-83,7
+75,7
@@
wxIndividualLayoutConstraint::wxIndividualLayoutConstraint()
percent = 0;
otherEdge = wxTop;
done = false;
percent = 0;
otherEdge = wxTop;
done = false;
- otherWin =
(wxWindowBase *)
NULL;
+ otherWin = NULL;
}
void wxIndividualLayoutConstraint::Set(wxRelationship rel, wxWindowBase *otherW, wxEdge otherE, int val, int marg)
}
void wxIndividualLayoutConstraint::Set(wxRelationship rel, wxWindowBase *otherW, wxEdge otherE, int val, int marg)
@@
-166,7
+158,7
@@
bool wxIndividualLayoutConstraint::ResetIfWin(wxWindowBase *otherW)
value = 0;
percent = 0;
otherEdge = wxTop;
value = 0;
percent = 0;
otherEdge = wxTop;
- otherWin =
(wxWindowBase *)
NULL;
+ otherWin = NULL;
return true;
}
return true;
}