CMS 3D CMS Logo

Classes | Functions | Variables
FWCollectionSummaryWidget.cc File Reference
#include <iostream>
#include <vector>
#include <boost/bind.hpp>
#include "TGButton.h"
#include "TGResourcePool.h"
#include "Fireworks/Core/src/FWColorSelect.h"
#include "Fireworks/Core/src/FWBoxIconButton.h"
#include "Fireworks/Core/src/FWCheckBoxIcon.h"
#include "Fireworks/Core/src/FWColorBoxIcon.h"
#include "Fireworks/Core/src/FWCollectionSummaryWidget.h"
#include "Fireworks/Core/interface/FWEventItem.h"
#include "Fireworks/Core/interface/FWCustomIconsButton.h"
#include "Fireworks/Core/src/FWCollectionSummaryTableManager.h"
#include "Fireworks/TableWidget/interface/FWTableWidget.h"
#include "Fireworks/Core/interface/FWSelectionManager.h"
#include "Fireworks/Core/interface/FWModelChangeManager.h"
#include "Fireworks/Core/interface/FWColorManager.h"

Go to the source code of this file.

Classes

struct  FWCollectionSummaryWidgetConnectionHolder
 

Functions

static const TGPicture * alert (bool iBackgroundIsBlack)
 
static const TGPicture * alert_over (bool iBackgroundIsBlack)
 
static const TGPicture * arrow_down (bool iBackgroundIsBlack)
 
static const TGPicture * arrow_down_disabled (bool iBackgroundIsBlack)
 
static const TGPicture * arrow_right (bool iBackgroundIsBlack)
 
static const TGPicture * arrow_right_disabled (bool iBackgroundIsBlack)
 
static const TGPicture * filtered (bool iBackgroundIsBlack)
 
static const TGPicture * filtered_over (bool iBackgroundIsBlack)
 
static const TGPicture * info (bool iBackgroundIsBlack)
 
static const TGPicture * info_disabled (bool iBackgroundIsBlack)
 
static const TGPicture * info_over (bool iBackgroundIsBlack)
 
static TGGC * selectContext ()
 
static void setLabelBackgroundColor (TGTextButton *iLabel, bool iIsSelected, bool iBackgroundIsWhite)
 
static const TGPicture * unfiltered (bool iBackgroundIsBlack)
 
static const TGPicture * unfiltered_over (bool iBackgroundIsBlack)
 

Variables

static const unsigned long kWidgetColor = 0x2f2f2f
 
static const unsigned long kWidgetColorLight = 0xdfdfdf
 

Function Documentation

static const TGPicture* alert ( bool  iBackgroundIsBlack)
static

Definition at line 137 of file FWCollectionSummaryWidget.cc.

References FWCheckBoxIcon::coreIcondir(), and alignCSCRings::s.

Referenced by FWCollectionSummaryWidget::itemChanged().

138 {
139 
140  if(iBackgroundIsBlack) {
141  static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"icon-alert-blackbg.png");
142  return s;
143  }
144  static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"icon-alert-whitebg.png");
145  return s;
146 }
static const TString & coreIcondir()
static const TGPicture* alert_over ( bool  iBackgroundIsBlack)
static

Definition at line 126 of file FWCollectionSummaryWidget.cc.

References FWCheckBoxIcon::coreIcondir(), and alignCSCRings::s.

Referenced by FWCollectionSummaryWidget::itemChanged().

127 {
128  if(iBackgroundIsBlack) {
129  static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"icon-alert-blackbg-over.png");
130  return s;
131  }
132  static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"icon-alert-whitebg-over.png");
133  return s;
134 }
static const TString & coreIcondir()
static const TGPicture* arrow_down ( bool  iBackgroundIsBlack)
static

Definition at line 225 of file FWCollectionSummaryWidget.cc.

References FWCheckBoxIcon::coreIcondir(), and alignCSCRings::s.

Referenced by FWCollectionSummaryWidget::setBackgroundToWhite(), and FWCollectionSummaryWidget::toggleShowHide().

