CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 boost::function2
< FWViewBase *, TEveWindowSlot
*, const std::string & > 
ViewBuildFunctor
 

Public Member Functions

void addData ()
 
void addTo (FWConfiguration &) const
 
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=0)
 
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)
 
CSGActiongetAction (const std::string name)
 
const edm::EventBasegetCurrentEvent () const
 
CmsShowMainFramegetMainFrame () const
 
void initEmpty ()
 
CSGContinuousActionloopAction ()
 
void lumiIdChanged ()
 
void newViewSlot (const std::string &iName)
 
void open3DRegion ()
 
void openEveBrowserForDebugging () const
 
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 &)
 
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)
 
virtual ~FWGUIManager ()
 
- Public Member Functions inherited from FWConfigurable
 FWConfigurable ()
 
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 ()
 
 FWGUIManager (const FWGUIManager &)
 
TEveWindow * getSwapCandidate ()
 
void measureWMOffsets ()
 
void newItem (const FWEventItem *)
 
const FWGUIManageroperator= (const FWGUIManager &)
 
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
 
CmsShowHelpPopupm_shortcutPopup
 
FWSummaryManagerm_summaryManager
 
std::auto_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 = 0
 

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 100 of file FWGUIManager.h.

typedef boost::function2<FWViewBase*,TEveWindowSlot*, const std::string& > FWGUIManager::ViewBuildFunctor

Definition at line 99 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 103 of file FWGUIManager.cc.

References alignCSCRings::action, CSGAction::activated, addData(), assert(), fireworks::Context::colorManager(), FWColorManager::colorsHaveChangedFinished_, createHelpGLPopup(), createHelpPopup(), CmsShowMainFrame::createNewViewerAction(), createShortcutPopup(), delaySliderChanged(), fireworks::Context::eventItemsManager(), exportImageOfMainView(), exportImagesOfAllViews(), finishUpColorChange(), getAction(), fireworks::Context::getHidePFBuilders(), 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(), 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_.

105  :
106  m_context(ctx),
107  m_summaryManager(0),
109  m_viewManagerManager(iVMMgr),
111  m_navigator(navigator),
112  m_dataAdder(0),
113  m_ediFrame(0),
114  m_modelPopup(0),
115  m_viewPopup(0),
116  m_commonPopup(0),
117  m_invMassDialog(0),
118  m_helpPopup(0),
119  m_shortcutPopup(0),
120  m_helpGLPopup(0),
123 {
124  m_guiManager = this;
125 
127 
129  im->newItem_.connect(boost::bind(&FWGUIManager::newItem, this, _1) );
130 
132 
133 
134  TEveCompositeFrame::IconBarCreator_foo foo = &FWGUIManager::makeGUIsubview;
135  TEveCompositeFrame::SetupFrameMarkup(foo, 20, 4, false);
136 
137  {
138  m_cmsShowMainFrame = new CmsShowMainFrame(gClient->GetRoot(),
139  950,
140  750,
141  this);
142 
143  m_cmsShowMainFrame->SetCleanup(kDeepCleanup);
144 
145  /*
146  int mlist[FWViewType::kTypeSize] = {FWViewType::kRhoPhi, FWViewType::kRhoZ, FWViewType::k3D, FWViewType::kISpy, FWViewType::kLego, FWViewType::kLegoHF, FWViewType::kGlimpse,
147  FWViewType::kTable, FWViewType::kTableL1, FWViewType::kTableHLT,
148  FWViewType::kGeometryTable,
149  FWViewType::kRhoPhiPF, FWViewType::kLegoPFECAL}; */
150 
151  for (int i = 0 ; i < FWViewType::kTypeSize; ++i)
152  {
154  continue;
155 
156  bool separator = (i == FWViewType::kGlimpse || i == FWViewType::kTableHLT || i == FWViewType::kLegoPFECAL);
158  action->activated.connect(boost::bind(&FWGUIManager::newViewSlot, this, FWViewType::idToName(i)));
159  }
160 
163 
164 
176 
179 
181 
188 
189  // toolbar special widget with non-void actions
191 
192  TQObject::Connect(m_cmsShowMainFrame->m_runEntry, "ReturnPressed()", "FWGUIManager", this, "runIdChanged()");
193  TQObject::Connect(m_cmsShowMainFrame->m_lumiEntry, "ReturnPressed()", "FWGUIManager", this, "lumiIdChanged()");
194  TQObject::Connect(m_cmsShowMainFrame->m_eventEntry, "ReturnPressed()", "FWGUIManager", this, "eventIdChanged()");
195 
196  TQObject::Connect(m_cmsShowMainFrame->m_filterShowGUIBtn, "Clicked()", "FWGUIManager", this, "showEventFilterGUI()");
197  TQObject::Connect(m_cmsShowMainFrame->m_filterEnableBtn, "Clicked()", "FWGUIManager", this, "filterButtonClicked()");
198 
199  TQObject::Connect(gEve->GetWindowManager(), "WindowSelected(TEveWindow*)", "FWGUIManager", this, "checkSubviewAreaIconState(TEveWindow*)");
200  TQObject::Connect(gEve->GetWindowManager(), "WindowDocked(TEveWindow*)" , "FWGUIManager", this, "checkSubviewAreaIconState(TEveWindow*)");
201  TQObject::Connect(gEve->GetWindowManager(), "WindowUndocked(TEveWindow*)", "FWGUIManager", this, "checkSubviewAreaIconState(TEveWindow*)");
202  }
203 }
const std::string sKeyboardShort
Definition: ActionsList.cc:46
const std::string sSavePartialConfig
Definition: ActionsList.cc:21
void promptForPartialSaveConfigurationFile()
FWNumberEntryField * m_lumiEntry
sigc::signal< void > writeToPresentConfigurationFile_
Definition: FWGUIManager.h:215
int i
Definition: DBlmapReader.cc:9
const std::string sShowCommonInsp
Definition: ActionsList.cc:30
void showModelPopup()
const std::string sHelp
Definition: ActionsList.cc:45
const std::string sSavePartialConfigAs
Definition: ActionsList.cc:22
const FWEventItemsManager * eventItemsManager() const
Definition: Context.h:61
CmsShowEDI * m_ediFrame
Definition: FWGUIManager.h:264
FWSummaryManager * m_summaryManager
Definition: FWGUIManager.h:251
void createHelpPopup()
FWInvMassDialog * m_invMassDialog
Definition: FWGUIManager.h:268
const std::string sBackgroundColor
Definition: ActionsList.cc:31
FWColorManager * colorManager() const
Definition: Context.h:65
assert(m_qm.get())
sigc::signal< void > activated
Definition: CSGAction.h:88
void newViewSlot(const std::string &iName)
static FWGUIManager * m_guiManager
Definition: FWGUIManager.h:246
FWCustomIconsButton * m_filterEnableBtn
void delaySliderChanged(Int_t)
FWDetailViewManager * m_detailViewManager
Definition: FWGUIManager.h:254
FWIntValueListener * m_delaySliderListener
void showEDIFrame(int iInfoToShow=-1)
Allowed values are -1 or ones from FWDataCategories enum.
const std::string sSaveConfigAs
Definition: ActionsList.cc:18
std::auto_ptr< CmsShowTaskExecutor > m_tasks
Definition: FWGUIManager.h:284
void createShortcutPopup()
const std::string sSaveConfig
Definition: ActionsList.cc:17
CmsShowViewPopup * m_viewPopup
Definition: FWGUIManager.h:266
sigc::signal< void > colorsHaveChangedFinished_
static TGFrame * makeGUIsubview(TEveCompositeFrame *cp, TGCompositeFrame *parent, Int_t height)
FWNavigatorBase * m_navigator
Definition: FWGUIManager.h:257
CSGAction * createNewViewerAction(const std::string &iActionName, bool seaprator)
void exportImagesOfAllViews()
FWNumberEntryField * m_eventEntry
void showInvMassDialog()
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:258
sigc::signal< void, Int_t > valueChanged_
sigc::signal< void, FWEventItem * > newItem_
void newItem(const FWEventItem *)
bool getHidePFBuilders() const
Definition: Context.h:91
const std::string sShowAddCollection
Definition: ActionsList.cc:42
FWGUIEventDataAdder * m_dataAdder
Definition: FWGUIManager.h:261
void exportImageOfMainView()
const std::string sExportImage
Definition: ActionsList.cc:25
FWSelectionManager * selectionManager() const
Definition: Context.h:57
CmsShowModelPopup * m_modelPopup
Definition: FWGUIManager.h:265
CmsShowCommonPopup * m_commonPopup
Definition: FWGUIManager.h:267
CmsShowHelpPopup * m_helpGLPopup
Definition: FWGUIManager.h:273
const std::string sShowMainViewCtl
Definition: ActionsList.cc:41
const FWViewManagerManager * m_viewManagerManager
Definition: FWGUIManager.h:255
FWNumberEntryField * m_runEntry
void savePartialToConfigurationFile()
const std::string sShowObjInsp
Definition: ActionsList.cc:39
CSGAction * getAction(const std::string name)
fireworks::Context * m_context
Definition: FWGUIManager.h:249
void finishUpColorChange()
const std::string sShowInvMassDialog
Definition: ActionsList.cc:43
const std::string sShowEventDisplayInsp
Definition: ActionsList.cc:40
static const std::string & idToName(int)
Definition: FWViewType.cc:89
void promptForPartialLoadConfigurationFile()
void promptForSaveConfigurationFile()
const std::string sLoadConfig
Definition: ActionsList.cc:16
const std::string sExportAllImages
Definition: ActionsList.cc:26
TGTextButton * m_filterShowGUIBtn
const std::string sHelpGL
Definition: ActionsList.cc:47
void promptForLoadConfigurationFile()
FWModelContextMenuHandler * m_contextMenuHandler
Definition: FWGUIManager.h:256
const std::string sLoadPartialConfig
Definition: ActionsList.cc:20
void measureWMOffsets()
void showCommonPopup()
void showViewPopup()
void createHelpGLPopup()
CmsShowHelpPopup * m_helpPopup
Definition: FWGUIManager.h:271
CmsShowHelpPopup * m_shortcutPopup
Definition: FWGUIManager.h:272
FWGUIManager::~FWGUIManager ( )
virtual

