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
FWGUISubviewArea::dockIcon
static const TGPicture * dockIcon()
Definition: FWGUISubviewArea.cc:225
FWGUISubviewArea::m_frame
TEveCompositeFrame * m_frame
Definition: FWGUISubviewArea.h:82
FWGUISubviewArea::goingToBeDestroyed_
sigc::signal< void, FWGUISubviewArea * > goingToBeDestroyed_
Definition: FWGUISubviewArea.h:65
FWGUISubviewArea::getToolBarFromWindow
static FWGUISubviewArea * getToolBarFromWindow(TEveWindow *)
Definition: FWGUISubviewArea.cc:275
FWGUISubviewArea::FWGUISubviewArea
FWGUISubviewArea(TEveCompositeFrame *ef, TGCompositeFrame *parent, Int_t height)
Definition: FWGUISubviewArea.cc:53
FWGUISubviewArea::m_closeButton
TGPictureButton * m_closeButton
Definition: FWGUISubviewArea.h:87
FWGUISubviewArea::infoDisabledIcon
static const TGPicture * infoDisabledIcon()
Definition: FWGUISubviewArea.cc:261
FWGUISubviewArea::operator=
const FWGUISubviewArea & operator=(const FWGUISubviewArea &)
FWGUISubviewArea::destroy
void destroy()
Definition: FWGUISubviewArea.cc:135
FWGUISubviewArea::swap_
sigc::signal< void, FWGUISubviewArea * > swap_
Definition: FWGUISubviewArea.h:64
FWGUISubviewArea::ClassDefOverride
ClassDefOverride(FWGUISubviewArea, 0)
FWGUISubviewArea::dock
void dock()
Definition: FWGUISubviewArea.cc:148
FWGUISubviewArea::m_undockButton
TGPictureButton * m_undockButton
Definition: FWGUISubviewArea.h:85
FWGUISubviewArea::closeIcon
static const TGPicture * closeIcon()
Definition: FWGUISubviewArea.cc:189
FWGUISubviewArea::swapIcon
static const TGPicture * swapIcon()
Definition: FWGUISubviewArea.cc:165
FWGUISubviewArea
Definition: FWGUISubviewArea.h:33
FWGUISubviewArea::getEveWindow
TEveWindow * getEveWindow()
Definition: FWGUISubviewArea.cc:160
FWGUISubviewArea::unselect
void unselect()
Definition: FWGUISubviewArea.cc:129
FWGUISubviewArea::undock
void undock()
Definition: FWGUISubviewArea.cc:137
FWGUISubviewArea::unselected_
sigc::signal< void, FWGUISubviewArea * > unselected_
Definition: FWGUISubviewArea.h:67
FWGUISubviewArea::selected_
sigc::signal< void, FWGUISubviewArea * > selected_
Definition: FWGUISubviewArea.h:66
FWGUISubviewArea::m_infoButton
TGPictureButton * m_infoButton
Definition: FWGUISubviewArea.h:88
FWGUISubviewArea::swap
void swap()
Definition: FWGUISubviewArea.cc:133
FWGUISubviewArea::m_dockButton
TGPictureButton * m_dockButton
Definition: FWGUISubviewArea.h:86
FWGUISubviewArea::undockIcon
static const TGPicture * undockIcon()
Definition: FWGUISubviewArea.cc:213
FWGUISubviewArea::closeDisabledIcon
static const TGPicture * closeDisabledIcon()
Definition: FWGUISubviewArea.cc:201
FWGUISubviewArea::setInfoButton
void setInfoButton(bool downp)
Definition: FWGUISubviewArea.cc:273
FWGUISubviewArea::isSelected
bool isSelected() const
Definition: FWGUISubviewArea.cc:157
FWGUISubviewArea::~FWGUISubviewArea
~FWGUISubviewArea() override
Definition: FWGUISubviewArea.cc:111
FWGUISubviewArea::setSwapIcon
void setSwapIcon(bool)
Definition: FWGUISubviewArea.cc:131
FWGUISubviewArea::swapDisabledIcon
static const TGPicture * swapDisabledIcon()
Definition: FWGUISubviewArea.cc:177
FWGUISubviewArea::undockDisabledIcon
static const TGPicture * undockDisabledIcon()
Definition: FWGUISubviewArea.cc:237
FWGUISubviewArea::m_swapButton
TGPictureButton * m_swapButton
Definition: FWGUISubviewArea.h:84
class-composition.parent
parent
Definition: class-composition.py:88
FWGUISubviewArea::infoIcon
static const TGPicture * infoIcon()
Definition: FWGUISubviewArea.cc:249
FWGUISubviewArea::selectButtonToggle
void selectButtonToggle()
Definition: FWGUISubviewArea.cc:122