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
37530ebb
Kaydet (Commit)
37530ebb
authored
Nis 10, 2017
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert scenario menu to .ui
Change-Id: Iac0f52898ce9e8484731d62b2555ed3c83563d1d
üst
73295fa4
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
34 additions
and
40 deletions
+34
-40
UIConfig_scalc.mk
sc/UIConfig_scalc.mk
+1
-0
helpids.h
sc/inc/helpids.h
+0
-3
scres.hrc
sc/inc/scres.hrc
+0
-4
navipi.src
sc/source/ui/navipi/navipi.src
+0
-19
scenwnd.cxx
sc/source/ui/navipi/scenwnd.cxx
+8
-14
scenariomenu.ui
sc/uiconfig/scalc/ui/scenariomenu.ui
+25
-0
No files found.
sc/UIConfig_scalc.mk
Dosyayı görüntüle @
37530ebb
...
...
@@ -188,6 +188,7 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/scalc,\
sc/uiconfig/scalc/ui/samplingdialog \
sc/uiconfig/scalc/ui/standardfilterdialog \
sc/uiconfig/scalc/ui/scenariodialog \
sc/uiconfig/scalc/ui/scenariomenu \
sc/uiconfig/scalc/ui/scgeneralpage \
sc/uiconfig/scalc/ui/searchresults \
sc/uiconfig/scalc/ui/selectdatasource \
...
...
sc/inc/helpids.h
Dosyayı görüntüle @
37530ebb
...
...
@@ -46,9 +46,6 @@
#define HID_SC_ADD_AUTOFMT "SC_HID_SC_ADD_AUTOFMT"
#define HID_SC_AUTOFMT_NAME "SC_HID_SC_AUTOFMT_NAME"
#define HID_SC_SCENARIO_DELETE "SC_HID_SC_SCENARIO_DELETE"
#define HID_SC_SCENARIO_EDIT "SC_HID_SC_SCENARIO_EDIT"
#define HID_FUNCTION_BOX "SC_HID_FUNCTION_BOX"
// wrong group - HID_SC_DLG_START is full
...
...
sc/inc/scres.hrc
Dosyayı görüntüle @
37530ebb
...
...
@@ -441,10 +441,6 @@
#define RID_SCDLG_HFEDIT_HEADER (SC_DIALOGS_START + 68)
#define RID_SCDLG_HFEDIT_FOOTER (SC_DIALOGS_START + 69)
#define RID_POPUP_NAVIPI_SCENARIO (SC_DIALOGS_START + 120)
#define RID_NAVIPI_SCENARIO_DELETE (SC_DIALOGS_START + 121)
#define RID_NAVIPI_SCENARIO_EDIT (SC_DIALOGS_START + 122)
#define RID_CELLSTYLEFAMILY (SC_DIALOGS_START + 138)
#define RID_PAGESTYLEFAMILY (SC_DIALOGS_START + 139)
#define BMP_STYLES_FAMILY_CELL (SC_DIALOGS_START + 140)
...
...
sc/source/ui/navipi/navipi.src
Dosyayı görüntüle @
37530ebb
...
...
@@ -176,23 +176,4 @@ String SCSTR_QHLP_SCEN_COMMENT
Text [ en-US ] = "Comment";
};
Menu RID_POPUP_NAVIPI_SCENARIO
{
ItemList =
{
MenuItem
{
Identifier = RID_NAVIPI_SCENARIO_DELETE ;
HelpId = HID_SC_SCENARIO_DELETE ;
Text [ en-US ] = "Delete" ;
};
MenuItem
{
Identifier = RID_NAVIPI_SCENARIO_EDIT ;
HelpId = HID_SC_SCENARIO_EDIT ;
Text [ en-US ] = "Properties..." ;
};
};
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sc/source/ui/navipi/scenwnd.cxx
Dosyayı görüntüle @
37530ebb
...
...
@@ -135,20 +135,14 @@ bool ScScenarioListBox::EventNotify( NotifyEvent& rNEvt )
{
if
(
!
pEntry
->
mbProtected
)
{
ScopedVclPtrInstance
<
ScPopupMenu
>
aPopup
(
ScResId
(
RID_POPUP_NAVIPI_SCENARIO
)
);
aPopup
->
Execute
(
this
,
pCEvt
->
GetMousePosPixel
()
);
if
(
aPopup
->
WasHit
())
{
switch
(
aPopup
->
GetSelected
()
)
{
case
RID_NAVIPI_SCENARIO_DELETE
:
DeleteScenario
();
break
;
case
RID_NAVIPI_SCENARIO_EDIT
:
EditScenario
();
break
;
}
}
VclBuilder
aBuilder
(
nullptr
,
VclBuilderContainer
::
getUIRootDir
(),
"modules/scalc/ui/scenariomenu.ui"
,
""
);
VclPtr
<
PopupMenu
>
aPopup
(
aBuilder
.
get_menu
(
"menu"
));
sal_uInt16
nId
=
aPopup
->
Execute
(
this
,
pCEvt
->
GetMousePosPixel
());
OString
sIdent
(
aPopup
->
GetItemIdent
(
nId
));
if
(
sIdent
==
"delete"
)
DeleteScenario
();
else
if
(
sIdent
==
"edit"
)
EditScenario
();
}
}
bHandled
=
true
;
...
...
sc/uiconfig/scalc/ui/scenariomenu.ui
0 → 100644
Dosyayı görüntüle @
37530ebb
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.20.0 -->
<interface>
<requires
lib=
"gtk+"
version=
"3.10"
/>
<object
class=
"GtkMenu"
id=
"menu"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<child>
<object
class=
"GtkMenuItem"
id=
"delete"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Delete
</property>
<property
name=
"use_underline"
>
True
</property>
</object>
</child>
<child>
<object
class=
"GtkMenuItem"
id=
"edit"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Properties...
</property>
<property
name=
"use_underline"
>
True
</property>
</object>
</child>
</object>
</interface>
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