Definition at line 216 of file FWGUIManager.cc.

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

217 {
218  delete m_invMassDialog;
219  delete m_summaryManager;
220  delete m_detailViewManager;
221  delete m_cmsShowMainFrame;
222  delete m_viewPopup;
223  delete m_ediFrame;
224  delete m_contextMenuHandler;
225 
226 }
CmsShowEDI * m_ediFrame
Definition: FWGUIManager.h:264
FWSummaryManager * m_summaryManager
Definition: FWGUIManager.h:251
FWInvMassDialog * m_invMassDialog
Definition: FWGUIManager.h:268
FWDetailViewManager * m_detailViewManager
Definition: FWGUIManager.h:254
CmsShowViewPopup * m_viewPopup
Definition: FWGUIManager.h:266
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:258
FWModelContextMenuHandler * m_contextMenuHandler
Definition: FWGUIManager.h:256
FWGUIManager::FWGUIManager ( const FWGUIManager )
private

Member Function Documentation

void FWGUIManager::addData ( )

Definition at line 414 of file FWGUIManager.cc.

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

Referenced by FWGUIManager().

415 {
416  if (0==m_dataAdder) {
417  m_dataAdder = new FWGUIEventDataAdder(100,100,
421  }
422  m_dataAdder->show();
423 }
const FWEventItemsManager * eventItemsManager() const
Definition: Context.h:61
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:258
FWGUIEventDataAdder * m_dataAdder
Definition: FWGUIManager.h:261
fireworks::Context * m_context
Definition: FWGUIManager.h:249
FWJobMetadataManager * metadataManager() const
Definition: Context.h:69
void FWGUIManager::addTo ( FWConfiguration oTo) const
virtual

Implements FWConfigurable.

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

1124 {
1125  Int_t cfgVersion=3;
1126 
1127  FWConfiguration mainWindow(cfgVersion);
1128  float leftWeight, rightWeight;
1129  addWindowInfoTo(m_cmsShowMainFrame, mainWindow);
1130  {
1131  // write summary view weight
1132  {
1133  std::stringstream ss;
1135  mainWindow.addKeyValue("summaryWeight",FWConfiguration(ss.str()));
1136  }
1137 
1138  // write proportions of horizontal pack (can be standalone item outside main frame)
1139  if ( m_viewPrimPack->GetPack()->GetList()->GetSize() > 2)
1140  {
1141  TGFrameElementPack *frameEL;
1142  frameEL = (TGFrameElementPack*) m_viewPrimPack->GetPack()->GetList()->At(1); // read every second element, first on is splitter
1143  leftWeight = frameEL->fWeight;
1144  frameEL = (TGFrameElementPack*) m_viewPrimPack->GetPack()->GetList()->At(3);
1145  rightWeight = frameEL->fWeight;
1146  }
1147  else
1148  {
1149  leftWeight = 0;
1150  rightWeight = 1;
1151  }
1152  std::stringstream sL;
1153  sL<<leftWeight;
1154  mainWindow.addKeyValue("leftWeight",FWConfiguration(sL.str()));
1155  std::stringstream sR;
1156  sR<<rightWeight;
1157  mainWindow.addKeyValue("rightWeight",FWConfiguration(sR.str()));
1158  }
1159  oTo.addKeyValue(kMainWindow, mainWindow, true);
1160 
1161  //------------------------------------------------------------
1162  // organize info about all docked frames includding hidden, which point to undocked
1163  std::vector<areaInfo> wpacked;
1164  if (leftWeight > 0)
1165  {
1166  TGPack* pp = m_viewPrimPack->GetPack();
1167  TGFrameElementPack *frameEL = (TGFrameElementPack*) pp->GetList()->At(1);
1168  if (frameEL->fWeight > 0)
1169  wpacked.push_back(areaInfo(frameEL));
1170  }
1171  TGPack* sp = m_viewSecPack->GetPack();
1172  TGFrameElementPack *seFE;
1173  TIter frame_iterator(sp->GetList());
1174  while ((seFE = (TGFrameElementPack*)frame_iterator() ))
1175  {
1176  if (seFE->fWeight)
1177  wpacked.push_back(areaInfo(seFE));
1178  }
1179 
1180  // undocked info
1181 
1182  for(ViewMap_i wIt = m_viewMap.begin(); wIt != m_viewMap.end(); ++wIt)
1183  {
1184  TEveWindow* ew = wIt->first;
1185  TEveCompositeFrameInMainFrame* mainFrame = dynamic_cast<TEveCompositeFrameInMainFrame*>(ew->GetEveFrame());
1186  if (mainFrame)
1187  {
1188  for(std::vector<areaInfo>::iterator pIt = wpacked.begin(); pIt != wpacked.end(); ++pIt)
1189  {
1190  if ((*pIt).originalSlot && mainFrame->GetOriginalSlot() == (*pIt).originalSlot)
1191  {
1192  (*pIt).eveWindow = wIt->first;
1193  (*pIt).undockedMainFrame = (TGMainFrame*)mainFrame;
1194  // printf("found original slot for docked view %s\n", pInfo->viewBase->typeName().c_str());
1195  break;
1196  }// found match
1197  }
1198  }// end main frames
1199  }
1200 
1201  //------------------------------------------------------------
1202  // add sorted list in view area and FW-views configuration
1203  FWConfiguration views(1);
1204  FWConfiguration viewArea(cfgVersion);
1205  for(std::vector<areaInfo>::iterator it = wpacked.begin(); it != wpacked.end(); ++it)
1206  {
1207  TEveWindow* ew = (*it).eveWindow;
1208  if (ew) {
1209  FWViewBase* wb = m_viewMap[ew];
1210  FWConfiguration tempWiew(wb->version());
1211  wb->addTo(tempWiew);
1212  views.addKeyValue(wb->typeName(), tempWiew, true);
1213  FWConfiguration tempArea(cfgVersion);
1214  addAreaInfoTo((*it), tempArea);
1215  viewArea.addKeyValue(wb->typeName(), tempArea, true);
1216  }
1217  }
1218  oTo.addKeyValue(kViews, views, true);
1219  oTo.addKeyValue(kViewArea, viewArea, true);
1220 
1221  //------------------------------------------------------------
1222  //Remember where controllers were placed if they are open
1223  FWConfiguration controllers(1);
1224  {
1225  if(0!=m_ediFrame && m_ediFrame->IsMapped()) {
1226  FWConfiguration temp(1);
1228  controllers.addKeyValue(kCollectionController,temp,true);
1229  }
1230  if(0!=m_viewPopup && m_viewPopup->IsMapped()) {
1231  FWConfiguration temp(1);
1233  controllers.addKeyValue(kViewController,temp,true);
1234  }
1235  if(0!=m_modelPopup && m_modelPopup->IsMapped()) {
1236  FWConfiguration temp(1);
1238  controllers.addKeyValue(kObjectController,temp,true);
1239  }
1240  if(0!=m_commonPopup && m_commonPopup->IsMapped()) {
1241  FWConfiguration temp(1);
1243  controllers.addKeyValue(kCommonController,temp,true);
1244  }
1245  }
1246  oTo.addKeyValue(kControllers,controllers,true);
1247 }
ViewMap_t::iterator ViewMap_i
Definition: FWGUIManager.h:103
ViewMap_t m_viewMap
Definition: FWGUIManager.h:276
CmsShowEDI * m_ediFrame
Definition: FWGUIManager.h:264
tuple pp
Definition: createTree.py:15
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:120
static const std::string kViews("views")
static const std::string kObjectController("object")
TEveWindowPack * m_viewPrimPack
Definition: FWGUIManager.h:279
static const std::string kCommonController("common")
TEveWindowPack * m_viewSecPack
Definition: FWGUIManager.h:280
static const std::string kCollectionController("collection")
CmsShowViewPopup * m_viewPopup
Definition: FWGUIManager.h:266
static const std::string kMainWindow("main window")
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:258
CmsShowModelPopup * m_modelPopup
Definition: FWGUIManager.h:265
static const std::string kViewArea("view area")
CmsShowCommonPopup * m_commonPopup
Definition: FWGUIManager.h:267
FWConfiguration & addKeyValue(const std::string &, const FWConfiguration &)
float getSummaryViewWeight() const
static const std::string kControllers("controllers")
virtual void addTo(FWConfiguration &) const
void FWGUIManager::checkSubviewAreaIconState ( TEveWindow *  )

Definition at line 476 of file FWGUIManager.cc.

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

Referenced by setFrom(), and subviewSwapped().

477 {
478  // First argumet is needed for signals/slot symetry
479 
480  // disable swap on the first left TEveCompositeFrame
481  // check info button
482  TEveWindow* current = getSwapCandidate();
483  bool checkInfoBtn = m_viewPopup ? m_viewPopup->mapped() : 0;
484  TEveWindow* selected = m_viewPopup ? m_viewPopup->getEveWindow() : 0;
485 
486  for (ViewMap_i it = m_viewMap.begin(); it != m_viewMap.end(); it++)
487  {
489  ar->setSwapIcon(current != it->first);
490  if (checkInfoBtn && selected)
491  ar->setInfoButton(selected == it->first);
492  }
493 }
ViewMap_t::iterator ViewMap_i
Definition: FWGUIManager.h:103
ViewMap_t m_viewMap
Definition: FWGUIManager.h:276
void setInfoButton(bool downp)
CmsShowViewPopup * m_viewPopup
Definition: FWGUIManager.h:266
TEveWindow * getSwapCandidate()
TEveWindow * getEveWindow() const
static FWGUISubviewArea * getToolBarFromWindow(TEveWindow *)
void FWGUIManager::clearStatus ( )
void FWGUIManager::connectSubviewAreaSignals ( FWGUISubviewArea a)

Definition at line 205 of file FWGUIManager.cc.

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

Referenced by FWGUISubviewArea::FWGUISubviewArea().

206 {
207  a->goingToBeDestroyed_.connect(boost::bind(&FWGUIManager::subviewIsBeingDestroyed, this, _1));
208  a->selected_.connect(boost::bind(&FWGUIManager::subviewInfoSelected, this, _1));
209  a->unselected_.connect(boost::bind(&FWGUIManager::subviewInfoUnselected, this, _1));
210  a->swap_.connect(boost::bind(&FWGUIManager::subviewSwapped, this, _1));
211 }
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 620 of file FWGUIManager.cc.

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

Referenced by showEDIFrame().

621 {
622  if (m_ediFrame == 0)
623  {
625  m_ediFrame->CenterOnParent(kTRUE,TGTransientFrame::kTopRight);
627  }
628 }
void bindCSGActionKeys(const TGMainFrame *f) const
CmsShowEDI * m_ediFrame
Definition: FWGUIManager.h:264
FWColorManager * colorManager() const
Definition: Context.h:65
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:258
FWSelectionManager * selectionManager() const
Definition: Context.h:57
fireworks::Context * m_context
Definition: FWGUIManager.h:249
void FWGUIManager::createHelpGLPopup ( )

Definition at line 770 of file FWGUIManager.cc.

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

Referenced by FWGUIManager().

771 {
772  if (m_helpGLPopup == 0)
773  {
774  m_helpGLPopup = new CmsShowHelpPopup("helpGL.html",
775  getAction(cmsshow::sHelpGL)->getName().c_str(),
776  m_cmsShowMainFrame, 800, 600);
777 
778  m_helpGLPopup->CenterOnParent(kTRUE,TGTransientFrame::kBottomRight);
779  }
780  m_helpGLPopup->MapWindow();
781 }
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:258
CmsShowHelpPopup * m_helpGLPopup
Definition: FWGUIManager.h:273
CSGAction * getAction(const std::string name)
const std::string sHelpGL
Definition: ActionsList.cc:47
void FWGUIManager::createHelpPopup ( )

Definition at line 743 of file FWGUIManager.cc.

References m_cmsShowMainFrame, and m_helpPopup.

Referenced by FWGUIManager().

744 {
745  if (m_helpPopup == 0)
746  {
747  m_helpPopup = new CmsShowHelpPopup("help.html", "CmsShow Help",
749  800, 600);
750  m_helpPopup->CenterOnParent(kTRUE,TGTransientFrame::kBottomRight);
751  }
752  m_helpPopup->MapWindow();
753 }
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:258
CmsShowHelpPopup * m_helpPopup
Definition: FWGUIManager.h:271
TGVerticalFrame * FWGUIManager::createList ( TGCompositeFrame *  p)

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

581 {
582  TGVerticalFrame *listFrame = new TGVerticalFrame(p, p->GetWidth(), p->GetHeight());
583 
584  TGHorizontalFrame* addFrame = new TGHorizontalFrame(listFrame, p->GetWidth(), 10, kRaisedFrame);
585  TGLabel* addLabel = new TGLabel(addFrame,"Summary View");
586  addFrame->AddFrame(addLabel, new TGLayoutHints(kLHintsCenterX, 0,0,2,2));
587  listFrame->AddFrame(addFrame, new TGLayoutHints(kLHintsExpandX | kLHintsTop));
588 
589  m_summaryManager = new FWSummaryManager(listFrame,
592  this,
595 
596  const unsigned int backgroundColor=0x2f2f2f;
597  TGTextButton* addDataButton = new TGTextButton(m_summaryManager->widget(), "Add Collection");
598  addDataButton->ChangeOptions(kRaisedFrame);
599  addDataButton->SetBackgroundColor(backgroundColor);
600  addDataButton->SetTextColor(0xFFFFFF);
601  addDataButton->SetToolTipText("Show additional collections");
602  addDataButton->Connect("Clicked()", "FWGUIManager", this, "addData()");
603  m_summaryManager->widget()->AddFrame(addDataButton, new TGLayoutHints(kLHintsExpandX|kLHintsLeft|kLHintsTop));
604  listFrame->AddFrame(m_summaryManager->widget(), new TGLayoutHints(kLHintsExpandX|kLHintsExpandY));
605 
606  return listFrame;
607 }
TGCompositeFrame * widget() const
const FWEventItemsManager * eventItemsManager() const
Definition: Context.h:61
FWSummaryManager * m_summaryManager
Definition: FWGUIManager.h:251
FWColorManager * colorManager() const
Definition: Context.h:65
FWSelectionManager * selectionManager() const
Definition: Context.h:57
FWModelChangeManager * modelChangeManager() const
Definition: Context.h:54
fireworks::Context * m_context
Definition: FWGUIManager.h:249
void FWGUIManager::createModelPopup ( )

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

684 {
686  m_modelPopup->CenterOnParent(kTRUE,TGTransientFrame::kRight);
688 }
void bindCSGActionKeys(const TGMainFrame *f) const
FWColorManager * colorManager() const
Definition: Context.h:65
FWDetailViewManager * m_detailViewManager
Definition: FWGUIManager.h:254
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:258
FWSelectionManager * selectionManager() const
Definition: Context.h:57
CmsShowModelPopup * m_modelPopup
Definition: FWGUIManager.h:265
fireworks::Context * m_context
Definition: FWGUIManager.h:249
void FWGUIManager::createShortcutPopup ( )

Definition at line 757 of file FWGUIManager.cc.

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

Referenced by FWGUIManager().

758 {
759  if (m_shortcutPopup == 0)
760  {
761  m_shortcutPopup = new CmsShowHelpPopup("shortcuts.html",
762  getAction(cmsshow::sKeyboardShort)->getName().c_str(),
763  m_cmsShowMainFrame, 800, 600);
764 
765  m_shortcutPopup->CenterOnParent(kTRUE,TGTransientFrame::kBottomRight);
766  }
767  m_shortcutPopup->MapWindow();
768 }
const std::string sKeyboardShort
Definition: ActionsList.cc:46
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:258
CSGAction * getAction(const std::string name)
CmsShowHelpPopup * m_shortcutPopup
Definition: FWGUIManager.h:272
FWGUIManager::ViewMap_i FWGUIManager::createView ( const std::string &  iName,
TEveWindowSlot *  slot = 0 
)

Definition at line 279 of file FWGUIManager.cc.

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

280 {
281  NameToViewBuilder::iterator itFind = m_nameToViewBuilder.find(iName);
282  assert (itFind != m_nameToViewBuilder.end());
283  if(itFind == m_nameToViewBuilder.end()) {
284  throw std::runtime_error(std::string("Unable to create view named ")+iName+" because it is unknown");
285  }
286 
287  if (!slot)
288  {
289  if (m_viewSecPack)
290  {
291  slot = m_viewSecPack->NewSlot();
292  }
293  else
294  {
295  slot = m_viewPrimPack->NewSlot();
296  m_viewSecPack = m_viewPrimPack->NewSlot()->MakePack();
297  m_viewSecPack->SetShowTitleBar(kFALSE);
298  }
299  }
300  TEveCompositeFrame *ef = slot->GetEveFrame();
301  FWViewBase* viewBase = itFind->second(slot, iName);
302  //in future, get context from 'view'
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 }
tuple base
Main Program
Definition: newFWLiteAna.py:92
ViewMap_t m_viewMap
Definition: FWGUIManager.h:276
NameToViewBuilder m_nameToViewBuilder
Definition: FWGUIManager.h:277
assert(m_qm.get())
static FWGUIManager * m_guiManager
Definition: FWGUIManager.h:246
TEveWindowPack * m_viewPrimPack
Definition: FWGUIManager.h:279
TEveWindowPack * m_viewSecPack
Definition: FWGUIManager.h:280
virtual FWViewContextMenuHandlerBase * contextMenuHandler() const
Definition: FWViewBase.cc:112
void showSelectedModelContextMenu(Int_t iGlobalX, Int_t iGlobalY, FWViewContextMenuHandlerBase *iHandler)
sigc::signal< void, Int_t, Int_t > openSelectedModelContextMenu_
Definition: FWViewBase.h:56
void FWGUIManager::createViews ( TEveWindowSlot *  slot)

Definition at line 610 of file FWGUIManager.cc.

References m_viewPrimPack, and m_viewSecPack.

Referenced by CmsShowMainFrame::CmsShowMainFrame().

611 {
612  m_viewPrimPack = slot->MakePack();
613  m_viewPrimPack->SetHorizontal();
614  m_viewPrimPack->SetElementName("Views");
615  m_viewPrimPack->SetShowTitleBar(kFALSE);
616  m_viewSecPack = 0;
617 }
TEveWindowPack * m_viewPrimPack
Definition: FWGUIManager.h:279
TEveWindowPack * m_viewSecPack
Definition: FWGUIManager.h:280
void FWGUIManager::delaySliderChanged ( Int_t  val)
private

Definition at line 1403 of file FWGUIManager.cc.

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

Referenced by FWGUIManager().

1404 {
1405  Float_t sec = val*0.001;
1406  m_cmsShowMainFrame->setPlayDelayGUI(sec, kFALSE);
1407  changedDelayBetweenEvents_.emit(sec);
1408 }
sigc::signal< void, Float_t > changedDelayBetweenEvents_
Definition: FWGUIManager.h:219
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:258
void setPlayDelayGUI(Float_t val, Bool_t sliderChanged)
void FWGUIManager::disableNext ( )

Definition at line 379 of file FWGUIManager.cc.

References CmsShowMainFrame::enableNext(), and m_cmsShowMainFrame.

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

380 {
382 }
void enableNext(bool enable=true)
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:258
void FWGUIManager::disablePrevious ( )

Definition at line 373 of file FWGUIManager.cc.

References CmsShowMainFrame::enablePrevious(), and m_cmsShowMainFrame.

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

374 {
376 }
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:258
void enablePrevious(bool enable=true)
void FWGUIManager::enableActions ( bool  enable = true)
void FWGUIManager::eventChangedCallback ( )

Definition at line 333 of file FWGUIManager.cc.

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

Referenced by CmsShowMainBase::eventChangedImp().

333  {
334  // To be replaced when we can get index from fwlite::Event
335 
336  TEveViewerList* viewers = gEve->GetViewers();
337  for (TEveElement::List_i i=viewers->BeginChildren(); i!= viewers->EndChildren(); ++i)
338  {
339  TEveViewer* ev = dynamic_cast<TEveViewer*>(*i);
340  if (ev)
341  ev->GetGLViewer()->DeleteOverlayAnnotations();
342  }
343 
346 }
int i
Definition: DBlmapReader.cc:9
void loadEvent(const edm::EventBase &event)
bool ev
FWDetailViewManager * m_detailViewManager
Definition: FWGUIManager.h:254
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:258
const edm::EventBase * getCurrentEvent() const
void FWGUIManager::eventIdChanged ( )

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

1439 {
1441  {
1443  }
1444 
1448 }
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:258
virtual UInt_t GetUIntNumber()
FWNumberEntryField * m_runEntry
sigc::signal< void, edm::RunNumber_t, edm::LuminosityBlockNumber_t, edm::EventNumber_t > changedEventId_
Definition: FWGUIManager.h:213
void FWGUIManager::evePreTerminate ( )

Definition at line 229 of file FWGUIManager.cc.

References m_cmsShowMainFrame, and m_viewMap.

Referenced by CmsShowMain::doExit().

230 {
231  gEve->GetWindowManager()->Disconnect("WindowSelected(TEveWindow*)", this, "checkSubviewAreaIconState(TEveWindow*)");
232  gEve->GetWindowManager()->Disconnect("WindowDocked(TEveWindow*)", this, "checkSubviewAreaIconState(TEveWindow*)");
233  gEve->GetWindowManager()->Disconnect("WindowUndocked(TEveWindow*)", this, "checkSubviewAreaIconState(TEveWindow*)");
234 
235  // avoid emit signals at end
236  gEve->GetSelection()->Disconnect();
237  gEve->GetHighlight()->Disconnect();
238  gEve->GetSelection()->RemoveElements();
239  gEve->GetHighlight()->RemoveElements();
240 
241  m_cmsShowMainFrame->UnmapWindow();
242  for(ViewMap_i wIt = m_viewMap.begin(); wIt != m_viewMap.end(); ++wIt)
243  {
244  TEveCompositeFrameInMainFrame* mainFrame = dynamic_cast<TEveCompositeFrameInMainFrame*>((*wIt).first->GetEveFrame());
245  // main frames not to watch dying
246  if (mainFrame) mainFrame->UnmapWindow();
247  // destroy
248  (*wIt).second->destroy();
249  }
250 }
ViewMap_t::iterator ViewMap_i
Definition: FWGUIManager.h:103
ViewMap_t m_viewMap
Definition: FWGUIManager.h:276
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:258
void FWGUIManager::exportAllViews ( const std::string &  format,
int  height 
)

Definition at line 950 of file FWGUIManager.cc.

References ev, f, mergeVDriftHistosByStation::file, getCurrentEvent(), i, j, prof2calltree::l, m_viewMap, and mergeVDriftHistosByStation::name.

Referenced by exportImagesOfAllViews().

951 {
952  // Save all GL views.
953  // Expects format to have "%u %u %llu %s" which are replaced with
954  // run-number, event number, lumi block and view-name.
955  // Blanks in view-name are removed.
956  // If several views shave the same name, they are post-fixed
957  // with "_%d". They are sorted by view diagonal.
958 
959  typedef std::list<FWTEveViewer*> viewer_list_t;
960  typedef viewer_list_t::iterator viewer_list_i;
961 
962  typedef std::map<TString, viewer_list_t> name_map_t;
963  typedef name_map_t::iterator name_map_i;
964 
965  name_map_t vls;
966 
967  for (ViewMap_i i = m_viewMap.begin(); i != m_viewMap.end(); ++i)
968  {
969  FWTEveViewer *ev = dynamic_cast<FWTEveViewer*>(i->first);
970  if (ev)
971  {
972  TString name(ev->GetElementName());
973  name.ReplaceAll(" ", "");
974  viewer_list_t &l = vls[name];
975  viewer_list_i li = l.begin();
976  while (li != l.end() && (*li)->GetGLViewer()->ViewportDiagonal() < ev->GetGLViewer()->ViewportDiagonal())
977  ++li;
978  l.insert(li, ev);
979  }
980  }
981 
982  std::vector<std::future<int>> futures;
983 
984  const edm::EventBase *event = getCurrentEvent();
985  for (name_map_i i = vls.begin(); i != vls.end(); ++i)
986  {
987  bool multi_p = (i->second.size() > 1);
988  int view_count = 1;
989  for (viewer_list_i j = i->second.begin(); j != i->second.end(); ++j, ++view_count)
990  {
991  TString view_name(i->first);
992  if (multi_p)
993  {
994  view_name += "_";
995  view_name += view_count;
996  }
997  TString file;
998  file.Form(format.c_str(), event->id().run(), event->id().event(),
999  event->luminosityBlock(), view_name.Data());
1000 
1001  if (GLEW_EXT_framebuffer_object)
1002  {
1003  // Multi-threaded save
1004  futures.push_back((*j)->CaptureAndSaveImage(file, height));
1005  }
1006  else
1007  {
1008  // Single-threaded save
1009  if (height == -1)
1010  (*j)->GetGLViewer()->SavePicture(file);
1011  else
1012  (*j)->GetGLViewer()->SavePictureHeight(file, height);
1013  }
1014  }
1015  }
1016 
1017  for (auto &f : futures)
1018  {
1019  f.get();
1020  }
1021 }
int i
Definition: DBlmapReader.cc:9
ViewMap_t::iterator ViewMap_i
Definition: FWGUIManager.h:103
ViewMap_t m_viewMap
Definition: FWGUIManager.h:276
bool ev
int j
Definition: DBlmapReader.cc:9
double f[11][100]
const edm::EventBase * getCurrentEvent() const
void FWGUIManager::exportImageOfMainView ( )

Definition at line 901 of file FWGUIManager.cc.

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

Referenced by FWGUIManager().

902 {
903  if (m_viewPrimPack->GetPack()->GetList()->GetSize() > 2)
904  {
905  TGFrameElementPack* frameEL = (TGFrameElementPack*) m_viewPrimPack->GetPack()->GetList()->At(1);
906  TEveCompositeFrame* ef = dynamic_cast<TEveCompositeFrame*>(frameEL->fFrame);
907  m_viewMap[ef->GetEveWindow()]->promptForSaveImageTo(m_cmsShowMainFrame);
908  }
909  else
910  {
911  fwLog(fwlog::kError) << "Main view has been destroyed." << std::endl;
912  }
913 }
ViewMap_t m_viewMap
Definition: FWGUIManager.h:276
TEveWindowPack * m_viewPrimPack
Definition: FWGUIManager.h:279
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:258
#define fwLog(_level_)
Definition: fwLog.h:50
void FWGUIManager::exportImagesOfAllViews ( )

Definition at line 916 of file FWGUIManager.cc.

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

Referenced by FWGUIManager().

917 {
918  try {
919  static TString dir(".");
920  const char * kImageExportTypes[] = {"PNG", "*.png",
921  "GIF", "*.gif",
922  "JPEG", "*.jpg",
923  "PDF", "*.pdf",
924  "Encapsulated PostScript", "*.eps",
925  0, 0};
926 
927  TGFileInfo fi;
928  fi.fFileTypes = kImageExportTypes;
929  fi.fIniDir = StrDup(dir);
930  new TGFileDialog(gClient->GetDefaultRoot(), m_cmsShowMainFrame,
931  kFDSave,&fi);
932  dir = fi.fIniDir;
933  if (fi.fFilename != 0) {
934  std::string name = fi.fFilename;
935  // fi.fFileTypeIdx points to the name of the file type
936  // selected in the drop-down menu, so fi.fFileTypeIdx gives us
937  // the extension
938  std::string ext = kImageExportTypes[fi.fFileTypeIdx + 1] + 1;
939  if (name.find(ext) == name.npos)
940  name += ext;
941  // now add format trailing before the extension
942  name.insert(name.rfind('.'), "-%u_%u_%u_%s");
943  exportAllViews(name, -1);
944  }
945  }
946  catch (std::runtime_error &e) { std::cout << e.what() << std::endl; }
947 }
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:258
void exportAllViews(const std::string &format, int height)
tuple cout
Definition: gather_cfg.py:121
dbl *** dir
Definition: mlp_gen.cc:35
void FWGUIManager::filterButtonClicked ( )

Definition at line 1468 of file FWGUIManager.cc.

References filterButtonClicked_.

1469 {
1470  filterButtonClicked_.emit();
1471 }
sigc::signal< void > filterButtonClicked_
Definition: FWGUIManager.h:207
void FWGUIManager::finishUpColorChange ( )
private

Definition at line 1451 of file FWGUIManager.cc.

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

Referenced by FWGUIManager().

1452 {
1456 
1457  gEve->FullRedraw3D();
1458 }
void colorSetChanged()
Definition: CmsShowEDI.cc:530
CmsShowEDI * m_ediFrame
Definition: FWGUIManager.h:264
CmsShowModelPopup * m_modelPopup
Definition: FWGUIManager.h:265
CmsShowCommonPopup * m_commonPopup
Definition: FWGUIManager.h:267
CSGAction * FWGUIManager::getAction ( const std::string  name)

Definition at line 349 of file FWGUIManager.cc.

References CSGActionSupervisor::getAction(), and m_cmsShowMainFrame.

Referenced by createHelpGLPopup(), createShortcutPopup(), FWGUIManager(), and CmsShowMain::setupDataHandling().

350 {
352 }
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:258
CSGAction * getAction(const std::string &name)
const edm::EventBase * FWGUIManager::getCurrentEvent ( ) const
FWGUIManager * FWGUIManager::getGUIManager ( )
static
CmsShowMainFrame* FWGUIManager::getMainFrame ( ) const
inline
TEveWindow * FWGUIManager::getSwapCandidate ( )
private

Definition at line 430 of file FWGUIManager.cc.

References m_viewPrimPack, m_viewSecPack, and createTree::pp.

Referenced by checkSubviewAreaIconState(), and subviewSwapped().

431 {
432  TEveWindow* swapCandidate =0;
433 
434  if ( gEve->GetWindowManager()->GetCurrentWindow())
435  {
436  swapCandidate = gEve->GetWindowManager()->GetCurrentWindow();
437  }
438  else
439  {
440  // swap with first docked view
441  TEveCompositeFrame* pef;
442  TGFrameElementPack *pel;
443 
444  // check if there is view in prim pack
445  TGPack* pp = m_viewPrimPack->GetPack();
446  if ( pp->GetList()->GetSize() > 2)
447  {
448  pel = (TGFrameElementPack*) pp->GetList()->At(1);
449  if (pel->fState) // is first undocked
450  {
451  pef = dynamic_cast<TEveCompositeFrame*>(pel->fFrame);
452  if ( pef && pef->GetEveWindow())
453  swapCandidate = pef->GetEveWindow();
454  }
455  }
456  if (swapCandidate == 0)
457  {
458  // no eve window found in primary, check secondary
459  TGPack* sp = m_viewSecPack->GetPack();
460  TIter frame_iterator(sp->GetList());
461  while ((pel = (TGFrameElementPack*)frame_iterator()))
462  {
463  pef = dynamic_cast<TEveCompositeFrame*>(pel->fFrame);
464  if ( pef && pef->GetEveWindow() && pel->fState)
465  {
466  swapCandidate = pef->GetEveWindow() ;
467  break;
468  }
469  }
470  }
471  }
472  return swapCandidate;
473 }
tuple pp
Definition: createTree.py:15
TEveWindowPack * m_viewPrimPack
Definition: FWGUIManager.h:279
TEveWindowPack * m_viewSecPack
Definition: FWGUIManager.h:280
void FWGUIManager::initEmpty ( )

Definition at line 1533 of file FWGUIManager.cc.

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

Referenced by CmsShowMain::setupDataHandling().

1534 {
1535  int x = 150 + m_WMOffsetX ;
1536  int y = 50 + m_WMOffsetY;
1537  m_cmsShowMainFrame->Move(x, y);
1538  m_cmsShowMainFrame->SetWMPosition(x, y < m_WMDecorH ? m_WMDecorH : y);
1539 
1540  createView("Rho Phi");
1541  createView("Rho Z");
1542 
1543  m_cmsShowMainFrame->MapSubwindows();
1544  m_cmsShowMainFrame->Layout();
1545  m_cmsShowMainFrame->MapRaised();
1546 }
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:258
ViewMap_i createView(const std::string &iName, TEveWindowSlot *slot=0)
Definition: DDAxes.h:10
CSGContinuousAction * FWGUIManager::loopAction ( )

Definition at line 367 of file FWGUIManager.cc.

References CmsShowMainFrame::loopAction(), and m_cmsShowMainFrame.

368 {
369  return m_cmsShowMainFrame->loopAction();
370 }
CSGContinuousAction * loopAction() const
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:258
void FWGUIManager::lumiIdChanged ( )

Definition at line 1427 of file FWGUIManager.cc.

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

1428 {
1430  {
1432  }
1433 
1434  m_cmsShowMainFrame->m_eventEntry->SetText("", kFALSE);
1435  m_cmsShowMainFrame->m_eventEntry->SetFocus();
1436 }
FWNumberEntryField * m_lumiEntry
virtual void SetUIntNumber(UInt_t n)
FWNumberEntryField * m_eventEntry
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:258
virtual UInt_t GetUIntNumber()
LuminosityBlockNumber_t const invalidLuminosityBlockNumber
TGFrame * FWGUIManager::makeGUIsubview ( TEveCompositeFrame *  cp,
TGCompositeFrame *  parent,
Int_t  height 
)
static

Definition at line 257 of file FWGUIManager.cc.

Referenced by FWGUIManager().

258 {
259  TGFrame* frame = new FWGUISubviewArea(cp, parent, height);
260  return frame;
261 }
list parent
Definition: dbtoconf.py:74
void FWGUIManager::measureWMOffsets ( )
private

Definition at line 1495 of file FWGUIManager.cc.

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

Referenced by FWGUIManager().

1496 {
1497  const Int_t x = 100, y = 100;
1498 
1499  TGMainFrame *mf1 = new TGMainFrame(0, 0, 0);
1500  mf1->MapWindow();
1501  mf1->Move(x, y);
1502 
1503  // This seems to be the only reliable way to make sure Move() has been processed.
1504  {
1505  TGMainFrame *mf2 = new TGMainFrame(0, 0, 0);
1506  mf2->MapWindow();
1507  while (!mf2->IsMapped()) gClient->HandleInput();
1508  delete mf2;
1509  }
1510  {
1511  Int_t xm, ym;
1512  Window_t childdum;
1513  WindowAttributes_t attr;
1514  gVirtualX->TranslateCoordinates(mf1->GetId(), gClient->GetDefaultRoot()->GetId(),
1515  0, 0, xm, ym, childdum);
1516  gVirtualX->GetWindowAttributes(mf1->GetId(), attr);
1517  m_WMOffsetX = x - xm;
1518  m_WMOffsetY = y - ym;
1519  m_WMDecorH = attr.fY;
1520  fwLog(fwlog::kDebug) << Form("FWGUIManager::measureWMOffsets: required (%d,%d), measured(%d, %d) => dx=%d, dy=%d; decor_h=%d.\n",
1521  x, y, xm, ym, m_WMOffsetX, m_WMOffsetY, m_WMDecorH);
1522  }
1523  delete mf1;
1524 }
tuple attr
Definition: asciidump.py:432
#define fwLog(_level_)
Definition: fwLog.h:50
Definition: DDAxes.h:10
void FWGUIManager::newItem ( const FWEventItem iItem)
private

Definition at line 403 of file FWGUIManager.cc.

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

Referenced by FWGUIManager().

404 {
405 #if defined(THIS_WILL_NEVER_BE_DEFINED)
406  m_selectionItemsComboBox->AddEntry(iItem->name().c_str(),iItem->id());
407  if(iItem->id()==0) {
408  m_selectionItemsComboBox->Select(0);
409  }
410 #endif
411 }
const std::string & name() const
Definition: FWEventItem.cc:500
unsigned int id() const
Definition: FWEventItem.cc:494
void FWGUIManager::newViewSlot ( const std::string &  iName)

Definition at line 272 of file FWGUIManager.cc.

References createView().

Referenced by FWGUIManager().

273 {
274  // this function have to exist, becuse CSGAction binds to void functions
275  createView(iName);
276 }
ViewMap_i createView(const std::string &iName, TEveWindowSlot *slot=0)
void FWGUIManager::open3DRegion ( )

Definition at line 643 of file FWGUIManager.cc.

References gather_cfg::cout, createView(), alignCSCRings::e, eta(), cmsHarvester::index, m_context, m_viewSecPack, python.connectstrParser::o, triggerExpression::parse(), phi, FWSelectionManager::selected(), fireworks::Context::selectionManager(), FW3DViewBase::setClip(), and findQualityFiles::v.

Referenced by FWModelContextMenuHandler::chosenItem().

644 {
645  FWModelId id = *(m_context->selectionManager()->selected().begin());
646  float eta =0, phi = 0;
647  {
648  edm::TypeWithDict type = edm::TypeWithDict((TClass*)id.item()->modelType());
649  using namespace boost::spirit::classic;
651  reco::parser::Grammar grammar(tmpPtr,type);
652  edm::ObjectWithDict o(type, (void*)id.item()->modelData(id.index()));
653  try {
654  parse("theta()", grammar.use_parser<1>() >> end_p, space_p).full;
655  eta = tmpPtr->value(o);
656  parse("phi()", grammar.use_parser<1>() >> end_p, space_p).full;
657  phi = tmpPtr->value(o);
658 
659  ViewMap_i it = createView( "3D Tower", m_viewSecPack->NewSlot());
660  FW3DViewBase* v = static_cast<FW3DViewBase*>(it->second);
661  v->setClip(eta, phi);
662  it->first->UndockWindow();
663  }
664  catch(const reco::parser::BaseException& e)
665  {
666  std::cout <<" FWModelFilter failed to base "<< e.what() << std::endl;
667  }
668  }
669 }
const std::set< FWModelId > & selected() const
type
Definition: HCALResponse.h:21
ViewMap_t::iterator ViewMap_i
Definition: FWGUIManager.h:103
boost::spirit::classic::parser_error< reco::parser::SyntaxErrors > BaseException
Definition: Exception.h:37
Evaluator * parse(const T &text)
void setClip(float eta, float phi)
boost::shared_ptr< ExpressionBase > ExpressionPtr
T eta() const
TEveWindowPack * m_viewSecPack
Definition: FWGUIManager.h:280
FWSelectionManager * selectionManager() const
Definition: Context.h:57
ViewMap_i createView(const std::string &iName, TEveWindowSlot *slot=0)
fireworks::Context * m_context
Definition: FWGUIManager.h:249
tuple cout
Definition: gather_cfg.py:121
Definition: DDAxes.h:10
void FWGUIManager::openEveBrowserForDebugging ( ) const

Definition at line 1394 of file FWGUIManager.cc.

1395 {
1396  gEve->GetBrowser()->MapWindow();
1397 }
const FWGUIManager& FWGUIManager::operator= ( const FWGUIManager )
private
CSGContinuousAction * FWGUIManager::playEventsAction ( )

Definition at line 355 of file FWGUIManager.cc.

References m_cmsShowMainFrame, and CmsShowMainFrame::playEventsAction().

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

356 {
358 }
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:258
CSGContinuousAction * playEventsAction() const
CSGContinuousAction * FWGUIManager::playEventsBackwardsAction ( )

Definition at line 361 of file FWGUIManager.cc.

References m_cmsShowMainFrame, and CmsShowMainFrame::playEventsBackwardsAction().

362 {
364 }
CSGContinuousAction * playEventsBackwardsAction() const
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:258
void FWGUIManager::popupViewClosed ( )

Definition at line 698 of file FWGUIManager.cc.

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

Referenced by setViewPopup().

699 {
700  if (m_viewPopup->getEveWindow())
701  {
703  sa->setInfoButton(kFALSE);
704  }
705 }
void setInfoButton(bool downp)
CmsShowViewPopup * m_viewPopup
Definition: FWGUIManager.h:266
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 817 of file FWGUIManager.cc.

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

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

818 {
819 
820  const static char* kFileTypes[] = {"Fireworks Configuration files","*.fwc",
821  "All Files","*",
822  0,0};
823 
824  static TString dir(".");
825 
826  TGFileInfo fi;
827  fi.fFileTypes = kFileTypes;
828  fi.fIniDir = StrDup(dir);
829  new TGFileDialog(gClient->GetDefaultRoot(), m_cmsShowMainFrame, mode, &fi);
830  dir = fi.fIniDir;
831  if (fi.fFilename == 0) // to handle "cancel" button properly
832  return false;
833  std::string name = fi.fFilename;
834  // if the extension isn't already specified by hand, specify it now
835  std::string ext = kFileTypes[fi.fFileTypeIdx + 1] + 1;
836  if (ext.size() != 0 && name.find(ext) == name.npos)
837  name += ext;
838  result = name;
839  return true;
840 }
tuple result
Definition: query.py:137
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:258
dbl *** dir
Definition: mlp_gen.cc:35
void FWGUIManager::promptForLoadConfigurationFile ( )
private

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

Definition at line 847 of file FWGUIManager.cc.

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

Referenced by FWGUIManager().

848 {
850  if (!promptForConfigurationFile(name, kFDOpen))
851  return;
852 
853 
855 }
bool promptForConfigurationFile(std::string &result, enum EFileDialogMode mode)
sigc::signal< void, const std::string & > loadFromConfigurationFile_
Definition: FWGUIManager.h:211
void FWGUIManager::promptForPartialLoadConfigurationFile ( )
private

Definition at line 859 of file FWGUIManager.cc.

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

Referenced by FWGUIManager().

860 {
862  if (!promptForConfigurationFile(name, kFDOpen))
863  return;
864 
865 
867  //
868 }
sigc::signal< void, const std::string & > loadPartialFromConfigurationFile_
Definition: FWGUIManager.h:212
bool promptForConfigurationFile(std::string &result, enum EFileDialogMode mode)
void FWGUIManager::promptForPartialSaveConfigurationFile ( )
private

Definition at line 885 of file FWGUIManager.cc.

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

Referenced by FWGUIManager().

886 {
888  if (!promptForConfigurationFile(name, kFDSave))
889  return;
890 
892 }
sigc::signal< void, const std::string & > writePartialToConfigurationFile_
Definition: FWGUIManager.h:210
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 875 of file FWGUIManager.cc.

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

Referenced by FWGUIManager().

876 {
878  if (!promptForConfigurationFile(name, kFDSave))
879  return;
880 
882 }
bool promptForConfigurationFile(std::string &result, enum EFileDialogMode mode)
sigc::signal< void, const std::string & > writeToConfigurationFile_
Definition: FWGUIManager.h:209
void FWGUIManager::registerViewBuilder ( const std::string &  iName,
ViewBuildFunctor iBuilder 
)
void FWGUIManager::resetWMOffsets ( )

Definition at line 1527 of file FWGUIManager.cc.

References m_WMDecorH, m_WMOffsetX, and m_WMOffsetY.

Referenced by CmsShowMain::CmsShowMain().

1528 {
1530 }
void FWGUIManager::runIdChanged ( )

Definition at line 1416 of file FWGUIManager.cc.

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

1417 {
1419  {
1421  }
1422 
1423  m_cmsShowMainFrame->m_lumiEntry->SetText("", kFALSE);
1424  m_cmsShowMainFrame->m_lumiEntry->SetFocus();
1425 }
FWNumberEntryField * m_lumiEntry
virtual void SetUIntNumber(UInt_t n)
RunNumber_t const invalidRunNumber
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:258
virtual UInt_t GetUIntNumber()
FWNumberEntryField * m_runEntry
void FWGUIManager::savePartialToConfigurationFile ( )
private

Definition at line 895 of file FWGUIManager.cc.

References writePartialToConfigurationFile_.

Referenced by FWGUIManager().

896 {
898 }
sigc::signal< void, const std::string & > writePartialToConfigurationFile_
Definition: FWGUIManager.h:210
void FWGUIManager::setDelayBetweenEvents ( Float_t  val)

Definition at line 1411 of file FWGUIManager.cc.

References m_cmsShowMainFrame, and CmsShowMainFrame::setPlayDelayGUI().

1412 {
1413  m_cmsShowMainFrame->setPlayDelayGUI(val, kTRUE);
1414 }
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:258
void setPlayDelayGUI(Float_t val, Bool_t sliderChanged)
void FWGUIManager::setFilterButtonIcon ( int  state)

Definition at line 1480 of file FWGUIManager.cc.

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

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

1481 {
1482  int i = state*3;
1486 }
int i
Definition: DBlmapReader.cc:9
FWCustomIconsButton * m_filterEnableBtn
const TGPicture * m_filterIcons[9]
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:258
void setIcons(const TGPicture *iUpIcon, const TGPicture *iDownIcon, const TGPicture *iDisabledIcon, const TGPicture *ibelowMouseIcon=0)
void FWGUIManager::setFilterButtonText ( const char *  txt)
void FWGUIManager::setFrom ( const FWConfiguration iFrom)
virtual

Implements FWConfigurable.

Definition at line 1264 of file FWGUIManager.cc.

References 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.

1264  {
1265  // main window
1267 
1268  const FWConfiguration* mw = iFrom.valueForKey(kMainWindow);
1269  assert(mw != 0);
1270  // Window needs to mapped before moving, otherwise move can lead
1271  // to wrong results on some window managers.
1272  m_cmsShowMainFrame->MapWindow();
1274  m_cmsShowMainFrame->MapSubwindows();
1275  m_cmsShowMainFrame->Layout();
1276  m_cmsShowMainFrame->MapRaised();
1277 
1278  // set from view reading area info nd view info
1279  float_t leftWeight =1;
1280  float_t rightWeight=1;
1281  if ( mw->version() >= 2 ) {
1282  leftWeight = atof(mw->valueForKey("leftWeight")->value().c_str());
1283  rightWeight = atof(mw->valueForKey("rightWeight")->value().c_str());
1284  }
1285 
1286  if ( mw->version() >= 3 ) {
1287  float summaryWeight = atof(mw->valueForKey("summaryWeight")->value().c_str());
1288  m_cmsShowMainFrame->setSummaryViewWeight(summaryWeight);
1289  }
1290 
1291  TEveWindowSlot* primSlot = (leftWeight > 0) ? m_viewPrimPack->NewSlotWithWeight(leftWeight) : 0;
1292  m_viewSecPack = m_viewPrimPack->NewSlotWithWeight(rightWeight)->MakePack();
1293  m_viewSecPack->SetVertical();
1294  m_viewSecPack->SetShowTitleBar(kFALSE);
1295 
1296  // views list
1297  const FWConfiguration* views = iFrom.valueForKey(kViews); assert(0!=views);
1298  const FWConfiguration::KeyValues* keyVals = views->keyValues();
1299  const FWConfiguration* viewArea = iFrom.valueForKey(kViewArea);
1300 
1301  // area list (ignored in older version)
1302  if ( viewArea->version() > 1)
1303  {
1304  const FWConfiguration::KeyValues* akv = viewArea->keyValues();
1305  FWConfiguration::KeyValuesIt areaIt = akv->begin();
1306 
1307  for(FWConfiguration::KeyValuesIt it = keyVals->begin(); it!= keyVals->end(); ++it)
1308  {
1309  float weight = atof((areaIt->second).valueForKey("weight")->value().c_str());
1310  TEveWindowSlot* slot = ( m_viewMap.size() || (primSlot == 0) ) ? m_viewSecPack->NewSlotWithWeight(weight) : primSlot;
1311  std::string name = FWViewType::checkNameWithViewVersion(it->first, it->second.version());
1312  ViewMap_i lastViewIt = createView(name, slot);
1313  lastViewIt->second->setFrom(it->second);
1314 
1315  bool undocked = atof((areaIt->second).valueForKey("undocked")->value().c_str());
1316  if (undocked)
1317  {
1318  TEveWindow* lastWindow = lastViewIt->first;
1319  lastWindow->UndockWindow();
1320  TEveCompositeFrameInMainFrame* emf = dynamic_cast<TEveCompositeFrameInMainFrame*>(lastWindow->GetEveFrame());
1321  if (emf ) {
1322  const TGMainFrame* mf = dynamic_cast<const TGMainFrame*>(emf->GetParent());
1323  if (mf) {
1325  TGMainFrame* mfp = (TGMainFrame*)mf; // have to cast in non-const
1326  const FWConfiguration* mwc = (areaIt->second).valueForKey("UndockedWindowPos");
1327  setWindowInfoFrom(*mwc, mfp);
1328  }
1329  }
1330  }
1331  areaIt++;
1332  }
1333  }
1334  else
1335  { // create views with same weight in old version
1336  for(FWConfiguration::KeyValuesIt it = keyVals->begin(); it!= keyVals->end(); ++it) {
1337  std::string name = FWViewType::checkNameWithViewVersion(it->first, it->second.version());
1338  createView(name, m_viewMap.size() ? m_viewSecPack->NewSlot() : primSlot);
1339 
1340  ViewMap_i lastViewIt = m_viewMap.end(); lastViewIt--;
1341  lastViewIt->second->setFrom(it->second);
1342  }
1343  // handle undocked windows in old version
1344  const FWConfiguration* undocked = iFrom.valueForKey(kUndocked);
1345  if(0!=undocked) {
1346  fwLog(fwlog::kWarning) << "Restrore of undocked windows with old window management not supported." << std::endl;
1347  }
1348  }
1349 
1350  //handle controllers
1351  const FWConfiguration* controllers = iFrom.valueForKey(kControllers);
1352  if (0 != controllers)
1353  {
1354  const FWConfiguration::KeyValues* keyVals = controllers->keyValues();
1355  if (0 != keyVals)
1356  {
1357  //we have open controllers
1358  for(FWConfiguration::KeyValuesIt it = keyVals->begin(); it != keyVals->end(); ++it)
1359  {
1360  const std::string& controllerName = it->first;
1361  // std::cout <<"found controller "<<controllerName<<std::endl;
1362  if (controllerName == kCollectionController) {
1363  showEDIFrame();
1364  setWindowInfoFrom(it->second,m_ediFrame);
1365  } else if (controllerName == kViewController) {
1366  setViewPopup(0);
1367  setWindowInfoFrom(it->second, m_viewPopup);
1368  } else if (controllerName == kObjectController) {
1369  showModelPopup();
1370  setWindowInfoFrom(it->second, m_modelPopup);
1371  } else if (controllerName == kCommonController) {
1372  showCommonPopup();
1373  setWindowInfoFrom(it->second, m_commonPopup);
1374  }
1375  }
1376  }
1377  }
1378 
1379 
1380  for(ViewMap_i it = m_viewMap.begin(); it != m_viewMap.end(); ++it)
1381  {
1382  if (it->second->typeId() >= FWViewType::kGeometryTable)
1383  {
1386  }
1387  }
1388 
1389  // disable first docked view
1391 }
std::vector< std::pair< std::string, FWConfiguration > > KeyValues
void bindCSGActionKeys(const TGMainFrame *f) const
ViewMap_t::iterator ViewMap_i
Definition: FWGUIManager.h:103
ViewMap_t m_viewMap
Definition: FWGUIManager.h:276
void showModelPopup()
const KeyValues * keyValues() const
CmsShowEDI * m_ediFrame
Definition: FWGUIManager.h:264
void subviewDestroyAll()
void setViewPopup(TEveWindow *)
static const std::string kViewController("view")
assert(m_qm.get())
unsigned int version() const
static const std::string kViews("views")
static const std::string kObjectController("object")
TEveWindowPack * m_viewPrimPack
Definition: FWGUIManager.h:279
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:280
void setWindowInfoFrom(const FWConfiguration &iFrom, TGMainFrame *iFrame)
void checkSubviewAreaIconState(TEveWindow *)
static const std::string kCollectionController("collection")
CmsShowViewPopup * m_viewPopup
Definition: FWGUIManager.h:266
static const std::string kMainWindow("main window")
static const std::string kUndocked("undocked views")
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:258
CmsShowModelPopup * m_modelPopup
Definition: FWGUIManager.h:265
static const std::string kViewArea("view area")
CmsShowCommonPopup * m_commonPopup
Definition: FWGUIManager.h:267
static const std::string & checkNameWithViewVersion(const std::string &name, unsigned int viewVersion)
Definition: FWViewType.cc:102
const std::string & value(unsigned int iIndex=0) const
ViewMap_i createView(const std::string &iName, TEveWindowSlot *slot=0)
#define fwLog(_level_)
Definition: fwLog.h:50
KeyValues::const_iterator KeyValuesIt
void setSummaryViewWeight(float)
const FWConfiguration * valueForKey(const std::string &iKey) const
int weight
Definition: histoStyle.py:50
void showCommonPopup()
static const std::string kControllers("controllers")
void FWGUIManager::setPlayMode ( bool  play)

Definition at line 385 of file FWGUIManager.cc.

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

386 {
387  m_cmsShowMainFrame->m_runEntry->SetEnabled(!play);
388  m_cmsShowMainFrame->m_eventEntry->SetEnabled(!play);
389 }
FWNumberEntryField * m_eventEntry
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:258
FWNumberEntryField * m_runEntry
void FWGUIManager::setViewPopup ( TEveWindow *  ew)
private

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

716 {
717  FWViewBase* vb = ew ? m_viewMap[ew] : 0;
718  if (m_viewPopup == 0)
719  {
720  m_viewPopup = new CmsShowViewPopup(0, 200, 200, m_context->colorManager(), vb, ew);
722  }
723  else
724  {
726  }
727  m_viewPopup->reset(vb, ew);
728  m_viewPopup->MapRaised();
729 }
void popupViewClosed()
ViewMap_t m_viewMap
Definition: FWGUIManager.h:276
sigc::signal< void > closed_
FWColorManager * colorManager() const
Definition: Context.h:65
virtual void UnmapWindow()
static FWGUIManager * m_guiManager
Definition: FWGUIManager.h:246
CmsShowViewPopup * m_viewPopup
Definition: FWGUIManager.h:266
void reset(FWViewBase *, TEveWindow *ew)
fireworks::Context * m_context
Definition: FWGUIManager.h:249
void FWGUIManager::setWindowInfoFrom ( const FWConfiguration iFrom,
TGMainFrame *  iFrame 
)

Definition at line 1251 of file FWGUIManager.cc.

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

Referenced by setFrom().

1253 {
1254  int x = atoi(iFrom.valueForKey("x")->value().c_str()) + m_WMOffsetX;
1255  int y = atoi(iFrom.valueForKey("y")->value().c_str()) + m_WMOffsetY;
1256  if (y < m_WMDecorH) y = m_WMDecorH;
1257  int width = atoi(iFrom.valueForKey("width")->value().c_str());
1258  int height = atoi(iFrom.valueForKey("height")->value().c_str());
1259  iFrame->MoveResize(x,y,width,height);
1260  iFrame->SetWMPosition(x, y);
1261 }
const std::string & value(unsigned int iIndex=0) const
const FWConfiguration * valueForKey(const std::string &iKey) const
Definition: DDAxes.h:10
void FWGUIManager::showCommonPopup ( )

Definition at line 672 of file FWGUIManager.cc.

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

Referenced by FWGUIManager(), and setFrom().

673 {
674  if (! m_commonPopup)
675  {
678  }
679  m_commonPopup->MapRaised();
680 }
void bindCSGActionKeys(const TGMainFrame *f) const
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:258
CmsShowCommonPopup * m_commonPopup
Definition: FWGUIManager.h:267
fireworks::Context * m_context
Definition: FWGUIManager.h:249
CmsShowCommon * commonPrefs() const
Definition: Context.cc:179
void FWGUIManager::showEDIFrame ( int  iInfoToShow = -1)

Allowed values are -1 or ones from FWDataCategories enum.

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

632 {
633  createEDIFrame();
634  if (-1 != iToShow)
635  {
636  m_ediFrame->show(static_cast<FWDataCategories>(iToShow));
637  }
638  m_ediFrame->MapRaised();
639 }
CmsShowEDI * m_ediFrame
Definition: FWGUIManager.h:264
void createEDIFrame()
void show(FWDataCategories)
Definition: CmsShowEDI.cc:523
void FWGUIManager::showEventFilterGUI ( )

Definition at line 1462 of file FWGUIManager.cc.

References m_cmsShowMainFrame, and showEventFilterGUI_.

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

1463 {
1465 }
sigc::signal< void, const TGWindow * > showEventFilterGUI_
Definition: FWGUIManager.h:208
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:258
void FWGUIManager::showInvMassDialog ( )

Definition at line 732 of file FWGUIManager.cc.

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

Referenced by FWGUIManager().

733 {
734  if (! m_invMassDialog)
735  {
738  }
739  m_invMassDialog->MapRaised();
740 }
void bindCSGActionKeys(const TGMainFrame *f) const
FWInvMassDialog * m_invMassDialog
Definition: FWGUIManager.h:268
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:258
FWSelectionManager * selectionManager() const
Definition: Context.h:57
fireworks::Context * m_context
Definition: FWGUIManager.h:249
void FWGUIManager::showModelPopup ( )

Definition at line 691 of file FWGUIManager.cc.

References createModelPopup(), and m_modelPopup.

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

692 {
694  m_modelPopup->MapRaised();
695 }
CmsShowModelPopup * m_modelPopup
Definition: FWGUIManager.h:265
void createModelPopup()
void FWGUIManager::showSelectedModelContextMenu ( Int_t  iGlobalX,
Int_t  iGlobalY,
FWViewContextMenuHandlerBase iHandler 
)

Definition at line 784 of file FWGUIManager.cc.

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

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

785 {
786  if (! m_context->selectionManager()->selected().empty())
787  {
788  m_contextMenuHandler->showSelectedModelContext(iGlobalX,iGlobalY, iHandler);
789  }
790 }
const std::set< FWModelId > & selected() const
FWSelectionManager * selectionManager() const
Definition: Context.h:57
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:249
FWModelContextMenuHandler * m_contextMenuHandler
Definition: FWGUIManager.h:256
void FWGUIManager::showViewPopup ( )

Definition at line 708 of file FWGUIManager.cc.

References setViewPopup().

Referenced by FWGUIManager().

709 {
710  // CSG action.
711  setViewPopup(0);
712 }
void setViewPopup(TEveWindow *)
void FWGUIManager::subviewDestroy ( FWGUISubviewArea sva)

Definition at line 508 of file FWGUIManager.cc.

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

Referenced by subviewDestroyAll(), and subviewIsBeingDestroyed().

509 {
510  TEveWindow* ew = sva->getEveWindow();
511  FWViewBase* viewBase = m_viewMap[ew];
512  m_viewMap.erase(ew);
513  viewBase->destroy();
514 }
TEveWindow * getEveWindow()
ViewMap_t m_viewMap
Definition: FWGUIManager.h:276
void destroy()
Definition: FWViewBase.cc:64
void FWGUIManager::subviewDestroyAll ( )

Definition at line 517 of file FWGUIManager.cc.

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

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

518 {
519  std::vector<FWGUISubviewArea*> sd;
520  for(ViewMap_i wIt = m_viewMap.begin(); wIt != m_viewMap.end(); ++wIt)
521  {
523  sd.push_back(ar);
524  }
525 
526  for (std::vector<FWGUISubviewArea*>::iterator i= sd.begin(); i !=sd.end(); ++i)
527  {
528  if ((*i)->isSelected())
529  setViewPopup(0);
530  subviewDestroy(*i);
531  }
532 
533  gSystem->ProcessEvents();
534  gSystem->Sleep(200);
535 
536 
537 
538  while (m_viewPrimPack->HasChildren())
539  {
540  TEveWindow* w = dynamic_cast<TEveWindow*>(m_viewPrimPack->FirstChild());
541  if (w) w->DestroyWindowAndSlot();
542  }
543 
544  gSystem->Sleep(200);
545  m_viewSecPack = 0;
546  gSystem->ProcessEvents();
547 
548 }
int i
Definition: DBlmapReader.cc:9
ViewMap_t::iterator ViewMap_i
Definition: FWGUIManager.h:103
ViewMap_t m_viewMap
Definition: FWGUIManager.h:276
const double w
Definition: UKUtility.cc:23
void setViewPopup(TEveWindow *)
TEveWindowPack * m_viewPrimPack
Definition: FWGUIManager.h:279
TEveWindowPack * m_viewSecPack
Definition: FWGUIManager.h:280
void subviewDestroy(FWGUISubviewArea *)
static FWGUISubviewArea * getToolBarFromWindow(TEveWindow *)
double sd
void FWGUIManager::subviewInfoSelected ( FWGUISubviewArea sva)

Definition at line 551 of file FWGUIManager.cc.

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

Referenced by connectSubviewAreaSignals().

552 {
553  // release button on previously selected
554  TEveWindow* ew = sva->getEveWindow();
555  for(ViewMap_i wIt = m_viewMap.begin(); wIt != m_viewMap.end(); ++wIt)
556  {
557  if (wIt->first != ew)
559  }
560  setViewPopup(sva->getEveWindow());
561 }
TEveWindow * getEveWindow()
ViewMap_t::iterator ViewMap_i
Definition: FWGUIManager.h:103
ViewMap_t m_viewMap
Definition: FWGUIManager.h:276
void setViewPopup(TEveWindow *)
void setInfoButton(bool downp)
static FWGUISubviewArea * getToolBarFromWindow(TEveWindow *)
void FWGUIManager::subviewInfoUnselected ( FWGUISubviewArea sva)

Definition at line 564 of file FWGUIManager.cc.

References m_viewPopup, and CmsShowViewPopup::UnmapWindow().

Referenced by connectSubviewAreaSignals().

565 {
567 }
virtual void UnmapWindow()
CmsShowViewPopup * m_viewPopup
Definition: FWGUIManager.h:266
void FWGUIManager::subviewIsBeingDestroyed ( FWGUISubviewArea sva)

Definition at line 496 of file FWGUIManager.cc.

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

Referenced by connectSubviewAreaSignals().

497 {
498  if (sva->isSelected())
499  setViewPopup(0);
500 
502  f = boost::bind(&FWGUIManager::subviewDestroy, this, sva);
503  m_tasks->addTask(f);
504  m_tasks->startDoingTasks();
505 }
void setViewPopup(TEveWindow *)
std::auto_ptr< CmsShowTaskExecutor > m_tasks
Definition: FWGUIManager.h:284
void subviewDestroy(FWGUISubviewArea *)
double f[11][100]
bool isSelected() const
boost::function0< void > TaskFunctor
void FWGUIManager::subviewSwapped ( FWGUISubviewArea sva)

Definition at line 570 of file FWGUIManager.cc.

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

Referenced by connectSubviewAreaSignals().

571 {
572  TEveWindow* curr = getSwapCandidate();
573  TEveWindow* swap = sva->getEveWindow();
574  if (curr) swap->SwapWindow(curr);
575 
577 }
TEveWindow * getEveWindow()
void swap(ora::Record &rh, ora::Record &lh)
Definition: Record.h:70
void checkSubviewAreaIconState(TEveWindow *)
TEveWindow * getSwapCandidate()
void FWGUIManager::titleChanged ( const char *  title)

Definition at line 325 of file FWGUIManager.cc.

References m_cmsShowMainFrame, and indexGen::title.

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

326 {
327  char title[128];
328  snprintf(title,127,"cmsShow: %s", subtitle);
329  m_cmsShowMainFrame->SetWindowName(title);
330 }
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:258
void FWGUIManager::updateEventFilterEnable ( bool  btnEnabled)

Definition at line 1489 of file FWGUIManager.cc.

References m_cmsShowMainFrame, and CmsShowMainFrame::m_filterEnableBtn.

Referenced by CmsShowMain::setupDataHandling().

1490 {
1491  m_cmsShowMainFrame->m_filterEnableBtn->SetEnabled(btnEnabled);
1492 }
FWCustomIconsButton * m_filterEnableBtn
CmsShowMainFrame * m_cmsShowMainFrame
Definition: FWGUIManager.h:258
void FWGUIManager::updateStatus ( const char *  status)

Member Data Documentation

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

Definition at line 219 of file FWGUIManager.h.

Referenced by delaySliderChanged().

sigc::signal<void> FWGUIManager::changedEventEntry_

Definition at line 218 of file FWGUIManager.h.

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

Definition at line 213 of file FWGUIManager.h.

Referenced by eventIdChanged().

sigc::signal<void> FWGUIManager::changedRunEntry_

Definition at line 217 of file FWGUIManager.h.

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

Definition at line 214 of file FWGUIManager.h.

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

Definition at line 211 of file FWGUIManager.h.

Referenced by promptForLoadConfigurationFile().

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

Definition at line 212 of file FWGUIManager.h.

Referenced by promptForPartialLoadConfigurationFile().

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

Definition at line 267 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 256 of file FWGUIManager.h.

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

FWGUIEventDataAdder* FWGUIManager::m_dataAdder
private

Definition at line 261 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 260 of file FWGUIManager.h.

FWGUIManager * FWGUIManager::m_guiManager = 0
staticprivate

Definition at line 246 of file FWGUIManager.h.

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

CmsShowHelpPopup* FWGUIManager::m_helpGLPopup
private

Definition at line 273 of file FWGUIManager.h.

Referenced by createHelpGLPopup().

CmsShowHelpPopup* FWGUIManager::m_helpPopup
private

Definition at line 271 of file FWGUIManager.h.

Referenced by createHelpPopup().

FWInvMassDialog* FWGUIManager::m_invMassDialog
private

Definition at line 268 of file FWGUIManager.h.

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

sigc::connection FWGUIManager::m_modelChangeConn
private

Definition at line 282 of file FWGUIManager.h.

CmsShowModelPopup* FWGUIManager::m_modelPopup
private

Definition at line 265 of file FWGUIManager.h.

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

NameToViewBuilder FWGUIManager::m_nameToViewBuilder
private

Definition at line 277 of file FWGUIManager.h.

Referenced by createView(), and registerViewBuilder().

FWNavigatorBase* FWGUIManager::m_navigator
private

Definition at line 257 of file FWGUIManager.h.

Referenced by getCurrentEvent().

CmsShowHelpPopup* FWGUIManager::m_shortcutPopup
private

Definition at line 272 of file FWGUIManager.h.

Referenced by createShortcutPopup().

FWSummaryManager* FWGUIManager::m_summaryManager
private

Definition at line 251 of file FWGUIManager.h.

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

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

Definition at line 284 of file FWGUIManager.h.

Referenced by subviewIsBeingDestroyed().

const FWViewManagerManager* FWGUIManager::m_viewManagerManager
private

Definition at line 255 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 286 of file FWGUIManager.h.

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

int FWGUIManager::m_WMOffsetX
private

Definition at line 286 of file FWGUIManager.h.

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

int FWGUIManager::m_WMOffsetY
private

Definition at line 286 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 209 of file FWGUIManager.h.

Referenced by promptForSaveConfigurationFile().

sigc::signal<void> FWGUIManager::writeToPresentConfigurationFile_

Definition at line 215 of file FWGUIManager.h.

Referenced by FWGUIManager().