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

VMDFltkMenu.h File Reference

#include <FL/Fl_Window.H>
#include "VMDMenu.h"

Go to the source code of this file.

Compounds

class  VMDFltkMenu
 VMDMenu and FL_Window subclass for managing all FLTK-based menus in VMD. More...


Defines

#define VMDMENU_NEW_COLORSCHEME   1
#define VMDMENU_BROWSER_BG   fl_gray_ramp(243 * (FL_NUM_GRAY - 1) / 255)
#define VMDMENU_BROWSER_SEL   fl_rgb_color(210, 225, 210)
#define VMDMENU_MOL_ACTIVE   "A"
#define VMDMENU_MOL_INACTIVE   "@C88A"
#define VMDMENU_MOL_DISPLAYED   "D"
#define VMDMENU_MOL_NONDISPLAYED   "@C88D"
#define VMDMENU_MOL_FIXED   "F"
#define VMDMENU_MOL_NONFIXED   "@C88F"
#define VMDMENU_REP_ACTIVE   ""
#define VMDMENU_REP_INACTIVE   "@C88"
#define VMDMENU_GEOM_ACTIVE   ""
#define VMDMENU_GEOM_INACTIVE   "@C88"
#define VMDMENU_CHOOSER_BG   FL_PALEGREEN
#define VMDMENU_CHOOSER_SEL   FL_BLACK
#define VMDMENU_SLIDER_BG   FL_WHITE
#define VMDMENU_SLIDER_FG   FL_BLACK
#define VMDMENU_SLIDER_SEL   FL_YELLOW
#define VMDMENU_MENU_SEL   FL_BLACK
#define VMDMENU_CHECKBOX_BG   FL_BLACK
#define VMDMENU_CHECKBOX_FG   FL_RED
#define VMDMENU_VALUE_BG   FL_WHITE
#define VMDMENU_VALUE_SEL   FL_YELLOW
#define VMDMENU_VALUE_SEL2   FL_BLACK
#define VMDMENU_CHECKBOX_BG   FL_BLACK
#define VMDMENU_CHECKBOX_FG   FL_RED
#define VMDMENU_COLOR_RSLIDER   fl_rgb_color(255, 0, 0)
#define VMDMENU_COLOR_GSLIDER   fl_rgb_color(0, 255, 0)
#define VMDMENU_COLOR_BSLIDER   fl_rgb_color(0, 0, 255)
#define VMDMENU_MATSLIDER_BG   FL_WHITE
#define VMDMENU_MATSLIDER_FG   FL_GRAY
#define VMDMENU_POSITIONER_BG   VMDMENU_BROWSER_BG
#define VMDMENU_POSITIONER_SEL   VMDMENU_BROWSER_SEL
#define VMDFLTKTOOLTIP(obj, string)

Functions

void fill_fltk_molchooser (Fl_Choice *, VMDApp *, const char *)
 a convenience function for filling a molecule chooser. More...

char * escape_fltk_menustring (const char *)
 a convenience function for generating properly-escaped menu strings. More...

void set_chooser_from_string (const char *namestr, class Fl_Choice *chooser)
 Set a chooser to the menu name matching the given string. Only checks the leaf node menu names, not full pathnames currently FLTK >= 1.1.7 provides find_item() for the same purpose. More...


Define Documentation

#define VMDFLTKTOOLTIP obj,
string   
 

Definition at line 145 of file VMDFltkMenu.h.

Referenced by GraphicsFltkMenu::GraphicsFltkMenu, MainFltkMenu::MainFltkMenu, and MolBrowser::MolBrowser.

#define VMDMENU_BROWSER_BG   fl_gray_ramp(243 * (FL_NUM_GRAY - 1) / 255)
 

Definition at line 46 of file VMDFltkMenu.h.

Referenced by GraphicsFltkMenu::GraphicsFltkMenu, MolBrowser::MolBrowser, SaveTrajectoryFltkMenu::SaveTrajectoryFltkMenu, and SelectionBuilder::SelectionBuilder.

#define VMDMENU_BROWSER_SEL   fl_rgb_color(210, 225, 210)
 

Definition at line 47 of file VMDFltkMenu.h.

Referenced by GraphicsFltkMenu::GraphicsFltkMenu, MolBrowser::MolBrowser, SaveTrajectoryFltkMenu::SaveTrajectoryFltkMenu, and SelectionBuilder::SelectionBuilder.

#define VMDMENU_CHECKBOX_BG   FL_BLACK
 

Definition at line 126 of file VMDFltkMenu.h.

#define VMDMENU_CHECKBOX_BG   FL_BLACK
 

Definition at line 126 of file VMDFltkMenu.h.

#define VMDMENU_CHECKBOX_FG   FL_RED
 

Definition at line 127 of file VMDFltkMenu.h.

#define VMDMENU_CHECKBOX_FG   FL_RED
 

Definition at line 127 of file VMDFltkMenu.h.

#define VMDMENU_CHOOSER_BG   FL_PALEGREEN
 

Definition at line 108 of file VMDFltkMenu.h.

Referenced by GraphicsFltkMenu::GraphicsFltkMenu, RepChoice::RepChoice, RepChoiceSmall::RepChoiceSmall, and SaveTrajectoryFltkMenu::SaveTrajectoryFltkMenu.

#define VMDMENU_CHOOSER_SEL   FL_BLACK
 

Definition at line 110 of file VMDFltkMenu.h.

Referenced by GraphicsFltkMenu::GraphicsFltkMenu, RepChoice::RepChoice, RepChoiceSmall::RepChoiceSmall, and SaveTrajectoryFltkMenu::SaveTrajectoryFltkMenu.

