... <- Box <- Window <- TitledWindow <- GadgetWindow <- CommandWindow |
|
|
AdjustSize Appear CanAccept Disappear InstallCommand InstallInto InstallLocalCommands Tap |
|
AuthoringMode |
| Field | Type | |
|---|---|---|
| Viewable: | superview: | Viewable |
| relativeOrigin: | Dot | |
| contentSize: | Dot | |
| viewFlags: | Flags | |
| labelStyle: | TextStyle | |
| color: | Unsigned | |
| altColor: | Unsigned | |
| shadow: | Shadow | |
| sound: | Playable | |
| HasBorder: | border: | Border |
| Window: | canCoexist: | Boolean |
| persistentWindow: | Boolean | |
| dontAutoExtend: | Boolean | |
| ignoreGrid: | Boolean | |
| closeAfterTouch: | Boolean | |
| closeBeforeTouch: | Boolean | |
| autoPosition: | Boolean | |
| noCloseBox: | Boolean | |
| downArrowVisible: | Boolean | |
| upArrowVisible: | Boolean | |
| rightArrowVisible: | Boolean | |
| leftArrowVisible: | Boolean | |
| autoMoveContents: | Boolean | |
| searchable: | Boolean | |
| customTitleColor: | Boolean | |
| scaleWindowTitle: | Boolean | |
| noBuiltInArrows: | Boolean | |
| noZoom: | Boolean | |
| autoCopyWindow: | Boolean | |
| TitledWindow: | titleColor: | Unsigned |
| titleHeight: | Micron | |
| dependents: | ObjectList | |
| BalloonSpout: | balloonDot: | Dot |
| GadgetWindow: | target: | Object |
| CommandWindow: | userLevelList: | ObjectList |
| authoringMode: | Boolean | |
| topMargin: | Micron | |
| communicationBox: | Viewable | |
| localCommandBox: | Viewable | |
| rulesGadget: | Viewable |
instance CommandWindow tag; relativeOrigin: <0.0,0.0>; contentSize: <0.0,0.0>; viewFlags: 0x00000000; labelStyle: nilObject; color: 0; altColor: 0; shadow: nilObject; sound: nilObject; border: nilObject; canCoexist: false; persistentWindow: false; dontAutoExtend: false; ignoreGrid: false; closeAfterTouch: false; closeBeforeTouch: false; autoPosition: false; noCloseBox: false; downArrowVisible: false; upArrowVisible: false; rightArrowVisible: false; leftArrowVisible: false; autoMoveContents: false; searchable: false; customTitleColor: false; scaleWindowTitle: false; noBuiltInArrows: false; noZoom: false; autoCopyWindow: false; titleColor: 0; titleHeight: <0.0>; dependents: nilObject; balloonDot: <0.0,0.0>; target: nilObject; userLevelList: nilObject; authoringMode: false; topMargin: <0.0>; communicationBox: nilObject; localCommandBox: nilObject; rulesGadget: nilObject; end instance;
Define Class CommandWindow; inherits from GadgetWindow; field userLevelList: ObjectList, weak; // lists of viewables for normal mode and authoring mode field authoringMode: Boolean; // stores whether self is currently in authoring mode field topMargin: Micron; // obsolete; unused field communicationBox: Viewable; // box containing Communication commands field localCommandBox: Viewable; // box containing local scene commands field rulesGadget: Viewable; // rules gadget that will be placed with local commands operation InstallCommand(newCommand: Viewable; authoringModeOnly: Boolean; communicationCommand: Boolean); // installs a command into the command window. If authoringModeOnly is true, the command is // only visible in authoring mode. If communicationCommand is true, the command shows up in the // communication box instead of the normal place. Note: it is illegal to have both of these // values be true, since commuication commands cannot be made authoring mode only. // If you were to subclass CommandWindow, you might want to override this method. However, // you probably don't want to subclass CommandWindow. overrides AdjustSize; // resizes content to fit current subviews, with pleasant margin around the edges overrides Appear; // installs global and scene-specific commands based on current value of authoringMode overrides CanAccept; // prevents dropping items in if current tool is a writing or touch tool overrides Disappear; // clears local and global commands out of window, leaving only subviews placed by user overrides InstallInto; // installs a command by calling InstallCommand with authroingModeOnly = false and // communicationCommand = false. overrides Tap; // if option button is down and touch is in title bar, toggles authoring mode overrides SetAuthoringMode; // re-installs global and scene-specific commands for new value operation InstallLocalCommands(authoringMode: Boolean), intrinsic; end class;