2 #ifndef Fireworks_Core_FWGUIManager_h 3 #define Fireworks_Core_FWGUIManager_h 23 #include <boost/function.hpp> 24 #include <sigc++/sigc++.h> 27 #include "TGFileDialog.h" 35 class TGPictureButton;
41 class TGVerticalFrame;
44 class TGCompositeFrame;
50 class TEveElementList;
54 class TEveCompositeFrame;
97 typedef boost::function2<FWViewBase*, TEveWindowSlot*, const std::string&>
ViewBuildFunctor;
108 void evePreTerminate();
113 void setWindowInfoFrom(
const FWConfiguration& iFrom, TGMainFrame* iFrame);
116 TGVerticalFrame* createList(TGCompositeFrame*
p);
117 void createViews(TEveWindowSlot* slot);
118 void exportImageOfMainView();
119 void exportImagesOfAllViews();
122 void createEDIFrame();
124 void showEDIFrame(
int iInfoToShow = -1);
127 void showCommonPopup();
129 void createModelPopup();
130 void showModelPopup();
131 void showViewPopup();
132 void popupViewClosed();
136 void showInvMassDialog();
140 void createHelpPopup();
141 void createShortcutPopup();
142 void createHelpGLPopup();
153 static TGFrame* makeGUIsubview(TEveCompositeFrame*
cp, TGCompositeFrame*
parent, Int_t height);
157 void registerViewBuilder(
const std::string& iName, ViewBuildFunctor& iBuilder);
159 ViewMap_i createView(
const std::string& iName, TEveWindowSlot* slot =
nullptr);
163 void enableActions(
bool enable =
true);
164 void disablePrevious();
166 void setPlayMode(
bool);
167 void updateStatus(
const char*
status);
169 void eventChangedCallback();
174 void titleChanged(
const char*
title);
176 void openEveBrowserForDebugging()
const;
177 void setDelayBetweenEvents(Float_t);
179 void showEventFilterGUI();
180 void filterButtonClicked();
181 void setFilterButtonText(
const char* txt);
182 void setFilterButtonIcon(
int);
183 void updateEventFilterEnable(
bool);
186 void lumiIdChanged();
187 void eventIdChanged();
188 void checkSubviewAreaIconState(TEveWindow*);
191 void subviewDestroyAll();
199 void resetWMOffsets();
208 sigc::signal<void, edm::RunNumber_t, edm::LuminosityBlockNumber_t, edm::EventNumber_t>
changedEventId_;
220 TEveWindow* getSwapCandidate();
225 void promptForSaveConfigurationFile();
226 void promptForPartialSaveConfigurationFile();
227 void promptForLoadConfigurationFile();
228 void promptForPartialLoadConfigurationFile();
229 void savePartialToConfigurationFile();
231 void delaySliderChanged(Int_t);
233 void finishUpColorChange();
235 void setViewPopup(TEveWindow*);
237 void measureWMOffsets();
sigc::signal< void > writeToPresentConfigurationFile_
fireworks::Context * getContext()
ViewMap_t::iterator ViewMap_i
sigc::signal< void > filterButtonClicked_
sigc::signal< void, const std::string & > writePartialToConfigurationFile_
NameToViewBuilder m_nameToViewBuilder
FWSummaryManager * m_summaryManager
sigc::signal< void, const std::string & > loadPartialFromConfigurationFile_
FWInvMassDialog * m_invMassDialog
sigc::connection m_modelChangeConn
static FWGUIManager * m_guiManager
FWDetailViewManager * m_detailViewManager
TEveWindowPack * m_viewPrimPack
TEveWindowPack * m_viewSecPack
CmsShowViewPopup * m_viewPopup
sigc::signal< void, Float_t > changedDelayBetweenEvents_
FWNavigatorBase * m_navigator
sigc::signal< void, const TGWindow * > showEventFilterGUI_
std::map< std::string, ViewBuildFunctor > NameToViewBuilder
CmsShowMainFrame * m_cmsShowMainFrame
FWGUIEventDataAdder * m_dataAdder
CmsShowMainFrame * getMainFrame() const
CmsShowModelPopup * m_modelPopup
sigc::signal< void > changedRunEntry_
CmsShowCommonPopup * m_commonPopup
CmsShowHelpPopup * m_helpGLPopup
std::vector< FWViewBase * > m_regionViews
const FWViewManagerManager * m_viewManagerManager
boost::function2< FWViewBase *, TEveWindowSlot *, const std::string & > ViewBuildFunctor
sigc::signal< void > changedEventEntry_
fireworks::Context * m_context
std::unique_ptr< CmsShowTaskExecutor > m_tasks
sigc::signal< void, const std::string & > writeToConfigurationFile_
std::map< TEveWindow *, FWViewBase * > ViewMap_t
sigc::signal< void, const std::string & > loadFromConfigurationFile_
FWModelContextMenuHandler * m_contextMenuHandler
sigc::signal< void, edm::RunNumber_t, edm::LuminosityBlockNumber_t, edm::EventNumber_t > changedEventId_
sigc::signal< void > goingToQuit_
CmsShowHelpPopup * m_helpPopup
CmsShowHelpPopup * m_shortcutPopup