CMS 3D CMS Logo

Classes | Functions
FWGUIManager.cc File Reference
#include <functional>
#include <stdexcept>
#include <iostream>
#include <cstdio>
#include <sstream>
#include <thread>
#include <future>
#include "TGButton.h"
#include "TGLabel.h"
#include "TSystem.h"
#include "TGLIncludes.h"
#include "TGLViewer.h"
#include "TEveBrowser.h"
#include "TEveManager.h"
#include "TGPack.h"
#include "TEveWindow.h"
#include "TEveViewer.h"
#include "TEveWindowManager.h"
#include "TEveSelection.h"
#include "TVirtualX.h"
#include "TFile.h"
#include "Fireworks/Core/interface/FWGUIManager.h"
#include "Fireworks/Core/interface/Context.h"
#include "Fireworks/Core/interface/FWGUISubviewArea.h"
#include "Fireworks/Core/interface/FWTEveViewer.h"
#include "Fireworks/Core/interface/FWSelectionManager.h"
#include "Fireworks/Core/interface/FWEventItemsManager.h"
#include "Fireworks/Core/interface/FWSummaryManager.h"
#include "Fireworks/Core/interface/FWColorManager.h"
#include "Fireworks/Core/interface/FWDetailViewManager.h"
#include "Fireworks/Core/interface/FWViewBase.h"
#include "Fireworks/Core/interface/FWViewType.h"
#include "Fireworks/Core/interface/FWGeometryTableViewBase.h"
#include "Fireworks/Core/interface/FWJobMetadataManager.h"
#include "Fireworks/Core/interface/FWInvMassDialog.h"
#include "Fireworks/Core/interface/FWConfiguration.h"
#include "Fireworks/Core/interface/CmsShowMainFrame.h"
#include "Fireworks/Core/interface/FWNavigatorBase.h"
#include "Fireworks/Core/src/FWGUIEventDataAdder.h"
#include "Fireworks/Core/src/FWNumberEntry.h"
#include "Fireworks/Core/interface/CSGAction.h"
#include "Fireworks/Core/interface/ActionsList.h"
#include "Fireworks/Core/interface/CmsShowEDI.h"
#include "Fireworks/Core/interface/CmsShowCommon.h"
#include "Fireworks/Core/interface/CmsShowCommonPopup.h"
#include "Fireworks/Core/interface/CmsShowModelPopup.h"
#include "Fireworks/Core/interface/CmsShowViewPopup.h"
#include "Fireworks/Core/interface/CmsShowHelpPopup.h"
#include "Fireworks/Core/interface/CmsShowTaskExecutor.h"
#include "Fireworks/Core/interface/FWTypeToRepresentations.h"
#include "Fireworks/Core/interface/FWIntValueListener.h"
#include "Fireworks/Core/interface/FWCustomIconsButton.h"
#include "Fireworks/Core/src/FWModelContextMenuHandler.h"
#include "Fireworks/Core/interface/fwLog.h"
#include "Fireworks/Core/interface/FWEventItem.h"
#include "Fireworks/Core/interface/FW3DViewBase.h"
#include "Fireworks/Core/interface/FWExpressionException.h"
#include "FWCore/Common/interface/EventBase.h"
#include "CommonTools/Utils/interface/parser/Grammar.h"
#include "CommonTools/Utils/interface/parser/Exception.h"

Go to the source code of this file.

Classes

class  areaInfo
 

Functions

static void addAreaInfoTo (areaInfo &pInfo, FWConfiguration &oTo)
 
static void addWindowInfoTo (const TGFrame *iMain, FWConfiguration &oTo)
 
static const std::string kCollectionController ("collection")
 
static const std::string kCommonController ("common")
 
static const std::string kControllers ("controllers")
 
static const std::string kMainWindow ("main window")
 
static const std::string kObjectController ("object")
 
static const std::string kUndocked ("undocked views")
 
static const std::string kViewArea ("view area")
 
static const std::string kViewController ("view")
 
static const std::string kViews ("views")
 

Function Documentation

◆ addAreaInfoTo()

static void addAreaInfoTo ( areaInfo pInfo,
FWConfiguration oTo 
)
static

Definition at line 940 of file FWGUIManager.cc.

References FWConfiguration::addKeyValue(), addWindowInfoTo(), alignCSCRings::s, groupFilesInBlocks::temp, areaInfo::undocked, areaInfo::undockedMainFrame, and areaInfo::weight.

Referenced by FWGUIManager::addTo().

940  {
941  {
942  std::stringstream s;
943  s << pInfo.weight;
944  oTo.addKeyValue("weight", FWConfiguration(s.str()));
945  }
946  {
947  std::stringstream s;
948  s << pInfo.undocked;
949  oTo.addKeyValue("undocked", FWConfiguration(s.str()));
950  }
951 
952  if (pInfo.undockedMainFrame) {
953  FWConfiguration temp(oTo);
955  oTo.addKeyValue("UndockedWindowPos", temp);
956  }
957 }
TGMainFrame * undockedMainFrame
static void addWindowInfoTo(const TGFrame *iMain, FWConfiguration &oTo)
FWConfiguration & addKeyValue(const std::string &, const FWConfiguration &)
Bool_t undocked
Float_t weight

◆ addWindowInfoTo()

static void addWindowInfoTo ( const TGFrame *  iMain,
FWConfiguration oTo 
)
static

Definition at line 880 of file FWGUIManager.cc.

References FWConfiguration::addKeyValue(), and alignCSCRings::s.

Referenced by addAreaInfoTo(), and FWGUIManager::addTo().

880  {
881  Window_t wdummy;
882  Int_t ax, ay;
883  gVirtualX->TranslateCoordinates(iMain->GetId(),
884  gClient->GetDefaultRoot()->GetId(),
885  0,
886  0, //0,0 in local coordinates
887  ax,
888  ay, //coordinates of screen
889  wdummy);
890  {
891  std::stringstream s;
892  s << ax;
893  oTo.addKeyValue("x", FWConfiguration(s.str()));
894  }
895  {
896  std::stringstream s;
897  s << ay;
898  oTo.addKeyValue("y", FWConfiguration(s.str()));
899  }
900  {
901  std::stringstream s;
902  s << iMain->GetWidth();
903  oTo.addKeyValue("width", FWConfiguration(s.str()));
904  }
905  {
906  std::stringstream s;
907  s << iMain->GetHeight();
908  oTo.addKeyValue("height", FWConfiguration(s.str()));
909  }
910 }
FWConfiguration & addKeyValue(const std::string &, const FWConfiguration &)

◆ kCollectionController()

static const std::string kCollectionController ( "collection"  )
static

◆ kCommonController()

static const std::string kCommonController ( "common"  )
static

◆ kControllers()

static const std::string kControllers ( "controllers"  )
static

◆ kMainWindow()

static const std::string kMainWindow ( "main window"  )
static

◆ kObjectController()

static const std::string kObjectController ( "object"  )
static

◆ kUndocked()

static const std::string kUndocked ( "undocked views"  )
static

Referenced by FWGUIManager::setFrom().

◆ kViewArea()

static const std::string kViewArea ( "view area"  )
static

◆ kViewController()

static const std::string kViewController ( "view"  )
static

◆ kViews()

static const std::string kViews ( "views"  )
static