CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Private Types | Private Member Functions | Private Attributes | Static Private Attributes
FWGUIManager Class Reference

#include <Fireworks/Core/interface/FWGUIManager.h>

Inheritance diagram for FWGUIManager:
FWConfigurable

Public Types

typedef std::map< std::string, ViewBuildFunctorNameToViewBuilder
 
typedef std::function< FWViewBase *(TEveWindowSlot *, const std::string &)> ViewBuildFunctor
 

Public Member Functions

void addData ()
 
void addTo (FWConfiguration &) const override
 
void checkSubviewAreaIconState (TEveWindow *)
 
void clearStatus ()
 
void connectSubviewAreaSignals (FWGUISubviewArea *)
 
void createEDIFrame ()
 
void createHelpGLPopup ()
 
void createHelpPopup ()
 
TGVerticalFrame * createList (TGCompositeFrame *p)
 
void createModelPopup ()
 
void createShortcutPopup ()
 
ViewMap_i createView (const std::string &iName, TEveWindowSlot *slot=nullptr)
 
void createViews (TEveWindowSlot *slot)
 
void disableNext ()
 
void disablePrevious ()
 
void enableActions (bool enable=true)
 
void eventChangedCallback ()
 
void eventIdChanged ()
 
void evePreTerminate ()
 
void exportAllViews (const std::string &format, int height)
 
void exportImageOfMainView ()
 
void exportImagesOfAllViews ()
 
void filterButtonClicked ()
 
 FWGUIManager (fireworks::Context *ctx, const FWViewManagerManager *iVMMgr, FWNavigatorBase *navigator)
 
 FWGUIManager (const FWGUIManager &)=delete
 
CSGActiongetAction (const std::string name)
 
fireworks::ContextgetContext ()
 
const edm::EventBasegetCurrentEvent () const
 
CmsShowMainFramegetMainFrame () const
 
void initEmpty ()
 
CSGContinuousActionloopAction ()
 
void lumiIdChanged ()
 
void newViewSlot (const std::string &iName)
 
void open3DRegion ()
 
void openEveBrowserForDebugging () const
 
const FWGUIManageroperator= (const FWGUIManager &)=delete
 
CSGContinuousActionplayEventsAction ()
 
CSGContinuousActionplayEventsBackwardsAction ()
 
void popupViewClosed ()
 
void registerViewBuilder (const std::string &iName, ViewBuildFunctor &iBuilder)
 
void resetWMOffsets ()
 
void runIdChanged ()
 
void setDelayBetweenEvents (Float_t)
 
void setFilterButtonIcon (int)
 
void setFilterButtonText (const char *txt)
 
void setFrom (const FWConfiguration &) override
 
void setPlayMode (bool)
 
void setWindowInfoFrom (const FWConfiguration &iFrom, TGMainFrame *iFrame)
 
void showCommonPopup ()
 
void showEDIFrame (int iInfoToShow=-1)
 Allowed values are -1 or ones from FWDataCategories enum. More...
 
void showEventFilterGUI ()
 
void showInvMassDialog ()
 
void showModelPopup ()
 
void showSelectedModelContextMenu (Int_t iGlobalX, Int_t iGlobalY, FWViewContextMenuHandlerBase *iHandler)
 
void showViewPopup ()
 
void subviewDestroy (FWGUISubviewArea *)
 
void subviewDestroyAll ()
 
void subviewInfoSelected (FWGUISubviewArea *)
 
void subviewInfoUnselected (FWGUISubviewArea *)
 
void subviewIsBeingDestroyed (FWGUISubviewArea *)
 
void subviewSwapped (FWGUISubviewArea *)
 
void titleChanged (const char *title)
 
void updateEventFilterEnable (bool)
 
void updateStatus (const char *status)
 
 ~FWGUIManager () override
 
- Public Member Functions inherited from FWConfigurable
 FWConfigurable ()
 
 FWConfigurable (const FWConfigurable &)=delete
 
const FWConfigurableoperator= (const FWConfigurable &)=delete
 
virtual ~FWConfigurable ()
 

Static Public Member Functions

static FWGUIManagergetGUIManager ()
 
static TGFrame * makeGUIsubview (TEveCompositeFrame *cp, TGCompositeFrame *parent, Int_t height)
 

Public Attributes

sigc::signal< void(Float_t)> changedDelayBetweenEvents_
 
sigc::signal< void()> changedEventEntry_
 
sigc::signal< void(edm::RunNumber_t, edm::LuminosityBlockNumber_t, edm::EventNumber_t)> changedEventId_
 
sigc::signal< void()> changedRunEntry_
 
sigc::signal< void()> filterButtonClicked_
 
sigc::signal< void()> goingToQuit_
 
sigc::signal< void(const std::string &)> loadFromConfigurationFile_
 
sigc::signal< void(const std::string &)> loadPartialFromConfigurationFile_
 
sigc::signal< void(const TGWindow *)> showEventFilterGUI_
 
sigc::signal< void(const std::string &)> writePartialToConfigurationFile_
 
sigc::signal< void(const std::string &)> writeToConfigurationFile_
 
sigc::signal< void()> writeToPresentConfigurationFile_
 

Private Types

typedef ViewMap_t::iterator ViewMap_i
 
typedef std::map< TEveWindow *, FWViewBase * > ViewMap_t
 

Private Member Functions

void delaySliderChanged (Int_t)
 
void finishUpColorChange ()
 
TEveWindow * getSwapCandidate ()
 
void measureWMOffsets ()
 
void newItem (const FWEventItem *)
 
bool promptForConfigurationFile (std::string &result, enum EFileDialogMode mode)
 
void promptForLoadConfigurationFile ()
 
void promptForPartialLoadConfigurationFile ()
 
void promptForPartialSaveConfigurationFile ()
 
void promptForSaveConfigurationFile ()
 
void savePartialToConfigurationFile ()
 
void setViewPopup (TEveWindow *)
 

Private Attributes

CmsShowMainFramem_cmsShowMainFrame
 
CmsShowCommonPopupm_commonPopup
 
fireworks::Contextm_context
 
FWModelContextMenuHandlerm_contextMenuHandler
 
FWGUIEventDataAdderm_dataAdder
 
FWDetailViewManagerm_detailViewManager
 
CmsShowEDIm_ediFrame
 
TGPopupMenu * m_fileMenu
 
CmsShowHelpPopupm_helpGLPopup
 
CmsShowHelpPopupm_helpPopup
 
FWInvMassDialogm_invMassDialog
 
sigc::connection m_modelChangeConn
 
CmsShowModelPopupm_modelPopup
 
NameToViewBuilder m_nameToViewBuilder
 
FWNavigatorBasem_navigator
 
std::vector< FWViewBase * > m_regionViews
 
CmsShowHelpPopupm_shortcutPopup
 
FWSummaryManagerm_summaryManager
 
std::unique_ptr< CmsShowTaskExecutorm_tasks
 
const FWViewManagerManagerm_viewManagerManager
 
ViewMap_t m_viewMap
 
CmsShowViewPopupm_viewPopup
 
TEveWindowPack * m_viewPrimPack
 
TEveWindowPack * m_viewSecPack
 
int m_WMDecorH
 
int m_WMOffsetX
 
int m_WMOffsetY
 

Static Private Attributes

static FWGUIManagerm_guiManager = nullptr
 

Detailed Description

Description: Manages the GUI

Usage: <usage>

Definition at line 95 of file FWGUIManager.h.

Member Typedef Documentation

◆ NameToViewBuilder

typedef std::map<std::string, ViewBuildFunctor> FWGUIManager::NameToViewBuilder

Definition at line 99 of file FWGUIManager.h.

◆ ViewBuildFunctor

typedef std::function<FWViewBase*(TEveWindowSlot*, const std::string&)> FWGUIManager::ViewBuildFunctor

Definition at line 98 of file FWGUIManager.h.

◆ ViewMap_i

typedef ViewMap_t::iterator FWGUIManager::ViewMap_i
private

Definition at line 103 of file FWGUIManager.h.

◆ ViewMap_t

typedef std::map<TEveWindow*, FWViewBase*> FWGUIManager::ViewMap_t
private

Definition at line 102 of file FWGUIManager.h.

Constructor & Destructor Documentation

◆ FWGUIManager() [1/2]

FWGUIManager::FWGUIManager ( fireworks::Context ctx,
const FWViewManagerManager iVMMgr,
FWNavigatorBase navigator 
)

Definition at line 102 of file FWGUIManager.cc.

References writedatasetfile::action, CSGAction::activated, addData(), cms::cuda::assert(), fireworks::Context::colorManager(), FWColorManager::colorsHaveChangedFinished_, createHelpGLPopup(), createHelpPopup(), CmsShowMainFrame::createNewViewerAction(), createShortcutPopup(), delaySliderChanged(), fireworks::Context::eventItemsManager(), exportImageOfMainView(), exportImagesOfAllViews(), finishUpColorChange(), getAction(), fireworks::Context::getHidePFBuilders(), mps_fire::i, FWViewType::idToName(), FWViewType::kGlimpse, FWViewType::kLegoPFECAL, FWViewType::kRhoPhiPF, FWViewType::kTableHLT, FWViewType::kTypeSize, m_cmsShowMainFrame, m_context, m_contextMenuHandler, CmsShowMainFrame::m_delaySliderListener, m_detailViewManager, CmsShowMainFrame::m_eventEntry, CmsShowMainFrame::m_filterEnableBtn, CmsShowMainFrame::m_filterShowGUIBtn, m_guiManager, CmsShowMainFrame::m_lumiEntry, CmsShowMainFrame::m_runEntry, makeGUIsubview(), measureWMOffsets(), newItem(), FWEventItemsManager::newItem_, newViewSlot(), promptForLoadConfigurationFile(), promptForPartialLoadConfigurationFile(), promptForPartialSaveConfigurationFile(), promptForSaveConfigurationFile(), savePartialToConfigurationFile(), cmsshow::sBackgroundColor, fireworks::Context::selectionManager(), mps_merge::separator, cmsshow::sExportAllImages, cmsshow::sExportImage, cmsshow::sHelp, cmsshow::sHelpGL, showCommonPopup(), showEDIFrame(), showInvMassDialog(), showModelPopup(), showViewPopup(), cmsshow::sKeyboardShort, cmsshow::sLoadConfig, cmsshow::sLoadPartialConfig, cmsshow::sSaveConfig, cmsshow::sSaveConfigAs, cmsshow::sSavePartialConfig, cmsshow::sSavePartialConfigAs, cmsshow::sShowAddCollection, cmsshow::sShowCommonInsp, cmsshow::sShowEventDisplayInsp, cmsshow::sShowInvMassDialog, cmsshow::sShowMainViewCtl, cmsshow::sShowObjInsp, FWColorManager::switchBackground(), FWIntValueListener::valueChanged_, and writeToPresentConfigurationFile_.

