Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

MainFltkMenu Class Reference

VMDFltkMenu subclass implementing the main molecule browser GUI, with pulldown menus to change mouse state and bring up other menus. More...

#include <MainFltkMenu.h>

Inheritance diagram for MainFltkMenu:

VMDFltkMenu VMDMenu UIObject List of all members.

Public Methods

 MainFltkMenu (VMDApp *)
 ~MainFltkMenu ()

Protected Methods

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...

virtual void draw ()
 XXX hack around a resize bug in Fltk on the Mac by overriding the width of the menu just before drawing. More...


Friends

class MolBrowser

Detailed Description

VMDFltkMenu subclass implementing the main molecule browser GUI, with pulldown menus to change mouse state and bring up other menus.

Definition at line 29 of file MainFltkMenu.h.


Constructor & Destructor Documentation

MainFltkMenu::MainFltkMenu VMDApp  
 

Definition at line 756 of file MainFltkMenu.C.

References DisplayDevice::aa_available, Command::ANIM_DIRECTION, Command::ANIM_JUMP, Command::ANIM_NEW_FRAME, Command::ANIM_NEW_NUM_FRAMES, Command::ANIM_SKIP, Command::ANIM_SPEED, Command::ANIM_STYLE, Animation::ANIM_TOTAL_STYLES, UIObject::app, VMDApp::axes, axes_cb, backgroundmode_cb, DisplayDevice::cache_name, cachemode_cb, Command::CMD_AXES, Command::CMD_STAGE, UIObject::command_wanted, DisplayDevice::cueing_available, DisplayDevice::culling_available, curframe_cb, Command::DISP_ANTIALIAS, Command::DISP_BACKGROUNDGRADIENT, Command::DISP_CACHEMODE, Command::DISP_CULLING, Command::DISP_DEPTHCUE, Command::DISP_FPS, Command::DISP_LIGHT_ON, Command::DISP_PROJ, Command::DISP_RENDERMODE, Command::DISP_STEREO, VMDApp::display, EXT_MENU_NAME, forward_cb, graphics_menuitems, init_browserpopup_menuitems, init_display_menuitems, init_file_menuitems, init_help_menuitems, init_molecule_menuitems, init_mouse_menuitems, Stage::loc_description, Axes::loc_description, Stage::locations, Axes::locations, MAINFLTKMENUHEIGHT, Command::MENU_TK_ADD, Command::MENU_TK_REMOVE, Command::MOL_ACTIVE, Command::MOL_DEL, Command::MOL_FIX, Command::MOL_NEW, Command::MOL_ON, Command::MOL_RENAME, Command::MOL_TOP, Command::MOL_VOLUME, MolBrowser, Command::MOUSE_MODE, next_cb, NULL, DisplayDevice::num_cache_modes, DisplayDevice::num_render_modes, DisplayDevice::num_stereo_modes, prev_cb, DisplayDevice::render_name, rendermode_cb, reverse_cb, speed_cb, VMDApp::stage, stage_cb, start_cb, step_cb, stereo_cb, DisplayDevice::stereo_name, stop_cb, and style_cb.

MainFltkMenu::~MainFltkMenu  
 

Definition at line 1117 of file MainFltkMenu.C.


Member Function Documentation

int MainFltkMenu::act_on_command int    type,
Command   cmd
[protected, virtual]
 

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 from UIObject.

Definition at line 1024 of file MainFltkMenu.C.

References Command::ANIM_DIRECTION, Animation::ANIM_FORWARD, Command::ANIM_JUMP, Command::ANIM_NEW_FRAME, Command::ANIM_NEW_NUM_FRAMES, Animation::ANIM_REVERSE, Command::ANIM_SKIP, Command::ANIM_SPEED, Command::ANIM_STYLE, VMDApp::animation_set_style, Animation::AnimDir, UIObject::app, Command::CMD_AXES, Command::CMD_STAGE, Command::DISP_ANTIALIAS, Command::DISP_BACKGROUNDGRADIENT, Command::DISP_CACHEMODE, Command::DISP_CULLING, Command::DISP_DEPTHCUE, Command::DISP_FPS, Command::DISP_LIGHT_ON, Command::DISP_PROJ, Command::DISP_RENDERMODE, Command::DISP_STEREO, EXT_MENU_NAME, menu_cb, Command::MENU_TK_ADD, Command::MENU_TK_REMOVE, Command::MOL_ACTIVE, Command::MOL_DEL, Command::MOL_FIX, Command::MOL_NEW, Command::MOL_ON, Command::MOL_RENAME, Command::MOL_TOP, Command::MOL_VOLUME, VMDApp::molecule_frame, VMDApp::molecule_numframes, VMDApp::molecule_top, Command::MOUSE_MODE, stringdup, and MolBrowser::update.

void MainFltkMenu::draw   [protected, virtual]
 

XXX hack around a resize bug in Fltk on the Mac by overriding the width of the menu just before drawing.

Definition at line 1192 of file MainFltkMenu.C.


Friends And Related Function Documentation

friend class MolBrowser [friend]
 

Definition at line 30 of file MainFltkMenu.h.

Referenced by MainFltkMenu.


The documentation for this class was generated from the following files:
Generated on Sun Jul 6 01:28:32 2008 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002