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

VMDFltkMenu.C File Reference

#include <stdio.h>
#include <stdlib.h>
#include <FL/Fl.H>
#include <FL/Fl_Choice.H>
#include "VMDFltkMenu.h"
#include "VMDApp.h"
#include "utilities.h"

Go to the source code of this file.

Functions

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

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

int find_menu_from_string (const char *namestr, const Fl_Menu *m)
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...


Function Documentation

char* escape_fltk_menustring const char *    menustring
 

a convenience function for generating properly-escaped menu strings.

Definition at line 152 of file VMDFltkMenu.C.

References NULL.

void fill_fltk_molchooser Fl_Choice *    choice,
VMDApp   app,
const char *    extramenu
 

a convenience function for filling a molecule chooser.

Definition at line 73 of file VMDFltkMenu.C.

References VMDApp::molecule_id, VMDApp::molecule_is_displayed, VMDApp::molecule_name, NULL, and VMDApp::num_molecules.

int find_menu_from_string const char *    namestr,
const Fl_Menu *    m
[static]
 

Definition at line 192 of file VMDFltkMenu.C.

References NULL.

Referenced by set_chooser_from_string, and GraphicsFltkMenu::update_molchooser.

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.

References find_menu_from_string.


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