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

CmdMenu.C

Go to the documentation of this file.
00001 /***************************************************************************
00002  *cr                                                                       
00003  *cr            (C) Copyright 1995-2019 The Board of Trustees of the           
00004  *cr                        University of Illinois                       
00005  *cr                         All Rights Reserved                        
00006  *cr                                                                   
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  * RCS INFORMATION:
00011  *
00012  *      $RCSfile: CmdMenu.C,v $
00013  *      $Author: johns $        $Locker:  $             $State: Exp $
00014  *      $Revision: 1.34 $       $Date: 2019/01/17 21:20:58 $
00015  *
00016  ***************************************************************************
00017  * DESCRIPTION:
00018  *     The menu commands are defined here.  These tell the app to turn a
00019  * menu on or off; to move a menu; or print the cooordinates of a menu
00020  * to infoMsg.  A "menu" is a UIObject that has a window.
00021  *
00022  ***************************************************************************/
00023 
00024 #include "CmdMenu.h"
00025 #include "utilities.h" // for stringdup
00026 
00028 
00029 void CmdMenuShow::create_text(void) {
00030   *cmdText << "menu " << menuname << (turnOn ? " on" : " off");
00031   *cmdText << ends;
00032 }
00033 
00034 CmdMenuShow::CmdMenuShow(const char *name, int turnon )
00035   : Command(Command::MENU_SHOW)  {
00036   turnOn = turnon;
00037   menuname = stringdup(name);
00038 }
00039 
00040 CmdMenuShow::~CmdMenuShow(void) {
00041   delete [] menuname;
00042 }
00043 

Generated on Tue Apr 7 02:36:03 2020 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002