CMS 3D CMS Logo

Classes | Functions | Variables

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/Fireworks/Core/src/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 138 of file FWCollectionSummaryWidget.cc.

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

Referenced by FWCollectionSummaryWidget::itemChanged().

{
 
   if(iBackgroundIsBlack) {
      static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"icon-alert-blackbg.png");
      return s;
   }
   static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"icon-alert-whitebg.png");
   return s;
}
static const TGPicture* alert_over ( bool  iBackgroundIsBlack) [static]

Definition at line 127 of file FWCollectionSummaryWidget.cc.

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

Referenced by FWCollectionSummaryWidget::itemChanged().

{
   if(iBackgroundIsBlack) {
      static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"icon-alert-blackbg-over.png");
      return s;
   }
   static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"icon-alert-whitebg-over.png");
   return s;
}
static const TGPicture* arrow_down ( bool  iBackgroundIsBlack) [static]

Definition at line 226 of file FWCollectionSummaryWidget.cc.

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

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

{
   if(iBackgroundIsBlack) {
      static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"arrow-white-down-blackbg.png");
      return s;
   }
   static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"arrow-black-down-whitebg.png");
   return s;
}
static const TGPicture* arrow_down_disabled ( bool  iBackgroundIsBlack) [static]

Definition at line 237 of file FWCollectionSummaryWidget.cc.

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

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

{
   if(iBackgroundIsBlack) {
      static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"arrow-white-down-disabled-blackbg.png");
      return s;
   }
   static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"arrow-black-down-disabled-whitebg.png");
   return s;
}
static const TGPicture* arrow_right ( bool  iBackgroundIsBlack) [static]

Definition at line 204 of file FWCollectionSummaryWidget.cc.

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

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

{
   if(iBackgroundIsBlack) {
      static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"arrow-white-right-blackbg.png");
      return s;
   }
   static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"arrow-black-right-whitebg.png");
   return s;
}
static const TGPicture* arrow_right_disabled ( bool  iBackgroundIsBlack) [static]

Definition at line 215 of file FWCollectionSummaryWidget.cc.

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

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

{
   if(iBackgroundIsBlack) {
      static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"arrow-white-right-disabled-blackbg.png");
      return s;
   }
   static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"arrow-black-right-disabled-whitebg.png");
   return s;
}
static const TGPicture* filtered ( bool  iBackgroundIsBlack) [static]

Definition at line 104 of file FWCollectionSummaryWidget.cc.

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

Referenced by ObjectSelector< SingleElementCollectionSelector< InputCollection, Selector, reco::CandidateCollection, StoreContainer, RefAdder >, reco::CandidateCollection, NonNullNumberSelector >::filter(), FWCollectionSummaryWidget::itemChanged(), and ConfigurableTrimmedVertexFinder::vertices().

{
   if(iBackgroundIsBlack) {
      static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"filtered-blackbg.png");
      return s;
   }
   static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"filtered-whitebg.png");
   return s;
   
}
static const TGPicture* filtered_over ( bool  iBackgroundIsBlack) [static]

Definition at line 116 of file FWCollectionSummaryWidget.cc.

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

Referenced by FWCollectionSummaryWidget::itemChanged().

{
   if(iBackgroundIsBlack) {
      static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"filtered-whitebg-over.png");
      return s;
   }
   static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"filtered-whitebg-over.png");
   return s;
}
static const TGPicture* info ( bool  iBackgroundIsBlack) [static]

Definition at line 171 of file FWCollectionSummaryWidget.cc.

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

{
   if(iBackgroundIsBlack) {
      static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"info2-blackbg.png");
      return s;
   }
   static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"info2-whitebg.png");
   return s;   
}
static const TGPicture* info_disabled ( bool  iBackgroundIsBlack) [static]

Definition at line 193 of file FWCollectionSummaryWidget.cc.

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

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

{
   if(iBackgroundIsBlack) {
      static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"info2-blackbg-disabled.png");
      return s;
   }
   static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"info2-whitebg-disabled.png");
   return s;
}
static const TGPicture* info_over ( bool  iBackgroundIsBlack) [static]

Definition at line 182 of file FWCollectionSummaryWidget.cc.

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

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

{
   if(iBackgroundIsBlack) {
      static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"info2-blackbg-over.png");
      return s;
   }
   static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"info2-whitebg-over.png");
   return s;
}
static TGGC* selectContext ( ) [static]

Definition at line 458 of file FWCollectionSummaryWidget.cc.

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

{
   static TGGC* s_context = 0;
   if(0==s_context) {
      GCValues_t hT = *(gClient->GetResourcePool()->GetSelectedGC()->GetAttributes());
      s_context = gClient->GetResourcePool()->GetGCPool()->GetGC(&hT,kTRUE);
      s_context->SetForeground(s_context->GetBackground());
      //s_context->SetForeground(gVirtualX->GetPixel(kBlue+2));
   }
   return s_context;
}
static void setLabelBackgroundColor ( TGTextButton *  iLabel,
bool  iIsSelected,
bool  iBackgroundIsWhite 
) [static]

Definition at line 378 of file FWCollectionSummaryWidget.cc.

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

{
   if(iIsSelected) {
      if(iBackgroundIsWhite) {
         iLabel->SetBackgroundColor(0x7777FF);
      } else {
         iLabel->SetBackgroundColor(0x0000FF);
      }
   } else {
      if(iBackgroundIsWhite) {
         iLabel->SetBackgroundColor(0xFFFFFF);
      } else {
         iLabel->SetBackgroundColor(0x000000);
      }
   }
}
static const TGPicture* unfiltered ( bool  iBackgroundIsBlack) [static]

Definition at line 150 of file FWCollectionSummaryWidget.cc.

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

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

{
   if(iBackgroundIsBlack) {
      static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"unfiltered-blackbg.png");
      return s;
   }
   static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"unfiltered-whitebg.png");
   return s;
}
static const TGPicture* unfiltered_over ( bool  iBackgroundIsBlack) [static]

Definition at line 160 of file FWCollectionSummaryWidget.cc.

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

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

{
   if(iBackgroundIsBlack) {
      static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"unfiltered-blackbg-over.png");
      return s;
   }
   static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"unfiltered-whitebg-over.png");
   return s;   
}

Variable Documentation

const unsigned long kWidgetColor = 0x2f2f2f [static]

Definition at line 248 of file FWCollectionSummaryWidget.cc.

const unsigned long kWidgetColorLight = 0xdfdfdf [static]

Definition at line 249 of file FWCollectionSummaryWidget.cc.