226 {
227  if(iBackgroundIsBlack) {
228  static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"arrow-white-down-blackbg.png");
229  return s;
230  }
231  static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"arrow-black-down-whitebg.png");
232  return s;
233 }
static const TString & coreIcondir()
static const TGPicture* arrow_down_disabled ( bool  iBackgroundIsBlack)
static

Definition at line 236 of file FWCollectionSummaryWidget.cc.

References FWCheckBoxIcon::coreIcondir(), and alignCSCRings::s.

Referenced by FWCollectionSummaryWidget::setBackgroundToWhite(), and FWCollectionSummaryWidget::toggleShowHide().

237 {
238  if(iBackgroundIsBlack) {
239  static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"arrow-white-down-disabled-blackbg.png");
240  return s;
241  }
242  static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"arrow-black-down-disabled-whitebg.png");
243  return s;
244 }
static const TString & coreIcondir()
static const TGPicture* arrow_right ( bool  iBackgroundIsBlack)
static

Definition at line 203 of file FWCollectionSummaryWidget.cc.

References FWCheckBoxIcon::coreIcondir(), and alignCSCRings::s.

Referenced by FWCollectionSummaryWidget::FWCollectionSummaryWidget(), FWCollectionSummaryWidget::setBackgroundToWhite(), and FWCollectionSummaryWidget::toggleShowHide().

204 {
205  if(iBackgroundIsBlack) {
206  static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"arrow-white-right-blackbg.png");
207  return s;
208  }
209  static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"arrow-black-right-whitebg.png");
210  return s;
211 }
static const TString & coreIcondir()
static const TGPicture* arrow_right_disabled ( bool  iBackgroundIsBlack)
static

Definition at line 214 of file FWCollectionSummaryWidget.cc.

References FWCheckBoxIcon::coreIcondir(), and alignCSCRings::s.

Referenced by FWCollectionSummaryWidget::FWCollectionSummaryWidget(), FWCollectionSummaryWidget::setBackgroundToWhite(), and FWCollectionSummaryWidget::toggleShowHide().

215 {
216  if(iBackgroundIsBlack) {
217  static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"arrow-white-right-disabled-blackbg.png");
218  return s;
219  }
220  static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"arrow-black-right-disabled-whitebg.png");
221  return s;
222 }
static const TString & coreIcondir()
static const TGPicture* filtered ( bool  iBackgroundIsBlack)
static
static const TGPicture* filtered_over ( bool  iBackgroundIsBlack)
static

Definition at line 115 of file FWCollectionSummaryWidget.cc.

References FWCheckBoxIcon::coreIcondir(), and alignCSCRings::s.

Referenced by FWCollectionSummaryWidget::itemChanged().

116 {
117  if(iBackgroundIsBlack) {
118  static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"filtered-whitebg-over.png");
119  return s;
120  }
121  static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"filtered-whitebg-over.png");
122  return s;
123 }
static const TString & coreIcondir()
static const TGPicture* info ( bool  iBackgroundIsBlack)
static

Definition at line 170 of file FWCollectionSummaryWidget.cc.

References FWCheckBoxIcon::coreIcondir(), and alignCSCRings::s.

