#include <UIObject.h>
Inheritance diagram for UIObject:
Public Methods | |
UIObject (VMDApp *) | |
constructor. More... | |
virtual | ~UIObject (void) |
destructor. More... | |
void | On () |
Turns the object on or off. When off, the check_event method will not be called for the object. act_on_command will be called because many UIObjects still depend on being kept current with VMD state and don't reset themselves when switched on; we should remove this limitation in the future. More... | |
void | Off () |
int | active () const |
is UIObject active or not. More... | |
int | want_command (int cmd) |
is the given command one we're interested in? More... | |
virtual int | check_event () |
check for an event, and queue it if found. Return TRUE if an event was generated. More... | |
virtual int | act_on_command (int, Command *) |
update the display due to a command being executed. Return whether any action was taken on this command. Arguments are the command type, command object, and the success of the command (T or F). More... | |
void | set_callbacks (int on) |
send callbacks whenever the object moves (on=true) or don't (on=false). More... | |
Protected Methods | |
void | runcommand (Command *) |
send a command to the command queue. More... | |
void | command_wanted (int cmd) |
indicate that we are/are not interested in a command. More... | |
virtual void | reset () |
reset the user interface (force update of all info displays). More... | |
virtual void | do_on () |
virtual methods for performing on/off actions. More... | |
virtual void | do_off () |
Protected Attributes | |
VMDApp * | app |
pointer to parent instance of VMD. More... | |
CommandQueue * | cmdQueue |
Command Queue to use for new commands. More... | |
int | make_callbacks |
send callbacks whenever the object moves (true) or don't (false). More... |
Definition at line 36 of file UIObject.h.
|
constructor.
Definition at line 34 of file UIObject.C. References app, cmdQueue, VMDApp::commandQueue, make_callbacks, CommandQueue::register_UI, and Command::TOTAL. |
|
destructor.
Definition at line 51 of file UIObject.C. References cmdQueue, and CommandQueue::unregister_UI. |
|
update the display due to a command being executed. Return whether any action was taken on this command. Arguments are the command type, command object, and the success of the command (T or F).
Reimplemented in ColorFltkMenu. Definition at line 103 of file UIObject.h. Referenced by CommandQueue::runcommand. |
|
is UIObject active or not.
Definition at line 88 of file UIObject.h. Referenced by Mobile::addNewClient, CommandQueue::check_events, and VMDApp::menu_status. |
|
check for an event, and queue it if found. Return TRUE if an event was generated.
Reimplemented in Animation. Definition at line 97 of file UIObject.h. Referenced by CommandQueue::check_events. |
|
indicate that we are/are not interested in a command.
Definition at line 57 of file UIObject.C. Referenced by ColorFltkMenu::ColorFltkMenu, DisplayFltkMenu::DisplayFltkMenu, FileChooserFltkMenu::FileChooserFltkMenu, GeometryFltkMenu::GeometryFltkMenu, GraphicsFltkMenu::GraphicsFltkMenu, MainFltkMenu::MainFltkMenu, MaterialFltkMenu::MaterialFltkMenu, RenderFltkMenu::RenderFltkMenu, SaveTrajectoryFltkMenu::SaveTrajectoryFltkMenu, ToolFltkMenu::ToolFltkMenu, UIVR::UIVR, and VMDCollab::VMDCollab. |
|
Reimplemented in VMDFltkMenu. Definition at line 67 of file UIObject.h. Referenced by Off. |
|
virtual methods for performing on/off actions.
Reimplemented in VMDFltkMenu. Definition at line 66 of file UIObject.h. Referenced by On. |
|
Definition at line 82 of file UIObject.h. References do_off. Referenced by VMDApp::deactivate_uitext_stdin, and VMDApp::menu_show. |
|
Turns the object on or off. When off, the check_event method will not be called for the object. act_on_command will be called because many UIObjects still depend on being kept current with VMD state and don't reset themselves when switched on; we should remove this limitation in the future.
Definition at line 78 of file UIObject.h. References do_on. Referenced by VMDApp::activate_menus, VMDApp::menu_show, and VMDApp::VMDinit. |
|
reset the user interface (force update of all info displays).
Reimplemented in Mobile. Definition at line 60 of file UIObject.h. Referenced by UIVR::UIVR. |
|
send a command to the command queue.
Definition at line 62 of file UIObject.C. References cmdQueue, and CommandQueue::runcommand. Referenced by Mobile::addNewClient, Win32Joystick::check_event, VMDCollab::check_event, VideoStream::check_event, Spaceball::check_event, Mobile::check_event, IMDMgr::check_event, Animation::check_event, Mouse::move_mode, Mobile::move_mode, Mobile::network_port, Mobile::removeClient, ToolFltkMenu::set_offset, and ToolFltkMenu::set_toolrep. |
|
send callbacks whenever the object moves (on=true) or don't (on=false).
Definition at line 106 of file UIObject.h. References make_callbacks. Referenced by UIVR::act_on_command, and VMDApp::set_mouse_callbacks. |
|
is the given command one we're interested in?
Definition at line 91 of file UIObject.h. Referenced by IMDMgr::IMDMgr, and CommandQueue::runcommand. |
|
|
Command Queue to use for new commands.
Definition at line 51 of file UIObject.h. Referenced by runcommand, UIObject, and ~UIObject. |
|
send callbacks whenever the object moves (true) or don't (false).
Definition at line 63 of file UIObject.h. Referenced by Mouse::check_event, set_callbacks, Tool::tool_location_update, and UIObject. |