CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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,
ViewBuildFunctor
NameToViewBuilder
 
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
< CmsShowTaskExecutor
m_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

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

Definition at line 99 of file FWGUIManager.h.

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

Definition at line 98 of file FWGUIManager.h.

typedef ViewMap_t::iterator FWGUIManager::ViewMap_i
private

Definition at line 103 of file FWGUIManager.h.

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

Definition at line 102 of file FWGUIManager.h.

Constructor & Destructor Documentation

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

Definition at line 102 of file FWGUIManager.cc.

References mps_fire::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(), edm::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),
108  m_navigator(navigator),
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));
166  ->activated.connect(sigc::mem_fun(this, &FWGUIManager::savePartialToConfigurationFile));
168  ->activated.connect(sigc::mem_fun(*this, &FWGUIManager::promptForSaveConfigurationFile));
170  ->activated.connect(sigc::mem_fun(*this, &FWGUIManager::promptForPartialSaveConfigurationFile));
174 
176  ->activated.connect(sigc::mem_fun(m_context->colorManager(), &FWColorManager::switchBackground));
178 
180  ->activated.connect(sigc::mem_fun(*m_guiManager, &FWGUIManager::showInvMassDialog));
181 
183  assert(getAction(cmsshow::sHelp) != nullptr);
187  ->activated.connect(sigc::mem_fun(*m_guiManager, &FWGUIManager::createShortcutPopup));
189 
190  // toolbar special widget with non-void actions
192  std::bind(&FWGUIManager::delaySliderChanged, this, std::placeholders::_1));
193 
194  TQObject::Connect(m_cmsShowMainFrame->m_runEntry, "ReturnPressed()", "FWGUIManager", this, "runIdChanged()");
195  TQObject::Connect(m_cmsShowMainFrame->m_lumiEntry, "ReturnPressed()", "FWGUIManager", this, "lumiIdChanged()");
196  TQObject::Connect(m_cmsShowMainFrame->m_eventEntry, "ReturnPressed()", "FWGUIManager", this, "eventIdChanged()");
197 
198  TQObject::Connect(
199  m_cmsShowMainFrame->m_filterShowGUIBtn, "Clicked()", "FWGUIManager", this, "showEventFilterGUI()");
200  TQObject::Connect(
201  m_cmsShowMainFrame->m_filterEnableBtn, "Clicked()", "FWGUIManager", this, "filterButtonClicked()");
202 
203  TQObject::Connect(gEve->GetWindowManager(),
204  "WindowSelected(TEveWindow*)",
205  "FWGUIManager",
206  this,
207  "checkSubviewAreaIconState(TEveWindow*)");
208  TQObject::Connect(gEve->GetWindowManager(),
209  "WindowDocked(TEveWindow*)",
210  "FWGUIManager",
211  this,
212  "checkSubviewAreaIconState(TEveWindow*)");
213  TQObject::Connect(gEve->GetWindowManager(),
214  "WindowUndocked(TEveWindow*)",
215  "FWGUIManager",
216  this,
217  "checkSubviewAreaIconState(TEveWindow*)");
218  }
219 }
const std::string sKeyboardShort
Definition: ActionsList.cc:45
const std::string sSavePartialConfig
Definition: ActionsList.cc:21
void promptForPartialSaveConfigurationFile()
FWNumberEntryField * m_lumiEntry
sigc::signal< void > writeToPresentConfigurationFile_
Definition: FWGUIManager.h:211
const std::string sShowCommonInsp
Definition: ActionsList.cc:29
void showModelPopup()
const std::string sHelp
Definition: ActionsList.cc:44
const std::string sSavePartialConfigAs
Definition: ActionsList.cc:22
const FWEventItemsManager * eventItemsManager() const
Definition: Context.h:56
CmsShowEDI * m_ediFrame
Definition: FWGUIManager.h:260
FWSummaryManager * m_summaryManager
Definition: FWGUIManager.h:247
void createHelpPopup()
FWInvMassDialog * m_invMassDialog
Definition: FWGUIManager.h:264
const std::string sBackgroundColor
Definition: ActionsList.cc:30
FWColorManager * colorManager() const
Definition: Context.h:58
sigc::signal< void > activated
Definition: CSGAction.h:100
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
void createShortcutPopup()
const std::string sSaveConfig
Definition: ActionsList.cc:17
CmsShowViewPopup * m_viewPopup
Definition: FWGUIManager.h:262
sigc::signal< void > colorsHaveChangedFinished_
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
sigc::signal< void, FWEventItem * > newItem_
void newItem(const FWEventItem *)
sigc::signal< void, Int_t > valueChanged_
bool getHidePFBuilders() const
Definition: Context.h:80
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
FWSelectionManager * selectionManager() const
Definition: Context.h:54
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
string action
Definition: mps_fire.py:183
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
static std::string const separator(":")
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()
void showViewPopup()
void createHelpGLPopup()
CmsShowHelpPopup * m_helpPopup
Definition: FWGUIManager.h:267
CmsShowHelpPopup * m_shortcutPopup
Definition: FWGUIManager.h:268
FWGUIManager::~FWGUIManager ( )
override

