CMS 3D CMS Logo

FWGUISubviewArea.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWGUISubviewArea_h
2 #define Fireworks_Core_FWGUISubviewArea_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FWGUISubviewArea
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Fri Feb 15 14:13:29 EST 2008
19 //
20 
21 #include "TGFrame.h"
22 #ifndef __CINT__
23 #include <sigc++/signal.h>
24 #endif
25 #include <string>
26 
27 // forward declarations
28 class TGPictureButton;
29 class TGLabel;
30 class TEveCompositeFrame;
31 class TEveWindow;
32 
33 class FWGUISubviewArea : public TGHorizontalFrame {
34 public:
35  FWGUISubviewArea(TEveCompositeFrame* ef, TGCompositeFrame* parent, Int_t height);
36  ~FWGUISubviewArea() override;
37 
38  // ---------- const member functions ---------------------
39 
40  bool isSelected() const;
41 
42  // ---------- static member functions --------------------
43  static const TGPicture* swapIcon();
44  static const TGPicture* swapDisabledIcon();
45  static const TGPicture* undockIcon();
46  static const TGPicture* dockIcon();
47  static const TGPicture* undockDisabledIcon();
48  static const TGPicture* closeIcon();
49  static const TGPicture* closeDisabledIcon();
50  static const TGPicture* infoIcon();
51  static const TGPicture* infoDisabledIcon();
52 
53  // ---------- member functions ---------------------------
54  void unselect();
55  void setSwapIcon(bool);
56  void swap();
57  void destroy();
58  void undock();
59  void dock();
60 
61  void selectButtonToggle();
62 
63 #ifndef __CINT__
64  sigc::signal<void(FWGUISubviewArea*)> swap_;
65  sigc::signal<void(FWGUISubviewArea*)> goingToBeDestroyed_;
66  sigc::signal<void(FWGUISubviewArea*)> selected_;
67  sigc::signal<void(FWGUISubviewArea*)> unselected_;
68 #endif
69  void setInfoButton(bool downp);
70 
71  TEveWindow* getEveWindow();
72 
73  static FWGUISubviewArea* getToolBarFromWindow(TEveWindow*);
74 
76 
77 private:
78  FWGUISubviewArea(const FWGUISubviewArea&); // stop default
79  const FWGUISubviewArea& operator=(const FWGUISubviewArea&); // stop default
80 
81  // ---------- member data --------------------------------
82  TEveCompositeFrame* m_frame;
83 
84  TGPictureButton* m_swapButton;
85  TGPictureButton* m_undockButton;
86  TGPictureButton* m_dockButton;
87  TGPictureButton* m_closeButton;
88  TGPictureButton* m_infoButton;
89 };
90 
91 #endif
TGPictureButton * m_undockButton
TEveWindow * getEveWindow()
TGPictureButton * m_dockButton
static const TGPicture * swapIcon()
static const TGPicture * undockIcon()
static const TGPicture * swapDisabledIcon()
static const TGPicture * infoIcon()
void setInfoButton(bool downp)
static const TGPicture * closeDisabledIcon()
sigc::signal< void(FWGUISubviewArea *)> swap_
static const TGPicture * undockDisabledIcon()
bool isSelected() const
~FWGUISubviewArea() override
FWGUISubviewArea(TEveCompositeFrame *ef, TGCompositeFrame *parent, Int_t height)
static FWGUISubviewArea * getToolBarFromWindow(TEveWindow *)
static const TGPicture * infoDisabledIcon()
TGPictureButton * m_swapButton
TGPictureButton * m_closeButton
const FWGUISubviewArea & operator=(const FWGUISubviewArea &)
ClassDefOverride(FWGUISubviewArea, 0)
TEveCompositeFrame * m_frame
static const TGPicture * dockIcon()
sigc::signal< void(FWGUISubviewArea *)> unselected_
sigc::signal< void(FWGUISubviewArea *)> selected_
static const TGPicture * closeIcon()
TGPictureButton * m_infoButton
sigc::signal< void(FWGUISubviewArea *)> goingToBeDestroyed_