Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:11:30

0001 #ifndef Fireworks_Core_CmsShowEDI_h
0002 #define Fireworks_Core_CmsShowEDI_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     Core
0006 // Class  :     CmsShowEDI
0007 //
0008 /**\class CmsShowEDI CmsShowEDI.h Fireworks/Core/interface/CmsShowEDI.h
0009 
0010    Description: <one line class summary>
0011 
0012    Usage:
0013     <usage>
0014 
0015  */
0016 //
0017 // Original Author:  Joshua Berger
0018 //         Created:  Mon Jun 23 15:48:42 EDT 2008
0019 //
0020 
0021 // system include files
0022 #ifndef __CINT__
0023 #include <sigc++/connection.h>
0024 #endif
0025 #include "GuiTypes.h"
0026 #include "TGFrame.h"
0027 
0028 // user include files
0029 
0030 //#include "Fireworks/Core/interface/FWModelChangeSignal.h"
0031 
0032 #include "Fireworks/Core/interface/FWDataCategories.h"
0033 
0034 // forward declarations
0035 class FWSelectionManager;
0036 class FWColorManager;
0037 class FWEventItem;
0038 class TGLabel;
0039 class FWColorSelect;
0040 class TGHSlider;
0041 class TGCheckButton;
0042 class TGNumberEntry;
0043 class TGTextEntry;
0044 class TGTextButton;
0045 class TGTextView;
0046 class TGComboBoxPopup;
0047 class TGListBox;
0048 class FWGUIValidatingTextEntry;
0049 class FWExpressionValidator;
0050 class TGTab;
0051 
0052 class CmsShowEDI : public TGTransientFrame {
0053 public:
0054   CmsShowEDI(const TGWindow* p = nullptr,
0055              UInt_t w = 1,
0056              UInt_t h = 1,
0057              FWSelectionManager* selMgr = nullptr,
0058              FWColorManager* colorMgr = nullptr);
0059   ~CmsShowEDI() override;
0060 
0061   void CloseWindow() override { UnmapWindow(); }
0062 
0063   // ---------- const member functions ---------------------
0064 
0065   // ---------- static member functions --------------------
0066 
0067   // ---------- member functions --------------------------
0068   void fillEDIFrame();
0069   void removeItem();
0070   //      void emptyEDIFrame();
0071   void updateDisplay();
0072   void updateFilter();
0073   void colorSetChanged();
0074   void disconnectAll();
0075   void changeItemColor(Color_t color);
0076   void changeSelectionColor(Color_t color);
0077   void toggleItemVisible(Bool_t on = kTRUE);
0078   void changeItemOpacity(Int_t opacity);
0079   void runFilter();
0080   void runSelection();
0081   void selectAll();
0082   void deselectAll();
0083 
0084   void updateLayerControls();
0085   void moveToBack();
0086   void moveToFront();
0087   void moveToLayer(Long_t);
0088   void show(FWDataCategories);
0089 
0090   ClassDefOverride(CmsShowEDI, 0);
0091 
0092 private:
0093   CmsShowEDI(const CmsShowEDI&);  // stop default
0094 
0095   const CmsShowEDI& operator=(const CmsShowEDI&);  // stop default
0096 
0097   void clearPBFrame();
0098   //   void addBut();
0099   // ---------- member data --------------------------------
0100   FWSelectionManager* m_selectionManager;
0101   TGTab* m_tabs;
0102   TGLabel* m_objectLabel;
0103   TGTextButton* m_removeButton;
0104   TGTextButton* m_frontButton;
0105   TGTextButton* m_backButton;
0106   TGNumberEntry* m_layerEntry;
0107   FWColorSelect* m_colorSelectWidget;
0108   TGHSlider* m_opacitySlider;
0109   TGCheckButton* m_isVisibleButton;
0110   FWGUIValidatingTextEntry* m_filterExpressionEntry;
0111   FWGUIValidatingTextEntry* m_selectExpressionEntry;
0112   TGTextButton* m_filterButton;
0113   TGTextButton* m_selectButton;
0114   TGTextButton* m_selectAllButton;
0115   TGTextButton* m_deselectAllButton;
0116   FWColorSelect* m_cw;
0117   TGTextEntry* m_nameEntry;
0118   TGTextEntry* m_typeEntry;
0119   TGTextEntry* m_moduleEntry;
0120   TGTextEntry* m_instanceEntry;
0121   TGTextEntry* m_processEntry;
0122   FWEventItem* m_item;
0123 #ifndef __CINT__
0124   sigc::connection m_displayChangedConn;
0125   sigc::connection m_modelChangedConn;
0126   sigc::connection m_destroyedConn;
0127 #endif
0128   TGTextView* m_filterError;
0129   TGTextView* m_selectError;
0130   FWExpressionValidator* m_validator;
0131   FWColorManager* m_colorManager;
0132 
0133   TGCompositeFrame* m_settersFrame;
0134 };
0135 
0136 #endif