Definition at line 231 of file FWGUIManager.cc.

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

231  {
232  delete m_invMassDialog;
233  delete m_summaryManager;
234  delete m_detailViewManager;
235  delete m_cmsShowMainFrame;
236  delete m_viewPopup;
237  delete m_ediFrame;
238  delete m_contextMenuHandler;
239 }
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::FWGUIManager ( const FWGUIManager )
delete

Member Function Documentation

void FWGUIManager::addData ( )

Definition at line 380 of file FWGUIManager.cc.

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

Referenced by FWGUIManager().

380  {
381  if (nullptr == m_dataAdder) {
383  100,
387  }
388  m_dataAdder->show();
389 }
const FWEventItemsManager * eventItemsManager() const
Definition: Context.h:56
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254
FWGUIEventDataAdder * m_dataAdder
Definition: FWGUIManager.h:257
fireworks::Context * m_context
Definition: FWGUIManager.h:245
FWJobMetadataManager * metadataManager() const
Definition: Context.h:60
void FWGUIManager::addTo ( FWConfiguration oTo) const
overridevirtual

Implements FWConfigurable.

Definition at line 959 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().

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

Definition at line 431 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().

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

Definition at line 221 of file FWGUIManager.cc.

References FWGUISubviewArea::goingToBeDestroyed_, FWGUISubviewArea::selected_, subviewInfoSelected(), subviewInfoUnselected(), subviewIsBeingDestroyed(), subviewSwapped(), FWGUISubviewArea::swap_, and FWGUISubviewArea::unselected_.

Referenced by FWGUISubviewArea::FWGUISubviewArea().

221  {
222  a->goingToBeDestroyed_.connect(std::bind(&FWGUIManager::subviewIsBeingDestroyed, this, std::placeholders::_1));
223  a->selected_.connect(std::bind(&FWGUIManager::subviewInfoSelected, this, std::placeholders::_1));
224  a->unselected_.connect(std::bind(&FWGUIManager::subviewInfoUnselected, this, std::placeholders::_1));
225  a->swap_.connect(std::bind(&FWGUIManager::subviewSwapped, this, std::placeholders::_1));
226 }
sigc::signal< void, FWGUISubviewArea * > unselected_
void subviewIsBeingDestroyed(FWGUISubviewArea *)
void subviewInfoSelected(FWGUISubviewArea *)
sigc::signal< void, FWGUISubviewArea * > goingToBeDestroyed_
sigc::signal< void, FWGUISubviewArea * > swap_
void subviewSwapped(FWGUISubviewArea *)
void subviewInfoUnselected(FWGUISubviewArea *)
sigc::signal< void, FWGUISubviewArea * > selected_
void FWGUIManager::createEDIFrame ( )

Definition at line 549 of file FWGUIManager.cc.

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

Referenced by showEDIFrame().

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

Definition at line 663 of file FWGUIManager.cc.

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

Referenced by FWGUIManager().

663  {
664  if (m_helpGLPopup == nullptr) {
665  m_helpGLPopup =
666  new CmsShowHelpPopup("helpGL.html", getAction(cmsshow::sHelpGL)->getName(), m_cmsShowMainFrame, 800, 600);
667 
668  m_helpGLPopup->CenterOnParent(kTRUE, TGTransientFrame::kBottomRight);
669  }
670  m_helpGLPopup->MapWindow();
671 }
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
void FWGUIManager::createHelpPopup ( )

