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

MainFltkMenu.C File Reference

#include "Inform.h"
#include "MainFltkMenu.h"
#include "FL/Fl_Menu_Bar.H"
#include "FL/Fl_Menu_Button.H"
#include "FL/Fl_Menu_Item.H"
#include "MolBrowser.h"
#include "frame_selector.h"
#include "FL/Fl_Radio_Button.H"
#include "FL/Fl_Value_Slider.H"
#include "FL/Fl_Int_Input.H"
#include "TextEvent.h"
#include "FL/fl_file_chooser.H"
#include "FL/forms.H"
#include "VMDApp.h"
#include "VMDMenu.h"
#include "CommandQueue.h"
#include "CmdMenu.h"
#include "CmdAnimate.h"
#include "Mouse.h"
#include "FPS.h"
#include "Stage.h"
#include "Axes.h"
#include "Scene.h"
#include "Animation.h"
#include "DisplayDevice.h"
#include "PickModeList.h"

Go to the source code of this file.

Defines

#define EXT_MENU_NAME   "Extensions"
#define MAINFLTKMENUHEIGHT   190

Functions

void menu_cb (Fl_Widget *w, void *v)
void loadnew_cb (Fl_Widget *w, void *v)
void render_cb (Fl_Widget *w, void *v)
void savestate_cb (Fl_Widget *w, void *)
void quit_cb (Fl_Widget *w, void *)
void aa_cb (Fl_Widget *w, void *)
void depthcue_cb (Fl_Widget *w, void *)
void culling_cb (Fl_Widget *w, void *)
void fps_cb (Fl_Widget *w, void *)
void light_cb (Fl_Widget *w, void *v)
void stage_cb (Fl_Widget *w, void *v)
void axes_cb (Fl_Widget *w, void *v)
void backgroundmode_cb (Fl_Widget *w, void *v)
void stereo_cb (Fl_Widget *w, void *v)
void cachemode_cb (Fl_Widget *w, void *v)
void rendermode_cb (Fl_Widget *w, void *v)
void resetview_cb (Fl_Widget *w, void *)
void stoprotation_cb (Fl_Widget *w, void *)
void proj_cb (Fl_Widget *w, void *)
void mouse_cb (Fl_Widget *w, void *v)
void move_light_cb (Fl_Widget *w, void *v)
void help_cb (Fl_Widget *w, void *v)
void mol_top_cb (Fl_Widget *w, void *v)
void mol_active_cb (Fl_Widget *w, void *v)
void mol_displayed_cb (Fl_Widget *w, void *v)
void mol_fixed_cb (Fl_Widget *w, void *v)
void mol_rename_cb (Fl_Widget *w, void *v)
void mol_cancel_cb (Fl_Widget *w, void *v)
void mol_delete_ts_cb (Fl_Widget *w, void *v)
void mol_delete_cb (Fl_Widget *w, void *v)
void loadstate_cb (Fl_Widget *w, void *v)
void cb_cb (Fl_Widget *w, void *v)
void curframe_cb (Fl_Widget *w, void *v)
void start_cb (Fl_Widget *, void *v)
void stop_cb (Fl_Widget *, void *v)
void prev_cb (Fl_Widget *, void *v)
void next_cb (Fl_Widget *, void *v)
void forward_cb (Fl_Widget *w, void *v)
void reverse_cb (Fl_Widget *w, void *v)
void style_cb (Fl_Widget *w, void *v)
void step_cb (Fl_Widget *w, void *v)
void speed_cb (Fl_Widget *w, void *v)

Variables

const MenuBehavior file_menu_behavior []
const Fl_Menu_Item init_file_menuitems []
const MenuBehavior molecule_menu_behavior []
const Fl_Menu_Item init_molecule_menuitems []
const MenuBehavior browserpopup_menu_behavior []
const Fl_Menu_Item init_browserpopup_menuitems []
const Fl_Menu_Item graphics_menuitems []
int cbdata []
const Fl_Menu_Item init_display_menuitems []
const Fl_Menu_Item init_mouse_menuitems []
const Fl_Menu_Item init_help_menuitems []


Define Documentation

#define EXT_MENU_NAME   "Extensions"
 

Definition at line 45 of file MainFltkMenu.C.

Referenced by MainFltkMenu::act_on_command, and MainFltkMenu::MainFltkMenu.

