CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 {
35 public:
36  FWGUISubviewArea(TEveCompositeFrame* ef, TGCompositeFrame* parent, Int_t height);
37  virtual ~FWGUISubviewArea();
38 
39  // ---------- const member functions ---------------------
40 
41  bool isSelected() const;
42 
43  // ---------- static member functions --------------------
44  static const TGPicture * swapIcon();
45  static const TGPicture * swapDisabledIcon();
46  static const TGPicture * undockIcon();
47  static const TGPicture * dockIcon();
48  static const TGPicture * undockDisabledIcon();
49  static const TGPicture * closeIcon();
50  static const TGPicture * closeDisabledIcon();
51  static const TGPicture * infoIcon();
52  static const TGPicture * infoDisabledIcon();
53 
54  // ---------- member functions ---------------------------
55  void unselect();
56  void setSwapIcon(bool);
57  void swap();
58  void destroy();
59  void undock();
60  void dock();
61 
62  void selectButtonToggle();
63 
64 #ifndef __CINT__
65  sigc::signal<void, FWGUISubviewArea*> swap_;
66  sigc::signal<void, FWGUISubviewArea*> goingToBeDestroyed_;
67  sigc::signal<void, FWGUISubviewArea*> selected_;
68  sigc::signal<void, FWGUISubviewArea*> unselected_;
69 #endif
70  void setInfoButton(bool downp);
71 
72  TEveWindow* getEveWindow();
73 
74  static FWGUISubviewArea* getToolBarFromWindow(TEveWindow*);
75 
77 
78 private:
79  FWGUISubviewArea(const FWGUISubviewArea&); // stop default
80  const FWGUISubviewArea& operator=(const FWGUISubviewArea&); // stop default
81 
82  // ---------- member data --------------------------------
83  TEveCompositeFrame* m_frame;
84 
85  TGPictureButton* m_swapButton;
86  TGPictureButton* m_undockButton;
87  TGPictureButton* m_dockButton;
88  TGPictureButton* m_closeButton;
89  TGPictureButton* m_infoButton;
90 };
91 
92 #endif
TGPictureButton * m_undockButton
TEveWindow * getEveWindow()
TGPictureButton * m_dockButton
static const TGPicture * swapIcon()
static const TGPicture * undockIcon()
sigc::signal< void, FWGUISubviewArea * > unselected_
parent
Definition: confdb.py:1052
static const TGPicture * swapDisabledIcon()
static const TGPicture * infoIcon()
void setInfoButton(bool downp)
static const TGPicture * closeDisabledIcon()
static const TGPicture * undockDisabledIcon()
virtual ~FWGUISubviewArea()
FWGUISubviewArea(TEveCompositeFrame *ef, TGCompositeFrame *parent, Int_t height)
sigc::signal< void, FWGUISubviewArea * > goingToBeDestroyed_
static FWGUISubviewArea * getToolBarFromWindow(TEveWindow *)
ClassDef(FWGUISubviewArea, 0)
static const TGPicture * infoDisabledIcon()
TGPictureButton * m_swapButton
TGPictureButton * m_closeButton
const FWGUISubviewArea & operator=(const FWGUISubviewArea &)
TEveCompositeFrame * m_frame
static const TGPicture * dockIcon()
bool isSelected() const
sigc::signal< void, FWGUISubviewArea * > swap_
static const TGPicture * closeIcon()
sigc::signal< void, FWGUISubviewArea * > selected_
TGPictureButton * m_infoButton