FWGUISubviewArea

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
#ifndef Fireworks_Core_FWGUISubviewArea_h
#define Fireworks_Core_FWGUISubviewArea_h
// -*- C++ -*-
//
// Package:     Core
// Class  :     FWGUISubviewArea
//
/**\class FWGUISubviewArea FWGUISubviewArea.h Fireworks/Core/interface/FWGUISubviewArea.h

   Description: Manages the GUI area where a sub Subview is displayed

   Usage:
    <usage>

 */
//
// Original Author:  Chris Jones
//         Created:  Fri Feb 15 14:13:29 EST 2008
//

#include "TGFrame.h"
#ifndef __CINT__
#include <sigc++/signal.h>
#endif
#include <string>

// forward declarations
class TGPictureButton;
class TGLabel;
class TEveCompositeFrame;
class TEveWindow;

class FWGUISubviewArea : public TGHorizontalFrame {
public:
  FWGUISubviewArea(TEveCompositeFrame* ef, TGCompositeFrame* parent, Int_t height);
  ~FWGUISubviewArea() override;

  // ---------- const member functions ---------------------

  bool isSelected() const;

  // ---------- static member functions --------------------
  static const TGPicture* swapIcon();
  static const TGPicture* swapDisabledIcon();
  static const TGPicture* undockIcon();
  static const TGPicture* dockIcon();
  static const TGPicture* undockDisabledIcon();
  static const TGPicture* closeIcon();
  static const TGPicture* closeDisabledIcon();
  static const TGPicture* infoIcon();
  static const TGPicture* infoDisabledIcon();

  // ---------- member functions ---------------------------
  void unselect();
  void setSwapIcon(bool);
  void swap();
  void destroy();
  void undock();
  void dock();

  void selectButtonToggle();

#ifndef __CINT__
  sigc::signal<void(FWGUISubviewArea*)> swap_;
  sigc::signal<void(FWGUISubviewArea*)> goingToBeDestroyed_;
  sigc::signal<void(FWGUISubviewArea*)> selected_;
  sigc::signal<void(FWGUISubviewArea*)> unselected_;
#endif
  void setInfoButton(bool downp);

  TEveWindow* getEveWindow();

  static FWGUISubviewArea* getToolBarFromWindow(TEveWindow*);

  ClassDefOverride(FWGUISubviewArea, 0);

private:
  FWGUISubviewArea(const FWGUISubviewArea&);                   // stop default
  const FWGUISubviewArea& operator=(const FWGUISubviewArea&);  // stop default

  // ---------- member data --------------------------------
  TEveCompositeFrame* m_frame;

  TGPictureButton* m_swapButton;
  TGPictureButton* m_undockButton;
  TGPictureButton* m_dockButton;
  TGPictureButton* m_closeButton;
  TGPictureButton* m_infoButton;
};

#endif