103  : m_context(ctx),
104  m_summaryManager(nullptr),
105  m_detailViewManager(nullptr),
106  m_viewManagerManager(iVMMgr),
107  m_contextMenuHandler(nullptr),
109  m_dataAdder(nullptr),
110  m_ediFrame(nullptr),
111  m_modelPopup(nullptr),
112  m_viewPopup(nullptr),
113  m_commonPopup(nullptr),
114  m_invMassDialog(nullptr),
115  m_helpPopup(nullptr),
116  m_shortcutPopup(nullptr),
117  m_helpGLPopup(nullptr),
119  m_WMOffsetX(0),
120  m_WMOffsetY(0),
121  m_WMDecorH(0) {
122  m_guiManager = this;
123 
125 
127  im->newItem_.connect(std::bind(&FWGUIManager::newItem, this, std::placeholders::_1));
128 
130 
131  TEveCompositeFrame::IconBarCreator_foo foo = &FWGUIManager::makeGUIsubview;
132  TEveCompositeFrame::SetupFrameMarkup(foo, 20, 4, false);
133 
134  {
135  m_cmsShowMainFrame = new CmsShowMainFrame(gClient->GetRoot(), 950, 750, this);
136 
137  m_cmsShowMainFrame->SetCleanup(kDeepCleanup);
138 
139  /*
140  int mlist[FWViewType::kTypeSize] = {FWViewType::kRhoPhi, FWViewType::kRhoZ, FWViewType::k3D, FWViewType::kISpy, FWViewType::kLego, FWViewType::kLegoHF, FWViewType::kGlimpse,
141  FWViewType::kTable, FWViewType::kTableL1, FWViewType::kTableHLT,
142  FWViewType::kGeometryTable,
143  FWViewType::kRhoPhiPF, FWViewType::kLegoPFECAL}; */
144 
145  for (int i = 0; i < FWViewType::kTypeSize; ++i) {
147  continue;
148 
151  action->activated.connect(std::bind(&FWGUIManager::newViewSlot, this, FWViewType::idToName(i)));
152  }
153 
157 
161  ->activated.connect(sigc::mem_fun(*this, &FWGUIManager::promptForLoadConfigurationFile));
163  ->activated.connect(sigc::mem_fun(*this, &FWGUIManager::promptForPartialLoadConfigurationFile));
165 
167  ->activated.connect(sigc::mem_fun(*this, &FWGUIManager::savePartialToConfigurationFile));
169  ->activated.connect(sigc::mem_fun(*this, &FWGUIManager::promptForSaveConfigurationFile));
171  ->activated.connect(sigc::mem_fun(*this, &FWGUIManager::promptForPartialSaveConfigurationFile));
175 
177  ->activated.connect(sigc::mem_fun(*m_context->colorManager(), &FWColorManager::switchBackground));
179 
181  ->activated.connect(sigc::mem_fun(*m_guiManager, &FWGUIManager::showInvMassDialog));
182 
184  assert(getAction(cmsshow::sHelp) != nullptr);
188  ->activated.connect(sigc::mem_fun(*m_guiManager, &FWGUIManager::createShortcutPopup));
190 
191  // toolbar special widget with non-void actions
193  std::bind(&FWGUIManager::delaySliderChanged, this, std::placeholders::_1));
194 
195  TQObject::Connect(m_cmsShowMainFrame->m_runEntry, "ReturnPressed()", "FWGUIManager", this, "runIdChanged()");
196  TQObject::Connect(m_cmsShowMainFrame->m_lumiEntry, "ReturnPressed()", "FWGUIManager", this, "lumiIdChanged()");
197  TQObject::Connect(m_cmsShowMainFrame->m_eventEntry, "ReturnPressed()", "FWGUIManager", this, "eventIdChanged()");
198 
199  TQObject::Connect(
200  m_cmsShowMainFrame->m_filterShowGUIBtn, "Clicked()", "FWGUIManager", this, "showEventFilterGUI()");
201  TQObject::Connect(
202  m_cmsShowMainFrame->m_filterEnableBtn, "Clicked()", "FWGUIManager", this, "filterButtonClicked()");
203 
204  TQObject::Connect(gEve->GetWindowManager(),
205  "WindowSelected(TEveWindow*)",
206  "FWGUIManager",
207  this,
208  "checkSubviewAreaIconState(TEveWindow*)");
209  TQObject::Connect(gEve->GetWindowManager(),
210  "WindowDocked(TEveWindow*)",
211  "FWGUIManager",
212  this,
213  "checkSubviewAreaIconState(TEveWindow*)");
214  TQObject::Connect(gEve->GetWindowManager(),
215  "WindowUndocked(TEveWindow*)",
216  "FWGUIManager",
217  this,
218  "checkSubviewAreaIconState(TEveWindow*)");
219  }
220 }
const std::string sKeyboardShort
Definition: ActionsList.cc:45
const std::string sSavePartialConfig
Definition: ActionsList.cc:21
void promptForPartialSaveConfigurationFile()
FWSelectionManager * selectionManager() const
Definition: Context.h:54
FWNumberEntryField * m_lumiEntry
const std::string sShowCommonInsp
Definition: ActionsList.cc:29
string separator
Definition: mps_merge.py:79
void showModelPopup()
const std::string sHelp
Definition: ActionsList.cc:44
sigc::signal< void()> writeToPresentConfigurationFile_
Definition: FWGUIManager.h:211
sigc::signal< void()> colorsHaveChangedFinished_
const std::string sSavePartialConfigAs
Definition: ActionsList.cc:22
CmsShowEDI * m_ediFrame
Definition: FWGUIManager.h:260
FWSummaryManager * m_summaryManager
Definition: FWGUIManager.h:247
void createHelpPopup()
sigc::signal< void(FWEventItem *)> newItem_
sigc::signal< void(Int_t)> valueChanged_
const FWEventItemsManager * eventItemsManager() const
Definition: Context.h:56
FWInvMassDialog * m_invMassDialog
Definition: FWGUIManager.h:264
const std::string sBackgroundColor
Definition: ActionsList.cc:30
void newViewSlot(const std::string &iName)
static FWGUIManager * m_guiManager
Definition: FWGUIManager.h:242
FWCustomIconsButton * m_filterEnableBtn
void delaySliderChanged(Int_t)
FWDetailViewManager * m_detailViewManager
Definition: FWGUIManager.h:250
FWIntValueListener * m_delaySliderListener
assert(be >=bs)
void showEDIFrame(int iInfoToShow=-1)
Allowed values are -1 or ones from FWDataCategories enum.
const std::string sSaveConfigAs
Definition: ActionsList.cc:18
bool getHidePFBuilders() const
Definition: Context.h:80
void createShortcutPopup()
const std::string sSaveConfig
Definition: ActionsList.cc:17
CmsShowViewPopup * m_viewPopup
Definition: FWGUIManager.h:262
static TGFrame * makeGUIsubview(TEveCompositeFrame *cp, TGCompositeFrame *parent, Int_t height)
FWNavigatorBase * m_navigator
Definition: FWGUIManager.h:253
CSGAction * createNewViewerAction(const std::string &iActionName, bool seaprator)
void exportImagesOfAllViews()
FWNumberEntryField * m_eventEntry
void showInvMassDialog()
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254
void newItem(const FWEventItem *)
const std::string sShowAddCollection
Definition: ActionsList.cc:41
FWGUIEventDataAdder * m_dataAdder
Definition: FWGUIManager.h:257
void exportImageOfMainView()
const std::string sExportImage
Definition: ActionsList.cc:24
CmsShowModelPopup * m_modelPopup
Definition: FWGUIManager.h:261
CmsShowCommonPopup * m_commonPopup
Definition: FWGUIManager.h:263
CmsShowHelpPopup * m_helpGLPopup
Definition: FWGUIManager.h:269
const std::string sShowMainViewCtl
Definition: ActionsList.cc:40
const FWViewManagerManager * m_viewManagerManager
Definition: FWGUIManager.h:251
FWNumberEntryField * m_runEntry
void savePartialToConfigurationFile()
const std::string sShowObjInsp
Definition: ActionsList.cc:38
CSGAction * getAction(const std::string name)
fireworks::Context * m_context
Definition: FWGUIManager.h:245
void finishUpColorChange()
const std::string sShowInvMassDialog
Definition: ActionsList.cc:42
std::unique_ptr< CmsShowTaskExecutor > m_tasks
Definition: FWGUIManager.h:280
const std::string sShowEventDisplayInsp
Definition: ActionsList.cc:39
static const std::string & idToName(int)
Definition: FWViewType.cc:72
void promptForPartialLoadConfigurationFile()
void promptForSaveConfigurationFile()
const std::string sLoadConfig
Definition: ActionsList.cc:16
sigc::signal< void()> activated
Definition: CSGAction.h:100
const std::string sExportAllImages
Definition: ActionsList.cc:25
TGTextButton * m_filterShowGUIBtn
const std::string sHelpGL
Definition: ActionsList.cc:46
void promptForLoadConfigurationFile()
FWModelContextMenuHandler * m_contextMenuHandler
Definition: FWGUIManager.h:252
const std::string sLoadPartialConfig
Definition: ActionsList.cc:20
void measureWMOffsets()
void showCommonPopup()
FWColorManager * colorManager() const
Definition: Context.h:58
void showViewPopup()
void createHelpGLPopup()
CmsShowHelpPopup * m_helpPopup
Definition: FWGUIManager.h:267
CmsShowHelpPopup * m_shortcutPopup
Definition: FWGUIManager.h:268

◆ ~FWGUIManager()

FWGUIManager::~FWGUIManager ( )
override

Definition at line 232 of file FWGUIManager.cc.

References m_cmsShowMainFrame, m_contextMenuHandler, m_detailViewManager, m_ediFrame, m_invMassDialog, m_summaryManager, and m_viewPopup.

232  {
233  delete m_invMassDialog;
234  delete m_summaryManager;
235  delete m_detailViewManager;
236  delete m_cmsShowMainFrame;
237  delete m_viewPopup;
238  delete m_ediFrame;
239  delete m_contextMenuHandler;
240 }
CmsShowEDI * m_ediFrame
Definition: FWGUIManager.h:260
FWSummaryManager * m_summaryManager
Definition: FWGUIManager.h:247
FWInvMassDialog * m_invMassDialog
Definition: FWGUIManager.h:264
FWDetailViewManager * m_detailViewManager
Definition: FWGUIManager.h:250
CmsShowViewPopup * m_viewPopup
Definition: FWGUIManager.h:262
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254
FWModelContextMenuHandler * m_contextMenuHandler
Definition: FWGUIManager.h:252

◆ FWGUIManager() [2/2]

FWGUIManager::FWGUIManager ( const FWGUIManager )
delete

Member Function Documentation

◆ addData()

void FWGUIManager::addData ( )

Definition at line 381 of file FWGUIManager.cc.

References fireworks::Context::eventItemsManager(), m_cmsShowMainFrame, m_context, m_dataAdder, fireworks::Context::metadataManager(), and FWGUIEventDataAdder::show().

Referenced by FWGUIManager().

381  {
382  if (nullptr == m_dataAdder) {
384  100,
388  }
389  m_dataAdder->show();
390 }
const FWEventItemsManager * eventItemsManager() const
Definition: Context.h:56
FWJobMetadataManager * metadataManager() const
Definition: Context.h:60
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254
FWGUIEventDataAdder * m_dataAdder
Definition: FWGUIManager.h:257
fireworks::Context * m_context
Definition: FWGUIManager.h:245

◆ addTo()

void FWGUIManager::addTo ( FWConfiguration oTo) const
overridevirtual

Implements FWConfigurable.

Definition at line 960 of file FWGUIManager.cc.

References addAreaInfoTo(), FWConfiguration::addKeyValue(), FWConfigurableParameterizable::addTo(), addWindowInfoTo(), CmsShowMainFrame::getSummaryViewWeight(), kCollectionController(), kCommonController(), kControllers(), kMainWindow(), kObjectController(), kViewArea(), kViewController(), kViews(), m_cmsShowMainFrame, m_commonPopup, m_ediFrame, m_modelPopup, m_viewMap, m_viewPopup, m_viewPrimPack, m_viewSecPack, createTree::pp, contentValuesCheck::ss, groupFilesInBlocks::temp, FWViewBase::typeName(), and FWConfigurableParameterizable::version().

960  {
961  Int_t cfgVersion = 3;
962 
963  FWConfiguration mainWindow(cfgVersion);
964  float leftWeight, rightWeight;
965  addWindowInfoTo(m_cmsShowMainFrame, mainWindow);
966  {
967  // write summary view weight
968  {
969  std::stringstream ss;
971  mainWindow.addKeyValue("summaryWeight", FWConfiguration(ss.str()));
972  }
973 
974  // write proportions of horizontal pack (can be standalone item outside main frame)
975  if (m_viewPrimPack->GetPack()->GetList()->GetSize() > 2) {
976  TGFrameElementPack* frameEL;
977  frameEL = (TGFrameElementPack*)m_viewPrimPack->GetPack()->GetList()->At(
978  1); // read every second element, first on is splitter
979  leftWeight = frameEL->fWeight;
980  frameEL = (TGFrameElementPack*)m_viewPrimPack->GetPack()->GetList()->At(3);
981  rightWeight = frameEL->fWeight;
982  } else {
983  leftWeight = 0;
984  rightWeight = 1;
985  }
986  std::stringstream sL;
987  sL << leftWeight;
988  mainWindow.addKeyValue("leftWeight", FWConfiguration(sL.str()));
989  std::stringstream sR;
990  sR << rightWeight;
991  mainWindow.addKeyValue("rightWeight", FWConfiguration(sR.str()));
992  }
993  oTo.addKeyValue(kMainWindow, mainWindow, true);
994 
995  //------------------------------------------------------------
996  // organize info about all docked frames includding hidden, which point to undocked
997  std::vector<areaInfo> wpacked;
998  if (leftWeight > 0) {
999  TGPack* pp = m_viewPrimPack->GetPack();
1000  TGFrameElementPack* frameEL = (TGFrameElementPack*)pp->GetList()->At(1);
1001  if (frameEL->fWeight > 0)
1002  wpacked.push_back(areaInfo(frameEL));
1003  }
1004  TGPack* sp = m_viewSecPack->GetPack();
1005  TGFrameElementPack* seFE;
1006  TIter frame_iterator(sp->GetList());
1007  while ((seFE = (TGFrameElementPack*)frame_iterator())) {
1008  if (seFE->fWeight)
1009  wpacked.push_back(areaInfo(seFE));
1010  }
1011 
1012  // undocked info
1013 
1014  for (ViewMap_i wIt = m_viewMap.begin(); wIt != m_viewMap.end(); ++wIt) {
1015  TEveWindow* ew = wIt->first;
1016  TEveCompositeFrameInMainFrame* mainFrame = dynamic_cast<TEveCompositeFrameInMainFrame*>(ew->GetEveFrame());
1017  if (mainFrame) {
1018  for (std::vector<areaInfo>::iterator pIt = wpacked.begin(); pIt != wpacked.end(); ++pIt) {
1019  if ((*pIt).originalSlot && mainFrame->GetOriginalSlot() == (*pIt).originalSlot) {
1020  (*pIt).eveWindow = wIt->first;
1021  (*pIt).undockedMainFrame = (TGMainFrame*)mainFrame;
1022  // printf("found original slot for docked view %s\n", pInfo->viewBase->typeName().c_str());
1023  break;
1024  } // found match
1025  }
1026  } // end main frames
1027  }
1028 
1029  //------------------------------------------------------------
1030  // add sorted list in view area and FW-views configuration
1031  FWConfiguration views(1);
1032  FWConfiguration viewArea(cfgVersion);
1033  for (std::vector<areaInfo>::iterator it = wpacked.begin(); it != wpacked.end(); ++it) {
1034  TEveWindow* ew = (*it).eveWindow;
1035  if (ew) {
1036  FWViewBase* wb = m_viewMap[ew];
1037  FWConfiguration tempWiew(wb->version());
1038  wb->addTo(tempWiew);
1039  views.addKeyValue(wb->typeName(), tempWiew, true);
1040  FWConfiguration tempArea(cfgVersion);
1041  addAreaInfoTo((*it), tempArea);
1042  viewArea.addKeyValue(wb->typeName(), tempArea, true);
1043  }
1044  }
1045  oTo.addKeyValue(kViews, views, true);
1046  oTo.addKeyValue(kViewArea, viewArea, true);
1047 
1048  //------------------------------------------------------------
1049  //Remember where controllers were placed if they are open
1050  FWConfiguration controllers(1);
1051  {
1052  if (nullptr != m_ediFrame && m_ediFrame->IsMapped()) {
1053  FWConfiguration temp(1);
1055  controllers.addKeyValue(kCollectionController, temp, true);
1056  }
1057  if (nullptr != m_viewPopup && m_viewPopup->IsMapped()) {
1058  FWConfiguration temp(1);
1060  controllers.addKeyValue(kViewController, temp, true);
1061  }
1062  if (nullptr != m_modelPopup && m_modelPopup->IsMapped()) {
1063  FWConfiguration temp(1);
1065  controllers.addKeyValue(kObjectController, temp, true);
1066  }
1067  if (nullptr != m_commonPopup && m_commonPopup->IsMapped()) {
1068  FWConfiguration temp(1);
1070  controllers.addKeyValue(kCommonController, temp, true);
1071  }
1072  }
1073  oTo.addKeyValue(kControllers, controllers, true);
1074 }
ViewMap_t::iterator ViewMap_i
Definition: FWGUIManager.h:103
ViewMap_t m_viewMap
Definition: FWGUIManager.h:272
CmsShowEDI * m_ediFrame
Definition: FWGUIManager.h:260
static void addAreaInfoTo(areaInfo &pInfo, FWConfiguration &oTo)
static const std::string kViewController("view")
static void addWindowInfoTo(const TGFrame *iMain, FWConfiguration &oTo)
static const std::string kViews("views")
static const std::string kObjectController("object")
TEveWindowPack * m_viewPrimPack
Definition: FWGUIManager.h:275
static const std::string kCommonController("common")
TEveWindowPack * m_viewSecPack
Definition: FWGUIManager.h:276
static const std::string kCollectionController("collection")
CmsShowViewPopup * m_viewPopup
Definition: FWGUIManager.h:262
static const std::string kMainWindow("main window")
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254
CmsShowModelPopup * m_modelPopup
Definition: FWGUIManager.h:261
static const std::string kViewArea("view area")
CmsShowCommonPopup * m_commonPopup
Definition: FWGUIManager.h:263
FWConfiguration & addKeyValue(const std::string &, const FWConfiguration &)
float getSummaryViewWeight() const
void addTo(FWConfiguration &) const override
static const std::string kControllers("controllers")
const std::string & typeName() const
Definition: FWViewBase.cc:107

