CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

static const TGPicture* arrow_down ( bool  iBackgroundIsBlack)
static

Definition at line 168 of file FWTableView.cc.

References coreIcondir(), and alignCSCRings::s.

Referenced by FWTableView::toggleShowHide().

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 }
static const TString & coreIcondir()
Definition: FWTableView.cc:46
static const TGPicture* arrow_down_disabled ( bool  iBackgroundIsBlack)
static

Definition at line 177 of file FWTableView.cc.

References coreIcondir(), and alignCSCRings::s.

Referenced by FWTableView::toggleShowHide().

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 }
static const TString & coreIcondir()
Definition: FWTableView.cc:46
static const TGPicture* arrow_right ( bool  iBackgroundIsBlack)
static

Definition at line 150 of file FWTableView.cc.

References coreIcondir(), and alignCSCRings::s.

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

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 }
static const TString & coreIcondir()
Definition: FWTableView.cc:46
static const TGPicture* arrow_right_disabled ( bool  iBackgroundIsBlack)
static

Definition at line 159 of file FWTableView.cc.

References coreIcondir(), and alignCSCRings::s.

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

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 }
static const TString & coreIcondir()
Definition: FWTableView.cc:46
static const TString& coreIcondir ( )
static

Definition at line 46 of file FWTableView.cc.

References cms::cuda::assert(), and fed_dqm_sourceclient-live_cfg::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 }
assert(be >=bs)

Variable Documentation

const std::string kCollection = "collection"
static

Definition at line 190 of file FWTableView.cc.

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

const std::string kColumns = "columns"
static

Definition at line 191 of file FWTableView.cc.

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

Definition at line 192 of file FWTableView.cc.

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

const std::string kTableView = "TableView"
static

Definition at line 189 of file FWTableView.cc.

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