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 138 of file FWCollectionSummaryWidget.cc.

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

Referenced by FWCollectionSummaryWidget::itemChanged().

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

Definition at line 127 of file FWCollectionSummaryWidget.cc.

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

Referenced by FWCollectionSummaryWidget::itemChanged().

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

Definition at line 226 of file FWCollectionSummaryWidget.cc.

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

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

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

Definition at line 237 of file FWCollectionSummaryWidget.cc.

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

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

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

Definition at line 204 of file FWCollectionSummaryWidget.cc.

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

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

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

Definition at line 215 of file FWCollectionSummaryWidget.cc.

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

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

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

Definition at line 104 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(), and ConfigurableTrimmedVertexFinder::vertices().

105 {
106  if(iBackgroundIsBlack) {
107  static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"filtered-blackbg.png");
108  return s;
109  }
110  static const TGPicture* s = gClient->GetPicture(FWCheckBoxIcon::coreIcondir()+"filtered-whitebg.png");
111  return s;
112 
113 }
static const TString & coreIcondir()
static const TGPicture* filtered_over ( bool  iBackgroundIsBlack)
static

Definition at line 116 of file FWCollectionSummaryWidget.cc.

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

Referenced by FWCollectionSummaryWidget::itemChanged().

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

Definition at line 171 of file FWCollectionSummaryWidget.cc.

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

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

Definition at line 193 of file FWCollectionSummaryWidget.cc.

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

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

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

Definition at line 182 of file FWCollectionSummaryWidget.cc.

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

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

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

Definition at line 458 of file FWCollectionSummaryWidget.cc.

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

459 {
460  static TGGC* s_context = 0;
461  if(0==s_context) {
462  GCValues_t hT = *(gClient->GetResourcePool()->GetSelectedGC()->GetAttributes());
463  s_context = gClient->GetResourcePool()->GetGCPool()->GetGC(&hT,kTRUE);
464  s_context->SetForeground(s_context->GetBackground());
465  //s_context->SetForeground(gVirtualX->GetPixel(kBlue+2));
466  }
467  return s_context;
468 }
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().

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

Definition at line 150 of file FWCollectionSummaryWidget.cc.

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

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

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

Definition at line 160 of file FWCollectionSummaryWidget.cc.

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

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

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

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.