#define VMDMENU_COLOR_BSLIDER   fl_rgb_color(0, 0, 255)
 

Definition at line 132 of file VMDFltkMenu.h.

#define VMDMENU_COLOR_GSLIDER   fl_rgb_color(0, 255, 0)
 

Definition at line 131 of file VMDFltkMenu.h.

#define VMDMENU_COLOR_RSLIDER   fl_rgb_color(255, 0, 0)
 

Definition at line 130 of file VMDFltkMenu.h.

#define VMDMENU_GEOM_ACTIVE   ""
 

Definition at line 68 of file VMDFltkMenu.h.

#define VMDMENU_GEOM_INACTIVE   "@C88"
 

Definition at line 69 of file VMDFltkMenu.h.

#define VMDMENU_MATSLIDER_BG   FL_WHITE
 

Definition at line 135 of file VMDFltkMenu.h.

#define VMDMENU_MATSLIDER_FG   FL_GRAY
 

Definition at line 136 of file VMDFltkMenu.h.

#define VMDMENU_MENU_SEL   FL_BLACK
 

Definition at line 114 of file VMDFltkMenu.h.

Referenced by MainFltkMenu::MainFltkMenu.

#define VMDMENU_MOL_ACTIVE   "A"
 

Definition at line 55 of file VMDFltkMenu.h.

Referenced by MolBrowser::update.

#define VMDMENU_MOL_DISPLAYED   "D"
 

Definition at line 57 of file VMDFltkMenu.h.

Referenced by MolBrowser::update.

#define VMDMENU_MOL_FIXED   "F"
 

Definition at line 59 of file VMDFltkMenu.h.

Referenced by MolBrowser::update.

#define VMDMENU_MOL_INACTIVE   "@C88A"
 

Definition at line 56 of file VMDFltkMenu.h.

Referenced by MolBrowser::update.

#define VMDMENU_MOL_NONDISPLAYED   "@C88D"
 

Definition at line 58 of file VMDFltkMenu.h.

Referenced by MolBrowser::update.

#define VMDMENU_MOL_NONFIXED   "@C88F"
 

Definition at line 60 of file VMDFltkMenu.h.

Referenced by MolBrowser::update.

#define VMDMENU_NEW_COLORSCHEME   1
 

Definition at line 31 of file VMDFltkMenu.h.

#define VMDMENU_POSITIONER_BG   VMDMENU_BROWSER_BG
 

Definition at line 139 of file VMDFltkMenu.h.

#define VMDMENU_POSITIONER_SEL   VMDMENU_BROWSER_SEL
 

Definition at line 140 of file VMDFltkMenu.h.

#define VMDMENU_REP_ACTIVE   ""
 

Definition at line 63 of file VMDFltkMenu.h.

Referenced by add_rep_to_browser.

#define VMDMENU_REP_INACTIVE   "@C88"
 

Definition at line 65 of file VMDFltkMenu.h.

Referenced by add_rep_to_browser.

#define VMDMENU_SLIDER_BG   FL_WHITE
 

Definition at line 111 of file VMDFltkMenu.h.

Referenced by GraphicsFltkRepIsosurface::GraphicsFltkRepIsosurface, GraphicsFltkRepOrbital::GraphicsFltkRepOrbital, IsoSlider::IsoSlider, MainFltkMenu::MainFltkMenu, and ShortSlider::ShortSlider.

#define VMDMENU_SLIDER_FG   FL_BLACK
 

Definition at line 112 of file VMDFltkMenu.h.

Referenced by MainFltkMenu::MainFltkMenu.

#define VMDMENU_SLIDER_SEL   FL_YELLOW
 

Definition at line 113 of file VMDFltkMenu.h.

Referenced by GraphicsFltkRepOrbital::GraphicsFltkRepOrbital.

#define VMDMENU_VALUE_BG   FL_WHITE
 

Definition at line 119 of file VMDFltkMenu.h.

Referenced by GraphicsFltkMenu::GraphicsFltkMenu.

#define VMDMENU_VALUE_SEL   FL_YELLOW
 

Definition at line 120 of file VMDFltkMenu.h.

Referenced by GraphicsFltkMenu::GraphicsFltkMenu, GraphicsFltkRepIsosurface::GraphicsFltkRepIsosurface, GraphicsFltkRepOrbital::GraphicsFltkRepOrbital, SaveTrajectoryFltkMenu::SaveTrajectoryFltkMenu, and SelectionBuilder::SelectionBuilder.

#define VMDMENU_VALUE_SEL2   FL_BLACK
 

Definition at line 123 of file VMDFltkMenu.h.

Referenced by MainFltkMenu::MainFltkMenu.


Function Documentation

char* escape_fltk_menustring const char *   
 

a convenience function for generating properly-escaped menu strings.

Definition at line 152 of file VMDFltkMenu.C.

void fill_fltk_molchooser Fl_Choice *   ,
VMDApp  ,
const char *   
 

a convenience function for filling a molecule chooser.

Definition at line 73 of file VMDFltkMenu.C.

Referenced by GraphicsFltkMenu::update_molchooser, and ToolFltkMenu::update_toolrep_choosers.

void set_chooser_from_string const char *    namestr,
class Fl_Choice *    chooser
 

Set a chooser to the menu name matching the given string. Only checks the leaf node menu names, not full pathnames currently FLTK >= 1.1.7 provides find_item() for the same purpose.

Definition at line 224 of file VMDFltkMenu.C.

Referenced by SaveTrajectoryFltkMenu::act_on_command, GraphicsFltkMenu::init_colorchooser, and GraphicsFltkMenu::update_rep.


Generated on Sat Nov 9 02:46:12 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002