CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
FWTableView.cc File Reference
#include <stdlib.h>
#include <algorithm>
#include <boost/shared_ptr.hpp>
#include <iostream>
#include <sstream>
#include <stdexcept>
#include "TMath.h"
#include "TClass.h"
#include "TSystem.h"
#include "TGComboBox.h"
#include "TGLabel.h"
#include "TGTextEntry.h"
#include "TEveWindow.h"
#include "Fireworks/Core/interface/FWColorManager.h"
#include "Fireworks/Core/interface/FWCustomIconsButton.h"
#include "Fireworks/Core/interface/FWModelChangeManager.h"
#include "Fireworks/Core/interface/FWSelectionManager.h"
#include "Fireworks/Core/interface/FWTableView.h"
#include "Fireworks/Core/interface/FWTableViewManager.h"
#include "Fireworks/Core/interface/FWEventItem.h"
#include "Fireworks/Core/interface/FWConfiguration.h"
#include "Fireworks/Core/interface/FWTableViewTableManager.h"
#include "Fireworks/Core/interface/fwLog.h"
#include "Fireworks/Core/src/FWGUIValidatingTextEntry.h"
#include "Fireworks/Core/src/FWExpressionValidator.h"
#include "Fireworks/TableWidget/interface/FWTableWidget.h"

Go to the source code of this file.

Functions

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 TString & coreIcondir ()
 

Variables

static const std::string kCollection = "collection"
 
static const std::string kColumns = "columns"
 
static const std::string kDescendingSort = "descendingSort"
 
static const std::string kSortColumn = "sortColumn"
 
static const std::string kTableView = "TableView"
 

Function Documentation

static const TGPicture* arrow_down ( bool  iBackgroundIsBlack)
static

Definition at line 173 of file FWTableView.cc.

References coreIcondir(), and alignCSCRings::s.

Referenced by FWTableView::toggleShowHide().

174 {
175  if(iBackgroundIsBlack) {
176  static const TGPicture* s = gClient->GetPicture(coreIcondir()+"arrow-white-down-blackbg.png");
177  return s;
178  }
179  static const TGPicture* s = gClient->GetPicture(coreIcondir()+"arrow-black-down-whitebg.png");
180  return s;
181 }
static const TString & coreIcondir()
Definition: FWTableView.cc:45
static const TGPicture* arrow_down_disabled ( bool  iBackgroundIsBlack)
static

Definition at line 184 of file FWTableView.cc.

References coreIcondir(), and alignCSCRings::s.

Referenced by FWTableView::toggleShowHide().

185 {
186  if(iBackgroundIsBlack) {
187  static const TGPicture* s = gClient->GetPicture(coreIcondir()+"arrow-white-down-disabled-blackbg.png");
188  return s;
189  }
190  static const TGPicture* s = gClient->GetPicture(coreIcondir()+"arrow-black-down-disabled-whitebg.png");
191  return s;
192 }
static const TString & coreIcondir()
Definition: FWTableView.cc:45
static const TGPicture* arrow_right ( bool  iBackgroundIsBlack)
static

Definition at line 151 of file FWTableView.cc.

References coreIcondir(), and alignCSCRings::s.

Referenced by FWTableView::FWTableView(), and FWTableView::toggleShowHide().

152 {
153  if(iBackgroundIsBlack) {
154  static const TGPicture* s = gClient->GetPicture(coreIcondir()+"arrow-white-right-blackbg.png");
155  return s;
156  }
157  static const TGPicture* s = gClient->GetPicture(coreIcondir()+"arrow-black-right-whitebg.png");
158  return s;
159 }
static const TString & coreIcondir()
Definition: FWTableView.cc:45
static const TGPicture* arrow_right_disabled ( bool  iBackgroundIsBlack)
static

Definition at line 162 of file FWTableView.cc.

References coreIcondir(), and alignCSCRings::s.

Referenced by FWTableView::FWTableView(), and FWTableView::toggleShowHide().

163 {
164  if(iBackgroundIsBlack) {
165  static const TGPicture* s = gClient->GetPicture(coreIcondir()+"arrow-white-right-disabled-blackbg.png");
166  return s;
167  }
168  static const TGPicture* s = gClient->GetPicture(coreIcondir()+"arrow-black-right-disabled-whitebg.png");
169  return s;
170 }
static const TString & coreIcondir()
Definition: FWTableView.cc:45
static const TString& coreIcondir ( )
static

Definition at line 45 of file FWTableView.cc.

References scaleCards::path.

Referenced by arrow_down(), arrow_down_disabled(), arrow_right(), and arrow_right_disabled().

46 {
47  static TString path = Form("%s/src/Fireworks/Core/icons/",gSystem->Getenv("CMSSW_BASE"));
48  if ( gSystem->AccessPathName(path.Data()) ){ // cannot find directory
49  assert(gSystem->Getenv("CMSSW_RELEASE_BASE"));
50  path = Form("%s/src/Fireworks/Core/icons/",gSystem->Getenv("CMSSW_RELEASE_BASE"));
51  }
52  return path;
53 }
list path
Definition: scaleCards.py:51

Variable Documentation

const std::string kCollection = "collection"
static

Definition at line 198 of file FWTableView.cc.

Referenced by FWTableView::addTo(), and FWTableView::setFrom().

const std::string kColumns = "columns"
static

Definition at line 199 of file FWTableView.cc.

const std::string kDescendingSort = "descendingSort"
static
const std::string kSortColumn = "sortColumn"
static

Definition at line 200 of file FWTableView.cc.

Referenced by FWTableView::addTo(), and FWTableView::setFrom().

const std::string kTableView = "TableView"
static

Definition at line 197 of file FWTableView.cc.

Referenced by FWTableView::addTo(), and FWTableView::setFrom().