Definition at line 645 of file FWGUIManager.cc.

References m_cmsShowMainFrame, and m_helpPopup.

Referenced by FWGUIManager().

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

Definition at line 513 of file FWGUIManager.cc.

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

Referenced by CmsShowMainFrame::CmsShowMainFrame().

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

Definition at line 600 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().

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

Definition at line 653 of file FWGUIManager.cc.

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

Referenced by FWGUIManager().

653  {
654  if (m_shortcutPopup == nullptr) {
656  "shortcuts.html", getAction(cmsshow::sKeyboardShort)->getName(), m_cmsShowMainFrame, 800, 600);
657 
658  m_shortcutPopup->CenterOnParent(kTRUE, TGTransientFrame::kBottomRight);
659  }
660  m_shortcutPopup->MapWindow();
661 }
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
FWGUIManager::ViewMap_i FWGUIManager::createView ( const std::string &  iName,
TEveWindowSlot *  slot = nullptr 
)

Definition at line 282 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().

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

Definition at line 541 of file FWGUIManager.cc.

References m_viewPrimPack, and m_viewSecPack.

Referenced by CmsShowMainFrame::CmsShowMainFrame().

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

Definition at line 1217 of file FWGUIManager.cc.

References changedDelayBetweenEvents_, m_cmsShowMainFrame, and CmsShowMainFrame::setPlayDelayGUI().

Referenced by FWGUIManager().

1217  {
1218  Float_t sec = val * 0.001;
1219  m_cmsShowMainFrame->setPlayDelayGUI(sec, kFALSE);
1220  changedDelayBetweenEvents_.emit(sec);
1221 }
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)
void FWGUIManager::disableNext ( )

Definition at line 360 of file FWGUIManager.cc.

References CmsShowMainFrame::enableNext(), and m_cmsShowMainFrame.

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

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

Definition at line 358 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)
void FWGUIManager::enableActions ( bool  enable = true)
void FWGUIManager::eventChangedCallback ( )

Definition at line 324 of file FWGUIManager.cc.

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

Referenced by CmsShowMainBase::eventChangedImp().

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

Definition at line 1243 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().

1243  {
1246  }
1247 
1251 }
FWNumberEntryField * m_lumiEntry
virtual ULong64_t GetULong64Number()
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
sigc::signal< void, edm::RunNumber_t, edm::LuminosityBlockNumber_t, edm::EventNumber_t > changedEventId_
Definition: FWGUIManager.h:209
void FWGUIManager::evePreTerminate ( )

Definition at line 241 of file FWGUIManager.cc.

References m_cmsShowMainFrame, and m_viewMap.

Referenced by CmsShowMain::doExit().

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

Definition at line 807 of file FWGUIManager.cc.

References ev, validate-o2o-wbm::f, mergeVDriftHistosByStation::file, getCurrentEvent(), mps_fire::i, dqmiolumiharvest::j, cmsLHEtoEOSManager::l, m_viewMap, and mergeVDriftHistosByStation::name.

Referenced by exportImagesOfAllViews().

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

Definition at line 759 of file FWGUIManager.cc.

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

Referenced by FWGUIManager().

759  {
760  if (m_viewPrimPack->GetPack()->GetList()->GetSize() > 2) {
761  TGFrameElementPack* frameEL = (TGFrameElementPack*)m_viewPrimPack->GetPack()->GetList()->At(1);
762  TEveCompositeFrame* ef = dynamic_cast<TEveCompositeFrame*>(frameEL->fFrame);
763  m_viewMap[ef->GetEveWindow()]->promptForSaveImageTo(m_cmsShowMainFrame);
764  } else {
765  fwLog(fwlog::kError) << "Main view has been destroyed." << std::endl;
766  }
767 }
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
void FWGUIManager::exportImagesOfAllViews ( )

Definition at line 769 of file FWGUIManager.cc.

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

Referenced by FWGUIManager().

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

Definition at line 1267 of file FWGUIManager.cc.

References filterButtonClicked_.

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

Definition at line 1253 of file FWGUIManager.cc.

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

Referenced by FWGUIManager().

