CMS 3D CMS Logo

Functions | Variables
FWTableView.cc File Reference
#include <cstdlib>
#include <algorithm>
#include <memory>
#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 "TVirtualX.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

◆ arrow_down()

static const TGPicture* arrow_down ( bool  iBackgroundIsBlack)
static

Definition at line 168 of file FWTableView.cc.

168  {
169  if (iBackgroundIsBlack) {
170  static const TGPicture *s = gClient->GetPicture(coreIcondir() + "arrow-white-down-blackbg.png");
171  return s;
172  }
173  static const TGPicture *s = gClient->GetPicture(coreIcondir() + "arrow-black-down-whitebg.png");
174  return s;
175 }

References coreIcondir(), and alignCSCRings::s.

Referenced by FWTableView::toggleShowHide().

◆ arrow_down_disabled()

static const TGPicture* arrow_down_disabled ( bool  iBackgroundIsBlack)
static

Definition at line 177 of file FWTableView.cc.

177  {
178  if (iBackgroundIsBlack) {
179  static const TGPicture *s = gClient->GetPicture(coreIcondir() + "arrow-white-down-disabled-blackbg.png");
180  return s;
181  }
182  static const TGPicture *s = gClient->GetPicture(coreIcondir() + "arrow-black-down-disabled-whitebg.png");
183  return s;
184 }

References coreIcondir(), and alignCSCRings::s.

Referenced by FWTableView::toggleShowHide().

◆ arrow_right()

static const TGPicture* arrow_right ( bool  iBackgroundIsBlack)
static

Definition at line 150 of file FWTableView.cc.

150  {
151  if (iBackgroundIsBlack) {
152  static const TGPicture *s = gClient->GetPicture(coreIcondir() + "arrow-white-right-blackbg.png");
153  return s;
154  }
155  static const TGPicture *s = gClient->GetPicture(coreIcondir() + "arrow-black-right-whitebg.png");
156  return s;
157 }

References coreIcondir(), and alignCSCRings::s.

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

◆ arrow_right_disabled()

static const TGPicture* arrow_right_disabled ( bool  iBackgroundIsBlack)
static

Definition at line 159 of file FWTableView.cc.

159  {
160  if (iBackgroundIsBlack) {
161  static const TGPicture *s = gClient->GetPicture(coreIcondir() + "arrow-white-right-disabled-blackbg.png");
162  return s;
163  }
164  static const TGPicture *s = gClient->GetPicture(coreIcondir() + "arrow-black-right-disabled-whitebg.png");
165  return s;
166 }

References coreIcondir(), and alignCSCRings::s.

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

◆ coreIcondir()

static const TString& coreIcondir ( )
static

Definition at line 46 of file FWTableView.cc.

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 }

References cms::cuda::assert(), and castor_dqm_sourceclient_file_cfg::path.

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

Variable Documentation

◆ kCollection

const std::string kCollection = "collection"
static

Definition at line 190 of file FWTableView.cc.

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

◆ kColumns

const std::string kColumns = "columns"
static

Definition at line 191 of file FWTableView.cc.

◆ kDescendingSort

const std::string kDescendingSort = "descendingSort"
static

◆ kSortColumn

const std::string kSortColumn = "sortColumn"
static

Definition at line 192 of file FWTableView.cc.

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

◆ kTableView

const std::string kTableView = "TableView"
static

Definition at line 189 of file FWTableView.cc.

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

cms::cuda::assert
assert(be >=bs)
alignCSCRings.s
s
Definition: alignCSCRings.py:92
coreIcondir
static const TString & coreIcondir()
Definition: FWTableView.cc:46
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37