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
57954fdd
Kaydet (Commit)
57954fdd
authored
Şub 05, 2013
tarafından
Xisco Fauli
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
pyagenda: remove setEnabled method
Change-Id: I174be35302361bfa9985ad77a3c6496d858da472
üst
c94a5149
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
24 deletions
+13
-24
TopicsControl.py
wizards/com/sun/star/wizards/agenda/TopicsControl.py
+13
-20
UnoDialog.py
wizards/com/sun/star/wizards/ui/UnoDialog.py
+0
-4
No files found.
wizards/com/sun/star/wizards/agenda/TopicsControl.py
Dosyayı görüntüle @
57954fdd
...
...
@@ -214,23 +214,17 @@ class TopicsControl(ControlScroller):
'''
def
enableButtons
(
self
):
UnoDialog
.
setEnabled
(
self
.
CurUnoDialog
.
btnInsert
,
self
.
lastFocusRow
<
len
(
self
.
scrollfields
))
UnoDialog
.
setEnabled
(
self
.
CurUnoDialog
.
btnRemove
,
self
.
lastFocusRow
<
len
(
self
.
scrollfields
)
-
1
)
self
.
CurUnoDialog
.
btnInsert
.
Model
.
Enabled
=
\
self
.
lastFocusRow
<
len
(
self
.
scrollfields
)
self
.
CurUnoDialog
.
btnRemove
.
Model
.
Enabled
=
\
self
.
lastFocusRow
<
len
(
self
.
scrollfields
)
-
1
if
self
.
lastFocusControl
is
not
None
:
UnoDialog
.
setEnabled
(
self
.
CurUnoDialog
.
btnUp
,
self
.
lastFocusRow
>
0
)
UnoDialog
.
setEnabled
(
self
.
CurUnoDialog
.
btnDown
,
self
.
lastFocusRow
<
len
(
self
.
scrollfields
)
-
1
)
self
.
CurUnoDialog
.
btnUp
.
Model
.
Enabled
=
self
.
lastFocusRow
>
0
self
.
CurUnoDialog
.
btnDown
.
Model
.
Enabled
=
\
self
.
lastFocusRow
<
len
(
self
.
scrollfields
)
-
1
else
:
UnoDialog
.
setEnabled
(
self
.
CurUnoDialog
.
btnUp
,
False
)
UnoDialog
.
setEnabled
(
self
.
CurUnoDialog
.
btnDown
,
False
)
self
.
CurUnoDialog
.
btnUp
.
Model
.
Enabled
=
False
self
.
CurUnoDialog
.
btnDown
.
Model
.
Enabled
=
False
'''
Removes the current row.
...
...
@@ -723,7 +717,6 @@ class TopicsControl(ControlScroller):
traceback
.
print_exc
()
'''
@author rp143992
A class represting a single GUI row.
Note that the instance methods of this class
are being called and handle controls of
...
...
@@ -821,10 +814,10 @@ class ControlRow(object):
'''
def
setEnabled
(
self
,
enabled
):
self
.
dialog
.
setEnabled
(
self
.
label
,
enabled
)
self
.
dialog
.
setEnabled
(
self
.
textbox
,
enabled
)
self
.
dialog
.
setEnabled
(
self
.
combobox
,
enabled
)
self
.
dialog
.
setEnabled
(
self
.
timebox
,
enabled
)
self
.
label
.
Model
.
Enabled
=
enabled
self
.
textbox
.
Model
.
Enabled
=
enabled
self
.
combobox
.
Model
.
Enabled
=
enabled
self
.
timebox
.
Model
.
Enabled
=
enabled
'''
Impelementation of XKeyListener.
...
...
wizards/com/sun/star/wizards/ui/UnoDialog.py
Dosyayı görüntüle @
57954fdd
...
...
@@ -257,10 +257,6 @@ class UnoDialog(object):
setControlProperty
(
ListBoxName
,
"SelectedItems"
,
[
SelPos
])
xListBox
.
selectItemPos
((
short
)(
SelPos
-
1
),
True
)
@classmethod
def
setEnabled
(
self
,
control
,
enabled
):
control
.
Model
.
Enabled
=
enabled
@classmethod
def
getDisplayProperty
(
self
,
xServiceInfo
):
if
xServiceInfo
.
supportsService
(
...
...
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