1253  {
1254  if (m_commonPopup)
1256  if (m_modelPopup)
1258  if (m_ediFrame)
1260 
1261  gEve->FullRedraw3D();
1262 }
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
CSGAction * FWGUIManager::getAction ( const std::string  name)
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
const edm::EventBase * FWGUIManager::getCurrentEvent ( ) const
FWGUIManager * FWGUIManager::getGUIManager ( )
static
CmsShowMainFrame* FWGUIManager::getMainFrame ( ) const
inline
TEveWindow * FWGUIManager::getSwapCandidate ( )
private

Definition at line 394 of file FWGUIManager.cc.

References m_viewPrimPack, m_viewSecPack, and createTree::pp.

Referenced by checkSubviewAreaIconState(), and subviewSwapped().

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

Definition at line 1321 of file FWGUIManager.cc.

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

Referenced by CmsShowMain::setupDataHandling().

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

Definition at line 356 of file FWGUIManager.cc.

References CmsShowMainFrame::loopAction(), and m_cmsShowMainFrame.

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

Definition at line 1234 of file FWGUIManager.cc.

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

1234  {
1237  }
1238 
1239  m_cmsShowMainFrame->m_eventEntry->SetText("", kFALSE);
1240  m_cmsShowMainFrame->m_eventEntry->SetFocus();
1241 }
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
TGFrame * FWGUIManager::makeGUIsubview ( TEveCompositeFrame *  cp,
TGCompositeFrame *  parent,
Int_t  height 
)
static

Definition at line 268 of file FWGUIManager.cc.

Referenced by FWGUIManager().

268  {
269  TGFrame* frame = new FWGUISubviewArea(cp, parent, height);
270  return frame;
271 }
void FWGUIManager::measureWMOffsets ( )
private

Definition at line 1282 of file FWGUIManager.cc.

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

Referenced by FWGUIManager().

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

Definition at line 371 of file FWGUIManager.cc.

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

Referenced by FWGUIManager().

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

Definition at line 277 of file FWGUIManager.cc.

References createView().

Referenced by FWGUIManager().

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

Definition at line 565 of file FWGUIManager.cc.

References gather_cfg::cout, createView(), alignCSCRings::e, B2GTnPMonitor_cfi::item, m_context, m_viewSecPack, class-composition::o, dumpparser::parse(), phi, FWSelectionManager::selected(), fireworks::Context::selectionManager(), theta(), and findQualityFiles::v.

Referenced by FWModelContextMenuHandler::chosenItem().

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

Definition at line 1212 of file FWGUIManager.cc.

1212 { gEve->GetBrowser()->MapWindow(); }
const FWGUIManager& FWGUIManager::operator= ( const FWGUIManager )
delete
CSGContinuousAction * FWGUIManager::playEventsAction ( )

Definition at line 350 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
CSGContinuousAction * FWGUIManager::playEventsBackwardsAction ( )

Definition at line 352 of file FWGUIManager.cc.

References m_cmsShowMainFrame, and CmsShowMainFrame::playEventsBackwardsAction().

352  {
354 }
CSGContinuousAction * playEventsBackwardsAction() const
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254
void FWGUIManager::popupViewClosed ( )

Definition at line 613 of file FWGUIManager.cc.

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

Referenced by setViewPopup().

613  {
614  if (m_viewPopup->getEveWindow()) {
616  sa->setInfoButton(kFALSE);
617  }
618 }
void setInfoButton(bool downp)
CmsShowViewPopup * m_viewPopup
Definition: FWGUIManager.h:262
TEveWindow * getEveWindow() const
static FWGUISubviewArea * getToolBarFromWindow(TEveWindow *)
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 697 of file FWGUIManager.cc.

References DeadROC_duringRun::dir, m_cmsShowMainFrame, universalConfigTemplate::mode, mergeVDriftHistosByStation::name, and AlCaHLTBitMon_QueryRunRegistry::string.

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

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

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

Definition at line 721 of file FWGUIManager.cc.

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

Referenced by FWGUIManager().

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

Definition at line 729 of file FWGUIManager.cc.

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

Referenced by FWGUIManager().

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

Definition at line 749 of file FWGUIManager.cc.

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

Referenced by FWGUIManager().