#define MAINFLTKMENUHEIGHT   190
 

Definition at line 753 of file MainFltkMenu.C.

Referenced by MainFltkMenu::MainFltkMenu.


Function Documentation

void aa_cb Fl_Widget *    w,
void *   
[static]
 

Definition at line 112 of file MainFltkMenu.C.

References VMDApp::display_set_aa.

void axes_cb Fl_Widget *    w,
void *    v
[static]
 

Definition at line 149 of file MainFltkMenu.C.

References VMDApp::axes_set_location.

Referenced by MainFltkMenu::MainFltkMenu.

void backgroundmode_cb Fl_Widget *    w,
void *    v
[static]
 

Definition at line 155 of file MainFltkMenu.C.

References VMDApp::display_set_background_mode.

Referenced by MainFltkMenu::MainFltkMenu.

void cachemode_cb Fl_Widget *    w,
void *    v
[static]
 

Definition at line 171 of file MainFltkMenu.C.

References VMDApp::display_set_cachemode.

Referenced by MainFltkMenu::MainFltkMenu.

void cb_cb Fl_Widget *    w,
void *    v
[static]
 

Definition at line 532 of file MainFltkMenu.C.

void culling_cb Fl_Widget *    w,
void *   
[static]
 

Definition at line 124 of file MainFltkMenu.C.

References VMDApp::display_set_culling.

void curframe_cb Fl_Widget *    w,
void *    v
[static]
 

Definition at line 562 of file MainFltkMenu.C.

References VMDApp::animation_set_frame, VMDApp::molecule_numframes, and VMDApp::molecule_top.

Referenced by MainFltkMenu::MainFltkMenu.

void depthcue_cb Fl_Widget *    w,
void *   
[static]
 

Definition at line 118 of file MainFltkMenu.C.

References VMDApp::display_set_depthcue.

void forward_cb Fl_Widget *    w,
void *    v
[static]
 

Definition at line 592 of file MainFltkMenu.C.

References Animation::ANIM_FORWARD, Animation::ANIM_PAUSE, and VMDApp::animation_set_dir.

Referenced by MainFltkMenu::MainFltkMenu.

void fps_cb Fl_Widget *    w,
void *   
[static]
 

Definition at line 130 of file MainFltkMenu.C.

References VMDApp::display_set_fps.

void help_cb Fl_Widget *    w,
void *    v
[static]
 

Definition at line 210 of file MainFltkMenu.C.

References VMDApp::commandQueue, and CommandQueue::runcommand.

void light_cb Fl_Widget *    w,
void *    v
[static]
 

Definition at line 136 of file MainFltkMenu.C.

References VMDApp::light_on.

void loadnew_cb Fl_Widget *    w,
void *    v
[static]
 

Definition at line 70 of file MainFltkMenu.C.

References VMDApp::menu_select_mol, and VMDApp::menu_show.

void loadstate_cb Fl_Widget *    w,
void *    v
[static]
 

Definition at line 327 of file MainFltkMenu.C.

References VMDApp::commandQueue, CommandQueue::runcommand, and VMDApp::vmd_choose_file.

void menu_cb Fl_Widget *    w,
void *    v
[static]
 

Definition at line 63 of file MainFltkMenu.C.

References VMDApp::menu_show.

Referenced by MainFltkMenu::act_on_command.

void mol_active_cb Fl_Widget *    w,
void *    v
[static]
 

Definition at line 227 of file MainFltkMenu.C.

References VMDApp::molecule_activate, VMDApp::molecule_id, and VMDApp::molecule_is_active.

void mol_cancel_cb Fl_Widget *    w,
void *    v
[static]
 

Definition at line 280 of file MainFltkMenu.C.

References VMDApp::molecule_cancel_io, and VMDApp::molecule_id.

void mol_delete_cb Fl_Widget *    w,
void *    v
[static]
 

Definition at line 314 of file MainFltkMenu.C.

References ResizeArray::append, VMDApp::molecule_delete, VMDApp::molecule_id, and ResizeArray::num.

void mol_delete_ts_cb Fl_Widget *    w,
void *    v
[static]
 

Definition at line 291 of file MainFltkMenu.C.

References frame_delete_selector, VMDApp::molecule_deleteframes, VMDApp::molecule_id, VMDApp::molecule_name, and VMDApp::molecule_numframes.

