CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

Definition at line 103 of file FWCollectionSummaryWidget.cc.

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

Referenced by ObjectSelector< SingleElementCollectionSelector< InputCollection, Selector, reco::CandidateCollection, StoreContainer, RefAdder >, reco::CandidateCollection, NonNullNumberSelector >::filter(), FWCollectionSummaryWidget::itemChanged(), ObjectSelectorProducer< Selector, OutputCollection, PostProcessor, StoreManager, Base, Init >::produce(), and ConfigurableTrimmedVertexFinder::vertices().

104 {
105  if(iBackgroundIsBlack) {
106  static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"filtered-blackbg.png");
107  return s;
108  }
109  static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"filtered-whitebg.png");
110  return s;
111 
112 }
static const TString & coreIcondir()
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(), edm::RootTree::addBranch(), BetaCalculatorECAL::addInfoToCandidate(), SimAnalyzerMinbias::analyze(), HcalCorrPFCalculation::analyze(), HcalHBHEMuonAnalyzer::analyze(), ValidIsoTrkCalib::analyze(), EopTreeWriter::analyze(), EcalCosmicsHists::analyze(), RecAnalyzerMinbias::analyzeHcal(), AnalyzerMinbias::analyzeHcal(), GlobalTrackerMuonAlignment::analyzeTrackTrack(), GlobalTrackerMuonAlignment::analyzeTrackTrajectory(), TrackDetectorAssociator::associate(), HTrackAssociator::associate(), HTrackAssociator::associateEcal(), HTrackAssociator::associateHcal(), edmplugin::PluginCapabilities::available(), FWSiStripClusterProxyBuilder::build(), FWPFEcalRecHitRPProxyBuilder::build(), FWPFEcalClusterRPZProxyBuilder::build(), FWPFHcalClusterRPZProxyBuilder::build(), CommissioningHistosUsingDb::buildDetInfo(), CmsShowModelPopup::changeModelColor(), CmsShowModelPopup::changeModelOpacity(), spr::chargeIsolationEcal(), spr::chargeIsolationHcal(), CmsShowModelPopup::colorSetChanged(), TkAccumulatingSensitiveDetector::createHit(), MuonSensitiveDetector::createHit(), TGeoFromDddService::createManager(), cms::MuonMETValueMapProducer::determine_deltax_deltay(), XrdAdaptor::Source::determineHostExcludeString(), CommissioningHistosUsingDb::deviceIsPresent(), MuonTagger::discriminator(), ElectronTagger::discriminator(), LeptonTaggerDistance::discriminator(), LeptonTaggerByPt::discriminator(), LeptonTaggerByIP::discriminator(), MuonTaggerNoIP::discriminator(), TemplatedSimpleSecondaryVertexComputer< IPTI, VTX >::discriminator(), PFEGammaAlgo::dumpCurrentRefinableObjects(), SimAnalyzerMinbias::endJob(), RecAnalyzerMinbias::endJob(), AnalyzerMinbias::endJob(), o2o.O2ORunMgr::endJob(), o2o.O2ORunMgr::executeJob(), edm::storage::StatisticsSenderService::filePreCloseEvent(), edmplugin::PluginFactoryBase::fillAvailable(), FWCandidateTowerProxyBuilder::fillCaloData(), FWPFCandidateTowerProxyBuilder::fillCaloData(), FWCaloTowerProxyBuilderBase::fillCaloData(), FWHFTowerProxyBuilderBase::fillCaloData(), l1t::PackingSetupFactory::fillDescription(), CmsShowModelPopup::fillModelPopup(), MuonIdProducer::fillMuonId(), FWDetailViewManager::findViewersFor(), for(), FWCollectionSummaryWidget::FWCollectionSummaryWidget(), JetTagComputer::TagInfoHelper::get(), JetTagComputer::TagInfoHelper::getBase(), HTrackAssociator::getEcalEnergy(), FWGeometry::getEveShape(), HTrackAssociator::getHcalEnergy(), HitInfo::getInfo(), TFitConstraintMGaus::getInfoString(), TAbsFitConstraint::getInfoString(), TAbsFitParticle::getInfoString(), TFitConstraintM::getInfoString(), TFitConstraintEp::getInfoString(), FWGeometry::getMatrix(), Bcm1fSD::getOrCreateTrackInformation(), PltSD::getOrCreateTrackInformation(), MuonSensitiveDetector::getOrCreateTrackInformation(), TkAccumulatingSensitiveDetector::getOrCreateTrackInformation(), SelectReplacementCandidates::getRawIDsAdvanced(), GlobalTrackerMuonAlignment::gradientGlobal(), GlobalTrackerMuonAlignment::gradientLocal(), HFShowerLibrary::HFShowerLibrary(), popcon::EcalSRPHandler::importDccConfigFile(), AlignableBuilder::index(), edm::EDConsumerBase::indexFrom(), Herwig6Hadronizer::initialize(), edm::RootOutputFile::insertAncestors(), FWInteractionList::itemChanged(), spr::matchedSimTrackInfo(), FWInteractionList::modelChanges(), FWDigitSetProxyBuilder::modelChanges(), edm::EDConsumerBase::modulesDependentUpon(), GlobalTrackerMuonAlignment::muonFitter(), FWEveViewManager::newItem(), edmplugin::PluginFactoryBase::newPlugin(), lhef::LHEReader::next(), PFClusterTimeSelector::PFClusterTimeSelector(), edm::service::Tracer::preBeginJob(), File::prefetch(), StandaloneTrackMonitor::processClusters(), DDLMap::processElement(), StandaloneTrackMonitor::processHit(), PltSD::ProcessHits(), Bcm1fSD::ProcessHits(), PFClusterTimeSelector::produce(), ShallowClustersProducer::produce(), LHECOMWeightProducer::produce(), MCParticleReplacer::produce(), InterestingTrackEcalDetIdProducer::produce(), TGeoMgrFromDdd::produce(), HighPtTrackEcalDetIdProducer::produce(), ReduceHcalRecHitCollectionProducer::produce(), DeepFlavourJetTagsProducer::produce(), ProduceIsolationMap::produce(), spr::propagateCALO(), spr::propagateCosmicCALO(), spr::propagateHCALBack(), edmplugin::CacheParser::read(), edm::VectorInputSource::readOneSpecified(), edm::FullProvenanceReader::readProvenance(), edm::OldProvenanceReader::readProvenance(), Herwig6Hadronizer::readSettings(), KDTreeLinkerAlgo< DATA >::recBuild(), reco::tau::RecoTauBuilderCombinatoricPlugin::RecoTauBuilderCombinatoricPlugin(), edm::ESProxyFactoryProducer::registerFactoryWithKey(), FWTypeToRepresentations::representationsForType(), DQMFileSaver::saveJobReport(), dqm::DQMFileSaverBase::saveJobReport(), cms::Exception::setAdditionalInfo(), FWCollectionSummaryWidget::setBackgroundToWhite(), HcalSimpleRecAlgo::setBXInfo(), FWPathsPopup::setup(), FWFFLooper::startingNewLoop(), o2o.O2ORunMgr::startJob(), 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(), and ProvenanceDumper::work_().

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 = 0;
460  if(0==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

Definition at line 247 of file FWCollectionSummaryWidget.cc.

const unsigned long kWidgetColorLight = 0xdfdfdf
static

Definition at line 248 of file FWCollectionSummaryWidget.cc.