void Toolbar::addSeparator(SeparatorRefPtr TheSeparator)
{
    if(getOrientation() == BoxLayout::VERTICAL_ORIENTATION)
    {
        TheSeparator->setOrientation(Separator::HORIZONTAL_ORIENTATION);
    }
    else
    {
        TheSeparator->setOrientation(Separator::VERTICAL_ORIENTATION);
    }

    pushToChildren(TheSeparator);
}
void PopupMenu::addSeparator(void)
{
    SeparatorRefPtr TheSeparator;
    if(getDefaultSeparator() != NULL)
    {
        FieldContainerUnrecPtr TheSeperator(getDefaultSeparator()->shallowCopy());
        TheSeparator = dynamic_pointer_cast<Separator>(TheSeperator);
    }
    else
    {
        TheSeparator = Separator::create();
    }
        TheSeparator->setOrientation(Separator::HORIZONTAL_ORIENTATION);

        pushToChildren(TheSeparator);
}
void PopupMenu::addSeparator(SeparatorRefPtr TheSeparator)
{
        TheSeparator->setOrientation(Separator::HORIZONTAL_ORIENTATION);

        pushToChildren(TheSeparator);
}