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
949facec
Kaydet (Commit)
949facec
authored
Şub 05, 2013
tarafından
Xisco Fauli
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
pyagenda: Update topics's gui when launching the wizard
Change-Id: Ifb38b49fb62d5fc85bcc6dfa7729bb87d3c7f8e0
üst
57954fdd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
18 deletions
+20
-18
TopicsControl.py
wizards/com/sun/star/wizards/agenda/TopicsControl.py
+3
-3
ControlScroller.py
wizards/com/sun/star/wizards/ui/ControlScroller.py
+17
-15
No files found.
wizards/com/sun/star/wizards/agenda/TopicsControl.py
Dosyayı görüntüle @
949facec
...
...
@@ -103,7 +103,10 @@ class TopicsControl(ControlScroller):
super
(
TopicsControl
,
self
)
.
__init__
(
dialog
,
xmsf
,
5
,
92
,
38
,
212
,
5
,
18
,
HID
+
32
)
self
.
dialog
=
dialog
#fill preview's table
self
.
initializeScrollFields
(
agenda
)
#fill gui's table
self
.
fillupControls
(
True
)
self
.
nscrollvalue
=
0
self
.
lastFocusRow
=
0
self
.
lastFocusControl
=
None
...
...
@@ -314,9 +317,6 @@ class TopicsControl(ControlScroller):
Implementation of ControlScroller
This is a UI method which inserts a new row to the control.
It uses the child-class ControlRow. (see below).
@param _index
@param npos
@see ControlRow
'''
def
insertControlGroup
(
self
,
_index
,
npos
):
...
...
wizards/com/sun/star/wizards/ui/ControlScroller.py
Dosyayı görüntüle @
949facec
...
...
@@ -33,6 +33,7 @@ class ControlScroller(object):
_iCompWidth
,
_nblockincrement
,
_nlinedistance
,
_firsthelpindex
):
self
.
xMSF
=
_xMSF
self
.
scrollfields
=
[]
self
.
ControlGroupVector
=
[]
ControlScroller
.
nblockincrement
=
_nblockincrement
self
.
CurUnoDialog
=
_CurUnoDialog
self
.
iStep
=
_iStep
...
...
@@ -50,7 +51,7 @@ class ControlScroller(object):
self
.
sincSuffix
=
Desktop
.
getIncrementSuffix
(
self
.
CurUnoDialog
.
xDialogModel
,
"imgBackground"
)
ControlScroller
.
xScrollBar
=
self
.
CurUnoDialog
.
insertScrollBar
(
self
.
xScrollBar
=
self
.
CurUnoDialog
.
insertScrollBar
(
"TitleScrollBar"
+
self
.
sincSuffix
,
(
"Border"
,
PropertyNames
.
PROPERTY_ENABLED
,
PropertyNames
.
PROPERTY_HEIGHT
,
...
...
@@ -65,13 +66,12 @@ class ControlScroller(object):
ControlScroller
.
iScrollBarWidth
-
1
,
self
.
iCompPosY
+
1
,
self
.
iStep
,
ControlScroller
.
iScrollBarWidth
),
0
,
self
)
ControlScroller
.
nscrollvalue
=
0
ControlScroller
.
ControlGroupVector
=
[]
self
.
nscrollvalue
=
0
ypos
=
self
.
iStartPosY
+
ControlScroller
.
SORELFIRSTPOSY
for
i
in
range
(
ControlScroller
.
nblockincrement
):
self
.
insertControlGroup
(
i
,
ypos
)
ypos
+=
self
.
linedistance
def
fillupControls
(
self
,
binitialize
):
for
i
in
range
(
ControlScroller
.
nblockincrement
):
if
i
<
self
.
ncurfieldcount
:
...
...
@@ -79,21 +79,23 @@ class ControlScroller(object):
if
binitialize
:
self
.
CurUnoDialog
.
repaintDialogStep
()
def
fillupControl
(
self
,
guiRow
):
nameProps
=
self
.
scrollfields
[
guiRow
]
valueProps
=
self
.
scrollfields
[
guiRow
+
ControlScroller
.
nscrollvalue
]
valueProps
=
self
.
scrollfields
[
guiRow
+
self
.
nscrollvalue
]
for
index
,
item
in
enumerate
(
nameProps
):
if
self
.
CurUnoDialog
.
xDialogModel
.
hasByName
(
item
.
Name
):
self
.
setControlData
(
item
.
Name
,
valueProps
[
index
]
.
Value
)
else
:
raise
AttributeError
(
"No such control !"
)
self
.
ControlGroupVector
[
guiRow
]
.
setEnabled
(
True
)
def
setScrollValue
(
self
,
_nscrollvalue
,
_ntotfieldcount
=
None
):
if
_ntotfieldcount
is
not
None
:
self
.
setTotalFieldCount
(
_ntotfieldcount
)
if
_nscrollvalue
>=
0
:
ControlScroller
.
xScrollBar
.
Model
.
ScrollValue
=
_nscrollvalue
self
.
xScrollBar
.
Model
.
ScrollValue
=
_nscrollvalue
self
.
scrollControls
()
def
setCurFieldCount
(
self
):
...
...
@@ -106,11 +108,11 @@ class ControlScroller(object):
self
.
ntotfieldcount
=
_ntotfieldcount
self
.
setCurFieldCount
()
if
self
.
ntotfieldcount
>
ControlScroller
.
nblockincrement
:
ControlScroller
.
xScrollBar
.
Model
.
Enabled
=
True
ControlScroller
.
xScrollBar
.
Model
.
ScrollValueMax
=
\
self
.
xScrollBar
.
Model
.
Enabled
=
True
self
.
xScrollBar
.
Model
.
ScrollValueMax
=
\
self
.
ntotfieldcount
-
ControlScroller
.
nblockincrement
else
:
ControlScroller
.
xScrollBar
.
Model
.
Enabled
=
False
self
.
xScrollBar
.
Model
.
Enabled
=
False
def
toggleComponent
(
self
,
_bdoenable
):
bdoenable
=
_bdoenable
and
\
...
...
@@ -132,11 +134,11 @@ class ControlScroller(object):
def
scrollControls
(
self
):
try
:
ControlScroller
.
nscrollvalue
=
\
int
(
ControlScroller
.
xScrollBar
.
Model
.
ScrollValue
)
if
ControlScroller
.
nscrollvalue
+
ControlScroller
.
nblockincrement
\
self
.
nscrollvalue
=
\
int
(
self
.
xScrollBar
.
Model
.
ScrollValue
)
if
self
.
nscrollvalue
+
ControlScroller
.
nblockincrement
\
>=
self
.
ntotfieldcount
:
ControlScroller
.
nscrollvalue
=
\
self
.
nscrollvalue
=
\
self
.
ntotfieldcount
-
ControlScroller
.
nblockincrement
self
.
fillupControls
(
False
)
except
Exception
:
...
...
@@ -152,8 +154,8 @@ class ControlScroller(object):
'''
def
fieldInfo
(
self
,
guiRow
,
column
):
if
guiRow
+
ControlScroller
.
nscrollvalue
<
len
(
self
.
scrollfields
):
valueProp
=
(
self
.
scrollfields
[
guiRow
+
ControlScroller
.
nscrollvalue
])[
column
]
if
guiRow
+
self
.
nscrollvalue
<
len
(
self
.
scrollfields
):
valueProp
=
(
self
.
scrollfields
[
guiRow
+
self
.
nscrollvalue
])[
column
]
nameProp
=
(
self
.
scrollfields
[
guiRow
])[
column
]
if
self
.
CurUnoDialog
.
xDialogModel
.
hasByName
(
nameProp
.
Name
):
valueProp
.
Value
=
self
.
getControlData
(
nameProp
.
Name
)
...
...
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