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
ec4a7842
Kaydet (Commit)
ec4a7842
authored
Tem 28, 2014
tarafından
Krisztian Pinter
Kaydeden (comit)
Tomaž Vajngerl
Eyl 17, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Change palette selection ComboBox to ListBox
Change-Id: Id844781c06e37d66f3eebac9d905c58a62682cb0
üst
d5109b2f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
22 deletions
+24
-22
colorwindow.hxx
svx/source/tbxctrls/colorwindow.hxx
+2
-2
tbcontrl.cxx
svx/source/tbxctrls/tbcontrl.cxx
+8
-11
colorwindow.ui
svx/uiconfig/ui/colorwindow.ui
+14
-9
No files found.
svx/source/tbxctrls/colorwindow.hxx
Dosyayı görüntüle @
ec4a7842
...
...
@@ -27,7 +27,7 @@
#include <com/sun/star/frame/XFrame.hpp>
#include <svx/SvxColorValueSet.hxx>
#include <svx/PaletteManager.hxx>
#include <vcl/
combo
box.hxx>
#include <vcl/
lst
box.hxx>
class
SvxColorWindow_Impl
:
public
SfxPopupWindow
{
...
...
@@ -37,7 +37,7 @@ private:
const
sal_uInt16
theSlotId
;
SvxColorValueSet
*
mpColorSet
;
Size
maWindowSize
;
ComboBox
*
mpPaletteCombo
Box
;
ListBox
*
mpPaletteList
Box
;
PushButton
*
mpButtonPicker
;
OUString
maCommand
;
Link
maSelectedLink
;
...
...
svx/source/tbxctrls/tbcontrl.cxx
Dosyayı görüntüle @
ec4a7842
...
...
@@ -1016,7 +1016,7 @@ SvxColorWindow_Impl::SvxColorWindow_Impl( const OUString& rCommand,
mrPaletteManager
(
rPaletteManager
)
{
get
(
mpPalette
ComboBox
,
"palette_list_combo
box"
);
get
(
mpPalette
ListBox
,
"palette_list
box"
);
get
(
mpButtonPicker
,
"color_picker_button"
);
get
(
mpColorSet
,
"colorset"
);
...
...
@@ -1052,15 +1052,15 @@ SvxColorWindow_Impl::SvxColorWindow_Impl( const OUString& rCommand,
mpColorSet
->
SetAccessibleName
(
SVX_RESSTR
(
RID_SVXSTR_LINECOLOR
)
);
}
mpPalette
ComboBox
->
SetStyle
(
mpPaletteCombo
Box
->
GetStyle
()
|
WB_BORDER
|
WB_AUTOSIZE
);
mpPalette
Combo
Box
->
SetSelectHdl
(
LINK
(
this
,
SvxColorWindow_Impl
,
SelectPaletteHdl
)
);
mpPalette
Combo
Box
->
AdaptDropDownLineCountToMaximum
();
mpPalette
ListBox
->
SetStyle
(
mpPaletteList
Box
->
GetStyle
()
|
WB_BORDER
|
WB_AUTOSIZE
);
mpPalette
List
Box
->
SetSelectHdl
(
LINK
(
this
,
SvxColorWindow_Impl
,
SelectPaletteHdl
)
);
mpPalette
List
Box
->
AdaptDropDownLineCountToMaximum
();
std
::
vector
<
OUString
>
aPaletteList
=
mrPaletteManager
.
GetPaletteList
();
mpPaletteComboBox
->
SetText
(
aPaletteList
[
mrPaletteManager
.
GetPalette
()
]
);
for
(
std
::
vector
<
OUString
>::
iterator
it
=
aPaletteList
.
begin
();
it
!=
aPaletteList
.
end
();
++
it
)
{
mpPalette
Combo
Box
->
InsertEntry
(
*
it
);
mpPalette
List
Box
->
InsertEntry
(
*
it
);
}
mpPaletteListBox
->
SelectEntryPos
(
mrPaletteManager
.
GetPalette
(),
true
);
mpButtonPicker
->
SetClickHdl
(
LINK
(
this
,
SvxColorWindow_Impl
,
OpenPickerClickHdl
)
);
...
...
@@ -1072,7 +1072,7 @@ SvxColorWindow_Impl::SvxColorWindow_Impl( const OUString& rCommand,
AddStatusListener
(
maCommand
);
mrPaletteManager
.
ReloadColorSet
(
*
mpColorSet
);
mpPalette
Combo
Box
->
Show
();
mpPalette
List
Box
->
Show
();
mpButtonPicker
->
Show
();
mpColorSet
->
Show
();
}
...
...
@@ -1130,11 +1130,9 @@ IMPL_LINK_NOARG(SvxColorWindow_Impl, SelectHdl)
IMPL_LINK_NOARG
(
SvxColorWindow_Impl
,
SelectPaletteHdl
)
{
OUString
sSrchTxt
=
mpPaletteComboBox
->
GetText
();
sal_Int32
nPos
=
mpPaletteComboBox
->
GetEntryPos
(
sSrchTxt
);
sal_Int32
nPos
=
mpPaletteListBox
->
GetSelectEntryPos
();
mrPaletteManager
.
SetPalette
(
nPos
);
mrPaletteManager
.
ReloadColorSet
(
*
mpColorSet
);
Resize
();
return
0
;
}
...
...
@@ -1146,7 +1144,6 @@ IMPL_LINK_NOARG(SvxColorWindow_Impl, OpenPickerClickHdl)
void
SvxColorWindow_Impl
::
Resize
()
{
mpColorSet
->
layoutAllVisible
(
mrPaletteManager
.
GetColorCount
());
SetOutputSizePixel
(
maWindowSize
);
}
...
...
svx/uiconfig/ui/colorwindow.ui
Dosyayı görüntüle @
ec4a7842
...
...
@@ -14,15 +14,9 @@
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<child>
<object
class=
"GtkComboBox"
id=
"palette_list
_combo
box"
>
<object
class=
"GtkComboBox"
id=
"palette_listbox"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"has_entry"
>
True
</property>
<child
internal-child=
"entry"
>
<object
class=
"GtkEntry"
id=
"combobox-entry"
>
<property
name=
"can_focus"
>
False
</property>
</object>
</child>
</object>
<packing>
<property
name=
"expand"
>
True
</property>
...
...
@@ -32,14 +26,14 @@
</child>
<child>
<object
class=
"GtkButton"
id=
"color_picker_button"
>
<property
name=
"label"
>
Palette
</property>
<property
name=
"label"
>
Color picker
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
True
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
Tru
e
</property>
<property
name=
"fill"
>
Fals
e
</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
...
...
@@ -62,6 +56,17 @@
<property
name=
"position"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkSeparator"
id=
"separator1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
2
</property>
</packing>
</child>
</object>
</child>
</object>
...
...
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