Referenced by FWTypeToRepresentations::add(), o2olib.O2OJobMgr::add(), edm::RootTree::addBranch(), BetaCalculatorECAL::addInfoToCandidate(), cms::Phase2TrackerDigitizer::addOuterTrackerCollection(), cms::Phase2TrackerDigitizer::addPixelCollection(), SimAnalyzerMinbias::analyze(), EopTreeWriter::analyze(), ValidIsoTrkCalib::analyze(), EcalCosmicsHists::analyze(), HcalHBHEMuonAnalyzer::analyze(), RecAnalyzerHF::analyzeHcal(), AnalyzerMinbias::analyzeHcal(), RecAnalyzerMinbias::analyzeHcal(), GlobalTrackerMuonAlignment::analyzeTrackTrack(), GlobalTrackerMuonAlignment::analyzeTrackTrajectory(), TrackDetectorAssociator::associate(), HTrackAssociator::associate(), HTrackAssociator::associateEcal(), HTrackAssociator::associateHcal(), lhef::LHEEvent::attempted(), edmplugin::PluginCapabilities::available(), FWSiStripClusterProxyBuilder::build(), FWPFEcalRecHitRPProxyBuilder::build(), FWPFEcalClusterRPZProxyBuilder::build(), FWPFHcalClusterRPZProxyBuilder::build(), CommissioningHistosUsingDb::buildDetInfo(), CmsShowModelPopup::changeModelColor(), CmsShowModelPopup::changeModelOpacity(), spr::chargeIsolationEcal(), spr::chargeIsolationHcal(), DavixStorageMaker::check(), FWGeometry::clear(), SensitiveDetector::cmsTrackInformation(), CmsShowModelPopup::colorSetChanged(), AbsHBHEPhase1Algo::configure(), edm::service::CPU::cpuInfo(), MuonSensitiveDetector::createHit(), TGeoFromDddService::createManager(), cms::MuonMETValueMapProducer::determine_deltax_deltay(), XrdAdaptor::Source::determineHostExcludeString(), CommissioningHistosUsingDb::deviceIsPresent(), Phase2TrackerDigitizerAlgorithm::digitize(), MuonTagger::discriminator(), ElectronTagger::discriminator(), LeptonTaggerByPt::discriminator(), LeptonTaggerDistance::discriminator(), LeptonTaggerByIP::discriminator(), MuonTaggerNoIP::discriminator(), TemplatedSimpleSecondaryVertexComputer< IPTI, VTX >::discriminator(), DQMNet::dqmhash(), PFEGammaAlgo::dumpCurrentRefinableObjects(), SimAnalyzerMinbias::endJob(), RecAnalyzerHF::endJob(), AnalyzerMinbias::endJob(), RecAnalyzerMinbias::endJob(), edm::storage::StatisticsSenderService::filePreCloseEvent(), edmplugin::PluginFactoryBase::fillAvailable(), FWCandidateTowerProxyBuilder::fillCaloData(), FWPFCandidateTowerProxyBuilder::fillCaloData(), FWCaloTowerProxyBuilderBase::fillCaloData(), FWHFTowerProxyBuilderBase::fillCaloData(), FWHGTowerProxyBuilderBase::fillCaloData(), l1t::PackingSetupFactory::fillDescription(), HFPreReconstructor::fillInfos(), CmsShowModelPopup::fillModelPopup(), MuonIdProducer::fillMuonId(), FWDetailViewManager::findViewersFor(), reco::FormulaEvaluator::FormulaEvaluator(), FWCollectionSummaryWidget::FWCollectionSummaryWidget(), JetTagComputer::TagInfoHelper::get(), edm::service::CPU::getAverageSpeed(), JetTagComputer::TagInfoHelper::getBase(), TrackDetectorAssociator::getCachedTrajector(), TStorageFactorySystem::GetDirPt(), HTrackAssociator::getEcalEnergy(), FWGeometry::getEveShape(), HTrackAssociator::getHcalEnergy(), HitInfo::getInfo(), TFitConstraintMGaus::getInfoString(), TAbsFitConstraint::getInfoString(), TAbsFitParticle::getInfoString(), TFitConstraintM::getInfoString(), TFitConstraintEp::getInfoString(), FWGeometry::getMatrix(), edm::service::CPU::getModels(), TimingSD::getStepInfo(), GlobalTrackerMuonAlignment::gradientGlobal(), GlobalTrackerMuonAlignment::gradientLocal(), FWPathsPopup::hasChanges(), pat::Jet::hasTagInfo(), HFShowerLibrary::HFShowerLibrary(), popcon::EcalSRPHandler::importDccConfigFile(), edm::EDConsumerBase::indexFrom(), JetTagComputer::initialize(), Herwig6Hadronizer::initialize(), reco::ElectronSeed::initTwoHitSeed(), edm::RootOutputFile::insertAncestors(), SimpleHBHEPhase1Algo::isConfigurable(), FWInteractionList::itemChanged(), o2olib.O2OJobMgr::listConfig(), SiPixelDigitizerAlgorithm::make_digis(), BoostedJetMXNetJetTagsProducer::make_inputs(), spr::matchedSimTrackInfo(), o2olib.O2OJobMgr::migrateConfig(), FWInteractionList::modelChanges(), FWDigitSetProxyBuilder::modelChanges(), GlobalTrackerMuonAlignment::muonFitter(), FWEveViewManager::newItem(), edmplugin::PluginFactoryBase::newPlugin(), lhef::LHEReader::next(), fireworks::StateOrdering::operator()(), reco::operator<<(), edm::service::CPU::parseCPUInfo(), PFClusterTimeSelector::PFClusterTimeSelector(), edm::service::CPU::postEndJob(), edm::service::Tracer::preBeginJob(), File::prefetch(), StandaloneTrackMonitor::processClusters(), DDLMap::processElement(), StandaloneTrackMonitor::processHit(), PFClusterTimeSelector::produce(), ShallowClustersProducer::produce(), LHECOMWeightProducer::produce(), edm::MCFileSource::produce(), HcalRawToDigi::produce(), CaloCleaner< T >::produce(), InterestingTrackEcalDetIdProducer::produce(), TGeoMgrFromDdd::produce(), HighPtTrackEcalDetIdProducer::produce(), ReduceHcalRecHitCollectionProducer::produce(), ProduceIsolationMap::produce(), DeepFlavourJetTagsProducer::produce(), spr::propagateCALO(), spr::propagateCosmicCALO(), spr::propagateHCALBack(), spr::propagateIdECAL(), LowPtGsfElectronSeedProducer::propagateTrackToCalo(), cms::Exception::raise(), edmplugin::CacheParser::read(), edm::VectorInputSource::readOneSpecified(), edm::FullProvenanceReader::readProvenance(), edm::OldProvenanceReader::readProvenance(), Herwig6Hadronizer::readSettings(), KDTreeLinkerAlgo< DATA, DIM >::recBuild(), reco::tau::RecoTauBuilderCombinatoricPlugin::RecoTauBuilderCombinatoricPlugin(), edm::ESProxyFactoryProducer::registerFactoryWithKey(), FWTypeToRepresentations::representationsForType(), DQMFileSaver::saveJobReport(), dqm::DQMFileSaverBase::saveJobReport(), o2olib.O2OJobMgr::set(), cms::Exception::setAdditionalInfo(), FWCollectionSummaryWidget::setBackgroundToWhite(), HcalSimpleRecAlgo::setBXInfo(), o2olib.O2OJobMgr::setConfig(), o2olib.O2OJobMgr::setInterval(), FWPathsPopup::setup(), HFPreReconstructor::sortDataByPmt(), SpikeAndDoubleSpikeCleaner::SpikeAndDoubleSpikeCleaner(), FWFFLooper::startingNewLoop(), FWEveViewManager::supportedTypesAndRepresentations(), SoftLepton::tag(), CmsShowModelPopup::toggleModelVisible(), GlobalTrackerMuonAlignment::trackFitter(), edmplugin::PluginCapabilities::tryToFind(), TkAccumulatingSensitiveDetector::update(), CmsShowModelPopup::updateDisplay(), DQMBasicNet::updateLocalObject(), edm::EDConsumerBase::updateLookup(), reco::GhostTrackVertexFinder::vertices(), FWTrackProxyBuilderFullFramework::visibilityModelChanges(), FWSimpleProxyBuilder::visibilityModelChanges(), DQMNet::waitForData(), WeightManager::weight(), ProvenanceDumper::work_(), and MuonMETAlgo::~MuonMETAlgo().