void mol_displayed_cb Fl_Widget *    w,
void *    v
[static]
 

Definition at line 238 of file MainFltkMenu.C.

References VMDApp::molecule_display, VMDApp::molecule_id, and VMDApp::molecule_is_displayed.

void mol_fixed_cb Fl_Widget *    w,
void *    v
[static]
 

Definition at line 249 of file MainFltkMenu.C.

References VMDApp::molecule_fix, VMDApp::molecule_id, and VMDApp::molecule_is_fixed.

void mol_rename_cb Fl_Widget *    w,
void *    v
[static]
 

Definition at line 261 of file MainFltkMenu.C.

References VMDApp::molecule_id, VMDApp::molecule_name, and VMDApp::molecule_rename.

void mol_top_cb Fl_Widget *    w,
void *    v
[static]
 

Definition at line 216 of file MainFltkMenu.C.

References VMDApp::molecule_id, and VMDApp::molecule_make_top.

void mouse_cb Fl_Widget *    w,
void *    v
[static]
 

Definition at line 200 of file MainFltkMenu.C.

References VMDApp::mouse_set_mode.

void move_light_cb Fl_Widget *    w,
void *    v
[static]
 

Definition at line 205 of file MainFltkMenu.C.

References Mouse::LIGHT, and VMDApp::mouse_set_mode.

void next_cb Fl_Widget *   ,
void *    v
[static]
 

Definition at line 587 of file MainFltkMenu.C.

References Animation::ANIM_FORWARD1, and VMDApp::animation_set_dir.

Referenced by MainFltkMenu::MainFltkMenu.

void prev_cb Fl_Widget *   ,
void *    v
[static]
 

Definition at line 582 of file MainFltkMenu.C.

References Animation::ANIM_REVERSE1, and VMDApp::animation_set_dir.

Referenced by MainFltkMenu::MainFltkMenu.

void proj_cb Fl_Widget *    w,
void *   
[static]
 

Definition at line 194 of file MainFltkMenu.C.

References VMDApp::display_set_projection.

void quit_cb Fl_Widget *    w,
void *   
[static]
 

Definition at line 106 of file MainFltkMenu.C.

References VMDApp::VMDexit.

void render_cb Fl_Widget *    w,
void *    v
[static]
 

Definition at line 93 of file MainFltkMenu.C.

References VMDApp::menu_show.

void rendermode_cb Fl_Widget *    w,
void *    v
[static]
 

Definition at line 177 of file MainFltkMenu.C.

References VMDApp::display_set_rendermode.

Referenced by MainFltkMenu::MainFltkMenu.

void resetview_cb Fl_Widget *    w,
void *   
[static]
 

Definition at line 183 of file MainFltkMenu.C.

References VMDApp::scene_resetview, and VMDApp::scene_stoprotation.

void reverse_cb Fl_Widget *    w,
void *    v
[static]
 

Definition at line 601 of file MainFltkMenu.C.

References Animation::ANIM_PAUSE, Animation::ANIM_REVERSE, and VMDApp::animation_set_dir.

Referenced by MainFltkMenu::MainFltkMenu.

void savestate_cb Fl_Widget *    w,
void *   
[static]
 

Definition at line 99 of file MainFltkMenu.C.

References VMDApp::save_state.

void speed_cb Fl_Widget *    w,
void *    v
[static]
 

Definition at line 622 of file MainFltkMenu.C.

References VMDApp::animation_set_speed.

Referenced by MainFltkMenu::MainFltkMenu.

void stage_cb Fl_Widget *    w,
void *    v
[static]
 

Definition at line 143 of file MainFltkMenu.C.

References VMDApp::stage_set_location.

Referenced by MainFltkMenu::MainFltkMenu.

void start_cb Fl_Widget *   ,
void *    v
[static]
 

Definition at line 572 of file MainFltkMenu.C.

References VMDApp::animation_set_frame.

Referenced by MainFltkMenu::MainFltkMenu.

void step_cb Fl_Widget *    w,
void *    v
[static]
 

Definition at line 616 of file MainFltkMenu.C.

References VMDApp::animation_set_stride.

Referenced by MainFltkMenu::MainFltkMenu.

void stereo_cb Fl_Widget *    w,
void *    v
[static]
 

