Object <- Viewable <- Stamp <- Button <- HookswitchButton |
|
|
AboutToShow Action CanSetName Idle |
|
StaticNameAndImage |
| Field | Type | |
|---|---|---|
| Viewable: | superview: | Viewable |
| relativeOrigin: | Dot | |
| contentSize: | Dot | |
| viewFlags: | Flags | |
| labelStyle: | TextStyle | |
| color: | Unsigned | |
| altColor: | Unsigned | |
| shadow: | Shadow | |
| sound: | Playable | |
| Stamp: | image: | Image |
| HasBorder: | border: | Border |
| HookswitchButton: | phonePanel: | Object |
| staticNameAndImage: | Boolean |
instance HookswitchButton tag; relativeOrigin: <0.0,0.0>; contentSize: <0.0,0.0>; viewFlags: 0x00000000; labelStyle: nilObject; color: 0; altColor: 0; shadow: nilObject; sound: nilObject; image: nilObject; border: nilObject; phonePanel: nilObject; staticNameAndImage: false; end instance;
Define Class HookswitchButton; inherits from Button; field phonePanel: Object; field staticNameAndImage: Boolean, getter, setter; attribute StaticNameAndImage: Boolean; // if a hookswitch button is in a phone status window, then it // never needs to change its name to anything but "hang up" overrides AboutToShow; // updates the image and name to represent the appropriate state overrides Action; // dials, redials, or hangs up overrides Idle; // updates the image and name to repressent the appropriate state overrides CanSetName; // returns false end class;