]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONAttPainterSelectorFrame.h
First big commit of the mchview program and its accompanying library,
[u/mrichter/AliRoot.git] / MUON / AliMUONAttPainterSelectorFrame.h
diff --git a/MUON/AliMUONAttPainterSelectorFrame.h b/MUON/AliMUONAttPainterSelectorFrame.h
new file mode 100644 (file)
index 0000000..124e48a
--- /dev/null
@@ -0,0 +1,62 @@
+#ifndef ALIMUONATTPAINTERSELECTORFRAME_H
+#define ALIMUONATTPAINTERSELECTORFRAME_H
+
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+* See cxx source for full Copyright notice                               */
+
+// $Id$
+
+/// \ingroup graphics
+/// \class AliMUONAttPainterSelectorFrame
+/// \brief Widget to select the painter(s) view type
+/// 
+// Author Laurent Aphecetche, Subatech
+
+#ifndef ROOT_TGFrame
+#  include "TGFrame.h"
+#endif
+#ifndef ROOT_RQ_OBJECT
+#   include <RQ_OBJECT.h>
+#endif
+#ifndef ALIMUONATTPAINTER_H
+#  include "AliMUONAttPainter.h"
+#endif
+
+class TGButtonGroup;
+
+class AliMUONAttPainterSelectorFrame : public TGHorizontalFrame
+{
+  RQ_OBJECT("AliMUONAttPainterSelectorFrame")
+  
+public:
+  AliMUONAttPainterSelectorFrame(TGWindow* p=0x0, UInt_t w=1, UInt_t h=1);
+  virtual ~AliMUONAttPainterSelectorFrame();
+  
+  void Update(const AliMUONAttPainter& att);
+  
+  void Clicked(AliMUONAttPainter* newValues); // *SIGNAL*
+  
+  void CathodeClicked(Int_t buttonId);
+  
+  void PlaneClicked(Int_t buttonId);
+  
+  void ViewClicked(Int_t buttonId);
+  
+private:
+  /// Not implemented
+  AliMUONAttPainterSelectorFrame(const AliMUONAttPainterSelectorFrame& rhs);
+  /// Not implemented
+  AliMUONAttPainterSelectorFrame& operator=(const AliMUONAttPainterSelectorFrame& rhs);
+  
+private:
+  
+  TGButtonGroup* fCathode; ///< cathode selection buttons
+  TGButtonGroup* fPlane;   ///< plane selection buttons
+  TGButtonGroup* fViewPoint; ///< viewpoint selection buttons
+  
+  AliMUONAttPainter fAttributes; ///< attributes
+  
+  ClassDef(AliMUONAttPainterSelectorFrame,1) // Widget to select painter view type
+};
+
+#endif