749  {
751  if (!promptForConfigurationFile(name, kFDSave))
752  return;
753 
755 }
sigc::signal< void, const std::string & > writePartialToConfigurationFile_
Definition: FWGUIManager.h:206
bool promptForConfigurationFile(std::string &result, enum EFileDialogMode mode)
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 741 of file FWGUIManager.cc.

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

Referenced by FWGUIManager().

741  {
743  if (!promptForConfigurationFile(name, kFDSave))
744  return;
745 
747 }
bool promptForConfigurationFile(std::string &result, enum EFileDialogMode mode)
sigc::signal< void, const std::string & > writeToConfigurationFile_
Definition: FWGUIManager.h:205
void FWGUIManager::registerViewBuilder ( const std::string &  iName,
ViewBuildFunctor iBuilder 
)
void FWGUIManager::resetWMOffsets ( )

Definition at line 1319 of file FWGUIManager.cc.

References m_WMDecorH, m_WMOffsetX, and m_WMOffsetY.

Referenced by CmsShowMain::CmsShowMain().

void FWGUIManager::runIdChanged ( )

Definition at line 1225 of file FWGUIManager.cc.

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

1225  {
1228  }
1229 
1230  m_cmsShowMainFrame->m_lumiEntry->SetText("", kFALSE);
1231  m_cmsShowMainFrame->m_lumiEntry->SetFocus();
1232 }
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
void FWGUIManager::savePartialToConfigurationFile ( )
private

Definition at line 757 of file FWGUIManager.cc.

References writePartialToConfigurationFile_.

Referenced by FWGUIManager().

757 { writePartialToConfigurationFile_("current"); }
sigc::signal< void, const std::string & > writePartialToConfigurationFile_
Definition: FWGUIManager.h:206
void FWGUIManager::setDelayBetweenEvents ( Float_t  val)

Definition at line 1223 of file FWGUIManager.cc.

References m_cmsShowMainFrame, and CmsShowMainFrame::setPlayDelayGUI().

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

Definition at line 1271 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().

1271  {
1272  int i = state * 3;
1276 }
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)
void FWGUIManager::setFilterButtonText ( const char *  txt)
void FWGUIManager::setFrom ( const FWConfiguration iFrom)
overridevirtual

Implements FWConfigurable.

Definition at line 1087 of file FWGUIManager.cc.

References cms::cuda::assert(), CmsShowMainFrame::bindCSGActionKeys(), FWViewType::checkNameWithViewVersion(), checkSubviewAreaIconState(), createView(), 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, mergeVDriftHistosByStation::name, FWGeometryTableViewBase::populate3DViewsFromConfig(), CmsShowMainFrame::setSummaryViewWeight(), setViewPopup(), setWindowInfoFrom(), showCommonPopup(), showEDIFrame(), showModelPopup(), AlCaHLTBitMon_QueryRunRegistry::string, subviewDestroyAll(), FWConfiguration::value(), FWConfiguration::valueForKey(), FWConfiguration::version(), and histoStyle::weight.

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

Definition at line 362 of file FWGUIManager.cc.

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

362  {
363  m_cmsShowMainFrame->m_runEntry->SetEnabled(!play);
364  m_cmsShowMainFrame->m_eventEntry->SetEnabled(!play);
365 }
FWNumberEntryField * m_eventEntry
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254
FWNumberEntryField * m_runEntry
void FWGUIManager::setViewPopup ( TEveWindow *  ew)
private

Definition at line 625 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().

625  {
626  FWViewBase* vb = ew ? m_viewMap[ew] : nullptr;
627  if (m_viewPopup == nullptr) {
628  m_viewPopup = new CmsShowViewPopup(nullptr, 200, 200, m_context->colorManager(), vb, ew);
630  } else {
632  }
633  m_viewPopup->reset(vb, ew);
634  m_viewPopup->MapRaised();
635 }
void popupViewClosed()
ViewMap_t m_viewMap
Definition: FWGUIManager.h:272
void UnmapWindow() override
sigc::signal< void > closed_
FWColorManager * colorManager() const
Definition: Context.h:58
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
void FWGUIManager::setWindowInfoFrom ( const FWConfiguration iFrom,
TGMainFrame *  iFrame 
)

Definition at line 1076 of file FWGUIManager.cc.

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

Referenced by setFrom().

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

Definition at line 591 of file FWGUIManager.cc.

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