Definition at line 165 of file MainFltkMenu.C.

References VMDApp::display_set_stereo.

Referenced by MainFltkMenu::MainFltkMenu.

void stop_cb Fl_Widget *   ,
void *    v
[static]
 

Definition at line 577 of file MainFltkMenu.C.

References VMDApp::animation_set_frame.

Referenced by MainFltkMenu::MainFltkMenu.

void stoprotation_cb Fl_Widget *    w,
void *   
[static]
 

Definition at line 189 of file MainFltkMenu.C.

References VMDApp::scene_stoprotation.

void style_cb Fl_Widget *    w,
void *    v
[static]
 

Definition at line 610 of file MainFltkMenu.C.

References VMDApp::animation_set_style.

Referenced by MainFltkMenu::MainFltkMenu.


Variable Documentation

const MenuBehavior browserpopup_menu_behavior[] [static]
 

Initial value:

Definition at line 398 of file MainFltkMenu.C.

int cbdata[] [static]
 

Initial value:

 {
  0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22
}

Definition at line 432 of file MainFltkMenu.C.

const MenuBehavior file_menu_behavior[] [static]
 

Initial value:

Definition at line 349 of file MainFltkMenu.C.

const Fl_Menu_Item graphics_menuitems[] [static]
 

Initial value:

 {
  {"Representations...", 0, menu_cb, (void *)"graphics"},
  {"Colors...", 0, menu_cb, (void *)"color"},
  {"Materials...", 0, menu_cb, (void *)"material"},
  {"Labels...", 0, menu_cb, (void *)"labels", FL_MENU_DIVIDER},
  {"Tools...", 0, menu_cb, (void *)"tool"}, 
  {0}
}

Definition at line 423 of file MainFltkMenu.C.

Referenced by MainFltkMenu::MainFltkMenu.

const Fl_Menu_Item init_browserpopup_menuitems[] [static]
 

Initial value:

 {
  
  {"New Molecule...",            0, loadnew_cb    },
  {"Load Data Into Molecule...", 0, NULL },
  {"Save Coordinates...",        0, NULL ,  NULL, FL_MENU_DIVIDER},
  
  {"Rename...",         0, mol_rename_cb     },
  {"Delete Frames...",  0, mol_delete_ts_cb  },
  {"Abort File I/O",    0, mol_cancel_cb,    },
  {"Delete Molecule",   0, mol_delete_cb     },
  {NULL}
}

Definition at line 410 of file MainFltkMenu.C.

Referenced by MainFltkMenu::MainFltkMenu.

const Fl_Menu_Item init_display_menuitems[] [static]
 

Initial value:

 {
  {"Reset View", '=', resetview_cb},
  {"Stop Rotation", 0, stoprotation_cb, NULL, FL_MENU_DIVIDER},
  {"Perspective", 0, proj_cb, NULL, FL_MENU_RADIO },
  {"Orthographic", 0, proj_cb, NULL, FL_MENU_RADIO | FL_MENU_DIVIDER},
  {"Antialiasing", 0, aa_cb, NULL, FL_MENU_TOGGLE  | FL_MENU_INACTIVE},
  {"Depth Cueing", 0, depthcue_cb, NULL, FL_MENU_TOGGLE | FL_MENU_INACTIVE},
  {"Culling", 0, culling_cb, NULL, FL_MENU_TOGGLE | FL_MENU_INACTIVE},
  {"FPS Indicator", 0, fps_cb, NULL, FL_MENU_TOGGLE | FL_MENU_DIVIDER},
  {"Light 0", 0, light_cb, cbdata+0, FL_MENU_TOGGLE},
  {"Light 1", 0, light_cb, cbdata+1, FL_MENU_TOGGLE},
  {"Light 2", 0, light_cb, cbdata+2, FL_MENU_TOGGLE},
  {"Light 3", 0, light_cb, cbdata+3, FL_MENU_TOGGLE | FL_MENU_DIVIDER},
  {"Axes",   0, NULL, NULL, FL_SUBMENU_POINTER},
  {"Background", 0, backgroundmode_cb, NULL, FL_SUBMENU_POINTER},
  {"Stage",   0, NULL, NULL, FL_SUBMENU_POINTER},
  {"Stereo",  0, NULL, NULL, FL_SUBMENU_POINTER | FL_MENU_DIVIDER},
  {"Cachemode", 0, NULL, NULL, FL_SUBMENU_POINTER},
  {"Rendermode", 0, NULL, NULL, FL_SUBMENU_POINTER | FL_MENU_DIVIDER},
  {"Display Settings...", 0, menu_cb, (void *)"display"},
  {0}
}

