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 // $Id: FWGUISubviewArea.h,v 1.27 2010/11/11 19:45:49 amraktad Exp $
20 //
21 
22 #include "TGFrame.h"
23 #ifndef __CINT__
24 #include <sigc++/signal.h>
25 #endif
26 #include <string>
27 
28 // forward declarations
29 class TGPictureButton;
30 class TGLabel;
31 class TEveCompositeFrame;
32 class TEveWindow;
33 
34 class FWGUISubviewArea : public TGHorizontalFrame
35 {
36 public:
37  FWGUISubviewArea(TEveCompositeFrame* ef, TGCompositeFrame* parent, Int_t height);
38  virtual ~FWGUISubviewArea();
39 
40  // ---------- const member functions ---------------------
41 
42  bool isSelected() const;
43 
44  // ---------- static member functions --------------------
45  static const TGPicture * swapIcon();
46  static const TGPicture * swapDisabledIcon();
47  static const TGPicture * undockIcon();
48  static const TGPicture * dockIcon();
49  static const TGPicture * undockDisabledIcon();
50  static const TGPicture * closeIcon();
51  static const TGPicture * closeDisabledIcon();
52  static const TGPicture * infoIcon();
53  static const TGPicture * infoDisabledIcon();
54 
55  // ---------- member functions ---------------------------
56  void unselect();
57  void setSwapIcon(bool);
58  void swap();
59  void destroy();
60  void undock();
61  void dock();
62 
63  void selectButtonToggle();
64 
65 #ifndef __CINT__
66  sigc::signal<void, FWGUISubviewArea*> swap_;
67  sigc::signal<void, FWGUISubviewArea*> goingToBeDestroyed_;
68  sigc::signal<void, FWGUISubviewArea*> selected_;
69  sigc::signal<void, FWGUISubviewArea*> unselected_;
70 #endif
71  void setInfoButton(bool downp);
72 
73  TEveWindow* getEveWindow();
74 
75  static FWGUISubviewArea* getToolBarFromWindow(TEveWindow*);
76 
78 
79 private:
80  FWGUISubviewArea(const FWGUISubviewArea&); // stop default
81  const FWGUISubviewArea& operator=(const FWGUISubviewArea&); // stop default
82 
83  // ---------- member data --------------------------------
84  TEveCompositeFrame* m_frame;
85 
86  TGPictureButton* m_swapButton;
87  TGPictureButton* m_undockButton;
88  TGPictureButton* m_dockButton;
89  TGPictureButton* m_closeButton;
90  TGPictureButton* m_infoButton;
91 };
92 
93 #endif
TGPictureButton * m_undockButton
TEveWindow * getEveWindow()
TGPictureButton * m_dockButton
static const TGPicture * swapIcon()
static const TGPicture * undockIcon()
sigc::signal< void, FWGUISubviewArea * > unselected_
list parent
Definition: dbtoconf.py:74
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