Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
2f18055a
Kaydet (Commit)
2f18055a
authored
May 13, 2013
tarafından
Andre Fischer
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
122298: Added quick help texts to title bar buttons of sidebar panels and deck.
üst
7fe1777a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
6 deletions
+26
-6
DeckTitleBar.cxx
sfx2/source/sidebar/DeckTitleBar.cxx
+9
-6
PanelTitleBar.cxx
sfx2/source/sidebar/PanelTitleBar.cxx
+5
-0
Sidebar.hrc
sfx2/source/sidebar/Sidebar.hrc
+3
-0
Sidebar.src
sfx2/source/sidebar/Sidebar.src
+9
-0
No files found.
sfx2/source/sidebar/DeckTitleBar.cxx
Dosyayı görüntüle @
2f18055a
...
@@ -23,6 +23,8 @@
...
@@ -23,6 +23,8 @@
#include "DeckTitleBar.hxx"
#include "DeckTitleBar.hxx"
#include "sfx2/sidebar/Theme.hxx"
#include "sfx2/sidebar/Theme.hxx"
#include "sfx2/sfxresid.hxx"
#include "Sidebar.hrc"
#include <vcl/image.hxx>
#include <vcl/image.hxx>
...
@@ -44,16 +46,12 @@ DeckTitleBar::DeckTitleBar (
...
@@ -44,16 +46,12 @@ DeckTitleBar::DeckTitleBar (
:
TitleBar
(
rsTitle
,
pParentWindow
,
GetBackgroundPaint
()),
:
TitleBar
(
rsTitle
,
pParentWindow
,
GetBackgroundPaint
()),
mnCloserItemIndex
(
1
),
mnCloserItemIndex
(
1
),
maCloserAction
(
rCloserAction
),
maCloserAction
(
rCloserAction
),
mbIsCloserVisible
(
rCloserAction
)
mbIsCloserVisible
(
false
)
{
{
OSL_ASSERT
(
pParentWindow
!=
NULL
);
OSL_ASSERT
(
pParentWindow
!=
NULL
);
if
(
maCloserAction
)
if
(
maCloserAction
)
{
SetCloserVisible
(
true
);
maToolBox
.
InsertItem
(
mnCloserItemIndex
,
Theme
::
GetImage
(
Theme
::
Image_Closer
));
}
#ifdef DEBUG
#ifdef DEBUG
SetText
(
A2S
(
"DeckTitleBar"
));
SetText
(
A2S
(
"DeckTitleBar"
));
...
@@ -77,9 +75,14 @@ void DeckTitleBar::SetCloserVisible (const bool bIsCloserVisible)
...
@@ -77,9 +75,14 @@ void DeckTitleBar::SetCloserVisible (const bool bIsCloserVisible)
mbIsCloserVisible
=
bIsCloserVisible
;
mbIsCloserVisible
=
bIsCloserVisible
;
if
(
mbIsCloserVisible
)
if
(
mbIsCloserVisible
)
{
maToolBox
.
InsertItem
(
maToolBox
.
InsertItem
(
mnCloserItemIndex
,
mnCloserItemIndex
,
Theme
::
GetImage
(
Theme
::
Image_Closer
));
Theme
::
GetImage
(
Theme
::
Image_Closer
));
maToolBox
.
SetQuickHelpText
(
mnCloserItemIndex
,
String
(
SfxResId
(
SFX_STR_SIDEBAR_CLOSE_DECK
)));
}
else
else
maToolBox
.
RemoveItem
(
maToolBox
.
RemoveItem
(
maToolBox
.
GetItemPos
(
mnCloserItemIndex
));
maToolBox
.
GetItemPos
(
mnCloserItemIndex
));
...
...
sfx2/source/sidebar/PanelTitleBar.cxx
Dosyayı görüntüle @
2f18055a
...
@@ -22,6 +22,8 @@
...
@@ -22,6 +22,8 @@
#include "precompiled_sfx2.hxx"
#include "precompiled_sfx2.hxx"
#include "PanelTitleBar.hxx"
#include "PanelTitleBar.hxx"
#include "sfx2/sfxresid.hxx"
#include "Sidebar.hrc"
#include "Paint.hxx"
#include "Paint.hxx"
#include "Panel.hxx"
#include "Panel.hxx"
...
@@ -78,6 +80,9 @@ void PanelTitleBar::SetMenuAction ( const ::boost::function<void(void)>& rMenuAc
...
@@ -78,6 +80,9 @@ void PanelTitleBar::SetMenuAction ( const ::boost::function<void(void)>& rMenuAc
mnMenuItemIndex
,
mnMenuItemIndex
,
Theme
::
GetImage
(
Theme
::
Image_PanelMenu
));
Theme
::
GetImage
(
Theme
::
Image_PanelMenu
));
maToolBox
.
SetOutStyle
(
TOOLBOX_STYLE_FLAT
);
maToolBox
.
SetOutStyle
(
TOOLBOX_STYLE_FLAT
);
maToolBox
.
SetQuickHelpText
(
mnMenuItemIndex
,
String
(
SfxResId
(
SFX_STR_SIDEBAR_MORE_OPTIONS
)));
}
}
else
if
(
maMenuAction
&&
!
rMenuAction
)
else
if
(
maMenuAction
&&
!
rMenuAction
)
{
{
...
...
sfx2/source/sidebar/Sidebar.hrc
Dosyayı görüntüle @
2f18055a
...
@@ -85,3 +85,6 @@
...
@@ -85,3 +85,6 @@
#define IMAGE_SIDEBAR_DECK_FUNCTIONS_SMALL_HC 133
#define IMAGE_SIDEBAR_DECK_FUNCTIONS_SMALL_HC 133
#define STRING_CUSTOMIZATION 200
#define STRING_CUSTOMIZATION 200
#define STRING_RESTORE 201
#define STRING_RESTORE 201
#define SFX_STR_SIDEBAR_MORE_OPTIONS (RID_SFX_SIDEBAR_START + 1)
#define SFX_STR_SIDEBAR_CLOSE_DECK (RID_SFX_SIDEBAR_START + 2)
sfx2/source/sidebar/Sidebar.src
Dosyayı görüntüle @
2f18055a
...
@@ -292,4 +292,13 @@ Resource RID_SIDEBAR_RESOURCE
...
@@ -292,4 +292,13 @@ Resource RID_SIDEBAR_RESOURCE
};
};
};
};
String SFX_STR_SIDEBAR_MORE_OPTIONS
{
Text [en-US] = "More Options";
};
String SFX_STR_SIDEBAR_CLOSE_DECK
{
Text [en-US] = "Close Sidebar Deck";
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment