[Libreoffice-commits] core.git: Branch 'feature/aboutconfig' - cui/source
Efe Gürkan YALAMAN
efeyalaman at gmail.com
Wed Jul 3 12:55:19 PDT 2013
cui/source/options/optaboutconfig.cxx | 14 +++++++++++++-
cui/source/options/optaboutconfig.hxx | 3 +--
2 files changed, 14 insertions(+), 3 deletions(-)
New commits:
commit 4597f78aba99176b8c4ef89c724c057a7f1b16b9
Author: Efe Gürkan YALAMAN <efeyalaman at gmail.com>
Date: Wed Jul 3 22:50:03 2013 +0300
Multi column listboxes initial headerbar added
Change-Id: Ie5f4019e2565ae24a53e820f933c226cb9517660
diff --git a/cui/source/options/optaboutconfig.cxx b/cui/source/options/optaboutconfig.cxx
index 22aff88..6a46085 100644
--- a/cui/source/options/optaboutconfig.cxx
+++ b/cui/source/options/optaboutconfig.cxx
@@ -15,7 +15,8 @@ using namespace svx;
CuiAboutConfigTabPage::CuiAboutConfigTabPage( Window* pParent, const SfxItemSet& rItemSet )
:SfxTabPage( pParent, "AboutConfig", "cui/ui/aboutconfigdialog.ui", rItemSet)
{
-// get(m_pEditBtn, "");
+ get(m_pDefaultBtn,"default");
+ get(m_pEditBtn, "edit");
m_pPrefCtrl = get<SvxSimpleTableContainer>("preferences");
@@ -25,6 +26,17 @@ CuiAboutConfigTabPage::CuiAboutConfigTabPage( Window* pParent, const SfxItemSet&
WinBits nBits = WB_SCROLL | WB_SORT;
pPrefBox = new svx::OptHeaderTabListBox( *m_pPrefCtrl, nBits );
+ //FIXME use define's for ItemID's, InsertItem(itemID, text, nsize, winbits)
+ HeaderBar &rBar = pPrefBox->GetTheHeaderBar();
+ rBar.InsertItem( 1, get<FixedText>("preference")->GetText(), 0, HIB_LEFT | HIB_VCENTER );
+ rBar.InsertItem( 2, get<FixedText>("status")->GetText(), 0, HIB_LEFT | HIB_VCENTER );
+ rBar.InsertItem( 3, get<FixedText>("type")->GetText(), 0, HIB_LEFT | HIB_VCENTER );
+ rBar.InsertItem( 4, get<FixedText>("value")->GetText(), 0, HIB_LEFT | HIB_VCENTER );
+ //FIXME this numbers are just for testing purposes implement this better and more dynamic way.
+ long aTabs[] = {12,12,12,12};
+
+ pPrefBox->SetTabs(aTabs, MAP_PIXEL);
+
}
CuiAboutConfigTabPage::~CuiAboutConfigTabPage()
diff --git a/cui/source/options/optaboutconfig.hxx b/cui/source/options/optaboutconfig.hxx
index e0d8815..6848a8f 100644
--- a/cui/source/options/optaboutconfig.hxx
+++ b/cui/source/options/optaboutconfig.hxx
@@ -24,8 +24,7 @@ class CuiAboutConfigTabPage : public SfxTabPage
{
private:
SvxSimpleTableContainer* m_pPrefCtrl;
- //In case of tab page we can think a revert button
- //PushButton* m_pDefaultBtn
+ PushButton* m_pDefaultBtn;
PushButton* m_pEditBtn;
::svx::OptHeaderTabListBox* pPrefBox;
More information about the Libreoffice-commits
mailing list