Analysis  version 7.0 - august 2014
GEVContourEditor.hh
Go to the documentation of this file.
1 //======================================================================
2 /*! \file GEVContourEditor.hh
3  *
4  * Déclaration de la classe GEVContourEditor, qui est
5  * une interface graphique pour gérer les contours.
6  */
7 //======================================================================
8 
9 #ifndef GEV_CONTOUR_EDITOR_HH
10 #define GEV_CONTOUR_EDITOR_HH
11 
12 #include "GEVPageManager.hh"
13 
14 // includes ROOT
15 #include <TGFrame.h>
16 #include <TGButton.h>
17 #include <TGTextEntry.h>
18 
19 #include "RGItemListBox.hh"
20 
21 //======================================================================
22 /*! \class GEVContourEditor
23  *
24  * Interface graphique permettant de supprimer ou sauvegarder
25  * des contour.
26  */
27 class GEVContourEditor : public TGTransientFrame
28 {
29 //----------------------------------------------------------------------
30  /*! \object_doc */
32 //----------------------------------------------------------------------
33 
34  protected:
35  static UInt_t last_width; ///< Largeur au dernier appel
36  static UInt_t last_height; ///< hauteur au dernier appel
37 
38  GEVPageManager * page_mgr; ///< Pointeur sur le gestionnaire de pages
39  EventManager * event_mgr; ///< Pointeur sur le gestionnaire d'événements
40  RContourList * cont_list; ///< Pointeur sur la liste de contours
41 
42 
43 #ifndef __MAKECINT__
44 #endif
45 
46  // widgets de l'interface
47  RGItemListBox * w_cont_list; ///< Liste de sélection des contours
48  TGButton * w_button_delete; ///< Bouton de suppression de contours
49  TGButton * w_button_rename; ///< Bouton de changement de nom
50  TGButton * w_button_info; ///< Bouton d'information des contours
51 
52  TGTextButton * w_button_load; ///< Bouton de lecture dans un fichier
53  TGTextButton * w_button_save_all; ///< Bouton d'écriture de tous les spectres dans un fichier
54  TGTextButton * w_button_save_select; ///< Bouton d'écriture des spectres sélectionnés dans un fichier
55  TGTextButton * w_button_done; ///< Bouton de fin de traitement
56 
57  static string file_name; ///< Nom du dernier fichier
58 
59  public:
60 //----------------------------------------------------------------------
61 // Constructeur, destructeur, affectation
62  GEVContourEditor ( GEVPageManager * mgr, const TGWindow *mw = NULL );
63  virtual ~GEVContourEditor ( );
64 
65  protected:
66  GEVContourEditor ( const GEVContourEditor & original );
67  GEVContourEditor & operator = ( const GEVContourEditor & original );
68 
69 //----------------------------------------------------------------------
70  public:
71 
72  virtual void Construct ( );
73  virtual void Start ( );
74 
75  protected:
76  // mise à jour de la liste à partir des pages
77  virtual void UpdateListBox ( );
78 
79 //----------------------------------------------------------------------
80 // Fonctions associées
81 
82  public:
83  virtual void Quit ( );
84 
85 //----------------------------------------------------------------------
86 // Slots
87  virtual void SelectionChanged ( );
88  virtual void SelectionMoved ( );
89 
90  // slots des boutons
91  virtual void Delete ( );
92  virtual void Rename ( );
93  virtual void Info ( );
94 
95  // boutons principaux
96  virtual void Load ( );
97  virtual void SaveAll ( );
98  virtual void SaveSelected ( );
99  virtual void Done ( );
100 
101 //----------------------------------------------------------------------
102  public:
103  /*! Définition à usage de ROOT... */
105 };
106 
107 
108 //======================================================================
109 #endif
static UInt_t last_height
hauteur au dernier appel
Definition: GEVContourEditor.hh:36
virtual void SaveSelected()
Definition: GEVContourEditor.cpp:653
static UInt_t last_width
Largeur au dernier appel.
Definition: GEVContourEditor.hh:35
virtual void Construct()
Definition: GEVContourEditor.cpp:82
RContourList * cont_list
Pointeur sur la liste de contours.
Definition: GEVContourEditor.hh:40
GEVContourEditor(GEVPageManager *mgr, const TGWindow *mw=NULL)
Definition: GEVContourEditor.cpp:36
RGItemListBox * w_cont_list
Liste de sélection des contours.
Definition: GEVContourEditor.hh:47
virtual void Rename()
Definition: GEVContourEditor.cpp:468
GEVContourEditor & operator=(const GEVContourEditor &original)
Definition: GEVContourEditor.cpp:64
TGTextButton * w_button_load
Bouton de lecture dans un fichier.
Definition: GEVContourEditor.hh:52
virtual void Quit()
Definition: GEVContourEditor.cpp:264
virtual void UpdateListBox()
Definition: GEVContourEditor.cpp:241
virtual void Start()
Definition: GEVContourEditor.cpp:205
static string file_name
Nom du dernier fichier.
Definition: GEVContourEditor.hh:57
TGButton * w_button_info
Bouton d&#39;information des contours.
Definition: GEVContourEditor.hh:50
Definition: GEVPageManager.hh:96
TGButton * w_button_rename
Bouton de changement de nom.
Definition: GEVContourEditor.hh:49
virtual ~GEVContourEditor()
Definition: GEVContourEditor.cpp:72
virtual void Load()
Definition: GEVContourEditor.cpp:539
virtual void SaveAll()
Definition: GEVContourEditor.cpp:602
GEVPageManager * page_mgr
Pointeur sur le gestionnaire de pages.
Definition: GEVContourEditor.hh:38
GObject(GEVContourEditor)
Definition: GEVContourEditor.hh:27
EventManager * event_mgr
Pointeur sur le gestionnaire d&#39;événements.
Definition: GEVContourEditor.hh:39
virtual void Info()
Definition: GEVContourEditor.cpp:495
TGTextButton * w_button_save_all
Bouton d&#39;écriture de tous les spectres dans un fichier.
Definition: GEVContourEditor.hh:53
TGTextButton * w_button_save_select
Bouton d&#39;écriture des spectres sélectionnés dans un fichier.
Definition: GEVContourEditor.hh:54
ClassDef(GEVContourEditor, 0)
virtual void SelectionChanged()
Definition: GEVContourEditor.cpp:282
virtual void Delete()
Definition: GEVContourEditor.cpp:354
TGButton * w_button_delete
Bouton de suppression de contours.
Definition: GEVContourEditor.hh:48
virtual void Done()
Definition: GEVContourEditor.cpp:729
TGTextButton * w_button_done
Bouton de fin de traitement.
Definition: GEVContourEditor.hh:55
Definition: EventManager.hh:59
virtual void SelectionMoved()
Definition: GEVContourEditor.cpp:314