171 {
172  if(iBackgroundIsBlack) {
173  static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"info2-blackbg.png");
174  return s;
175  }
176  static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"info2-whitebg.png");
177  return s;
178 }
static const TString & coreIcondir()
static const TGPicture* info_disabled ( bool  iBackgroundIsBlack)
static

Definition at line 192 of file FWCollectionSummaryWidget.cc.

References FWCheckBoxIcon::coreIcondir(), and alignCSCRings::s.

Referenced by FWCollectionSummaryWidget::FWCollectionSummaryWidget(), and FWCollectionSummaryWidget::setBackgroundToWhite().

193 {
194  if(iBackgroundIsBlack) {
195  static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"info2-blackbg-disabled.png");
196  return s;
197  }
198  static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"info2-whitebg-disabled.png");
199  return s;
200 }
static const TString & coreIcondir()
static const TGPicture* info_over ( bool  iBackgroundIsBlack)
static

Definition at line 181 of file FWCollectionSummaryWidget.cc.

References FWCheckBoxIcon::coreIcondir(), and alignCSCRings::s.

Referenced by FWCollectionSummaryWidget::FWCollectionSummaryWidget(), and FWCollectionSummaryWidget::setBackgroundToWhite().

182 {
183  if(iBackgroundIsBlack) {
184  static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"info2-blackbg-over.png");
185  return s;
186  }
187  static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"info2-whitebg-over.png");
188  return s;
189 }
static const TString & coreIcondir()
static TGGC* selectContext ( )
static