◆ checkSubviewAreaIconState()

void FWGUIManager::checkSubviewAreaIconState ( TEveWindow *  )

Definition at line 432 of file FWGUIManager.cc.

References CmsShowViewPopup::getEveWindow(), getSwapCandidate(), FWGUISubviewArea::getToolBarFromWindow(), m_viewMap, m_viewPopup, CmsShowViewPopup::mapped(), FWGUISubviewArea::setInfoButton(), and FWGUISubviewArea::setSwapIcon().

Referenced by setFrom(), and subviewSwapped().

432  {
433  // First argumet is needed for signals/slot symetry
434 
435  // disable swap on the first left TEveCompositeFrame
436  // check info button
437  TEveWindow* current = getSwapCandidate();
438  bool checkInfoBtn = m_viewPopup ? m_viewPopup->mapped() : false;
439  TEveWindow* selected = m_viewPopup ? m_viewPopup->getEveWindow() : nullptr;
440 
441  for (ViewMap_i it = m_viewMap.begin(); it != m_viewMap.end(); it++) {
443  ar->setSwapIcon(current != it->first);
444  if (checkInfoBtn && selected)
445  ar->setInfoButton(selected == it->first);
446  }
447 }
ViewMap_t::iterator ViewMap_i
Definition: FWGUIManager.h:103
ViewMap_t m_viewMap
Definition: FWGUIManager.h:272
TEveWindow * getEveWindow() const
void setInfoButton(bool downp)
CmsShowViewPopup * m_viewPopup
Definition: FWGUIManager.h:262
TEveWindow * getSwapCandidate()
static FWGUISubviewArea * getToolBarFromWindow(TEveWindow *)

◆ clearStatus()

void FWGUIManager::clearStatus ( )

◆ connectSubviewAreaSignals()

void FWGUIManager::connectSubviewAreaSignals ( FWGUISubviewArea a)

Definition at line 222 of file FWGUIManager.cc.

References a, subviewInfoSelected(), subviewInfoUnselected(), subviewIsBeingDestroyed(), and subviewSwapped().

Referenced by FWGUISubviewArea::FWGUISubviewArea().

222  {
223  a->goingToBeDestroyed_.connect(std::bind(&FWGUIManager::subviewIsBeingDestroyed, this, std::placeholders::_1));
224  a->selected_.connect(std::bind(&FWGUIManager::subviewInfoSelected, this, std::placeholders::_1));
225  a->unselected_.connect(std::bind(&FWGUIManager::subviewInfoUnselected, this, std::placeholders::_1));
226  a->swap_.connect(std::bind(&FWGUIManager::subviewSwapped, this, std::placeholders::_1));
227 }
void subviewIsBeingDestroyed(FWGUISubviewArea *)
void subviewInfoSelected(FWGUISubviewArea *)
void subviewSwapped(FWGUISubviewArea *)
double a
Definition: hdecay.h:119
void subviewInfoUnselected(FWGUISubviewArea *)

◆ createEDIFrame()

void FWGUIManager::createEDIFrame ( )

Definition at line 550 of file FWGUIManager.cc.

References CmsShowMainFrame::bindCSGActionKeys(), fireworks::Context::colorManager(), m_cmsShowMainFrame, m_context, m_ediFrame, and fireworks::Context::selectionManager().

Referenced by showEDIFrame().

550  {
551  if (m_ediFrame == nullptr) {
553  m_ediFrame->CenterOnParent(kTRUE, TGTransientFrame::kTopRight);
555  }
556 }
FWSelectionManager * selectionManager() const
Definition: Context.h:54
CmsShowEDI * m_ediFrame
Definition: FWGUIManager.h:260
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254
fireworks::Context * m_context
Definition: FWGUIManager.h:245
void bindCSGActionKeys(const TGMainFrame *f) const
FWColorManager * colorManager() const
Definition: Context.h:58

◆ createHelpGLPopup()

void FWGUIManager::createHelpGLPopup ( )

Definition at line 664 of file FWGUIManager.cc.

References getAction(), getName(), m_cmsShowMainFrame, m_helpGLPopup, and cmsshow::sHelpGL.

Referenced by FWGUIManager().

664  {
665  if (m_helpGLPopup == nullptr) {
666  m_helpGLPopup =
667  new CmsShowHelpPopup("helpGL.html", getAction(cmsshow::sHelpGL)->getName(), m_cmsShowMainFrame, 800, 600);
668 
669  m_helpGLPopup->CenterOnParent(kTRUE, TGTransientFrame::kBottomRight);
670  }
671  m_helpGLPopup->MapWindow();
672 }
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254
CmsShowHelpPopup * m_helpGLPopup
Definition: FWGUIManager.h:269
TString getName(TString structure, int layer, TString geometry)
Definition: DMRtrends.cc:236
CSGAction * getAction(const std::string name)
const std::string sHelpGL
Definition: ActionsList.cc:46

◆ createHelpPopup()

void FWGUIManager::createHelpPopup ( )

Definition at line 646 of file FWGUIManager.cc.

References m_cmsShowMainFrame, and m_helpPopup.

Referenced by FWGUIManager().

646  {
647  if (m_helpPopup == nullptr) {
648  m_helpPopup = new CmsShowHelpPopup("help.html", "CmsShow Help", m_cmsShowMainFrame, 800, 600);
649  m_helpPopup->CenterOnParent(kTRUE, TGTransientFrame::kBottomRight);
650  }
651  m_helpPopup->MapWindow();
652 }
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254
CmsShowHelpPopup * m_helpPopup
Definition: FWGUIManager.h:267

◆ createList()

TGVerticalFrame * FWGUIManager::createList ( TGCompositeFrame *  p)

Definition at line 514 of file FWGUIManager.cc.

References fireworks::Context::colorManager(), fireworks::Context::eventItemsManager(), m_context, m_summaryManager, fireworks::Context::modelChangeManager(), AlCaHLTBitMon_ParallelJobs::p, fireworks::Context::selectionManager(), and FWSummaryManager::widget().

Referenced by CmsShowMainFrame::CmsShowMainFrame().

514  {
515  TGVerticalFrame* listFrame = new TGVerticalFrame(p, p->GetWidth(), p->GetHeight());
516 
517  TGHorizontalFrame* addFrame = new TGHorizontalFrame(listFrame, p->GetWidth(), 10, kRaisedFrame);
518  TGLabel* addLabel = new TGLabel(addFrame, "Summary View");
519  addFrame->AddFrame(addLabel, new TGLayoutHints(kLHintsCenterX, 0, 0, 2, 2));
520  listFrame->AddFrame(addFrame, new TGLayoutHints(kLHintsExpandX | kLHintsTop));
521 
522  m_summaryManager = new FWSummaryManager(listFrame,
525  this,
528 
529  const unsigned int backgroundColor = 0x2f2f2f;
530  TGTextButton* addDataButton = new TGTextButton(m_summaryManager->widget(), "Add Collection");
531  addDataButton->ChangeOptions(kRaisedFrame);
532  addDataButton->SetBackgroundColor(backgroundColor);
533  addDataButton->SetTextColor(0xFFFFFF);
534  addDataButton->SetToolTipText("Show additional collections");
535  addDataButton->Connect("Clicked()", "FWGUIManager", this, "addData()");
536  m_summaryManager->widget()->AddFrame(addDataButton, new TGLayoutHints(kLHintsExpandX | kLHintsLeft | kLHintsTop));
537  listFrame->AddFrame(m_summaryManager->widget(), new TGLayoutHints(kLHintsExpandX | kLHintsExpandY));
538 
539  return listFrame;
540 }
FWSelectionManager * selectionManager() const
Definition: Context.h:54
FWSummaryManager * m_summaryManager
Definition: FWGUIManager.h:247
const FWEventItemsManager * eventItemsManager() const
Definition: Context.h:56
FWModelChangeManager * modelChangeManager() const
Definition: Context.h:53
fireworks::Context * m_context
Definition: FWGUIManager.h:245
FWColorManager * colorManager() const
Definition: Context.h:58
TGCompositeFrame * widget() const

◆ createModelPopup()

void FWGUIManager::createModelPopup ( )

Definition at line 601 of file FWGUIManager.cc.

References CmsShowMainFrame::bindCSGActionKeys(), fireworks::Context::colorManager(), m_cmsShowMainFrame, m_context, m_detailViewManager, m_modelPopup, and fireworks::Context::selectionManager().

Referenced by showModelPopup().

601  {
604  m_modelPopup->CenterOnParent(kTRUE, TGTransientFrame::kRight);
606 }
FWSelectionManager * selectionManager() const
Definition: Context.h:54
FWDetailViewManager * m_detailViewManager
Definition: FWGUIManager.h:250
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254
CmsShowModelPopup * m_modelPopup
Definition: FWGUIManager.h:261
fireworks::Context * m_context
Definition: FWGUIManager.h:245
void bindCSGActionKeys(const TGMainFrame *f) const
FWColorManager * colorManager() const
Definition: Context.h:58

◆ createShortcutPopup()

void FWGUIManager::createShortcutPopup ( )

Definition at line 654 of file FWGUIManager.cc.

References getAction(), getName(), m_cmsShowMainFrame, m_shortcutPopup, and cmsshow::sKeyboardShort.

Referenced by FWGUIManager().

654  {
655  if (m_shortcutPopup == nullptr) {
657  "shortcuts.html", getAction(cmsshow::sKeyboardShort)->getName(), m_cmsShowMainFrame, 800, 600);
658 
659  m_shortcutPopup->CenterOnParent(kTRUE, TGTransientFrame::kBottomRight);
660  }
661  m_shortcutPopup->MapWindow();
662 }
const std::string sKeyboardShort
Definition: ActionsList.cc:45
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254
TString getName(TString structure, int layer, TString geometry)
Definition: DMRtrends.cc:236
CSGAction * getAction(const std::string name)
CmsShowHelpPopup * m_shortcutPopup
Definition: FWGUIManager.h:268

◆ createView()

FWGUIManager::ViewMap_i FWGUIManager::createView ( const std::string &  iName,
TEveWindowSlot *  slot = nullptr 
)

Definition at line 283 of file FWGUIManager.cc.

