ListWindow.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file ListWindow.h
3 /// \brief A window, dressed with menus and buttons, that displays
4 /// dector information
5 ///
6 /// \version $Id: ListWindow.h,v 1.1.1.1 2010-12-22 16:18:52 p-nusoftart Exp $
7 /// \author jpaley@anl.gov
8 ////////////////////////////////////////////////////////////////////////
9 #ifndef EVDB_LISTWINDOW_H
10 #define EVDB_LISTWINDOW_H
11 #include <vector>
12 #include <string>
13 #include "TQObject.h"
14 #include "RQ_OBJECT.h"
15 class TGMainFrame;
16 namespace evdb {
17  class MenuBar;
18  class ButtonBar;
19  class StatusBar;
20  class ObjListCanvas;
21  typedef ObjListCanvas* (*ObjListCanvasCreator_t)(TGMainFrame* mf);
22 }
23 
24 //......................................................................
25 
26 namespace evdb {
27  /// An event display window
28  class ListWindow {
29  RQ_OBJECT("evdb::ListWindow")
30 
31  public:
32  static void Register(const char* name,
33  const char* description,
34  unsigned int h,
35  unsigned int w,
36  ObjListCanvasCreator_t creator);
37  static const std::vector<std::string>& Names();
38  static int OpenWindow(int type=0);
39 
40  ListWindow(int window=0);
41  virtual ~ListWindow();
42 
43  virtual void Draw(const char* opt="");
44  virtual void CloseWindow();
45  void Raise();
46 
47  private:
48  TGMainFrame* fMain; ///< Main window
49  MenuBar* fMenuBar; ///< Top menu bar
50  ButtonBar* fButtonBar; ///< Top button bar
51  StatusBar* fStatusBar; ///< Status bar running along the bottom
52  ObjListCanvas* fDisplay; ///< Display of detector event information
53  };
54 }
55 #endif
56 ////////////////////////////////////////////////////////////////////////
static QCString name
Definition: declinfo.cpp:673
MenuBar * fMenuBar
Top menu bar.
Definition: ListWindow.h:49
ButtonBar * fButtonBar
Top button bar.
Definition: ListWindow.h:50
A status bar on the bottom of the display.
Definition: StatusBar.h:15
ObjListCanvas *(* ObjListCanvasCreator_t)(TGMainFrame *mf)
Definition: ListWindow.h:21
virtual void CloseWindow()
Definition: ListWindow.cxx:139
opt
Definition: train.py:196
Manage all things related to colors for the event display.
virtual void Draw(const char *opt="")
Definition: ListWindow.cxx:135
static const std::vector< std::string > & Names()
Definition: ListWindow.cxx:46
static void Register(const char *name, const char *description, unsigned int h, unsigned int w, ObjListCanvasCreator_t creator)
Definition: ListWindow.cxx:53
ListWindow(int window=0)
Definition: ListWindow.cxx:92
TGMainFrame * fMain
Main window.
Definition: ListWindow.h:48
An event display window.
Definition: ListWindow.h:28
virtual ~ListWindow()
Definition: ListWindow.cxx:143
static int OpenWindow(int type=0)
Definition: ListWindow.cxx:73
The pull down menu bar.
Definition: MenuBar.h:25
StatusBar * fStatusBar
Status bar running along the bottom.
Definition: ListWindow.h:51
h
training ###############################
Definition: train_cnn.py:186
ObjListCanvas * fDisplay
Display of detector event information.
Definition: ListWindow.h:52