Referenced by FWGUIManager(), and setFrom().

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

Allowed values are -1 or ones from FWDataCategories enum.

Definition at line 557 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().

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

Definition at line 1265 of file FWGUIManager.cc.

References m_cmsShowMainFrame, and showEventFilterGUI_.

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

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

Definition at line 637 of file FWGUIManager.cc.

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

Referenced by FWGUIManager().

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

Definition at line 607 of file FWGUIManager.cc.

References createModelPopup(), and m_modelPopup.

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

607  {
608  if (!m_modelPopup)
610  m_modelPopup->MapRaised();
611 }
CmsShowModelPopup * m_modelPopup
Definition: FWGUIManager.h:261
void createModelPopup()
void FWGUIManager::showSelectedModelContextMenu ( Int_t  iGlobalX,
Int_t  iGlobalY,
FWViewContextMenuHandlerBase iHandler 
)

Definition at line 673 of file FWGUIManager.cc.

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

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

675  {
676  if (!m_context->selectionManager()->selected().empty()) {
677  m_contextMenuHandler->showSelectedModelContext(iGlobalX, iGlobalY, iHandler);
678  }
679 }
const std::set< FWModelId > & selected() const
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
FWModelContextMenuHandler * m_contextMenuHandler
Definition: FWGUIManager.h:252
void FWGUIManager::showViewPopup ( )

Definition at line 620 of file FWGUIManager.cc.

References setViewPopup().

Referenced by FWGUIManager().

620  {
621  // CSG action.
622  setViewPopup(nullptr);
623 }
void setViewPopup(TEveWindow *)
void FWGUIManager::subviewDestroy ( FWGUISubviewArea sva)

Definition at line 458 of file FWGUIManager.cc.

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

Referenced by subviewDestroyAll(), and subviewIsBeingDestroyed().

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

Definition at line 465 of file FWGUIManager.cc.

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

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

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

Definition at line 492 of file FWGUIManager.cc.

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

Referenced by connectSubviewAreaSignals().

492  {
493  // release button on previously selected
494  TEveWindow* ew = sva->getEveWindow();
495  for (ViewMap_i wIt = m_viewMap.begin(); wIt != m_viewMap.end(); ++wIt) {
496  if (wIt->first != ew)
498  }
499  setViewPopup(sva->getEveWindow());
500 }
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 *)
void FWGUIManager::subviewInfoUnselected ( FWGUISubviewArea sva)

Definition at line 502 of file FWGUIManager.cc.

References m_viewPopup, and CmsShowViewPopup::UnmapWindow().

Referenced by connectSubviewAreaSignals().

502 { m_viewPopup->UnmapWindow(); }
void UnmapWindow() override
CmsShowViewPopup * m_viewPopup
Definition: FWGUIManager.h:262
void FWGUIManager::subviewIsBeingDestroyed ( FWGUISubviewArea sva)

Definition at line 448 of file FWGUIManager.cc.

References validate-o2o-wbm::f, FWGUISubviewArea::isSelected(), m_tasks, setViewPopup(), and subviewDestroy().

Referenced by connectSubviewAreaSignals().

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

Definition at line 504 of file FWGUIManager.cc.

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

Referenced by connectSubviewAreaSignals().

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

Definition at line 318 of file FWGUIManager.cc.

References m_cmsShowMainFrame, and runGCPTkAlMap::title.

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

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

Definition at line 1278 of file FWGUIManager.cc.

References m_cmsShowMainFrame, and CmsShowMainFrame::m_filterEnableBtn.

Referenced by CmsShowMain::setupDataHandling().

1278  {
1279  m_cmsShowMainFrame->m_filterEnableBtn->SetEnabled(btnEnabled);
1280 }
FWCustomIconsButton * m_filterEnableBtn
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:254
void FWGUIManager::updateStatus ( const char *  status)

Member Data Documentation

sigc::signal<void, Float_t> FWGUIManager::changedDelayBetweenEvents_

Definition at line 215 of file FWGUIManager.h.

Referenced by delaySliderChanged().

sigc::signal<void> FWGUIManager::changedEventEntry_

Definition at line 214 of file FWGUIManager.h.

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().

sigc::signal<void> FWGUIManager::changedRunEntry_

Definition at line 213 of file FWGUIManager.h.

