CmsShowEDI

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 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136
#ifndef Fireworks_Core_CmsShowEDI_h
#define Fireworks_Core_CmsShowEDI_h
// -*- C++ -*-
//
// Package:     Core
// Class  :     CmsShowEDI
//
/**\class CmsShowEDI CmsShowEDI.h Fireworks/Core/interface/CmsShowEDI.h

   Description: <one line class summary>

   Usage:
    <usage>

 */
//
// Original Author:  Joshua Berger
//         Created:  Mon Jun 23 15:48:42 EDT 2008
//

// system include files
#ifndef __CINT__
#include <sigc++/connection.h>
#endif
#include "GuiTypes.h"
#include "TGFrame.h"

// user include files

//#include "Fireworks/Core/interface/FWModelChangeSignal.h"

#include "Fireworks/Core/interface/FWDataCategories.h"

// forward declarations
class FWSelectionManager;
class FWColorManager;
class FWEventItem;
class TGLabel;
class FWColorSelect;
class TGHSlider;
class TGCheckButton;
class TGNumberEntry;
class TGTextEntry;
class TGTextButton;
class TGTextView;
class TGComboBoxPopup;
class TGListBox;
class FWGUIValidatingTextEntry;
class FWExpressionValidator;
class TGTab;

class CmsShowEDI : public TGTransientFrame {
public:
  CmsShowEDI(const TGWindow* p = nullptr,
             UInt_t w = 1,
             UInt_t h = 1,
             FWSelectionManager* selMgr = nullptr,
             FWColorManager* colorMgr = nullptr);
  ~CmsShowEDI() override;

  void CloseWindow() override { UnmapWindow(); }

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

  // ---------- static member functions --------------------

  // ---------- member functions --------------------------
  void fillEDIFrame();
  void removeItem();
  //      void emptyEDIFrame();
  void updateDisplay();
  void updateFilter();
  void colorSetChanged();
  void disconnectAll();
  void changeItemColor(Color_t color);
  void changeSelectionColor(Color_t color);
  void toggleItemVisible(Bool_t on = kTRUE);
  void changeItemOpacity(Int_t opacity);
  void runFilter();
  void runSelection();
  void selectAll();
  void deselectAll();

  void updateLayerControls();
  void moveToBack();
  void moveToFront();
  void moveToLayer(Long_t);
  void show(FWDataCategories);

  ClassDefOverride(CmsShowEDI, 0);

private:
  CmsShowEDI(const CmsShowEDI&);  // stop default

  const CmsShowEDI& operator=(const CmsShowEDI&);  // stop default

  void clearPBFrame();
  //   void addBut();
  // ---------- member data --------------------------------
  FWSelectionManager* m_selectionManager;
  TGTab* m_tabs;
  TGLabel* m_objectLabel;
  TGTextButton* m_removeButton;
  TGTextButton* m_frontButton;
  TGTextButton* m_backButton;
  TGNumberEntry* m_layerEntry;
  FWColorSelect* m_colorSelectWidget;
  TGHSlider* m_opacitySlider;
  TGCheckButton* m_isVisibleButton;
  FWGUIValidatingTextEntry* m_filterExpressionEntry;
  FWGUIValidatingTextEntry* m_selectExpressionEntry;
  TGTextButton* m_filterButton;
  TGTextButton* m_selectButton;
  TGTextButton* m_selectAllButton;
  TGTextButton* m_deselectAllButton;
  FWColorSelect* m_cw;
  TGTextEntry* m_nameEntry;
  TGTextEntry* m_typeEntry;
  TGTextEntry* m_moduleEntry;
  TGTextEntry* m_instanceEntry;
  TGTextEntry* m_processEntry;
  FWEventItem* m_item;
#ifndef __CINT__
  sigc::connection m_displayChangedConn;
  sigc::connection m_modelChangedConn;
  sigc::connection m_destroyedConn;
#endif
  TGTextView* m_filterError;
  TGTextView* m_selectError;
  FWExpressionValidator* m_validator;
  FWColorManager* m_colorManager;

  TGCompositeFrame* m_settersFrame;
};

#endif