Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 754d4a4

Browse files
committed
Regenerated because of minor changes in universal headers
1 parent b5cf5da commit 754d4a4

3 files changed

Lines changed: 25 additions & 24 deletions

File tree

Mac/Lib/toolbox/Controls.py

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
# Generated from 'Sap:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Controls.h'
1+
# Generated from 'Sap:CodeWarrior7:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Controls.h'
22

33
pushButProc = 0
44
checkBoxProc = 1
55
radioButProc = 2
66
scrollBarProc = 16
77
popupMenuProc = 1008
88
kControlUsesOwningWindowsFontVariant = 1 << 3
9-
useWFont = 8
109
kControlNoPart = 0
1110
kControlLabelPart = 1
1211
kControlMenuPart = 2
@@ -21,16 +20,6 @@
2120
kControlIndicatorPart = 129
2221
kControlDisabledPart = 254
2322
kControlInactivePart = 255
24-
inLabel = 1
25-
inMenu = 2
26-
inTriangle = 4
27-
inButton = 10
28-
inCheckBox = 11
29-
inUpButton = 20
30-
inDownButton = 21
31-
inPageUp = 22
32-
inPageDown = 23
33-
inThumb = 129
3423
kControlCheckboxUncheckedValue = 0
3524
kControlCheckboxCheckedValue = 1
3625
kControlCheckboxMixedValue = 2
@@ -73,6 +62,18 @@
7362
kDrawControlEntireControl = 0
7463
kDrawControlIndicatorOnly = 129
7564
kDragControlEntireControl = 0
65+
kDragControlIndicator = 1
66+
useWFont = 8
67+
inLabel = 1
68+
inMenu = 2
69+
inTriangle = 4
70+
inButton = 10
71+
inCheckBox = 11
72+
inUpButton = 20
73+
inDownButton = 21
74+
inPageUp = 22
75+
inPageDown = 23
76+
inThumb = 129
7677
kNoHiliteControlPart = 0
7778
kInLabelControlPart = 1
7879
kInMenuControlPart = 2

Mac/Modules/ctl/Ctlmodule.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -178,18 +178,18 @@ static PyObject *CtlObj_DragControl(_self, _args)
178178
PyObject *_args;
179179
{
180180
PyObject *_res = NULL;
181-
Point startPt;
181+
Point startPoint;
182182
Rect limitRect;
183183
Rect slopRect;
184184
DragConstraint axis;
185185
if (!PyArg_ParseTuple(_args, "O&O&O&h",
186-
PyMac_GetPoint, &startPt,
186+
PyMac_GetPoint, &startPoint,
187187
PyMac_GetRect, &limitRect,
188188
PyMac_GetRect, &slopRect,
189189
&axis))
190190
return NULL;
191191
DragControl(_self->ob_itself,
192-
startPt,
192+
startPoint,
193193
&limitRect,
194194
&slopRect,
195195
axis);
@@ -204,12 +204,12 @@ static PyObject *CtlObj_TestControl(_self, _args)
204204
{
205205
PyObject *_res = NULL;
206206
ControlPartCode _rv;
207-
Point thePt;
207+
Point thePoint;
208208
if (!PyArg_ParseTuple(_args, "O&",
209-
PyMac_GetPoint, &thePt))
209+
PyMac_GetPoint, &thePoint))
210210
return NULL;
211211
_rv = TestControl(_self->ob_itself,
212-
thePt);
212+
thePoint);
213213
_res = Py_BuildValue("h",
214214
_rv);
215215
return _res;
@@ -457,9 +457,9 @@ static PyMethodDef CtlObj_methods[] = {
457457
{"TrackControl", (PyCFunction)CtlObj_TrackControl, 1,
458458
"(Point thePoint) -> (ControlPartCode _rv)"},
459459
{"DragControl", (PyCFunction)CtlObj_DragControl, 1,
460-
"(Point startPt, Rect limitRect, Rect slopRect, DragConstraint axis) -> None"},
460+
"(Point startPoint, Rect limitRect, Rect slopRect, DragConstraint axis) -> None"},
461461
{"TestControl", (PyCFunction)CtlObj_TestControl, 1,
462-
"(Point thePt) -> (ControlPartCode _rv)"},
462+
"(Point thePoint) -> (ControlPartCode _rv)"},
463463
{"MoveControl", (PyCFunction)CtlObj_MoveControl, 1,
464464
"(SInt16 h, SInt16 v) -> None"},
465465
{"SizeControl", (PyCFunction)CtlObj_SizeControl, 1,

Mac/Modules/ctl/ctlgen.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Generated from 'Sap:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Controls.h'
1+
# Generated from 'Sap:CodeWarrior7:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Controls.h'
22

33
f = Function(ControlRef, 'NewControl',
44
(WindowRef, 'theWindow', InMode),
@@ -51,7 +51,7 @@
5151

5252
f = Function(void, 'UpdateControls',
5353
(WindowRef, 'theWindow', InMode),
54-
(RgnHandle, 'updateRgn', InMode),
54+
(RgnHandle, 'updateRegion', InMode),
5555
)
5656
functions.append(f)
5757

@@ -70,7 +70,7 @@
7070

7171
f = Method(void, 'DragControl',
7272
(ControlRef, 'theControl', InMode),
73-
(Point, 'startPt', InMode),
73+
(Point, 'startPoint', InMode),
7474
(Rect_ptr, 'limitRect', InMode),
7575
(Rect_ptr, 'slopRect', InMode),
7676
(DragConstraint, 'axis', InMode),
@@ -79,7 +79,7 @@
7979

8080
f = Method(ControlPartCode, 'TestControl',
8181
(ControlRef, 'theControl', InMode),
82-
(Point, 'thePt', InMode),
82+
(Point, 'thePoint', InMode),
8383
)
8484
methods.append(f)
8585

0 commit comments

Comments
 (0)