|
|
|
@ -42,16 +42,16 @@ leftSidebar::leftSidebar(TQWidget* parent) :
|
|
|
|
|
TQWidget(parent),
|
|
|
|
|
m_pagesSelector(0),
|
|
|
|
|
m_page(0),
|
|
|
|
|
m_tqlayout(0)
|
|
|
|
|
m_layout(0)
|
|
|
|
|
{
|
|
|
|
|
m_tqlayout = new TQVBoxLayout(this);
|
|
|
|
|
m_layout = new TQVBoxLayout(this);
|
|
|
|
|
|
|
|
|
|
m_pagesSelector = new TQComboBox(this);
|
|
|
|
|
m_pagesSelector->insertItem(i18n("Bookmarks"));
|
|
|
|
|
m_pagesSelector->insertItem(i18n("Information"));
|
|
|
|
|
|
|
|
|
|
// Assure that the combo box has the same height as the URL navigator for
|
|
|
|
|
// a clean tqlayout.
|
|
|
|
|
// a clean layout.
|
|
|
|
|
// TODO: the following 2 lines have been copied from the URLNavigator
|
|
|
|
|
// constructor (-> provide a shared height setting?)
|
|
|
|
|
//TQFontMetrics fontMetrics(font());
|
|
|
|
@ -61,7 +61,7 @@ leftSidebar::leftSidebar(TQWidget* parent) :
|
|
|
|
|
leftSidebarSettings* settings = DolphinSettings::instance().leftsidebar();
|
|
|
|
|
const int selectedIndex = indexForName(settings->selectedPage());
|
|
|
|
|
m_pagesSelector->setCurrentItem(selectedIndex);
|
|
|
|
|
m_tqlayout->addWidget(m_pagesSelector);
|
|
|
|
|
m_layout->addWidget(m_pagesSelector);
|
|
|
|
|
|
|
|
|
|
createPage(selectedIndex);
|
|
|
|
|
|
|
|
|
@ -95,7 +95,7 @@ void leftSidebar::createPage(int index)
|
|
|
|
|
default: break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
m_tqlayout->addWidget(m_page);
|
|
|
|
|
m_layout->addWidget(m_page);
|
|
|
|
|
m_page->show();
|
|
|
|
|
|
|
|
|
|
leftSidebarSettings* settings = DolphinSettings::instance().leftsidebar();
|
|
|
|
@ -118,16 +118,16 @@ rightSidebar::rightSidebar(TQWidget* parent) :
|
|
|
|
|
TQWidget(parent),
|
|
|
|
|
m_pagesSelector(0),
|
|
|
|
|
m_page(0),
|
|
|
|
|
m_tqlayout(0)
|
|
|
|
|
m_layout(0)
|
|
|
|
|
{
|
|
|
|
|
m_tqlayout = new TQVBoxLayout(this);
|
|
|
|
|
m_layout = new TQVBoxLayout(this);
|
|
|
|
|
|
|
|
|
|
m_pagesSelector = new TQComboBox(this);
|
|
|
|
|
m_pagesSelector->insertItem(i18n("Bookmarks"));
|
|
|
|
|
m_pagesSelector->insertItem(i18n("Information"));
|
|
|
|
|
|
|
|
|
|
// Assure that the combo box has the same height as the URL navigator for
|
|
|
|
|
// a clean tqlayout.
|
|
|
|
|
// a clean layout.
|
|
|
|
|
// TODO: the following 2 lines have been copied from the URLNavigator
|
|
|
|
|
// constructor (-> provide a shared height setting?)
|
|
|
|
|
TQFontMetrics fontMetrics(font());
|
|
|
|
@ -136,7 +136,7 @@ rightSidebar::rightSidebar(TQWidget* parent) :
|
|
|
|
|
rightSidebarSettings* settings = DolphinSettings::instance().rightsidebar();
|
|
|
|
|
const int selectedIndex = indexForName(settings->selectedPage());
|
|
|
|
|
m_pagesSelector->setCurrentItem(selectedIndex);
|
|
|
|
|
m_tqlayout->addWidget(m_pagesSelector);
|
|
|
|
|
m_layout->addWidget(m_pagesSelector);
|
|
|
|
|
|
|
|
|
|
createPage(selectedIndex);
|
|
|
|
|
|
|
|
|
@ -170,7 +170,7 @@ void rightSidebar::createPage(int index)
|
|
|
|
|
default: break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
m_tqlayout->addWidget(m_page);
|
|
|
|
|
m_layout->addWidget(m_page);
|
|
|
|
|
m_page->show();
|
|
|
|
|
|
|
|
|
|
rightSidebarSettings* settings = DolphinSettings::instance().rightsidebar();
|
|
|
|
|