Kaydet (Commit) 54acc086 authored tarafından Caolán McNamara's avatar Caolán McNamara

default internal-children to visible, default containers to not-shown

Change-Id: I25cd15e586abeeeabfde7539986309b187690320
üst ae326faf
......@@ -53,7 +53,6 @@ public:
, m_bHomogeneous(bHomogeneous)
, m_nSpacing(nSpacing)
{
Show();
}
void set_spacing(int nSpacing)
{
......@@ -339,7 +338,6 @@ public:
, m_bRowHomogeneous(false), m_bColumnHomogeneous(false)
, m_nRowSpacing(0), m_nColumnSpacing(0)
{
Show();
}
void set_row_homogeneous(bool bHomogeneous)
{
......
......@@ -945,6 +945,7 @@ bool VclBuilder::sortIntoBestTabTraversalOrder::operator()(const Window *pA, con
void VclBuilder::handleChild(Window *pParent, xmlreader::XmlReader &reader)
{
Window *pCurrentChild = NULL;
bool bIsInternalChild = false;
xmlreader::Span name;
int nsId;
......@@ -957,6 +958,10 @@ void VclBuilder::handleChild(Window *pParent, xmlreader::XmlReader &reader)
name = reader.getAttributeValue(false);
sType = OString(name.begin, name.length);
}
else if (name.equals(RTL_CONSTASCII_STRINGPARAM("internal-child")))
{
bIsInternalChild = true;
}
}
if (sType == "tab")
......@@ -981,6 +986,11 @@ void VclBuilder::handleChild(Window *pParent, xmlreader::XmlReader &reader)
if (bObjectInserted)
{
//Internal-children default in glade to not having their visible bits set
//even though they are visible (generally anyway)
if (bIsInternalChild)
pCurrentChild->Show();
//Select the first page if its a notebook
if (pCurrentChild->GetType() == WINDOW_TABCONTROL)
{
......
......@@ -15,7 +15,7 @@ VclContainer::VclContainer(Window *pParent)
: Window(WINDOW_CONTAINER)
, m_bLayoutDirty(true)
{
ImplInit(pParent, 0, NULL);
ImplInit(pParent, WB_HIDE, NULL);
}
Size VclContainer::GetOptimalSize(WindowSizeType eType) const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment