Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

MotifGUI.h

Go to the documentation of this file.
00001 // $Header: /nfs/slac/g/glast/ground/cvs/gui/src/MotifGUI.h,v 1.1.1.1 2001/01/04 01:01:11 burnett Exp $
00002 //  Author: G. Barrand, T. Burnett
00003 // Motif GUI definition.
00004 
00005 #ifndef MotifGUI_H
00006 #define MotifGUI_H
00007 
00008 #include "gui/GUI.h"
00009 #include "gui/SceneControl.h"
00010 
00011 using namespace gui;
00012 
00013 //class SceneControl;
00014 
00015 class MotifGUI : public GUI {
00016 // Derived GUI supporting the Motif interface
00017 public:
00018     MotifGUI(const char* app="Motif", const char* title=0);
00019 
00020     void addToMenu(const char* title, Command* command);
00021     virtual GUI::Menu* beginPullDownMenu(const char* title, Menu* m=0);
00022 
00023     void restorePullDownMenu(GUI::Menu* m);
00024     GUI::Toggle* addToggleToMenu(const char* title, bool state, Command* set, Command* unset);
00025     void endPullDownMenu();
00026     virtual void menuSeparator();
00027     // hand mmenus
00028 
00029         gui::SceneControl* graphicsWindow(float size, int inital_view );
00030         std::ostream* textWindow(const char* name);
00031     // create, return handle to associated window
00032 
00033     void setTitle(const char* newtitle);
00034 
00035     void processMessages();
00036     // call to process waiting messages
00037 
00038     void run(int pause_interval);
00039     // start the window system
00040 
00041     void quit();
00042 
00043     char * askForFileName(const char* a, const char* b, const char* c);
00044     char* askUser(const char* promptString, const char* defaultString);
00045     void inform(const char* msg);
00046 
00047     const char * nameOf()const{return "MotifGUi";}
00048 
00049 
00050 private:
00051 
00052     SceneControl* m_scene;
00053     class Toggle;
00054 
00055 };
00056 #endif
00057 

Generated at Wed Nov 21 12:20:55 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000