References cms::cuda::assert(), newFWLiteAna::base, FWViewBase::contextMenuHandler(), m_guiManager, m_nameToViewBuilder, m_viewMap, m_viewPrimPack, m_viewSecPack, FWViewBase::openSelectedModelContextMenu_, showSelectedModelContextMenu(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by initEmpty(), newViewSlot(), open3DRegion(), and setFrom().

283  {
284  NameToViewBuilder::iterator itFind = m_nameToViewBuilder.find(iName);
285  assert(itFind != m_nameToViewBuilder.end());
286  if (itFind == m_nameToViewBuilder.end()) {
287  throw std::runtime_error(std::string("Unable to create view named ") + iName + " because it is unknown");
288  }
289 
290  if (!slot) {
291  if (m_viewSecPack) {
292  slot = m_viewSecPack->NewSlot();
293  } else {
294  slot = m_viewPrimPack->NewSlot();
295  m_viewSecPack = m_viewPrimPack->NewSlot()->MakePack();
296  m_viewSecPack->SetShowTitleBar(kFALSE);
297  }
298  }
299  TEveCompositeFrame* ef = slot->GetEveFrame();
300  FWViewBase* viewBase = itFind->second(slot, iName);
301  //in future, get context from 'view'
303  viewBase->openSelectedModelContextMenu_.connect(std::bind(
304  &FWGUIManager::showSelectedModelContextMenu, m_guiManager, std::placeholders::_1, std::placeholders::_2, base));
305 
306  TEveWindow* eveWindow = ef->GetEveWindow();
307  eveWindow->SetElementName(iName.c_str());
308 
309  std::pair<ViewMap_i, bool> insertPair = m_viewMap.insert(std::make_pair(eveWindow, viewBase));
310  return insertPair.first;
311 }
virtual FWViewContextMenuHandlerBase * contextMenuHandler() const
Definition: FWViewBase.cc:102
ViewMap_t m_viewMap
Definition: FWGUIManager.h:272
NameToViewBuilder m_nameToViewBuilder
Definition: FWGUIManager.h:273
base
Main Program
Definition: newFWLiteAna.py:92
static FWGUIManager * m_guiManager
Definition: FWGUIManager.h:242
assert(be >=bs)
TEveWindowPack * m_viewPrimPack
Definition: FWGUIManager.h:275
sigc::signal< void(Int_t, Int_t)> openSelectedModelContextMenu_
Definition: FWViewBase.h:57
TEveWindowPack * m_viewSecPack
Definition: FWGUIManager.h:276
void showSelectedModelContextMenu(Int_t iGlobalX, Int_t iGlobalY, FWViewContextMenuHandlerBase *iHandler)

◆ createViews()

void FWGUIManager::createViews ( TEveWindowSlot *  slot)

Definition at line 542 of file FWGUIManager.cc.

References m_viewPrimPack, and m_viewSecPack.

Referenced by CmsShowMainFrame::CmsShowMainFrame().

542  {
543  m_viewPrimPack = slot->MakePack();
544  m_viewPrimPack->SetHorizontal();
545  m_viewPrimPack->SetElementName("Views");
546  m_viewPrimPack->SetShowTitleBar(kFALSE);
547  m_viewSecPack = nullptr;
548 }
TEveWindowPack * m_viewPrimPack
Definition: FWGUIManager.h:275
TEveWindowPack * m_viewSecPack
Definition: FWGUIManager.h:276

◆ delaySliderChanged()

void FWGUIManager::delaySliderChanged ( Int_t  val)
private

Definition at line 1218 of file FWGUIManager.cc.

References changedDelayBetweenEvents_, m_cmsShowMainFrame, fileinputsource_cfi::sec, CmsShowMainFrame::setPlayDelayGUI(), and heppy_batch::val.

Referenced by FWGUIManager().

1218  {
1219  Float_t sec = val * 0.001;
1222 }
sigc::signal< void(Float_t)> changedDelayBetweenEvents_
Definition: FWGUIManager.h:215
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254
void setPlayDelayGUI(Float_t val, Bool_t sliderChanged)

◆ disableNext()

void FWGUIManager::disableNext ( )

Definition at line 361 of file FWGUIManager.cc.

References CmsShowMainFrame::enableNext(), and m_cmsShowMainFrame.

Referenced by FWFFLooper::checkPosition(), and CmsShowMain::checkPosition().

361 { m_cmsShowMainFrame->enableNext(false); }
void enableNext(bool enable=true)
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254

◆ disablePrevious()

void FWGUIManager::disablePrevious ( )

Definition at line 359 of file FWGUIManager.cc.

References CmsShowMainFrame::enablePrevious(), and m_cmsShowMainFrame.

Referenced by FWFFLooper::checkPosition(), and CmsShowMain::checkPosition().

CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254
void enablePrevious(bool enable=true)

◆ enableActions()

void FWGUIManager::enableActions ( bool  enable = true)

◆ eventChangedCallback()

void FWGUIManager::eventChangedCallback ( )

Definition at line 325 of file FWGUIManager.cc.

References makeMEIFBenchmarkPlots::ev, getCurrentEvent(), mps_fire::i, CmsShowMainFrame::loadEvent(), m_cmsShowMainFrame, m_detailViewManager, m_regionViews, m_viewMap, and FWDetailViewManager::newEventCallback().

Referenced by CmsShowMainBase::eventChangedImp().

325  {
326  // To be replaced when we can get index from fwlite::Event
327 
328  TEveViewerList* viewers = gEve->GetViewers();
329  for (TEveElement::List_i i = viewers->BeginChildren(); i != viewers->EndChildren(); ++i) {
330  TEveViewer* ev = dynamic_cast<TEveViewer*>(*i);
331  if (ev)
332  ev->GetGLViewer()->DeleteOverlayAnnotations();
333  }
334 
335  for (auto reg : m_regionViews) {
336  for (ViewMap_i it = m_viewMap.begin(); it != m_viewMap.end(); ++it) {
337  if (it->second == reg) {
338  m_viewMap.erase(it);
339  reg->destroy();
340  break;
341  }
342  }
343  }
344 
347 }
ViewMap_t::iterator ViewMap_i
Definition: FWGUIManager.h:103
ViewMap_t m_viewMap
Definition: FWGUIManager.h:272
void loadEvent(const edm::EventBase &event)
FWDetailViewManager * m_detailViewManager
Definition: FWGUIManager.h:250
const edm::EventBase * getCurrentEvent() const
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254
std::vector< FWViewBase * > m_regionViews
Definition: FWGUIManager.h:281

◆ eventIdChanged()

void FWGUIManager::eventIdChanged ( )

Definition at line 1244 of file FWGUIManager.cc.

References changedEventId_, FWNumberEntryField::GetUIntNumber(), FWNumberEntryField::GetULong64Number(), edm::invalidEventNumber, m_cmsShowMainFrame, CmsShowMainFrame::m_eventEntry, CmsShowMainFrame::m_lumiEntry, CmsShowMainFrame::m_runEntry, and FWNumberEntryField::SetULong64Number().

1244  {
1247  }
1248 
1252 }
FWNumberEntryField * m_lumiEntry
virtual ULong64_t GetULong64Number()
sigc::signal< void(edm::RunNumber_t, edm::LuminosityBlockNumber_t, edm::EventNumber_t)> changedEventId_
Definition: FWGUIManager.h:209
EventNumber_t const invalidEventNumber
virtual void SetULong64Number(ULong64_t n)
FWNumberEntryField * m_eventEntry
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254
virtual UInt_t GetUIntNumber()
FWNumberEntryField * m_runEntry

◆ evePreTerminate()

void FWGUIManager::evePreTerminate ( )

Definition at line 242 of file FWGUIManager.cc.

References m_cmsShowMainFrame, and m_viewMap.

Referenced by CmsShowMain::doExit().

242  {
243  gEve->GetWindowManager()->Disconnect("WindowSelected(TEveWindow*)", this, "checkSubviewAreaIconState(TEveWindow*)");
244  gEve->GetWindowManager()->Disconnect("WindowDocked(TEveWindow*)", this, "checkSubviewAreaIconState(TEveWindow*)");
245  gEve->GetWindowManager()->Disconnect("WindowUndocked(TEveWindow*)", this, "checkSubviewAreaIconState(TEveWindow*)");
246 
247  // avoid emit signals at end
248  gEve->GetSelection()->Disconnect();
249  gEve->GetHighlight()->Disconnect();
250  gEve->GetSelection()->RemoveElements();
251  gEve->GetHighlight()->RemoveElements();
252 
253  m_cmsShowMainFrame->UnmapWindow();
254  for (ViewMap_i wIt = m_viewMap.begin(); wIt != m_viewMap.end(); ++wIt) {
255  TEveCompositeFrameInMainFrame* mainFrame =
256  dynamic_cast<TEveCompositeFrameInMainFrame*>((*wIt).first->GetEveFrame());
257  // main frames not to watch dying
258  if (mainFrame)
259  mainFrame->UnmapWindow();
260  // destroy
261  (*wIt).second->destroy();
262  }
263 }
ViewMap_t::iterator ViewMap_i
Definition: FWGUIManager.h:103
ViewMap_t m_viewMap
Definition: FWGUIManager.h:272
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254

◆ exportAllViews()

void FWGUIManager::exportAllViews ( const std::string &  format,
int  height 
)

Definition at line 808 of file FWGUIManager.cc.

References makeMEIFBenchmarkPlots::ev, f, geometryDiff::file, getCurrentEvent(), mps_fire::i, dqmiolumiharvest::j, cmsLHEtoEOSManager::l, m_viewMap, and Skims_PA_cff::name.

Referenced by exportImagesOfAllViews().

808  {
809  // Save all GL views.
810  // Expects format to have "%u %u %llu %s" which are replaced with
811  // run-number, event number, lumi block and view-name.
812  // Blanks in view-name are removed.
813  // If several views shave the same name, they are post-fixed
814  // with "_%d". They are sorted by view diagonal.
815 
816  typedef std::list<FWTEveViewer*> viewer_list_t;
817  typedef viewer_list_t::iterator viewer_list_i;
818 
819  typedef std::map<TString, viewer_list_t> name_map_t;
820  typedef name_map_t::iterator name_map_i;
821 
822  name_map_t vls;
823 
824  for (ViewMap_i i = m_viewMap.begin(); i != m_viewMap.end(); ++i) {
825  FWTEveViewer* ev = dynamic_cast<FWTEveViewer*>(i->first);
826  if (ev) {
827  TString name(ev->GetElementName());
828  name.ReplaceAll(" ", "");
829  viewer_list_t& l = vls[name];
830  viewer_list_i li = l.begin();
831  while (li != l.end() && (*li)->GetGLViewer()->ViewportDiagonal() < ev->GetGLViewer()->ViewportDiagonal())
832  ++li;
833  l.insert(li, ev);
834  }
835  }
836 
837  std::vector<std::future<int>> futures;
838 
839  const edm::EventBase* event = getCurrentEvent();
840  for (name_map_i i = vls.begin(); i != vls.end(); ++i) {
841  bool multi_p = (i->second.size() > 1);
842  int view_count = 1;
843  for (viewer_list_i j = i->second.begin(); j != i->second.end(); ++j, ++view_count) {
844  TString view_name(i->first);
845  if (multi_p) {
846  view_name += "_";
847  view_name += view_count;
848  }
849  TString file;
850  file.Form(format.c_str(), event->id().run(), event->id().event(), event->luminosityBlock(), view_name.Data());
851 
852  if (GLEW_EXT_framebuffer_object) {
853  // Multi-threaded save
854  futures.push_back((*j)->CaptureAndSaveImage(file, height));
855  } else {
856  // Single-threaded save
857  if (height == -1)
858  (*j)->GetGLViewer()->SavePicture(file);
859  else
860  (*j)->GetGLViewer()->SavePictureHeight(file, height);
861  }
862  }
863  }
864 
865  for (auto& f : futures) {
866  f.get();
867  }
868 }
ViewMap_t::iterator ViewMap_i
Definition: FWGUIManager.h:103
ViewMap_t m_viewMap
Definition: FWGUIManager.h:272
const edm::EventBase * getCurrentEvent() const
double f[11][100]

◆ exportImageOfMainView()

void FWGUIManager::exportImageOfMainView ( )

Definition at line 760 of file FWGUIManager.cc.

References fwLog, fwlog::kError, m_cmsShowMainFrame, m_viewMap, and m_viewPrimPack.

Referenced by FWGUIManager().

760  {
761  if (m_viewPrimPack->GetPack()->GetList()->GetSize() > 2) {
762  TGFrameElementPack* frameEL = (TGFrameElementPack*)m_viewPrimPack->GetPack()->GetList()->At(1);
763  TEveCompositeFrame* ef = dynamic_cast<TEveCompositeFrame*>(frameEL->fFrame);
764  m_viewMap[ef->GetEveWindow()]->promptForSaveImageTo(m_cmsShowMainFrame);
765  } else {
766  fwLog(fwlog::kError) << "Main view has been destroyed." << std::endl;
767  }
768 }
ViewMap_t m_viewMap
Definition: FWGUIManager.h:272
TEveWindowPack * m_viewPrimPack
Definition: FWGUIManager.h:275
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254
#define fwLog(_level_)
Definition: fwLog.h:45

◆ exportImagesOfAllViews()

void FWGUIManager::exportImagesOfAllViews ( )

Definition at line 770 of file FWGUIManager.cc.

References gather_cfg::cout, DeadROC_duringRun::dir, MillePedeFileConverter_cfg::e, exportAllViews(), m_cmsShowMainFrame, Skims_PA_cff::name, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by FWGUIManager().

