FWTriggerTableViewManager

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
// -*- C++ -*-
#ifndef Fireworks_Core_FWTriggerTableViewManager_h
#define Fireworks_Core_FWTriggerTableViewManager_h
//
// Package:     Core
// Class  :     FWTriggerTableViewManager
//

#include "Fireworks/Core/interface/FWViewManagerBase.h"
#include "Fireworks/Core/interface/FWTriggerTableView.h"
#include "Fireworks/Core/interface/FWConfigurable.h"

class FWViewBase;
class FWGUIManager;
class TEveWindowSlot;

namespace fwlite {
  class Event;
}

class FWTriggerTableViewManager : public FWViewManagerBase, public FWConfigurable {
public:
  FWTriggerTableViewManager(FWGUIManager*);
  ~FWTriggerTableViewManager() override;

  // dummy functions of FWViewManagerBase
  FWTypeToRepresentations supportedTypesAndRepresentations() const override { return FWTypeToRepresentations(); }
  void newItem(const FWEventItem*) override {}

  // backward compatibility
  void addTo(FWConfiguration&) const override {}
  void setFrom(const FWConfiguration&) override {}

  FWViewBase* buildView(TEveWindowSlot* iParent, const std::string& type);

  // virtual void setContext(const fireworks::Context*);
protected:
  FWTriggerTableViewManager();

  void modelChangesComing() override {}
  void modelChangesDone() override {}

  void eventEnd() override;
  void colorsChanged() override;

  void updateProcessList();

  std::vector<std::shared_ptr<FWTriggerTableView> > m_views;

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

  void beingDestroyed(const FWViewBase*);
};

#endif