#include "wx/defs.h"
-#if USE_CONSTRAINTS
+#if wxUSE_CONSTRAINTS
#ifndef WX_PRECOMP
#include "wx/window.h"
#include "wx/utils.h"
#include "wx/dialog.h"
#include "wx/msgdlg.h"
+#include <wx/intl.h>
#endif
#include "wx/layout.h"
}
-wxIndividualLayoutConstraint::wxIndividualLayoutConstraint(void)
+wxIndividualLayoutConstraint::wxIndividualLayoutConstraint()
{
myEdge = wxTop; relationship = wxUnconstrained; margin = 0; value = 0; percent = 0; otherEdge = wxTop;
- done = FALSE; otherWin = NULL;
+ done = FALSE; otherWin = (wxWindow *) NULL;
}
-wxIndividualLayoutConstraint::~wxIndividualLayoutConstraint(void)
+wxIndividualLayoutConstraint::~wxIndividualLayoutConstraint()
{
}
if (otherW == otherWin)
{
myEdge = wxTop; relationship = wxAsIs; margin = 0; value = 0; percent = 0; otherEdge = wxTop;
- otherWin = NULL;
+ otherWin = (wxWindow *) NULL;
return TRUE;
}
else
// Get the value of this edge or dimension, or if this
// is not determinable, -1.
-int wxIndividualLayoutConstraint::GetEdge(wxEdge which, wxWindow *thisWin, wxWindow *other)
+int wxIndividualLayoutConstraint::GetEdge(wxEdge which,
+ wxWindow *thisWin,
+ wxWindow *other) const
{
// If the edge or dimension belongs to the parent, then we
// know the dimension is obtainable immediately.
return -1;
}
-wxLayoutConstraints::wxLayoutConstraints(void)
+wxLayoutConstraints::wxLayoutConstraints()
{
left.SetEdge(wxLeft);
top.SetEdge(wxTop);
height.SetEdge(wxHeight);
}
-wxLayoutConstraints::~wxLayoutConstraints(void)
+wxLayoutConstraints::~wxLayoutConstraints()
{
}
*nChanges = noChanges;
- return (left.GetDone() && top.GetDone() && right.GetDone() && bottom.GetDone() &&
- centreX.GetDone() && centreY.GetDone());
+ return AreSatisfied();
}
/*
if (constr)
{
int tempNoChanges = 0;
- (void) constr->SatisfyConstraints(child, &tempNoChanges);
+ (void)constr->SatisfyConstraints(child, &tempNoChanges);
noChanges += tempNoChanges;
}
node = node->Next();
// failed, so we can print a specific diagnostic message.
if (noFailures > 0)
{
- wxDebugMsg("wxWindow::Layout() failed.\n");
+ wxDebugMsg(_("wxWindow::Layout() failed.\n"));
}
*/
// Now set the sizes and positions of the children, and
return TRUE;
}
-wxSizer::wxSizer(void)
+wxSizer::wxSizer()
{
sizerBehaviour = wxSizerNone;
borderX = 2;
return TRUE;
}
-wxSizer::~wxSizer(void)
+wxSizer::~wxSizer()
{
// Remove all children without deleting them,
// or ~wxbWindow will delete proper windows _twice_
if (!win->IsKindOf(CLASSINFO(wxSizer)))
{
delete node;
- win->SetSizerParent(NULL);
+ win->SetSizerParent((wxWindow *) NULL);
}
else
{
if (m_sizerParent) // && !m_sizerParent->IsKindOf(CLASSINFO(wxSizer)))
{
- m_sizerParent->SetSizer(NULL);
- m_sizerParent = NULL;
+ m_sizerParent->SetSizer((wxSizer *) NULL);
+ m_sizerParent = (wxWindow *) NULL;
}
}
{
if (!m_sizerParent)
{
- wxMessageBox("wxExpandSizer has no parent!", "Sizer error", wxOK);
+ wxMessageBox(_("wxExpandSizer has no parent!"), _("Sizer error"), wxOK);
return TRUE;
}
* wxRowColSizer
*/
-wxRowColSizer::wxRowColSizer(void)
+wxRowColSizer::wxRowColSizer()
{
rowOrCol = TRUE;
rowOrColSize = 20;
return TRUE;
}
-wxRowColSizer::~wxRowColSizer(void)
+wxRowColSizer::~wxRowColSizer()
{
}
* wxSpacingSizer
*/
-wxSpacingSizer::wxSpacingSizer(void)
+wxSpacingSizer::wxSpacingSizer()
{
}
return TRUE;
}
-wxSpacingSizer::~wxSpacingSizer(void)
+wxSpacingSizer::~wxSpacingSizer()
{
}