770  {
771  try {
772  static TString dir(".");
773  const char* kImageExportTypes[] = {"PNG",
774  "*.png",
775  "GIF",
776  "*.gif",
777  "JPEG",
778  "*.jpg",
779  "PDF",
780  "*.pdf",
781  "Encapsulated PostScript",
782  "*.eps",
783  nullptr,
784  nullptr};
785 
786  TGFileInfo fi;
787  fi.fFileTypes = kImageExportTypes;
788  fi.fIniDir = StrDup(dir);
789  new TGFileDialog(gClient->GetDefaultRoot(), m_cmsShowMainFrame, kFDSave, &fi);
790  dir = fi.fIniDir;
791  if (fi.fFilename != nullptr) {
792  std::string name = fi.fFilename;
793  // fi.fFileTypeIdx points to the name of the file type
794  // selected in the drop-down menu, so fi.fFileTypeIdx gives us
795  // the extension
796  std::string ext = kImageExportTypes[fi.fFileTypeIdx + 1] + 1;
797  if (name.find(ext) == name.npos)
798  name += ext;
799  // now add format trailing before the extension
800  name.insert(name.rfind('.'), "-%u_%u_%u_%s");
801  exportAllViews(name, -1);
802  }
803  } catch (std::runtime_error& e) {
804  std::cout << e.what() << std::endl;
805  }
806 }
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254
void exportAllViews(const std::string &format, int height)
Definition: memstream.h:15

◆ filterButtonClicked()

void FWGUIManager::filterButtonClicked ( )

Definition at line 1268 of file FWGUIManager.cc.

References filterButtonClicked_.

1268 { filterButtonClicked_.emit(); }
sigc::signal< void()> filterButtonClicked_
Definition: FWGUIManager.h:203

◆ finishUpColorChange()

void FWGUIManager::finishUpColorChange ( )
private

Definition at line 1254 of file FWGUIManager.cc.

References CmsShowCommonPopup::colorSetChanged(), CmsShowModelPopup::colorSetChanged(), CmsShowEDI::colorSetChanged(), m_commonPopup, m_ediFrame, and m_modelPopup.

Referenced by FWGUIManager().

1254  {
1255  if (m_commonPopup)
1257  if (m_modelPopup)
1259  if (m_ediFrame)
1261 
1262  gEve->FullRedraw3D();
1263 }
void colorSetChanged()
Definition: CmsShowEDI.cc:501
CmsShowEDI * m_ediFrame
Definition: FWGUIManager.h:260
CmsShowModelPopup * m_modelPopup
Definition: FWGUIManager.h:261
CmsShowCommonPopup * m_commonPopup
Definition: FWGUIManager.h:263

◆ getAction()

CSGAction * FWGUIManager::getAction ( const std::string  name)

◆ getContext()

fireworks::Context* FWGUIManager::getContext ( )
inline

Definition at line 153 of file FWGUIManager.h.

References m_context.

Referenced by FWFileEntry::openFile().

153 { return m_context; }
fireworks::Context * m_context
Definition: FWGUIManager.h:245

◆ getCurrentEvent()

const edm::EventBase * FWGUIManager::getCurrentEvent ( ) const

◆ getGUIManager()

FWGUIManager * FWGUIManager::getGUIManager ( )
static

◆ getMainFrame()

CmsShowMainFrame* FWGUIManager::getMainFrame ( ) const
inline

◆ getSwapCandidate()

TEveWindow * FWGUIManager::getSwapCandidate ( )
private

Definition at line 395 of file FWGUIManager.cc.

References m_viewPrimPack, m_viewSecPack, and createTree::pp.

Referenced by checkSubviewAreaIconState(), and subviewSwapped().

395  {
396  TEveWindow* swapCandidate = nullptr;
397 
398  if (gEve->GetWindowManager()->GetCurrentWindow()) {
399  swapCandidate = gEve->GetWindowManager()->GetCurrentWindow();
400  } else {
401  // swap with first docked view
402  TEveCompositeFrame* pef;
403  TGFrameElementPack* pel;
404 
405  // check if there is view in prim pack
406  TGPack* pp = m_viewPrimPack->GetPack();
407  if (pp->GetList()->GetSize() > 2) {
408  pel = (TGFrameElementPack*)pp->GetList()->At(1);
409  if (pel->fState) // is first undocked
410  {
411  pef = dynamic_cast<TEveCompositeFrame*>(pel->fFrame);
412  if (pef && pef->GetEveWindow())
413  swapCandidate = pef->GetEveWindow();
414  }
415  }
416  if (swapCandidate == nullptr) {
417  // no eve window found in primary, check secondary
418  TGPack* sp = m_viewSecPack->GetPack();
419  TIter frame_iterator(sp->GetList());
420  while ((pel = (TGFrameElementPack*)frame_iterator())) {
421  pef = dynamic_cast<TEveCompositeFrame*>(pel->fFrame);
422  if (pef && pef->GetEveWindow() && pel->fState) {
423  swapCandidate = pef->GetEveWindow();
424  break;
425  }
426  }
427  }
428  }
429  return swapCandidate;
430 }
TEveWindowPack * m_viewPrimPack
Definition: FWGUIManager.h:275
TEveWindowPack * m_viewSecPack
Definition: FWGUIManager.h:276

◆ initEmpty()

void FWGUIManager::initEmpty ( )

Definition at line 1322 of file FWGUIManager.cc.

References createView(), m_cmsShowMainFrame, m_WMDecorH, m_WMOffsetX, m_WMOffsetY, x, and y.

Referenced by CmsShowMain::setupDataHandling().

1322  {
1323  int x = 150 + m_WMOffsetX;
1324  int y = 50 + m_WMOffsetY;
1325  m_cmsShowMainFrame->Move(x, y);
1326  m_cmsShowMainFrame->SetWMPosition(x, y < m_WMDecorH ? m_WMDecorH : y);
1327 
1328  createView("Rho Phi");
1329  createView("Rho Z");
1330 
1331  m_cmsShowMainFrame->MapSubwindows();
1332  m_cmsShowMainFrame->Layout();
1333  m_cmsShowMainFrame->MapRaised();
1334 }
ViewMap_i createView(const std::string &iName, TEveWindowSlot *slot=nullptr)
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254

◆ loopAction()

CSGContinuousAction * FWGUIManager::loopAction ( )

Definition at line 357 of file FWGUIManager.cc.

References CmsShowMainFrame::loopAction(), and m_cmsShowMainFrame.

357 { return m_cmsShowMainFrame->loopAction(); }
CSGContinuousAction * loopAction() const
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254

◆ lumiIdChanged()

void FWGUIManager::lumiIdChanged ( )

Definition at line 1235 of file FWGUIManager.cc.

References FWNumberEntryField::GetUIntNumber(), edm::invalidLuminosityBlockNumber, m_cmsShowMainFrame, CmsShowMainFrame::m_eventEntry, CmsShowMainFrame::m_lumiEntry, and FWNumberEntryField::SetUIntNumber().

1235  {
1238  }
1239 
1240  m_cmsShowMainFrame->m_eventEntry->SetText("", kFALSE);
1241  m_cmsShowMainFrame->m_eventEntry->SetFocus();
1242 }
FWNumberEntryField * m_lumiEntry
virtual void SetUIntNumber(UInt_t n)
FWNumberEntryField * m_eventEntry
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254
virtual UInt_t GetUIntNumber()
LuminosityBlockNumber_t const invalidLuminosityBlockNumber

◆ makeGUIsubview()

TGFrame * FWGUIManager::makeGUIsubview ( TEveCompositeFrame *  cp,
TGCompositeFrame *  parent,
Int_t  height 
)
static

◆ measureWMOffsets()

void FWGUIManager::measureWMOffsets ( )
private

Definition at line 1283 of file FWGUIManager.cc.

References fwLog, fwlog::kDebug, m_WMDecorH, m_WMOffsetX, m_WMOffsetY, x, and y.

Referenced by FWGUIManager().

1283  {
1284  const Int_t x = 100, y = 100;
1285 
1286  TGMainFrame* mf1 = new TGMainFrame(nullptr, 0, 0);
1287  mf1->MapWindow();
1288  mf1->Move(x, y);
1289 
1290  // This seems to be the only reliable way to make sure Move() has been processed.
1291  {
1292  TGMainFrame* mf2 = new TGMainFrame(nullptr, 0, 0);
1293  mf2->MapWindow();
1294  while (!mf2->IsMapped())
1295  gClient->HandleInput();
1296  delete mf2;
1297  }
1298  {
1299  Int_t xm, ym;
1300  Window_t childdum;
1301  WindowAttributes_t attr;
1302  gVirtualX->TranslateCoordinates(mf1->GetId(), gClient->GetDefaultRoot()->GetId(), 0, 0, xm, ym, childdum);
1303  gVirtualX->GetWindowAttributes(mf1->GetId(), attr);
1304  m_WMOffsetX = x - xm;
1305  m_WMOffsetY = y - ym;
1306  m_WMDecorH = attr.fY;
1307  fwLog(fwlog::kDebug) << Form(
1308  "FWGUIManager::measureWMOffsets: required (%d,%d), measured(%d, %d) => dx=%d, dy=%d; decor_h=%d.\n",
1309  x,
1310  y,
1311  xm,
1312  ym,
1313  m_WMOffsetX,
1314  m_WMOffsetY,
1315  m_WMDecorH);
1316  }
1317  delete mf1;
1318 }
#define fwLog(_level_)
Definition: fwLog.h:45

◆ newItem()

void FWGUIManager::newItem ( const FWEventItem iItem)
private

Definition at line 372 of file FWGUIManager.cc.

References FWEventItem::id(), and FWEventItem::name().

Referenced by FWGUIManager().

372  {
373 #if defined(THIS_WILL_NEVER_BE_DEFINED)
374  m_selectionItemsComboBox->AddEntry(iItem->name().c_str(), iItem->id());
375  if (iItem->id() == 0) {
376  m_selectionItemsComboBox->Select(0);
377  }
378 #endif
379 }
unsigned int id() const
Definition: FWEventItem.cc:433
const std::string & name() const
Definition: FWEventItem.cc:435

◆ newViewSlot()

void FWGUIManager::newViewSlot ( const std::string &  iName)

Definition at line 278 of file FWGUIManager.cc.

References createView().

Referenced by FWGUIManager().

278  {
279  // this function have to exist, becuse CSGAction binds to void functions
280  createView(iName);
281 }
ViewMap_i createView(const std::string &iName, TEveWindowSlot *slot=nullptr)

◆ open3DRegion()

void FWGUIManager::open3DRegion ( )

Definition at line 566 of file FWGUIManager.cc.

References gather_cfg::cout, createView(), MillePedeFileConverter_cfg::e, B2GTnPMonitor_cfi::item, m_context, m_viewSecPack, EcalTangentSkim_cfg::o, parse(), phi, FWSelectionManager::selected(), fireworks::Context::selectionManager(), theta(), and findQualityFiles::v.

Referenced by FWModelContextMenuHandler::chosenItem().

566  {
567  try {
568  FWModelId id = *(m_context->selectionManager()->selected().begin());
569  float theta = 0, phi = 0;
570  edm::TypeWithDict type = edm::TypeWithDict((TClass*)id.item()->modelType());
571  using namespace boost::spirit::classic;
573  reco::parser::Grammar grammar(tmpPtr, type);
574  edm::ObjectWithDict o(type, (void*)id.item()->modelData(id.index()));
575  if (parse("theta()", grammar.use_parser<1>() >> end_p, space_p).full)
576  theta = tmpPtr->value(o);
577  else
578  throw FWExpressionException("syntax error", -1);
579  if (parse("phi()", grammar.use_parser<1>() >> end_p, space_p).full)
580  phi = tmpPtr->value(o);
581  else
582  throw FWExpressionException("syntax error", -1);
583  ViewMap_i it = createView("3D Tower", m_viewSecPack->NewSlot());
584  FW3DViewBase* v = static_cast<FW3DViewBase*>(it->second);
585  v->setClip(theta, phi);
586  it->first->UndockWindow();
587  } catch (const reco::parser::BaseException& e) {
588  std::cout << " FWModelFilter failed to base " << e.what() << std::endl;
589  }
590 }
FWSelectionManager * selectionManager() const
Definition: Context.h:54
ViewMap_t::iterator ViewMap_i
Definition: FWGUIManager.h:103
vector< string > parse(string line, const string &delimiter)
boost::spirit::classic::parser_error< reco::parser::SyntaxErrors > BaseException
Definition: Exception.h:33
std::shared_ptr< ExpressionBase > ExpressionPtr
TEveWindowPack * m_viewSecPack
Definition: FWGUIManager.h:276
ViewMap_i createView(const std::string &iName, TEveWindowSlot *slot=nullptr)
fireworks::Context * m_context
Definition: FWGUIManager.h:245
const std::set< FWModelId > & selected() const
Geom::Theta< T > theta() const

◆ openEveBrowserForDebugging()

void FWGUIManager::openEveBrowserForDebugging ( ) const

Definition at line 1213 of file FWGUIManager.cc.

1213 { gEve->GetBrowser()->MapWindow(); }

◆ operator=()

const FWGUIManager& FWGUIManager::operator= ( const FWGUIManager )
delete

◆ playEventsAction()

CSGContinuousAction * FWGUIManager::playEventsAction ( )

