Monitors user interaction with picture control and directs events to appropriate instance of the class Object. If any of the Objects associated with the Picture need to update their image this info comes in via UpdateQue and is used to update the display. There will be two modes the Picture can be in, Operate and Layout. When in Operate mode mouse clicks and activity will be passed to the Object associated with the region of the picture control that was clicked. This will allow the targeted Object to receive the various mouse events and respond appropriately. The Object will be responsible for updating its image and maintaining its own state. In Layout mode all Objects are treated the same and can be created or destroyed depending on the Layout Designer’s actions. In Layout mode, the mouse events are handled by the Picture class. The exception to this behavior will be adding a new Object or invoking the Object class specific dialogs to set or view Object specific attributes.
Communications Mechanisms:
Accessed using methods provided by the Pictures class. Methods post to PictureMethodQ and results returned via PictureResultsQ. Updates for Objects are received via UpdateQue.
Methods:
Contract C72: CreateNewPicture
Contract C39: HideGrid
Contract C38: ShowGrid
Contract C17: LoadLayout
Contract C42: SaveLayout
Contract C86: KillPicture
Contract C08: SetModeOperate
Contract C09: SetModeLayout
Contract C82: RemoveAllObjects
Contract C87: SetBackgroundImage
Contract C19: AddObject
Contract C21: DeleteObject
Contract C22: MoveObject
Contract C23: SelectObject
Contract C82: RemoveAllObjects
Contract C92: SetObjectLocation
Object Class: Information
Class Functionality:
Monitors all instances of the class object and maintains a screen showing the current value associated with each. Queues are created and destroyed as instances of the class Objects are created and destroyed, respectively.
Communications Mechanisms:
This class implements three queues for communicating between it and the rest of the application: InfoCmndQue InfoSubscribeQue InfoUpdateQue.
In addition, the code provides three routines for controlling the operation of the information window itself. Because the information window is constantly running, the first of these events (Toggle Window Visible) simply toggles the front panel state of the window between Hidden and Standard.
The other two events support the ability to pause the information screen’s background processing while the RUI is in Layout mode. The event Pause Window Update affects the pause by changing the Timeout event timeout to -1 (no timeout). To provide feedback to the user when the window is visible, the event also disables the table displaying the object states. Conversely, the Resume Window Update event resets the Timeout event timeout to value stored in the application’s configuration file, and reenables the table displaying the object states.
Methods:
Contract C48: StartInformationWindow
Contract C62: StopInformationWindow
Contract C76: RemoveObject
Contract C79: SubscribeToNewObject
Object Class: Plug-Ins
Class Functionality:
Realizes all of the functionality associated with the instance of the class Plug-Ins. Watch for updates coming from Information and applies same to the current value and updates its display image. Passes revise image information to the Picture with which it is associated using the UpdateQue for the owning Picture instance.
Communications Mechanisms:
ObjectCmndQue
Methods:
Contract C75: UnsubscribeFromObject
Contract C78: CreateNewObject
Contract C77: KillObject
Contract C80: SubscribeToObject
Contract C24: ConfigureObject
Contract C36: SetObjectSelect
Contract C37: CancelObjectSelect
Contract C88: SetBackground
Contract C90: SaveToFile
Contract C93: ReConfigureObject
Contract C95: MoveObjectToNewLocation
You must be a registered user to add a comment on this image. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment on this image. If you've already registered, sign in. Otherwise, register and sign in.