Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   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 31 of file MainFltkMenu.h.


Constructor & Destructor Documentation

MainFltkMenu::MainFltkMenu VMDApp  
 

Definition at line 863 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, VMDApp::axes, axes_cb, backgroundmode_cb, DisplayDevice::cache_name, 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, Command::DISP_STEREOSWAP, VMDApp::display, DM_ANTIALIASING, DM_AXES, DM_BACKGROUND, DM_DEPTHCUEING, DM_RENDERMODE, DM_STAGE, DM_STEREO, DM_STEREOEYESWAP, 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, MAINFLTKMENUWIDTH, 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, size, speed_cb, VMDApp::stage, stage_cb, start_cb, step_cb, stereo_cb, DisplayDevice::stereo_name, stereoswap_cb, stop_cb, style_cb, VMDFLTKTOOLTIP, VMDMENU_MENU_SEL, VMDMENU_SLIDER_BG, VMDMENU_SLIDER_FG, and VMDMENU_VALUE_SEL2.

MainFltkMenu::~MainFltkMenu  
 

Definition at line 1267 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 1174 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, 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, Command::DISP_STEREOSWAP, 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 1345 of file MainFltkMenu.C.

References MAINFLTKMENUWIDTH, and size.


Friends And Related Function Documentation

friend class MolBrowser [friend]
 

Definition at line 32 of file MainFltkMenu.h.

Referenced by MainFltkMenu.


The documentation for this class was generated from the following files:
Generated on Fri Nov 8 02:47:09 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002