Definition at line 351 of file FWGUIManager.cc.

References m_cmsShowMainFrame, and CmsShowMainFrame::playEventsAction().

Referenced by CmsShowMain::checkLiveMode(), FWFFLooper::checkPosition(), and CmsShowMain::checkPosition().

CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254
CSGContinuousAction * playEventsAction() const

◆ playEventsBackwardsAction()

CSGContinuousAction * FWGUIManager::playEventsBackwardsAction ( )

Definition at line 353 of file FWGUIManager.cc.

References m_cmsShowMainFrame, and CmsShowMainFrame::playEventsBackwardsAction().

353  {
355 }
CSGContinuousAction * playEventsBackwardsAction() const
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254

◆ popupViewClosed()

void FWGUIManager::popupViewClosed ( )

Definition at line 614 of file FWGUIManager.cc.

References CmsShowViewPopup::getEveWindow(), FWGUISubviewArea::getToolBarFromWindow(), m_viewPopup, and FWGUISubviewArea::setInfoButton().

Referenced by setViewPopup().

614  {
615  if (m_viewPopup->getEveWindow()) {
617  sa->setInfoButton(kFALSE);
618  }
619 }
TEveWindow * getEveWindow() const
void setInfoButton(bool downp)
CmsShowViewPopup * m_viewPopup
Definition: FWGUIManager.h:262
static FWGUISubviewArea * getToolBarFromWindow(TEveWindow *)

◆ promptForConfigurationFile()

bool FWGUIManager::promptForConfigurationFile ( std::string &  result,
enum EFileDialogMode  mode 
)
private

Helper method for a load / save configuration dialog.

result where the picked file is stored.

mode the mode for the dialog (i.e. Load / Save).

Returns
true if a file was successfully picked, false otherwise.

Definition at line 698 of file FWGUIManager.cc.

References DeadROC_duringRun::dir, m_cmsShowMainFrame, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, Skims_PA_cff::name, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by promptForLoadConfigurationFile(), promptForPartialLoadConfigurationFile(), promptForPartialSaveConfigurationFile(), and promptForSaveConfigurationFile().

698  {
699  const static char* kFileTypes[] = {"Fireworks Configuration files", "*.fwc", "All Files", "*", nullptr, nullptr};
700 
701  static TString dir(".");
702 
703  TGFileInfo fi;
704  fi.fFileTypes = kFileTypes;
705  fi.fIniDir = StrDup(dir);
706  new TGFileDialog(gClient->GetDefaultRoot(), m_cmsShowMainFrame, mode, &fi);
707  dir = fi.fIniDir;
708  if (fi.fFilename == nullptr) // to handle "cancel" button properly
709  return false;
710  std::string name = fi.fFilename;
711  // if the extension isn't already specified by hand, specify it now
712  std::string ext = kFileTypes[fi.fFileTypeIdx + 1] + 1;
713  if (!ext.empty() && name.find(ext) == name.npos)
714  name += ext;
715  result = name;
716  return true;
717 }
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254
Definition: memstream.h:15

◆ promptForLoadConfigurationFile()

void FWGUIManager::promptForLoadConfigurationFile ( )
private

Emits the signal which request to load the configuration file picked up in a dialog.

Definition at line 722 of file FWGUIManager.cc.

