Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
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ç
Batuhan Osman TASKAYA
cpython
Commits
d829e9e8
Kaydet (Commit)
d829e9e8
authored
Ock 23, 2001
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Replaced InvalRect and friends with the Carbon-compliant InvalWindowRect.
üst
f79cb2db
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
48 additions
and
48 deletions
+48
-48
oldPICTbrowse.py
Mac/Demo/PICTbrowse/oldPICTbrowse.py
+1
-1
htmled.py
Mac/Demo/waste/htmled.py
+2
-2
swed.py
Mac/Demo/waste/swed.py
+1
-1
wed.py
Mac/Demo/waste/wed.py
+1
-1
FrameWork.py
Mac/Lib/FrameWork.py
+7
-7
tscrollwin.py
Mac/Lib/test/tscrollwin.py
+1
-1
PyEdit.py
Mac/Tools/IDE/PyEdit.py
+1
-1
Splash.py
Mac/Tools/IDE/Splash.py
+1
-1
Wbase.py
Mac/Tools/IDE/Wbase.py
+8
-8
Wcontrols.py
Mac/Tools/IDE/Wcontrols.py
+7
-7
Wlists.py
Mac/Tools/IDE/Wlists.py
+5
-5
Wquicktime.py
Mac/Tools/IDE/Wquicktime.py
+4
-4
Wtext.py
Mac/Tools/IDE/Wtext.py
+5
-5
Wwindows.py
Mac/Tools/IDE/Wwindows.py
+3
-3
MkDistr_ui.py
Mac/scripts/MkDistr_ui.py
+1
-1
No files found.
Mac/Demo/PICTbrowse/oldPICTbrowse.py
Dosyayı görüntüle @
d829e9e8
...
@@ -24,7 +24,7 @@ def main():
...
@@ -24,7 +24,7 @@ def main():
dummy
=
Res
.
GetResource
(
'DLOG'
,
ID_MAIN
)
dummy
=
Res
.
GetResource
(
'DLOG'
,
ID_MAIN
)
except
Res
.
Error
:
except
Res
.
Error
:
try
:
try
:
Res
.
OpenResFile
(
"oldPICTbrowse.rsrc"
)
Res
.
FSpOpenResFile
(
"oldPICTbrowse.rsrc"
,
0
)
except
Res
.
Error
,
arg
:
except
Res
.
Error
,
arg
:
EasyDialogs
.
Message
(
"Cannot open PICTbrowse.rsrc: "
+
arg
[
1
])
EasyDialogs
.
Message
(
"Cannot open PICTbrowse.rsrc: "
+
arg
[
1
])
sys
.
exit
(
1
)
sys
.
exit
(
1
)
...
...
Mac/Demo/waste/htmled.py
Dosyayı görüntüle @
d829e9e8
...
@@ -194,7 +194,7 @@ class WasteWindow(ScrolledWindow):
...
@@ -194,7 +194,7 @@ class WasteWindow(ScrolledWindow):
l
,
t
,
r
,
b
=
self
.
ted
.
WEGetViewRect
()
l
,
t
,
r
,
b
=
self
.
ted
.
WEGetViewRect
()
vr
=
(
l
,
t
,
l
+
width
-
15
,
t
+
height
-
15
)
vr
=
(
l
,
t
,
l
+
width
-
15
,
t
+
height
-
15
)
self
.
ted
.
WESetViewRect
(
vr
)
self
.
ted
.
WESetViewRect
(
vr
)
Win
.
InvalRect
(
vr
)
Win
.
Inval
Window
Rect
(
vr
)
ScrolledWindow
.
do_postresize
(
self
,
width
,
height
,
window
)
ScrolledWindow
.
do_postresize
(
self
,
width
,
height
,
window
)
def
do_contentclick
(
self
,
local
,
modifiers
,
evt
):
def
do_contentclick
(
self
,
local
,
modifiers
,
evt
):
...
@@ -290,7 +290,7 @@ class WasteWindow(ScrolledWindow):
...
@@ -290,7 +290,7 @@ class WasteWindow(ScrolledWindow):
self
.
ted
.
WESetSelection
(
start
,
end
)
self
.
ted
.
WESetSelection
(
start
,
end
)
self
.
ted
.
WESelView
()
self
.
ted
.
WESelView
()
self
.
ted
.
WEFeatureFlag
(
WASTEconst
.
weFInhibitRecal
,
0
)
self
.
ted
.
WEFeatureFlag
(
WASTEconst
.
weFInhibitRecal
,
0
)
Win
.
InvalRect
(
self
.
ted
.
WEGetViewRect
())
Win
.
Inval
Window
Rect
(
self
.
ted
.
WEGetViewRect
())
self
.
updatescrollbars
()
self
.
updatescrollbars
()
self
.
parent
.
updatemenubar
()
self
.
parent
.
updatemenubar
()
...
...
Mac/Demo/waste/swed.py
Dosyayı görüntüle @
d829e9e8
...
@@ -163,7 +163,7 @@ class WasteWindow(ScrolledWindow):
...
@@ -163,7 +163,7 @@ class WasteWindow(ScrolledWindow):
l
,
t
,
r
,
b
=
self
.
ted
.
WEGetViewRect
()
l
,
t
,
r
,
b
=
self
.
ted
.
WEGetViewRect
()
vr
=
(
l
,
t
,
l
+
width
-
15
,
t
+
height
-
15
)
vr
=
(
l
,
t
,
l
+
width
-
15
,
t
+
height
-
15
)
self
.
ted
.
WESetViewRect
(
vr
)
self
.
ted
.
WESetViewRect
(
vr
)
Win
.
InvalRect
(
vr
)
Win
.
Inval
Window
Rect
(
vr
)
ScrolledWindow
.
do_postresize
(
self
,
width
,
height
,
window
)
ScrolledWindow
.
do_postresize
(
self
,
width
,
height
,
window
)
def
do_contentclick
(
self
,
local
,
modifiers
,
evt
):
def
do_contentclick
(
self
,
local
,
modifiers
,
evt
):
...
...
Mac/Demo/waste/wed.py
Dosyayı görüntüle @
d829e9e8
...
@@ -136,7 +136,7 @@ class WasteWindow(ScrolledWindow):
...
@@ -136,7 +136,7 @@ class WasteWindow(ScrolledWindow):
l
,
t
,
r
,
b
=
self
.
ted
.
WEGetViewRect
()
l
,
t
,
r
,
b
=
self
.
ted
.
WEGetViewRect
()
vr
=
(
l
,
t
,
l
+
width
-
15
,
t
+
height
-
15
)
vr
=
(
l
,
t
,
l
+
width
-
15
,
t
+
height
-
15
)
self
.
ted
.
WESetViewRect
(
vr
)
self
.
ted
.
WESetViewRect
(
vr
)
Win
.
InvalRect
(
vr
)
Win
.
Inval
Window
Rect
(
vr
)
ScrolledWindow
.
do_postresize
(
self
,
width
,
height
,
window
)
ScrolledWindow
.
do_postresize
(
self
,
width
,
height
,
window
)
def
do_contentclick
(
self
,
local
,
modifiers
,
evt
):
def
do_contentclick
(
self
,
local
,
modifiers
,
evt
):
...
...
Mac/Lib/FrameWork.py
Dosyayı görüntüle @
d829e9e8
...
@@ -753,13 +753,13 @@ class Window:
...
@@ -753,13 +753,13 @@ class Window:
def
do_resize
(
self
,
width
,
height
,
window
):
def
do_resize
(
self
,
width
,
height
,
window
):
l
,
t
,
r
,
b
=
self
.
wid
.
GetWindowPort
()
.
portRect
# jvr, forGrowIcon
l
,
t
,
r
,
b
=
self
.
wid
.
GetWindowPort
()
.
portRect
# jvr, forGrowIcon
self
.
SetPort
()
# jvr
self
.
SetPort
()
# jvr
InvalRect
((
r
-
SCROLLBARWIDTH
+
1
,
b
-
SCROLLBARWIDTH
+
1
,
r
,
b
))
# jvr
Inval
Window
Rect
((
r
-
SCROLLBARWIDTH
+
1
,
b
-
SCROLLBARWIDTH
+
1
,
r
,
b
))
# jvr
window
.
SizeWindow
(
width
,
height
,
1
)
# changed updateFlag to true jvr
window
.
SizeWindow
(
width
,
height
,
1
)
# changed updateFlag to true jvr
self
.
do_postresize
(
width
,
height
,
window
)
self
.
do_postresize
(
width
,
height
,
window
)
def
do_postresize
(
self
,
width
,
height
,
window
):
def
do_postresize
(
self
,
width
,
height
,
window
):
SetPort
(
window
)
SetPort
(
window
)
InvalRect
(
window
.
GetWindowPort
()
.
portRect
)
Inval
Window
Rect
(
window
.
GetWindowPort
()
.
portRect
)
def
do_inContent
(
self
,
partcode
,
window
,
event
):
def
do_inContent
(
self
,
partcode
,
window
,
event
):
#
#
...
@@ -853,12 +853,12 @@ class ScrolledWindow(ControlsWindow):
...
@@ -853,12 +853,12 @@ class ScrolledWindow(ControlsWindow):
rect
=
x0
-
1
,
y1
-
(
SCROLLBARWIDTH
-
1
),
x1
-
(
SCROLLBARWIDTH
-
2
),
y1
+
1
rect
=
x0
-
1
,
y1
-
(
SCROLLBARWIDTH
-
1
),
x1
-
(
SCROLLBARWIDTH
-
2
),
y1
+
1
self
.
barx
=
NewControl
(
self
.
wid
,
rect
,
""
,
1
,
vx
,
0
,
32767
,
16
,
0
)
self
.
barx
=
NewControl
(
self
.
wid
,
rect
,
""
,
1
,
vx
,
0
,
32767
,
16
,
0
)
if
not
self
.
barx_enabled
:
self
.
barx
.
HiliteControl
(
255
)
if
not
self
.
barx_enabled
:
self
.
barx
.
HiliteControl
(
255
)
## InvalRect(rect)
## Inval
Window
Rect(rect)
if
wanty
:
if
wanty
:
rect
=
x1
-
(
SCROLLBARWIDTH
-
1
),
y0
-
1
,
x1
+
1
,
y1
-
(
SCROLLBARWIDTH
-
2
)
rect
=
x1
-
(
SCROLLBARWIDTH
-
1
),
y0
-
1
,
x1
+
1
,
y1
-
(
SCROLLBARWIDTH
-
2
)
self
.
bary
=
NewControl
(
self
.
wid
,
rect
,
""
,
1
,
vy
,
0
,
32767
,
16
,
0
)
self
.
bary
=
NewControl
(
self
.
wid
,
rect
,
""
,
1
,
vy
,
0
,
32767
,
16
,
0
)
if
not
self
.
bary_enabled
:
self
.
bary
.
HiliteControl
(
255
)
if
not
self
.
bary_enabled
:
self
.
bary
.
HiliteControl
(
255
)
## InvalRect(rect)
## Inval
Window
Rect(rect)
def
do_postclose
(
self
):
def
do_postclose
(
self
):
self
.
barx
=
self
.
bary
=
None
self
.
barx
=
self
.
bary
=
None
...
@@ -893,11 +893,11 @@ class ScrolledWindow(ControlsWindow):
...
@@ -893,11 +893,11 @@ class ScrolledWindow(ControlsWindow):
self
.
bary
.
SizeControl
(
SCROLLBARWIDTH
,
(
b
-
t
)
-
(
SCROLLBARWIDTH
-
3
))
# jvr
self
.
bary
.
SizeControl
(
SCROLLBARWIDTH
,
(
b
-
t
)
-
(
SCROLLBARWIDTH
-
3
))
# jvr
if
self
.
barx
:
if
self
.
barx
:
self
.
barx
.
ShowControl
()
# jvr
self
.
barx
.
ShowControl
()
# jvr
ValidRect
((
l
,
b
-
SCROLLBARWIDTH
+
1
,
r
-
SCROLLBARWIDTH
+
2
,
b
))
# jvr
Valid
Window
Rect
((
l
,
b
-
SCROLLBARWIDTH
+
1
,
r
-
SCROLLBARWIDTH
+
2
,
b
))
# jvr
if
self
.
bary
:
if
self
.
bary
:
self
.
bary
.
ShowControl
()
# jvr
self
.
bary
.
ShowControl
()
# jvr
ValidRect
((
r
-
SCROLLBARWIDTH
+
1
,
t
,
r
,
b
-
SCROLLBARWIDTH
+
2
))
# jvr
Valid
Window
Rect
((
r
-
SCROLLBARWIDTH
+
1
,
t
,
r
,
b
-
SCROLLBARWIDTH
+
2
))
# jvr
InvalRect
((
r
-
SCROLLBARWIDTH
+
1
,
b
-
SCROLLBARWIDTH
+
1
,
r
,
b
))
# jvr, growicon
Inval
Window
Rect
((
r
-
SCROLLBARWIDTH
+
1
,
b
-
SCROLLBARWIDTH
+
1
,
r
,
b
))
# jvr, growicon
def
do_rawcontrolhit
(
self
,
window
,
control
,
pcode
,
local
,
event
):
def
do_rawcontrolhit
(
self
,
window
,
control
,
pcode
,
local
,
event
):
...
...
Mac/Lib/test/tscrollwin.py
Dosyayı görüntüle @
d829e9e8
...
@@ -47,7 +47,7 @@ class MyWindow(ScrolledWindow):
...
@@ -47,7 +47,7 @@ class MyWindow(ScrolledWindow):
self
.
vy
=
value
self
.
vy
=
value
else
:
else
:
self
.
vy
=
self
.
vy
+
delta
self
.
vy
=
self
.
vy
+
delta
Win
.
InvalRect
(
self
.
ourrect
)
Win
.
Inval
Window
Rect
(
self
.
ourrect
)
def
do_update
(
self
,
wid
,
event
):
def
do_update
(
self
,
wid
,
event
):
Qd
.
EraseRect
(
self
.
ourrect
)
Qd
.
EraseRect
(
self
.
ourrect
)
...
...
Mac/Tools/IDE/PyEdit.py
Dosyayı görüntüle @
d829e9e8
...
@@ -957,7 +957,7 @@ class SearchEngine:
...
@@ -957,7 +957,7 @@ class SearchEngine:
editor
.
ted
.
WEUseText
(
Res
.
Resource
(
Text
))
editor
.
ted
.
WEUseText
(
Res
.
Resource
(
Text
))
editor
.
ted
.
WECalText
()
editor
.
ted
.
WECalText
()
editor
.
SetPort
()
editor
.
SetPort
()
Win
.
InvalRect
(
editor
.
_bounds
)
Win
.
Inval
Window
Rect
(
editor
.
_bounds
)
#editor.ted.WEUpdate(self.w.wid.GetWindowPort().visRgn)
#editor.ted.WEUpdate(self.w.wid.GetWindowPort().visRgn)
EasyDialogs
.
Message
(
"Replaced
%
d occurrences"
%
counter
)
EasyDialogs
.
Message
(
"Replaced
%
d occurrences"
%
counter
)
...
...
Mac/Tools/IDE/Splash.py
Dosyayı görüntüle @
d829e9e8
...
@@ -100,7 +100,7 @@ def UpdateSplash(drawdialog = 0, what = 0):
...
@@ -100,7 +100,7 @@ def UpdateSplash(drawdialog = 0, what = 0):
if
drawdialog
:
if
drawdialog
:
splash
.
DrawDialog
()
splash
.
DrawDialog
()
drawtext
(
what
)
drawtext
(
what
)
Win
.
ValidRect
(
splash
.
GetWindowPort
()
.
portRect
)
Win
.
Valid
Window
Rect
(
splash
.
GetWindowPort
()
.
portRect
)
def
drawtext
(
what
=
0
):
def
drawtext
(
what
=
0
):
Qd
.
SetPort
(
splash
)
Qd
.
SetPort
(
splash
)
...
...
Mac/Tools/IDE/Wbase.py
Dosyayı görüntüle @
d829e9e8
...
@@ -104,8 +104,8 @@ class Widget:
...
@@ -104,8 +104,8 @@ class Widget:
def
adjust
(
self
,
oldbounds
):
def
adjust
(
self
,
oldbounds
):
self
.
SetPort
()
self
.
SetPort
()
Win
.
InvalRect
(
oldbounds
)
Win
.
Inval
Window
Rect
(
oldbounds
)
Win
.
InvalRect
(
self
.
_bounds
)
Win
.
Inval
Window
Rect
(
self
.
_bounds
)
def
_calcbounds
(
self
):
def
_calcbounds
(
self
):
# calculate absolute bounds relative to the window origin from our
# calculate absolute bounds relative to the window origin from our
...
@@ -218,7 +218,7 @@ class Widget:
...
@@ -218,7 +218,7 @@ class Widget:
self
.
_setparentwindow
(
widget
)
self
.
_setparentwindow
(
widget
)
if
self
.
_parentwindow
and
self
.
_parentwindow
.
wid
:
if
self
.
_parentwindow
and
self
.
_parentwindow
.
wid
:
widget
.
forall_frombottom
(
"open"
)
widget
.
forall_frombottom
(
"open"
)
Win
.
InvalRect
(
widget
.
_bounds
)
Win
.
Inval
Window
Rect
(
widget
.
_bounds
)
def
_setparentwindow
(
self
,
widget
):
def
_setparentwindow
(
self
,
widget
):
widget
.
_parentwindow
=
self
.
_parentwindow
widget
.
_parentwindow
=
self
.
_parentwindow
...
@@ -235,7 +235,7 @@ class Widget:
...
@@ -235,7 +235,7 @@ class Widget:
widget
.
select
(
0
)
widget
.
select
(
0
)
self
.
_parentwindow
.
_currentwidget
=
None
self
.
_parentwindow
.
_currentwidget
=
None
self
.
SetPort
()
self
.
SetPort
()
Win
.
InvalRect
(
widget
.
_bounds
)
Win
.
Inval
Window
Rect
(
widget
.
_bounds
)
widget
.
close
()
widget
.
close
()
del
self
.
_widgetsdict
[
key
]
del
self
.
_widgetsdict
[
key
]
self
.
_widgets
.
remove
(
widget
)
self
.
_widgets
.
remove
(
widget
)
...
@@ -340,11 +340,11 @@ class SelectableWidget(ClickableWidget):
...
@@ -340,11 +340,11 @@ class SelectableWidget(ClickableWidget):
def
adjust
(
self
,
oldbounds
):
def
adjust
(
self
,
oldbounds
):
self
.
SetPort
()
self
.
SetPort
()
if
self
.
_selected
:
if
self
.
_selected
:
Win
.
InvalRect
(
Qd
.
InsetRect
(
oldbounds
,
-
3
,
-
3
))
Win
.
Inval
Window
Rect
(
Qd
.
InsetRect
(
oldbounds
,
-
3
,
-
3
))
Win
.
InvalRect
(
Qd
.
InsetRect
(
self
.
_bounds
,
-
3
,
-
3
))
Win
.
Inval
Window
Rect
(
Qd
.
InsetRect
(
self
.
_bounds
,
-
3
,
-
3
))
else
:
else
:
Win
.
InvalRect
(
oldbounds
)
Win
.
Inval
Window
Rect
(
oldbounds
)
Win
.
InvalRect
(
self
.
_bounds
)
Win
.
Inval
Window
Rect
(
self
.
_bounds
)
class
_Line
(
Widget
):
class
_Line
(
Widget
):
...
...
Mac/Tools/IDE/Wcontrols.py
Dosyayı görüntüle @
d829e9e8
...
@@ -32,7 +32,7 @@ class ControlWidget(Wbase.ClickableWidget):
...
@@ -32,7 +32,7 @@ class ControlWidget(Wbase.ClickableWidget):
self
.
_procID
,
self
.
_procID
,
0
)
0
)
self
.
SetPort
()
self
.
SetPort
()
#Win.ValidRect(self._bounds)
#Win.Valid
Window
Rect(self._bounds)
self
.
enable
(
self
.
_enabled
)
self
.
enable
(
self
.
_enabled
)
def
adjust
(
self
,
oldbounds
):
def
adjust
(
self
,
oldbounds
):
...
@@ -43,7 +43,7 @@ class ControlWidget(Wbase.ClickableWidget):
...
@@ -43,7 +43,7 @@ class ControlWidget(Wbase.ClickableWidget):
if
self
.
_visible
:
if
self
.
_visible
:
Qd
.
EraseRect
(
self
.
_bounds
)
Qd
.
EraseRect
(
self
.
_bounds
)
self
.
_control
.
ShowControl
()
self
.
_control
.
ShowControl
()
Win
.
ValidRect
(
self
.
_bounds
)
Win
.
Valid
Window
Rect
(
self
.
_bounds
)
def
close
(
self
):
def
close
(
self
):
self
.
_control
.
HideControl
()
self
.
_control
.
HideControl
()
...
@@ -162,8 +162,8 @@ class Button(ControlWidget):
...
@@ -162,8 +162,8 @@ class Button(ControlWidget):
old
=
Qd
.
InsetRect
(
oldbounds
,
-
4
,
-
4
)
old
=
Qd
.
InsetRect
(
oldbounds
,
-
4
,
-
4
)
new
=
Qd
.
InsetRect
(
self
.
_bounds
,
-
4
,
-
4
)
new
=
Qd
.
InsetRect
(
self
.
_bounds
,
-
4
,
-
4
)
Qd
.
EraseRect
(
old
)
Qd
.
EraseRect
(
old
)
Win
.
InvalRect
(
old
)
Win
.
Inval
Window
Rect
(
old
)
Win
.
InvalRect
(
new
)
Win
.
Inval
Window
Rect
(
new
)
ControlWidget
.
adjust
(
self
,
oldbounds
)
ControlWidget
.
adjust
(
self
,
oldbounds
)
...
@@ -346,7 +346,7 @@ class Scrollbar(ControlWidget):
...
@@ -346,7 +346,7 @@ class Scrollbar(ControlWidget):
def
adjust
(
self
,
oldbounds
):
def
adjust
(
self
,
oldbounds
):
self
.
SetPort
()
self
.
SetPort
()
Win
.
InvalRect
(
oldbounds
)
Win
.
Inval
Window
Rect
(
oldbounds
)
self
.
_control
.
HideControl
()
self
.
_control
.
HideControl
()
self
.
_control
.
MoveControl
(
self
.
_bounds
[
0
],
self
.
_bounds
[
1
])
self
.
_control
.
MoveControl
(
self
.
_bounds
[
0
],
self
.
_bounds
[
1
])
self
.
_control
.
SizeControl
(
self
.
_bounds
[
2
]
-
self
.
_bounds
[
0
],
self
.
_bounds
[
3
]
-
self
.
_bounds
[
1
])
self
.
_control
.
SizeControl
(
self
.
_bounds
[
2
]
-
self
.
_bounds
[
0
],
self
.
_bounds
[
3
]
-
self
.
_bounds
[
1
])
...
@@ -356,7 +356,7 @@ class Scrollbar(ControlWidget):
...
@@ -356,7 +356,7 @@ class Scrollbar(ControlWidget):
self
.
_control
.
ShowControl
()
self
.
_control
.
ShowControl
()
else
:
else
:
Qd
.
FrameRect
(
self
.
_bounds
)
Qd
.
FrameRect
(
self
.
_bounds
)
Win
.
ValidRect
(
self
.
_bounds
)
Win
.
Valid
Window
Rect
(
self
.
_bounds
)
def
activate
(
self
,
onoff
):
def
activate
(
self
,
onoff
):
self
.
_activated
=
onoff
self
.
_activated
=
onoff
...
@@ -366,7 +366,7 @@ class Scrollbar(ControlWidget):
...
@@ -366,7 +366,7 @@ class Scrollbar(ControlWidget):
else
:
else
:
self
.
_control
.
HideControl
()
self
.
_control
.
HideControl
()
self
.
draw
(
None
)
self
.
draw
(
None
)
Win
.
ValidRect
(
self
.
_bounds
)
Win
.
Valid
Window
Rect
(
self
.
_bounds
)
def
set
(
self
,
value
):
def
set
(
self
,
value
):
if
self
.
_control
:
if
self
.
_control
:
...
...
Mac/Tools/IDE/Wlists.py
Dosyayı görüntüle @
d829e9e8
...
@@ -57,11 +57,11 @@ class List(Wbase.SelectableWidget):
...
@@ -57,11 +57,11 @@ class List(Wbase.SelectableWidget):
def
adjust
(
self
,
oldbounds
):
def
adjust
(
self
,
oldbounds
):
self
.
SetPort
()
self
.
SetPort
()
if
self
.
_selected
:
if
self
.
_selected
:
Win
.
InvalRect
(
Qd
.
InsetRect
(
oldbounds
,
-
3
,
-
3
))
Win
.
Inval
Window
Rect
(
Qd
.
InsetRect
(
oldbounds
,
-
3
,
-
3
))
Win
.
InvalRect
(
Qd
.
InsetRect
(
self
.
_bounds
,
-
3
,
-
3
))
Win
.
Inval
Window
Rect
(
Qd
.
InsetRect
(
self
.
_bounds
,
-
3
,
-
3
))
else
:
else
:
Win
.
InvalRect
(
oldbounds
)
Win
.
Inval
Window
Rect
(
oldbounds
)
Win
.
InvalRect
(
self
.
_bounds
)
Win
.
Inval
Window
Rect
(
self
.
_bounds
)
if
oldbounds
[:
2
]
==
self
.
_bounds
[:
2
]:
if
oldbounds
[:
2
]
==
self
.
_bounds
[:
2
]:
# set visRgn to empty, to prevent nasty drawing side effect of LSize()
# set visRgn to empty, to prevent nasty drawing side effect of LSize()
Qd
.
RectRgn
(
self
.
_parentwindow
.
wid
.
GetWindowPort
()
.
visRgn
,
(
0
,
0
,
0
,
0
))
Qd
.
RectRgn
(
self
.
_parentwindow
.
wid
.
GetWindowPort
()
.
visRgn
,
(
0
,
0
,
0
,
0
))
...
@@ -359,7 +359,7 @@ class List(Wbase.SelectableWidget):
...
@@ -359,7 +359,7 @@ class List(Wbase.SelectableWidget):
self
.
SetPort
()
self
.
SetPort
()
Qd
.
EraseRect
((
l
,
cb
,
cr
,
b
))
Qd
.
EraseRect
((
l
,
cb
,
cr
,
b
))
self
.
_list
.
LUpdate
(
self
.
_parentwindow
.
wid
.
GetWindowPort
()
.
visRgn
)
self
.
_list
.
LUpdate
(
self
.
_parentwindow
.
wid
.
GetWindowPort
()
.
visRgn
)
Win
.
ValidRect
(
bounds
)
Win
.
Valid
Window
Rect
(
bounds
)
else
:
else
:
if
self
.
drawingmode
==
0
and
self
.
_list
is
not
None
:
if
self
.
drawingmode
==
0
and
self
.
_list
is
not
None
:
self
.
_list
.
LSetDrawingMode
(
0
)
self
.
_list
.
LSetDrawingMode
(
0
)
...
...
Mac/Tools/IDE/Wquicktime.py
Dosyayı görüntüle @
d829e9e8
...
@@ -24,14 +24,14 @@ class Movie(W.Widget):
...
@@ -24,14 +24,14 @@ class Movie(W.Widget):
def
adjust
(
self
,
oldbounds
):
def
adjust
(
self
,
oldbounds
):
self
.
SetPort
()
self
.
SetPort
()
Win
.
InvalRect
(
oldbounds
)
Win
.
Inval
Window
Rect
(
oldbounds
)
Win
.
InvalRect
(
self
.
_bounds
)
Win
.
Inval
Window
Rect
(
self
.
_bounds
)
self
.
calcmoviebox
()
self
.
calcmoviebox
()
def
set
(
self
,
path_or_fss
,
start
=
0
):
def
set
(
self
,
path_or_fss
,
start
=
0
):
self
.
SetPort
()
self
.
SetPort
()
if
self
.
movie
:
if
self
.
movie
:
#Win.InvalRect(self.movie.GetMovieBox())
#Win.Inval
Window
Rect(self.movie.GetMovieBox())
Qd
.
PaintRect
(
self
.
movie
.
GetMovieBox
())
Qd
.
PaintRect
(
self
.
movie
.
GetMovieBox
())
if
type
(
path_or_fss
)
==
type
(
''
):
if
type
(
path_or_fss
)
==
type
(
''
):
path
=
path_or_fss
path
=
path_or_fss
...
@@ -106,7 +106,7 @@ class Movie(W.Widget):
...
@@ -106,7 +106,7 @@ class Movie(W.Widget):
elif
self
.
running
:
elif
self
.
running
:
box
=
self
.
movie
.
GetMovieBox
()
box
=
self
.
movie
.
GetMovieBox
()
self
.
SetPort
()
self
.
SetPort
()
Win
.
InvalRect
(
box
)
Win
.
Inval
Window
Rect
(
box
)
self
.
movie
=
None
self
.
movie
=
None
self
.
running
=
0
self
.
running
=
0
...
...
Mac/Tools/IDE/Wtext.py
Dosyayı görüntüle @
d829e9e8
...
@@ -213,11 +213,11 @@ class EditText(Wbase.SelectableWidget, _ScrollWidget):
...
@@ -213,11 +213,11 @@ class EditText(Wbase.SelectableWidget, _ScrollWidget):
def
adjust
(
self
,
oldbounds
):
def
adjust
(
self
,
oldbounds
):
self
.
SetPort
()
self
.
SetPort
()
if
self
.
_selected
and
self
.
_parentwindow
.
_hasselframes
:
if
self
.
_selected
and
self
.
_parentwindow
.
_hasselframes
:
Win
.
InvalRect
(
Qd
.
InsetRect
(
oldbounds
,
-
3
,
-
3
))
Win
.
Inval
Window
Rect
(
Qd
.
InsetRect
(
oldbounds
,
-
3
,
-
3
))
Win
.
InvalRect
(
Qd
.
InsetRect
(
self
.
_bounds
,
-
3
,
-
3
))
Win
.
Inval
Window
Rect
(
Qd
.
InsetRect
(
self
.
_bounds
,
-
3
,
-
3
))
else
:
else
:
Win
.
InvalRect
(
oldbounds
)
Win
.
Inval
Window
Rect
(
oldbounds
)
Win
.
InvalRect
(
self
.
_bounds
)
Win
.
Inval
Window
Rect
(
self
.
_bounds
)
viewrect
,
destrect
=
self
.
_calctextbounds
()
viewrect
,
destrect
=
self
.
_calctextbounds
()
self
.
ted
.
WESetViewRect
(
viewrect
)
self
.
ted
.
WESetViewRect
(
viewrect
)
self
.
ted
.
WESetDestRect
(
destrect
)
self
.
ted
.
WESetDestRect
(
destrect
)
...
@@ -305,7 +305,7 @@ class EditText(Wbase.SelectableWidget, _ScrollWidget):
...
@@ -305,7 +305,7 @@ class EditText(Wbase.SelectableWidget, _ScrollWidget):
Qd
.
RectRgn
(
rgn
,
viewrect
)
Qd
.
RectRgn
(
rgn
,
viewrect
)
Qd
.
EraseRect
(
viewrect
)
Qd
.
EraseRect
(
viewrect
)
self
.
draw
(
rgn
)
self
.
draw
(
rgn
)
#Win.InvalRect(self.ted.WEGetViewRect())
#Win.Inval
Window
Rect(self.ted.WEGetViewRect())
self
.
updatescrollbars
()
self
.
updatescrollbars
()
def
get
(
self
):
def
get
(
self
):
...
...
Mac/Tools/IDE/Wwindows.py
Dosyayı görüntüle @
d829e9e8
...
@@ -157,7 +157,7 @@ class Window(FrameWork.Window, Wbase.SelectableWidget):
...
@@ -157,7 +157,7 @@ class Window(FrameWork.Window, Wbase.SelectableWidget):
if
y
==
None
:
if
y
==
None
:
x
,
y
=
x
x
,
y
=
x
self
.
SetPort
()
self
.
SetPort
()
Win
.
InvalRect
(
self
.
getgrowrect
())
Win
.
Inval
Window
Rect
(
self
.
getgrowrect
())
self
.
wid
.
SizeWindow
(
x
,
y
,
1
)
self
.
wid
.
SizeWindow
(
x
,
y
,
1
)
self
.
_calcbounds
()
self
.
_calcbounds
()
...
@@ -247,7 +247,7 @@ class Window(FrameWork.Window, Wbase.SelectableWidget):
...
@@ -247,7 +247,7 @@ class Window(FrameWork.Window, Wbase.SelectableWidget):
def
drawwidgetbounds
(
self
,
onoff
):
def
drawwidgetbounds
(
self
,
onoff
):
self
.
_drawwidgetbounds
=
onoff
self
.
_drawwidgetbounds
=
onoff
self
.
SetPort
()
self
.
SetPort
()
Win
.
InvalRect
(
self
.
_bounds
)
Win
.
Inval
Window
Rect
(
self
.
_bounds
)
def
_drawbounds
(
self
):
def
_drawbounds
(
self
):
pass
pass
...
@@ -353,7 +353,7 @@ class Window(FrameWork.Window, Wbase.SelectableWidget):
...
@@ -353,7 +353,7 @@ class Window(FrameWork.Window, Wbase.SelectableWidget):
self
.
draw
()
self
.
draw
()
def
do_postresize
(
self
,
width
,
height
,
window
):
def
do_postresize
(
self
,
width
,
height
,
window
):
Win
.
InvalRect
(
self
.
getgrowrect
())
Win
.
Inval
Window
Rect
(
self
.
getgrowrect
())
self
.
_calcbounds
()
self
.
_calcbounds
()
def
do_inGoAway
(
self
,
partcode
,
window
,
event
):
def
do_inGoAway
(
self
,
partcode
,
window
,
event
):
...
...
Mac/scripts/MkDistr_ui.py
Dosyayı görüntüle @
d829e9e8
...
@@ -115,7 +115,7 @@ class ListWindow(DialogWindow):
...
@@ -115,7 +115,7 @@ class ListWindow(DialogWindow):
self
.
list
.
LSetCell
(
contents
[
i
],
(
0
,
i
))
self
.
list
.
LSetCell
(
contents
[
i
],
(
0
,
i
))
self
.
list
.
LSetDrawingMode
(
1
)
self
.
list
.
LSetDrawingMode
(
1
)
##self.list.LUpdate(self.wid.GetWindowPort().visRgn)
##self.list.LUpdate(self.wid.GetWindowPort().visRgn)
Win
.
InvalRect
(
self
.
listrect
)
Win
.
Inval
Window
Rect
(
self
.
listrect
)
def
additem
(
self
,
item
):
def
additem
(
self
,
item
):
where
=
self
.
list
.
LAddRow
(
1
,
0
)
where
=
self
.
list
.
LAddRow
(
1
,
0
)
...
...
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