Definition at line 457 of file FWCollectionSummaryWidget.cc.

Referenced by FWCollectionSummaryWidget::setBackgroundToWhite(), and FWCollectionSummaryWidget::toggleShowHide().

458 {
459  static TGGC* s_context = nullptr;
460  if(nullptr==s_context) {
461  GCValues_t hT = *(gClient->GetResourcePool()->GetSelectedGC()->GetAttributes());
462  s_context = gClient->GetResourcePool()->GetGCPool()->GetGC(&hT,kTRUE);
463  s_context->SetForeground(s_context->GetBackground());
464  //s_context->SetForeground(gVirtualX->GetPixel(kBlue+2));
465  }
466  return s_context;
467 }
static void setLabelBackgroundColor ( TGTextButton *  iLabel,
bool  iIsSelected,
bool  iBackgroundIsWhite 
)
static

Definition at line 377 of file FWCollectionSummaryWidget.cc.

Referenced by FWCollectionSummaryWidget::displayChanged(), and FWCollectionSummaryWidget::setBackgroundToWhite().

378 {
379  if(iIsSelected) {
380  if(iBackgroundIsWhite) {
381  iLabel->SetBackgroundColor(0x7777FF);
382  } else {
383  iLabel->SetBackgroundColor(0x0000FF);
384  }
385  } else {
386  if(iBackgroundIsWhite) {
387  iLabel->SetBackgroundColor(0xFFFFFF);
388  } else {
389  iLabel->SetBackgroundColor(0x000000);
390  }
391  }
392 }
static const TGPicture* unfiltered ( bool  iBackgroundIsBlack)
static

Definition at line 149 of file FWCollectionSummaryWidget.cc.

References FWCheckBoxIcon::coreIcondir(), and alignCSCRings::s.

Referenced by FWCollectionSummaryWidget::FWCollectionSummaryWidget(), and FWCollectionSummaryWidget::itemChanged().

150 {
151  if(iBackgroundIsBlack) {
152  static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"unfiltered-blackbg.png");
153  return s;
154  }
155  static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"unfiltered-whitebg.png");
156  return s;
157 }
static const TString & coreIcondir()
static const TGPicture* unfiltered_over ( bool  iBackgroundIsBlack)
static

Definition at line 159 of file FWCollectionSummaryWidget.cc.

References FWCheckBoxIcon::coreIcondir(), and alignCSCRings::s.

Referenced by FWCollectionSummaryWidget::FWCollectionSummaryWidget(), and FWCollectionSummaryWidget::itemChanged().

160 {
161  if(iBackgroundIsBlack) {
162  static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"unfiltered-blackbg-over.png");
163  return s;
164  }
165  static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"unfiltered-whitebg-over.png");
166  return s;
167 }
static const TString & coreIcondir()

Variable Documentation

const unsigned long kWidgetColor = 0x2f2f2f
static
const unsigned long kWidgetColorLight = 0xdfdfdf
static