References loadFromConfigurationFile_, Skims_PA_cff::name, promptForConfigurationFile(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by FWGUIManager().

722  {
724  if (!promptForConfigurationFile(name, kFDOpen))
725  return;
726 
728 }
sigc::signal< void(const std::string &)> loadFromConfigurationFile_
Definition: FWGUIManager.h:207
bool promptForConfigurationFile(std::string &result, enum EFileDialogMode mode)

◆ promptForPartialLoadConfigurationFile()

void FWGUIManager::promptForPartialLoadConfigurationFile ( )
private

Definition at line 730 of file FWGUIManager.cc.

References loadPartialFromConfigurationFile_, Skims_PA_cff::name, promptForConfigurationFile(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by FWGUIManager().

730  {
732  if (!promptForConfigurationFile(name, kFDOpen))
733  return;
734 
736  //
737 }
sigc::signal< void(const std::string &)> loadPartialFromConfigurationFile_
Definition: FWGUIManager.h:208
bool promptForConfigurationFile(std::string &result, enum EFileDialogMode mode)

◆ promptForPartialSaveConfigurationFile()

void FWGUIManager::promptForPartialSaveConfigurationFile ( )
private

Definition at line 750 of file FWGUIManager.cc.

References Skims_PA_cff::name, promptForConfigurationFile(), AlCaHLTBitMon_QueryRunRegistry::string, and writePartialToConfigurationFile_.

Referenced by FWGUIManager().

750  {
752  if (!promptForConfigurationFile(name, kFDSave))
753  return;
754 
756 }
bool promptForConfigurationFile(std::string &result, enum EFileDialogMode mode)
sigc::signal< void(const std::string &)> writePartialToConfigurationFile_
Definition: FWGUIManager.h:206

◆ promptForSaveConfigurationFile()

void FWGUIManager::promptForSaveConfigurationFile ( )
private

Emits the signal which requests to save the current configuration in the file picked up in the dialog.

Definition at line 742 of file FWGUIManager.cc.

References Skims_PA_cff::name, promptForConfigurationFile(), AlCaHLTBitMon_QueryRunRegistry::string, and writeToConfigurationFile_.

Referenced by FWGUIManager().

742  {
744  if (!promptForConfigurationFile(name, kFDSave))
745  return;
746 
748 }
sigc::signal< void(const std::string &)> writeToConfigurationFile_
Definition: FWGUIManager.h:205
bool promptForConfigurationFile(std::string &result, enum EFileDialogMode mode)

◆ registerViewBuilder()

void FWGUIManager::registerViewBuilder ( const std::string &  iName,
ViewBuildFunctor iBuilder 
)

◆ resetWMOffsets()

void FWGUIManager::resetWMOffsets ( )

Definition at line 1320 of file FWGUIManager.cc.

References m_WMDecorH, m_WMOffsetX, and m_WMOffsetY.

Referenced by CmsShowMain::CmsShowMain().

◆ runIdChanged()

void FWGUIManager::runIdChanged ( )

Definition at line 1226 of file FWGUIManager.cc.

References FWNumberEntryField::GetUIntNumber(), edm::invalidRunNumber, m_cmsShowMainFrame, CmsShowMainFrame::m_lumiEntry, CmsShowMainFrame::m_runEntry, and FWNumberEntryField::SetUIntNumber().

1226  {
1229  }
1230 
1231  m_cmsShowMainFrame->m_lumiEntry->SetText("", kFALSE);
1232  m_cmsShowMainFrame->m_lumiEntry->SetFocus();
1233 }
FWNumberEntryField * m_lumiEntry
virtual void SetUIntNumber(UInt_t n)
RunNumber_t const invalidRunNumber
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254
virtual UInt_t GetUIntNumber()
FWNumberEntryField * m_runEntry

◆ savePartialToConfigurationFile()

void FWGUIManager::savePartialToConfigurationFile ( )
private

Definition at line 758 of file FWGUIManager.cc.

References writePartialToConfigurationFile_.

Referenced by FWGUIManager().

758 { writePartialToConfigurationFile_("current"); }
sigc::signal< void(const std::string &)> writePartialToConfigurationFile_
Definition: FWGUIManager.h:206

◆ setDelayBetweenEvents()

void FWGUIManager::setDelayBetweenEvents ( Float_t  val)

Definition at line 1224 of file FWGUIManager.cc.

References m_cmsShowMainFrame, CmsShowMainFrame::setPlayDelayGUI(), and heppy_batch::val.

CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254
void setPlayDelayGUI(Float_t val, Bool_t sliderChanged)

◆ setFilterButtonIcon()

void FWGUIManager::setFilterButtonIcon ( int  state)

Definition at line 1272 of file FWGUIManager.cc.

References mps_fire::i, m_cmsShowMainFrame, CmsShowMainFrame::m_filterEnableBtn, CmsShowMainFrame::m_filterIcons, and FWCustomIconsButton::setIcons().

Referenced by CmsShowMain::navigatorChangedFilterState(), and CmsShowMain::setupDataHandling().

1272  {
1273  int i = state * 3;
1277 }
FWCustomIconsButton * m_filterEnableBtn
const TGPicture * m_filterIcons[9]
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254
void setIcons(const TGPicture *iUpIcon, const TGPicture *iDownIcon, const TGPicture *iDisabledIcon, const TGPicture *ibelowMouseIcon=nullptr)

◆ setFilterButtonText()

void FWGUIManager::setFilterButtonText ( const char *  txt)

◆ setFrom()

void FWGUIManager::setFrom ( const FWConfiguration iFrom)
overridevirtual

Implements FWConfigurable.

Definition at line 1088 of file FWGUIManager.cc.

References cms::cuda::assert(), CmsShowMainFrame::bindCSGActionKeys(), FWViewType::checkNameWithViewVersion(), checkSubviewAreaIconState(), createView(), custom_jme_cff::emf, fwLog, kCollectionController(), kCommonController(), kControllers(), FWConfiguration::keyValues(), FWViewType::kGeometryTable, kMainWindow(), kObjectController(), kUndocked(), kViewArea(), kViewController(), kViews(), fwlog::kWarning, m_cmsShowMainFrame, m_commonPopup, m_ediFrame, m_modelPopup, m_viewMap, m_viewPopup, m_viewPrimPack, m_viewSecPack, Skims_PA_cff::name, FWGeometryTableViewBase::populate3DViewsFromConfig(), CmsShowMainFrame::setSummaryViewWeight(), setViewPopup(), setWindowInfoFrom(), showCommonPopup(), showEDIFrame(), showModelPopup(), AlCaHLTBitMon_QueryRunRegistry::string, subviewDestroyAll(), FWConfiguration::value(), FWConfiguration::valueForKey(), and FWConfiguration::version().

1088  {
1089  gEve->DisableRedraw();
1090  // main window
1091  if (m_viewSecPack)
1093 
1094  const FWConfiguration* mw = iFrom.valueForKey(kMainWindow);
1095  assert(mw != nullptr);
1096  // Window needs to mapped before moving, otherwise move can lead
1097  // to wrong results on some window managers.
1098 
1099  // set from view reading area info nd view info
1100  float_t leftWeight = 1;
1101  float_t rightWeight = 1;
1102  if (mw->version() >= 2) {
1103  leftWeight = atof(mw->valueForKey("leftWeight")->value().c_str());
1104  rightWeight = atof(mw->valueForKey("rightWeight")->value().c_str());
1105  }
1106 
1107  if (mw->version() >= 3) {
1108  float summaryWeight = atof(mw->valueForKey("summaryWeight")->value().c_str());
1109  m_cmsShowMainFrame->setSummaryViewWeight(summaryWeight);
1110  }
1111 
1112  TEveWindowSlot* primSlot = (leftWeight > 0) ? m_viewPrimPack->NewSlotWithWeight(leftWeight) : nullptr;
1113  m_viewSecPack = m_viewPrimPack->NewSlotWithWeight(rightWeight)->MakePack();
1114  m_viewSecPack->SetVertical();
1115  m_viewSecPack->SetShowTitleBar(kFALSE);
1116 
1117  // views list
1118  const FWConfiguration* views = iFrom.valueForKey(kViews);
1119  assert(nullptr != views);
1120  const FWConfiguration::KeyValues* keyVals = views->keyValues();
1121  const FWConfiguration* viewArea = iFrom.valueForKey(kViewArea);
1122 
1123  // area list (ignored in older version)
1124  if (viewArea->version() > 1) {
1125  const FWConfiguration::KeyValues* akv = viewArea->keyValues();
1126  FWConfiguration::KeyValuesIt areaIt = akv->begin();
1127 
1128  for (FWConfiguration::KeyValuesIt it = keyVals->begin(); it != keyVals->end(); ++it) {
1129  float weight = atof((areaIt->second).valueForKey("weight")->value().c_str());
1130  TEveWindowSlot* slot =
1131  (!m_viewMap.empty() || (primSlot == nullptr)) ? m_viewSecPack->NewSlotWithWeight(weight) : primSlot;
1132  std::string name = FWViewType::checkNameWithViewVersion(it->first, it->second.version());
1133  ViewMap_i lastViewIt = createView(name, slot);
1134  lastViewIt->second->setFrom(it->second);
1135 
1136  bool undocked = atof((areaIt->second).valueForKey("undocked")->value().c_str());
1137  if (undocked) {
1138  TEveWindow* lastWindow = lastViewIt->first;
1139  lastWindow->UndockWindow();
1140  TEveCompositeFrameInMainFrame* emf = dynamic_cast<TEveCompositeFrameInMainFrame*>(lastWindow->GetEveFrame());
1141  if (emf) {
1142  const TGMainFrame* mf = dynamic_cast<const TGMainFrame*>(emf->GetParent());
1143  if (mf) {
1145  TGMainFrame* mfp = (TGMainFrame*)mf; // have to cast in non-const
1146  const FWConfiguration* mwc = (areaIt->second).valueForKey("UndockedWindowPos");
1147  setWindowInfoFrom(*mwc, mfp);
1148  }
1149  }
1150  }
1151  areaIt++;
1152  }
1153  } else { // create views with same weight in old version
1154  for (FWConfiguration::KeyValuesIt it = keyVals->begin(); it != keyVals->end(); ++it) {
1155  std::string name = FWViewType::checkNameWithViewVersion(it->first, it->second.version());
1156  createView(name, !m_viewMap.empty() ? m_viewSecPack->NewSlot() : primSlot);
1157 
1158  ViewMap_i lastViewIt = m_viewMap.end();
1159  lastViewIt--;
1160  lastViewIt->second->setFrom(it->second);
1161  }
1162  // handle undocked windows in old version
1163  const FWConfiguration* undocked = iFrom.valueForKey(kUndocked);
1164  if (nullptr != undocked) {
1165  fwLog(fwlog::kWarning) << "Restrore of undocked windows with old window management not supported." << std::endl;
1166  }
1167  }
1168 
1169  //handle controllers
1170  const FWConfiguration* controllers = iFrom.valueForKey(kControllers);
1171  if (nullptr != controllers) {
1172  const FWConfiguration::KeyValues* keyVals = controllers->keyValues();
1173  if (nullptr != keyVals) {
1174  //we have open controllers
1175  for (FWConfiguration::KeyValuesIt it = keyVals->begin(); it != keyVals->end(); ++it) {
1176  const std::string& controllerName = it->first;
1177  // std::cout <<"found controller "<<controllerName<<std::endl;
1178  if (controllerName == kCollectionController) {
1179  showEDIFrame();
1180  setWindowInfoFrom(it->second, m_ediFrame);
1181  } else if (controllerName == kViewController) {
1182  setViewPopup(nullptr);
1183  setWindowInfoFrom(it->second, m_viewPopup);
1184  } else if (controllerName == kObjectController) {
1185  showModelPopup();
1186  setWindowInfoFrom(it->second, m_modelPopup);
1187  } else if (controllerName == kCommonController) {
1188  showCommonPopup();
1189  setWindowInfoFrom(it->second, m_commonPopup);
1190  }
1191  }
1192  }
1193  }
1194 
1195  for (ViewMap_i it = m_viewMap.begin(); it != m_viewMap.end(); ++it) {
1196  if (it->second->typeId() >= FWViewType::kGeometryTable) {
1199  }
1200  }
1201 
1202  gEve->EnableRedraw();
1203  // disable first docked view
1204  checkSubviewAreaIconState(nullptr);
1205 
1206  m_cmsShowMainFrame->MapWindow();
1208  m_cmsShowMainFrame->MapSubwindows();
1209  m_cmsShowMainFrame->Layout();
1210  m_cmsShowMainFrame->MapRaised();
1211 }
ViewMap_t::iterator ViewMap_i
Definition: FWGUIManager.h:103
ViewMap_t m_viewMap
Definition: FWGUIManager.h:272
void showModelPopup()
CmsShowEDI * m_ediFrame
Definition: FWGUIManager.h:260
void subviewDestroyAll()
void setViewPopup(TEveWindow *)
static const std::string kViewController("view")
Definition: weight.py:1
static const std::string kViews("views")
static const std::string kObjectController("object")
assert(be >=bs)
TEveWindowPack * m_viewPrimPack
Definition: FWGUIManager.h:275
void showEDIFrame(int iInfoToShow=-1)
Allowed values are -1 or ones from FWDataCategories enum.
static const std::string kCommonController("common")
TEveWindowPack * m_viewSecPack
Definition: FWGUIManager.h:276
void setWindowInfoFrom(const FWConfiguration &iFrom, TGMainFrame *iFrame)
ViewMap_i createView(const std::string &iName, TEveWindowSlot *slot=nullptr)
void checkSubviewAreaIconState(TEveWindow *)
const std::string & value(unsigned int iIndex=0) const
static const std::string kCollectionController("collection")
CmsShowViewPopup * m_viewPopup
Definition: FWGUIManager.h:262
static const std::string kMainWindow("main window")
static const std::string kUndocked("undocked views")
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254
CmsShowModelPopup * m_modelPopup
Definition: FWGUIManager.h:261
static const std::string kViewArea("view area")
CmsShowCommonPopup * m_commonPopup
Definition: FWGUIManager.h:263
static const std::string & checkNameWithViewVersion(const std::string &name, unsigned int viewVersion)
Definition: FWViewType.cc:79
std::vector< std::pair< std::string, FWConfiguration > > KeyValues
#define fwLog(_level_)
Definition: fwLog.h:45
KeyValues::const_iterator KeyValuesIt
void setSummaryViewWeight(float)
const FWConfiguration * valueForKey(const std::string &iKey) const
void bindCSGActionKeys(const TGMainFrame *f) const
const KeyValues * keyValues() const
void showCommonPopup()
static const std::string kControllers("controllers")
unsigned int version() const

◆ setPlayMode()

void FWGUIManager::setPlayMode ( bool  play)

Definition at line 363 of file FWGUIManager.cc.

References m_cmsShowMainFrame, CmsShowMainFrame::m_eventEntry, and CmsShowMainFrame::m_runEntry.

363  {
364  m_cmsShowMainFrame->m_runEntry->SetEnabled(!play);
365  m_cmsShowMainFrame->m_eventEntry->SetEnabled(!play);
366 }
FWNumberEntryField * m_eventEntry
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254
FWNumberEntryField * m_runEntry

◆ setViewPopup()

void FWGUIManager::setViewPopup ( TEveWindow *  ew)
private

Definition at line 626 of file FWGUIManager.cc.

References CmsShowViewPopup::closed_, fireworks::Context::colorManager(), m_context, m_guiManager, m_viewMap, m_viewPopup, popupViewClosed(), CmsShowViewPopup::reset(), and CmsShowViewPopup::UnmapWindow().

Referenced by setFrom(), showViewPopup(), subviewDestroyAll(), subviewInfoSelected(), and subviewIsBeingDestroyed().

626  {
627  FWViewBase* vb = ew ? m_viewMap[ew] : nullptr;
628  if (m_viewPopup == nullptr) {
629  m_viewPopup = new CmsShowViewPopup(nullptr, 200, 200, m_context->colorManager(), vb, ew);
631  } else {
633  }
634  m_viewPopup->reset(vb, ew);
635  m_viewPopup->MapRaised();
636 }
void popupViewClosed()
ViewMap_t m_viewMap
Definition: FWGUIManager.h:272
void UnmapWindow() override
static FWGUIManager * m_guiManager
Definition: FWGUIManager.h:242
CmsShowViewPopup * m_viewPopup
Definition: FWGUIManager.h:262
void reset(FWViewBase *, TEveWindow *ew)
fireworks::Context * m_context
Definition: FWGUIManager.h:245
sigc::signal< void()> closed_
FWColorManager * colorManager() const
Definition: Context.h:58

◆ setWindowInfoFrom()

void FWGUIManager::setWindowInfoFrom ( const FWConfiguration iFrom,
TGMainFrame *  iFrame 
)

Definition at line 1077 of file FWGUIManager.cc.

References m_WMDecorH, m_WMOffsetX, m_WMOffsetY, FWConfiguration::value(), FWConfiguration::valueForKey(), ApeEstimator_cff::width, x, and y.

Referenced by setFrom().

1077  {
1078  int x = atoi(iFrom.valueForKey("x")->value().c_str()) + m_WMOffsetX;
1079  int y = atoi(iFrom.valueForKey("y")->value().c_str()) + m_WMOffsetY;
1080  if (y < m_WMDecorH)
1081  y = m_WMDecorH;
1082  int width = atoi(iFrom.valueForKey("width")->value().c_str());
1083  int height = atoi(iFrom.valueForKey("height")->value().c_str());
1084  iFrame->MoveResize(x, y, width, height);
1085  iFrame->SetWMPosition(x, y);
1086 }
const std::string & value(unsigned int iIndex=0) const
const FWConfiguration * valueForKey(const std::string &iKey) const

◆ showCommonPopup()

void FWGUIManager::showCommonPopup ( )

Definition at line 592 of file FWGUIManager.cc.

References CmsShowMainFrame::bindCSGActionKeys(), fireworks::Context::commonPrefs(), m_cmsShowMainFrame, m_commonPopup, m_context, and CmsShowCommon::setView().

Referenced by FWGUIManager(), and setFrom().

592  {
593  if (!m_commonPopup) {
597  }
598  m_commonPopup->MapRaised();
599 }
CmsShowCommon * commonPrefs() const
Definition: Context.cc:160
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254
CmsShowCommonPopup * m_commonPopup
Definition: FWGUIManager.h:263
fireworks::Context * m_context
Definition: FWGUIManager.h:245
void bindCSGActionKeys(const TGMainFrame *f) const
void setView(CmsShowCommonPopup *x)
Definition: CmsShowCommon.h:78

◆ showEDIFrame()

void FWGUIManager::showEDIFrame ( int  iInfoToShow = -1)

Allowed values are -1 or ones from FWDataCategories enum.

Definition at line 558 of file FWGUIManager.cc.

References createEDIFrame(), m_ediFrame, and CmsShowEDI::show().

Referenced by FWModelContextMenuHandler::chosenItem(), FWGUIManager(), FWSummaryManager::requestForController(), FWSummaryManager::requestForError(), FWSummaryManager::requestForFilter(), FWSummaryManager::requestForInfo(), and setFrom().

558  {
559  createEDIFrame();
560  if (-1 != iToShow) {
561  m_ediFrame->show(static_cast<FWDataCategories>(iToShow));
562  }
563  m_ediFrame->MapRaised();
564 }
CmsShowEDI * m_ediFrame
Definition: FWGUIManager.h:260
void createEDIFrame()
void show(FWDataCategories)
Definition: CmsShowEDI.cc:498

◆ showEventFilterGUI()

void FWGUIManager::showEventFilterGUI ( )

Definition at line 1266 of file FWGUIManager.cc.

References m_cmsShowMainFrame, and showEventFilterGUI_.

Referenced by FWFFLooper::beginRun(), and CmsShowMain::filterButtonClicked().

CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254
sigc::signal< void(const TGWindow *)> showEventFilterGUI_
Definition: FWGUIManager.h:204

◆ showInvMassDialog()

void FWGUIManager::showInvMassDialog ( )

Definition at line 638 of file FWGUIManager.cc.

References CmsShowMainFrame::bindCSGActionKeys(), m_cmsShowMainFrame, m_context, m_invMassDialog, and fireworks::Context::selectionManager().

Referenced by FWGUIManager().

638  {
639  if (!m_invMassDialog) {
642  }
643  m_invMassDialog->MapRaised();
644 }
FWSelectionManager * selectionManager() const
Definition: Context.h:54
FWInvMassDialog * m_invMassDialog
Definition: FWGUIManager.h:264
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254
fireworks::Context * m_context
Definition: FWGUIManager.h:245
void bindCSGActionKeys(const TGMainFrame *f) const

◆ showModelPopup()

void FWGUIManager::showModelPopup ( )

Definition at line 608 of file FWGUIManager.cc.

References createModelPopup(), and m_modelPopup.

Referenced by FWModelContextMenuHandler::chosenItem(), FWGUIManager(), and setFrom().

608  {
609  if (!m_modelPopup)
611  m_modelPopup->MapRaised();
612 }
CmsShowModelPopup * m_modelPopup
Definition: FWGUIManager.h:261
void createModelPopup()

◆ showSelectedModelContextMenu()

void FWGUIManager::showSelectedModelContextMenu ( Int_t  iGlobalX,
Int_t  iGlobalY,
FWViewContextMenuHandlerBase iHandler 
)

Definition at line 674 of file FWGUIManager.cc.

References m_context, m_contextMenuHandler, FWSelectionManager::selected(), fireworks::Context::selectionManager(), and FWModelContextMenuHandler::showSelectedModelContext().

Referenced by createView(), and FWSummaryManager::requestForSelectedModelContextMenu().

676  {
677  if (!m_context->selectionManager()->selected().empty()) {
678  m_contextMenuHandler->showSelectedModelContext(iGlobalX, iGlobalY, iHandler);
679  }
680 }
FWSelectionManager * selectionManager() const
Definition: Context.h:54
void showSelectedModelContext(Int_t iX, Int_t iY, FWViewContextMenuHandlerBase *) const
NOTE: iX and iY are in global coordinates.
fireworks::Context * m_context
Definition: FWGUIManager.h:245
const std::set< FWModelId > & selected() const
FWModelContextMenuHandler * m_contextMenuHandler
Definition: FWGUIManager.h:252

◆ showViewPopup()

void FWGUIManager::showViewPopup ( )

Definition at line 621 of file FWGUIManager.cc.

References setViewPopup().

Referenced by FWGUIManager().

621  {
622  // CSG action.
623  setViewPopup(nullptr);
624 }
void setViewPopup(TEveWindow *)

◆ subviewDestroy()

void FWGUIManager::subviewDestroy ( FWGUISubviewArea sva)

Definition at line 459 of file FWGUIManager.cc.

References FWViewBase::destroy(), FWGUISubviewArea::getEveWindow(), and m_viewMap.

Referenced by subviewDestroyAll(), and subviewIsBeingDestroyed().

459  {
460  TEveWindow* ew = sva->getEveWindow();
461  FWViewBase* viewBase = m_viewMap[ew];
462  m_viewMap.erase(ew);
463  viewBase->destroy();
464 }
TEveWindow * getEveWindow()
ViewMap_t m_viewMap
Definition: FWGUIManager.h:272
void destroy()
Definition: FWViewBase.cc:57

◆ subviewDestroyAll()

void FWGUIManager::subviewDestroyAll ( )

Definition at line 466 of file FWGUIManager.cc.

References FWGUISubviewArea::getToolBarFromWindow(), mps_fire::i, m_viewMap, m_viewPrimPack, m_viewSecPack, setViewPopup(), subviewDestroy(), and w().

Referenced by FWPartialConfigLoadGUI::Load(), and setFrom().

466  {
467  std::vector<FWGUISubviewArea*> sd;
468  for (ViewMap_i wIt = m_viewMap.begin(); wIt != m_viewMap.end(); ++wIt) {
470  sd.push_back(ar);
471  }
472 
473  for (std::vector<FWGUISubviewArea*>::iterator i = sd.begin(); i != sd.end(); ++i) {
474  if ((*i)->isSelected())
475  setViewPopup(nullptr);
476  subviewDestroy(*i);
477  }
478 
479  gSystem->ProcessEvents();
480  gSystem->Sleep(200);
481 
482  while (m_viewPrimPack->HasChildren()) {
483  TEveWindow* w = dynamic_cast<TEveWindow*>(m_viewPrimPack->FirstChild());
484  if (w)
485  w->DestroyWindowAndSlot();
486  }
487 
488  gSystem->Sleep(200);
489  m_viewSecPack = nullptr;
490  gSystem->ProcessEvents();
491 }
ViewMap_t::iterator ViewMap_i
Definition: FWGUIManager.h:103
ViewMap_t m_viewMap
Definition: FWGUIManager.h:272
T w() const
void setViewPopup(TEveWindow *)
TEveWindowPack * m_viewPrimPack
Definition: FWGUIManager.h:275
TEveWindowPack * m_viewSecPack
Definition: FWGUIManager.h:276
void subviewDestroy(FWGUISubviewArea *)
static FWGUISubviewArea * getToolBarFromWindow(TEveWindow *)

◆ subviewInfoSelected()

void FWGUIManager::subviewInfoSelected ( FWGUISubviewArea sva)

Definition at line 493 of file FWGUIManager.cc.

References FWGUISubviewArea::getEveWindow(), FWGUISubviewArea::getToolBarFromWindow(), m_viewMap, FWGUISubviewArea::setInfoButton(), and setViewPopup().

Referenced by connectSubviewAreaSignals().

493  {
494  // release button on previously selected
495  TEveWindow* ew = sva->getEveWindow();
496  for (ViewMap_i wIt = m_viewMap.begin(); wIt != m_viewMap.end(); ++wIt) {
497  if (wIt->first != ew)
499  }
500  setViewPopup(sva->getEveWindow());
501 }
TEveWindow * getEveWindow()
ViewMap_t::iterator ViewMap_i
Definition: FWGUIManager.h:103
ViewMap_t m_viewMap
Definition: FWGUIManager.h:272
void setViewPopup(TEveWindow *)
void setInfoButton(bool downp)
static FWGUISubviewArea * getToolBarFromWindow(TEveWindow *)

◆ subviewInfoUnselected()

void FWGUIManager::subviewInfoUnselected ( FWGUISubviewArea sva)

Definition at line 503 of file FWGUIManager.cc.

References m_viewPopup, and CmsShowViewPopup::UnmapWindow().

Referenced by connectSubviewAreaSignals().

503 { m_viewPopup->UnmapWindow(); }
void UnmapWindow() override
CmsShowViewPopup * m_viewPopup
Definition: FWGUIManager.h:262

◆ subviewIsBeingDestroyed()

void FWGUIManager::subviewIsBeingDestroyed ( FWGUISubviewArea sva)

Definition at line 449 of file FWGUIManager.cc.

References f, FWGUISubviewArea::isSelected(), m_tasks, setViewPopup(), and subviewDestroy().

Referenced by connectSubviewAreaSignals().

449  {
450  if (sva->isSelected())
451  setViewPopup(nullptr);
452 
454  f = std::bind(&FWGUIManager::subviewDestroy, this, sva);
455  m_tasks->addTask(f);
456  m_tasks->startDoingTasks();
457 }
void setViewPopup(TEveWindow *)
std::function< void()> TaskFunctor
bool isSelected() const
void subviewDestroy(FWGUISubviewArea *)
double f[11][100]
std::unique_ptr< CmsShowTaskExecutor > m_tasks
Definition: FWGUIManager.h:280

◆ subviewSwapped()

void FWGUIManager::subviewSwapped ( FWGUISubviewArea sva)

Definition at line 505 of file FWGUIManager.cc.

References checkSubviewAreaIconState(), FWGUISubviewArea::getEveWindow(), getSwapCandidate(), and edm::swap().

Referenced by connectSubviewAreaSignals().

505  {
506  TEveWindow* curr = getSwapCandidate();
507  TEveWindow* swap = sva->getEveWindow();
508  if (curr)
509  swap->SwapWindow(curr);
510 
511  checkSubviewAreaIconState(nullptr);
512 }
TEveWindow * getEveWindow()
void swap(Association< C > &lhs, Association< C > &rhs)
Definition: Association.h:117
void checkSubviewAreaIconState(TEveWindow *)
TEveWindow * getSwapCandidate()

◆ titleChanged()

void FWGUIManager::titleChanged ( const char *  title)

Definition at line 319 of file FWGUIManager.cc.

References m_cmsShowMainFrame, and runGCPTkAlMap::title.

Referenced by CmsShowMain::appendData(), CmsShowMain::eventChangedImp(), and CmsShowMain::fileChangedSlot().

319  {
320  char title[128];
321  snprintf(title, 127, "cmsShow: %s", subtitle);
322  m_cmsShowMainFrame->SetWindowName(title);
323 }
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254

◆ updateEventFilterEnable()

void FWGUIManager::updateEventFilterEnable ( bool  btnEnabled)

Definition at line 1279 of file FWGUIManager.cc.

References m_cmsShowMainFrame, and CmsShowMainFrame::m_filterEnableBtn.

Referenced by CmsShowMain::setupDataHandling().

1279  {
1280  m_cmsShowMainFrame->m_filterEnableBtn->SetEnabled(btnEnabled);
1281 }
FWCustomIconsButton * m_filterEnableBtn
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254

◆ updateStatus()

void FWGUIManager::updateStatus ( const char *  status)

Member Data Documentation

◆ changedDelayBetweenEvents_

sigc::signal<void(Float_t)> FWGUIManager::changedDelayBetweenEvents_

Definition at line 215 of file FWGUIManager.h.

Referenced by delaySliderChanged().

◆ changedEventEntry_

sigc::signal<void()> FWGUIManager::changedEventEntry_

Definition at line 214 of file FWGUIManager.h.

◆ changedEventId_

sigc::signal<void(edm::RunNumber_t, edm::LuminosityBlockNumber_t, edm::EventNumber_t)> FWGUIManager::changedEventId_

Definition at line 209 of file FWGUIManager.h.

Referenced by eventIdChanged().

◆ changedRunEntry_

sigc::signal<void()> FWGUIManager::changedRunEntry_

Definition at line 213 of file FWGUIManager.h.

◆ filterButtonClicked_

sigc::signal<void()> FWGUIManager::filterButtonClicked_

◆ goingToQuit_

sigc::signal<void()> FWGUIManager::goingToQuit_

Definition at line 210 of file FWGUIManager.h.

◆ loadFromConfigurationFile_

sigc::signal<void(const std::string&)> FWGUIManager::loadFromConfigurationFile_

Definition at line 207 of file FWGUIManager.h.

Referenced by promptForLoadConfigurationFile().

◆ loadPartialFromConfigurationFile_

sigc::signal<void(const std::string&)> FWGUIManager::loadPartialFromConfigurationFile_

Definition at line 208 of file FWGUIManager.h.

Referenced by promptForPartialLoadConfigurationFile().

◆ m_cmsShowMainFrame

CmsShowMainFrame* FWGUIManager::m_cmsShowMainFrame
private

◆ m_commonPopup

CmsShowCommonPopup* FWGUIManager::m_commonPopup
private

Definition at line 263 of file FWGUIManager.h.

Referenced by addTo(), finishUpColorChange(), setFrom(), and showCommonPopup().

◆ m_context

fireworks::Context* FWGUIManager::m_context
private

◆ m_contextMenuHandler

FWModelContextMenuHandler* FWGUIManager::m_contextMenuHandler
private

Definition at line 252 of file FWGUIManager.h.

Referenced by FWGUIManager(), showSelectedModelContextMenu(), and ~FWGUIManager().

◆ m_dataAdder

FWGUIEventDataAdder* FWGUIManager::m_dataAdder
private

Definition at line 257 of file FWGUIManager.h.

Referenced by addData().

◆ m_detailViewManager

FWDetailViewManager* FWGUIManager::m_detailViewManager
private

◆ m_ediFrame

CmsShowEDI* FWGUIManager::m_ediFrame
private

◆ m_fileMenu

TGPopupMenu* FWGUIManager::m_fileMenu
private

Definition at line 256 of file FWGUIManager.h.

◆ m_guiManager

FWGUIManager * FWGUIManager::m_guiManager = nullptr
staticprivate

Definition at line 242 of file FWGUIManager.h.

Referenced by createView(), FWGUIManager(), getGUIManager(), and setViewPopup().

◆ m_helpGLPopup

CmsShowHelpPopup* FWGUIManager::m_helpGLPopup
private

Definition at line 269 of file FWGUIManager.h.

Referenced by createHelpGLPopup().

◆ m_helpPopup

CmsShowHelpPopup* FWGUIManager::m_helpPopup
private

Definition at line 267 of file FWGUIManager.h.

Referenced by createHelpPopup().

◆ m_invMassDialog

FWInvMassDialog* FWGUIManager::m_invMassDialog
private

Definition at line 264 of file FWGUIManager.h.

Referenced by showInvMassDialog(), and ~FWGUIManager().

◆ m_modelChangeConn

sigc::connection FWGUIManager::m_modelChangeConn
private

Definition at line 278 of file FWGUIManager.h.

◆ m_modelPopup

CmsShowModelPopup* FWGUIManager::m_modelPopup
private

Definition at line 261 of file FWGUIManager.h.

Referenced by addTo(), createModelPopup(), finishUpColorChange(), setFrom(), and showModelPopup().

◆ m_nameToViewBuilder

NameToViewBuilder FWGUIManager::m_nameToViewBuilder
private

Definition at line 273 of file FWGUIManager.h.

Referenced by createView(), and registerViewBuilder().

◆ m_navigator

FWNavigatorBase* FWGUIManager::m_navigator
private

Definition at line 253 of file FWGUIManager.h.

Referenced by getCurrentEvent().

◆ m_regionViews

std::vector<FWViewBase*> FWGUIManager::m_regionViews
private

Definition at line 281 of file FWGUIManager.h.

Referenced by eventChangedCallback().

◆ m_shortcutPopup

CmsShowHelpPopup* FWGUIManager::m_shortcutPopup
private

Definition at line 268 of file FWGUIManager.h.

Referenced by createShortcutPopup().

◆ m_summaryManager

FWSummaryManager* FWGUIManager::m_summaryManager
private

Definition at line 247 of file FWGUIManager.h.

Referenced by createList(), and ~FWGUIManager().

◆ m_tasks

std::unique_ptr<CmsShowTaskExecutor> FWGUIManager::m_tasks
private

Definition at line 280 of file FWGUIManager.h.

Referenced by subviewIsBeingDestroyed().

◆ m_viewManagerManager

const FWViewManagerManager* FWGUIManager::m_viewManagerManager
private

Definition at line 251 of file FWGUIManager.h.

◆ m_viewMap

ViewMap_t FWGUIManager::m_viewMap
mutableprivate

◆ m_viewPopup

CmsShowViewPopup* FWGUIManager::m_viewPopup
private

◆ m_viewPrimPack

TEveWindowPack* FWGUIManager::m_viewPrimPack
private

◆ m_viewSecPack

TEveWindowPack* FWGUIManager::m_viewSecPack
private

◆ m_WMDecorH

int FWGUIManager::m_WMDecorH
private

Definition at line 282 of file FWGUIManager.h.

Referenced by initEmpty(), measureWMOffsets(), resetWMOffsets(), and setWindowInfoFrom().

◆ m_WMOffsetX

int FWGUIManager::m_WMOffsetX
private

Definition at line 282 of file FWGUIManager.h.

Referenced by initEmpty(), measureWMOffsets(), resetWMOffsets(), and setWindowInfoFrom().

◆ m_WMOffsetY

int FWGUIManager::m_WMOffsetY
private

Definition at line 282 of file FWGUIManager.h.

Referenced by initEmpty(), measureWMOffsets(), resetWMOffsets(), and setWindowInfoFrom().

◆ showEventFilterGUI_

sigc::signal<void(const TGWindow*)> FWGUIManager::showEventFilterGUI_

◆ writePartialToConfigurationFile_

sigc::signal<void(const std::string&)> FWGUIManager::writePartialToConfigurationFile_

◆ writeToConfigurationFile_

sigc::signal<void(const std::string&)> FWGUIManager::writeToConfigurationFile_

Definition at line 205 of file FWGUIManager.h.

Referenced by promptForSaveConfigurationFile().

◆ writeToPresentConfigurationFile_

sigc::signal<void()> FWGUIManager::writeToPresentConfigurationFile_

Definition at line 211 of file FWGUIManager.h.

Referenced by FWGUIManager().