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 <cassert>
#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 174 of file FWTableView.cc.

References coreIcondir(), and alignCSCRings::s.

Referenced by FWTableView::toggleShowHide().

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

Definition at line 185 of file FWTableView.cc.

References coreIcondir(), and alignCSCRings::s.

Referenced by FWTableView::toggleShowHide().

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

Definition at line 152 of file FWTableView.cc.

References coreIcondir(), and alignCSCRings::s.

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

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

Definition at line 163 of file FWTableView.cc.

References coreIcondir(), and alignCSCRings::s.

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

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

Definition at line 46 of file FWTableView.cc.

References getHLTPrescaleColumns::path.

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

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

Variable Documentation

const std::string kCollection = "collection"
static

Definition at line 199 of file FWTableView.cc.

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

const std::string kColumns = "columns"
static

Definition at line 200 of file FWTableView.cc.

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

Definition at line 201 of file FWTableView.cc.

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

const std::string kTableView = "TableView"
static

Definition at line 198 of file FWTableView.cc.

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