Definition at line 436 of file MainFltkMenu.C.

Referenced by MainFltkMenu::MainFltkMenu.

const Fl_Menu_Item init_file_menuitems[] [static]
 

Initial value:

 {
  {"New Molecule...",            0, loadnew_cb    },
  {"Load Data Into Molecule...", 0, NULL },
  {"Save Coordinates...",        0, NULL ,  NULL,   FL_MENU_DIVIDER},
  {"Load State...",          0, loadstate_cb  },
  {"Save State...",          0, savestate_cb, NULL,   FL_MENU_DIVIDER},
  {"Render...",                  0, render_cb,    },
  {"Quit",                       0, quit_cb       },
  {NULL}
}

Definition at line 361 of file MainFltkMenu.C.

Referenced by MainFltkMenu::MainFltkMenu.

const Fl_Menu_Item init_help_menuitems[] [static]
 

Initial value:

 {
  {"Quick Help",        0, help_cb, (void*) "quickhelp"},
  {"User's Guide",        0, help_cb, (void*) "userguide"},
  {"Tutorial",        0, help_cb, (void*) "tutorial", FL_MENU_DIVIDER},
  {"Homepage",          0, help_cb, (void*) "homepage"},
  {"FAQ",               0, help_cb, (void*) "faq"},
  {"Mailing List",      0, help_cb, (void*) "maillist"},
  {"Script Library",    0, help_cb, (void*) "scripts"},
  {"Plugin Library",    0, help_cb, (void*) "plugins", FL_MENU_DIVIDER},
  {"Related Software",  0, help_cb, (void*) "software"},
  {"3D Renderers",      0, 0, 0, FL_SUBMENU},
    {"POV-Ray",         0, help_cb, (void*) "povray"},
    {"Radiance",        0, help_cb, (void*) "radiance"},
    {"Raster3D",        0, help_cb, (void*) "raster3D"},
    {"Rayshade",        0, help_cb, (void*) "rayshade"},
    {"Tachyon",         0, help_cb, (void*) "tachyon"},
    {"VRML",            0, help_cb, (void*) "vrml"},
    {0},
  {"Auxiliary Programs", 0, 0, 0, FL_SUBMENU},
    {"Babel",             0, help_cb, (void*) "babel"},
    {"BioCoRE",           0, help_cb, (void*) "biocore"},
    {"MSMS",              0, help_cb, (void*) "msms"},
    {"NAMD",              0, help_cb, (void*) "namd"},
    {"Tcl/Tk",            0, help_cb, (void*) "tcl"},
    {"Python",            0, help_cb, (void*) "python"},
    {0},
  {0}
}

Definition at line 501 of file MainFltkMenu.C.

Referenced by MainFltkMenu::MainFltkMenu.

const Fl_Menu_Item init_molecule_menuitems[] [static]
 

Initial value:

 {
  {"Make Top",          0, mol_top_cb,       }, 
  {"Toggle Active",     0, mol_active_cb,    },
  {"Toggle Displayed",  0, mol_displayed_cb, },
  {"Toggle Fixed",      0, mol_fixed_cb,     NULL,   FL_MENU_DIVIDER},
  {"Rename...",         0, mol_rename_cb     },
  {"Delete Frames...",  0, mol_delete_ts_cb  },
  {"Abort File I/O",    0, mol_cancel_cb,    },
  {"Delete Molecule",   0, mol_delete_cb     },
  {NULL}
}

Definition at line 385 of file MainFltkMenu.C.

Referenced by MainFltkMenu::MainFltkMenu.

const Fl_Menu_Item init_mouse_menuitems[] [static]
 

Definition at line 465 of file MainFltkMenu.C.

Referenced by MainFltkMenu::MainFltkMenu.

const MenuBehavior molecule_menu_behavior[] [static]
 

Initial value:

Definition at line 372 of file MainFltkMenu.C.


Generated on Sun Jul 6 01:28:04 2008 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002