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
17de4ca1
Kaydet (Commit)
17de4ca1
authored
Agu 07, 2012
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
gdb: add pretty-printer for tools Rectangle
Change-Id: I9c6f4b54254fa7a1b91f0bf1a19d16bb3778a2be
üst
36233b15
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
tl.py
solenv/gdb/libreoffice/tl.py
+19
-0
No files found.
solenv/gdb/libreoffice/tl.py
Dosyayı görüntüle @
17de4ca1
...
...
@@ -370,6 +370,24 @@ class SizePrinter(object):
children
=
[(
'width'
,
width
),
(
'height'
,
height
)]
return
children
.
__iter__
()
class
RectanglePrinter
(
object
):
'''Prints a Rectangle.'''
def
__init__
(
self
,
typename
,
value
):
self
.
typename
=
typename
self
.
value
=
value
def
to_string
(
self
):
return
"
%
s"
%
(
self
.
typename
)
def
children
(
self
):
left
=
self
.
value
[
'nLeft'
]
top
=
self
.
value
[
'nTop'
]
right
=
self
.
value
[
'nRight'
]
bottom
=
self
.
value
[
'nBottom'
]
children
=
[(
'left'
,
left
),
(
'top'
,
top
),
(
'right'
,
right
),
(
'bottom'
,
bottom
)]
return
children
.
__iter__
()
printer
=
None
def
build_pretty_printers
():
...
...
@@ -396,6 +414,7 @@ def build_pretty_printers():
printer
.
add
(
'Time'
,
TimePrinter
)
printer
.
add
(
'Point'
,
PointPrinter
)
printer
.
add
(
'Size'
,
SizePrinter
)
printer
.
add
(
'Rectangle'
,
RectanglePrinter
)
def
register_pretty_printers
(
obj
):
printing
.
register_pretty_printer
(
printer
,
obj
)
...
...
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