sigc::signal<void> FWGUIManager::filterButtonClicked_
sigc::signal<void> FWGUIManager::goingToQuit_

Definition at line 210 of file FWGUIManager.h.

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

Definition at line 207 of file FWGUIManager.h.

Referenced by promptForLoadConfigurationFile().

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

Definition at line 208 of file FWGUIManager.h.

Referenced by promptForPartialLoadConfigurationFile().

CmsShowMainFrame* FWGUIManager::m_cmsShowMainFrame
private
CmsShowCommonPopup* FWGUIManager::m_commonPopup
private

Definition at line 263 of file FWGUIManager.h.

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

fireworks::Context* FWGUIManager::m_context
private
FWModelContextMenuHandler* FWGUIManager::m_contextMenuHandler
private

Definition at line 252 of file FWGUIManager.h.

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

FWGUIEventDataAdder* FWGUIManager::m_dataAdder
private

Definition at line 257 of file FWGUIManager.h.

Referenced by addData().

FWDetailViewManager* FWGUIManager::m_detailViewManager
private
CmsShowEDI* FWGUIManager::m_ediFrame
private
TGPopupMenu* FWGUIManager::m_fileMenu
private

Definition at line 256 of file FWGUIManager.h.

FWGUIManager * FWGUIManager::m_guiManager = nullptr
staticprivate

Definition at line 242 of file FWGUIManager.h.

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

CmsShowHelpPopup* FWGUIManager::m_helpGLPopup
private

Definition at line 269 of file FWGUIManager.h.

Referenced by createHelpGLPopup().

CmsShowHelpPopup* FWGUIManager::m_helpPopup
private

Definition at line 267 of file FWGUIManager.h.

Referenced by createHelpPopup().

FWInvMassDialog* FWGUIManager::m_invMassDialog
private

Definition at line 264 of file FWGUIManager.h.

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

sigc::connection FWGUIManager::m_modelChangeConn
private

Definition at line 278 of file FWGUIManager.h.

CmsShowModelPopup* FWGUIManager::m_modelPopup
private

Definition at line 261 of file FWGUIManager.h.

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

NameToViewBuilder FWGUIManager::m_nameToViewBuilder
private

Definition at line 273 of file FWGUIManager.h.

Referenced by createView(), and registerViewBuilder().

FWNavigatorBase* FWGUIManager::m_navigator
private

Definition at line 253 of file FWGUIManager.h.

Referenced by getCurrentEvent().

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

Definition at line 281 of file FWGUIManager.h.

Referenced by eventChangedCallback().

CmsShowHelpPopup* FWGUIManager::m_shortcutPopup
private

Definition at line 268 of file FWGUIManager.h.

Referenced by createShortcutPopup().

FWSummaryManager* FWGUIManager::m_summaryManager
private

Definition at line 247 of file FWGUIManager.h.

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

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

Definition at line 280 of file FWGUIManager.h.

Referenced by subviewIsBeingDestroyed().

const FWViewManagerManager* FWGUIManager::m_viewManagerManager
private

Definition at line 251 of file FWGUIManager.h.

ViewMap_t FWGUIManager::m_viewMap
mutableprivate
CmsShowViewPopup* FWGUIManager::m_viewPopup
private
TEveWindowPack* FWGUIManager::m_viewPrimPack
private
TEveWindowPack* FWGUIManager::m_viewSecPack
private
int FWGUIManager::m_WMDecorH
private

Definition at line 282 of file FWGUIManager.h.

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

int FWGUIManager::m_WMOffsetX
private

Definition at line 282 of file FWGUIManager.h.

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

int FWGUIManager::m_WMOffsetY
private

Definition at line 282 of file FWGUIManager.h.

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

sigc::signal<void, const TGWindow*> FWGUIManager::showEventFilterGUI_
sigc::signal<void, const std::string&> FWGUIManager::writePartialToConfigurationFile_
sigc::signal<void, const std::string&> FWGUIManager::writeToConfigurationFile_

Definition at line 205 of file FWGUIManager.h.

Referenced by promptForSaveConfigurationFile().

sigc::signal<void> FWGUIManager::writeToPresentConfigurationFile_

Definition at line 211 of file FWGUIManager.h.

Referenced by FWGUIManager().