CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends
FWPSetTableManager Class Reference

#include <Fireworks/FWInterface/interface/FWPSetTableManager.h>

Inheritance diagram for FWPSetTableManager:
FWTableManagerBase

Classes

struct  ModuleInfo
 
struct  PathInfo
 
struct  PathUpdate
 
struct  PSetData
 

Public Member Functions

virtual bool cellDataIsSortable () const
 
virtual FWTableCellRendererBasecellRenderer (int iSortedRowNumber, int iCol) const
 
std::vector< PSetData > & data ()
 
 FWPSetTableManager ()
 
virtual std::vector< std::string > getTitles () const
 returns the title names for each column More...
 
virtual void implSort (int, bool)
 Called by 'sort' method to actually handle the sorting of the rows. Arguments are the same as 'sort'. More...
 
virtual std::vector< unsigned int > maxWidthForColumns () const
 for each column in the table this returns the present maximum width for that column More...
 
virtual int numberOfColumns () const
 Number of columns in the table. More...
 
virtual int numberOfRows () const
 Number of rows in the table. More...
 
virtual bool rowIsSelected (int row) const
 
std::vector< int > & rowToIndex ()
 
int selectedColumn () const
 
int selectedRow () const
 
virtual const std::string title () const
 
virtual int unsortedRowNumber (int unsorted) const
 when passed the index to the sorted order of the rows it returns the original row number from the underlying data More...
 
virtual void updateFilter (const char *filter)
 
virtual ~FWPSetTableManager ()
 
- Public Member Functions inherited from FWTableManagerBase
virtual void buttonPressedInRowHeader (Int_t row, Event_t *event, Int_t relX, Int_t relY)
 Called if mouse button pressed in Row Header, defaults is to do nothing. More...
 
virtual void buttonReleasedInRowHeader (Int_t row, Event_t *event, Int_t relX, Int_t relY)
 
virtual unsigned int cellHeight () const
 require all cells to be the same height More...
 
 ClassDef (FWTableManagerBase, 0)
 
void dataChanged ()
 Classes which inherit from FWTableManagerBase must call this when their underlying data changes. More...
 
 FWTableManagerBase ()
 
virtual bool hasLabelHeaders () const
 
virtual bool hasRowHeaders () const
 Returns 'true' if this table has row headers. Defaults return value is false. More...
 
virtual FWTableCellRendererBaserowHeader (int iSortedRowNumber) const
 Returns the renderer for the row header for the sorted row number iSortedRowNumber. More...
 
void sort (int iCol, bool iSortOrder)
 Call to have table sorted on values in column iCol with the sort order being descending if iSortOrder is 'true'. More...
 
int sortColumn (void)
 The current sort column. More...
 
bool sortOrder (void)
 The current sort order for the table. More...
 
void visualPropertiesChanged ()
 Classes which inherit from FWTableManagerBase must call this when how the data is shown (e.g. color) changes. More...
 
virtual ~FWTableManagerBase ()
 

Protected Member Functions

bool applyEditor ()
 
void cancelEditor ()
 
std::vector< PSetData > & entries ()
 
std::vector< ModuleInfo > & modules ()
 
void setExpanded (int row)
 
void setSelection (int row, int column, int mask)
 
void update (std::vector< PathUpdate > &pathUpdates)
 
void updateSchedule (const edm::ScheduleInfo *info)
 

Private Member Functions

template<class T >
void createScalarString (PSetData &data, T v)
 
template<typename T >
void createVectorString (FWPSetTableManager::PSetData &data, const T &v, bool quotes)
 
 FWPSetTableManager (const FWPSetTableManager &)
 
void handleEntry (const edm::Entry &entry, const std::string &key)
 
void handlePSet (edm::ParameterSet *psp)
 
void handlePSetEntry (edm::ParameterSetEntry &entry, const std::string &key)
 
void handleVPSetEntry (edm::VParameterSetEntry &entry, const std::string &key)
 
const FWPSetTableManageroperator= (const FWPSetTableManager &)
 
void recalculateVisibility ()
 
void setCellValueEditor (FWPSetCellEditor *editor)
 

Private Attributes

std::vector< std::string > m_availablePaths
 
FWPSetCellEditorm_editor
 
std::vector< PSetDatam_entries
 
std::string m_filter
 
std::vector< ModuleInfom_modules
 
std::vector< size_t > m_parentStack
 
std::map< std::string, size_t > m_pathIndex
 
std::vector< PathInfom_paths
 
FWTextTreeCellRenderer m_renderer
 
std::vector< int > m_row_to_index
 
int m_selectedColumn
 
int m_selectedRow
 

Friends

class FWPathsPopup
 

Detailed Description

Description: [one line class summary]

Usage: <usage>

Definition at line 37 of file FWPSetTableManager.h.

Constructor & Destructor Documentation

FWPSetTableManager::FWPSetTableManager ( )

Definition at line 91 of file FWPSetTableManager.cc.

FWPSetTableManager::~FWPSetTableManager ( )
virtual

Definition at line 104 of file FWPSetTableManager.cc.

FWPSetTableManager::FWPSetTableManager ( const FWPSetTableManager )
private

Member Function Documentation

bool FWPSetTableManager::applyEditor ( )
protected

This is invoked every single time the editor contents must be applied to the selected entry in the pset.

Returns
true on success.

Definition at line 579 of file FWPSetTableManager.cc.

void FWPSetTableManager::cancelEditor ( )
protected

Does not apply changes and closes window.

Definition at line 565 of file FWPSetTableManager.cc.

virtual bool FWPSetTableManager::cellDataIsSortable ( ) const
inlinevirtual

Reimplemented from FWTableManagerBase.

Definition at line 103 of file FWPSetTableManager.h.

References edm::false.

103 { return false ; }
volatile std::atomic< bool > shutdown_flag false
FWTableCellRendererBase * FWPSetTableManager::cellRenderer ( int  iSortedRowNumber,
int  iCol 
) const
virtual
Returns the particular renderer used to handle the requested cell.  Arguments:

iSortedRowNumber: the row number from the present sort (i.e. the cell number of the view) iCol: the column number of the cell. The returned value must be used immediately and not held onto since the same Renderer can be used for subsequent calls

Implements FWTableManagerBase.

Definition at line 737 of file FWPSetTableManager.cc.

template<class T >
void FWPSetTableManager::createScalarString ( PSetData data,
T  v 
)
private

Definition at line 188 of file FWPSetTableManager.cc.

template<typename T >
void FWPSetTableManager::createVectorString ( FWPSetTableManager::PSetData data,
const T v,
bool  quotes 
)
private

Definition at line 197 of file FWPSetTableManager.cc.

std::vector<PSetData>& FWPSetTableManager::data ( )
inline

Definition at line 109 of file FWPSetTableManager.h.

References m_entries.

109 { return m_entries; }
std::vector< PSetData > m_entries
std::vector<PSetData>& FWPSetTableManager::entries ( )
inlineprotected

Definition at line 150 of file FWPSetTableManager.h.

References m_entries.

150 { return m_entries; }
std::vector< PSetData > m_entries
std::vector< std::string > FWPSetTableManager::getTitles ( ) const
virtual

returns the title names for each column

Implements FWTableManagerBase.

Definition at line 628 of file FWPSetTableManager.cc.

void FWPSetTableManager::handleEntry ( const edm::Entry entry,
const std::string &  key 
)
private

Definition at line 216 of file FWPSetTableManager.cc.

void FWPSetTableManager::handlePSet ( edm::ParameterSet psp)
private

Definition at line 170 of file FWPSetTableManager.cc.

void FWPSetTableManager::handlePSetEntry ( edm::ParameterSetEntry entry,
const std::string &  key 
)
private

Definition at line 114 of file FWPSetTableManager.cc.

void FWPSetTableManager::handleVPSetEntry ( edm::VParameterSetEntry entry,
const std::string &  key 
)
private

Definition at line 133 of file FWPSetTableManager.cc.

void FWPSetTableManager::implSort ( int  iCol,
bool  iSortOrder 
)
virtual

Called by 'sort' method to actually handle the sorting of the rows. Arguments are the same as 'sort'.

Implements FWTableManagerBase.

Definition at line 709 of file FWPSetTableManager.cc.

std::vector< unsigned int > FWPSetTableManager::maxWidthForColumns ( ) const
virtual

for each column in the table this returns the present maximum width for that column

Reimplemented from FWTableManagerBase.

Definition at line 695 of file FWPSetTableManager.cc.

std::vector<ModuleInfo>& FWPSetTableManager::modules ( )
inlineprotected

Definition at line 149 of file FWPSetTableManager.h.

References m_modules.

149 { return m_modules; }
std::vector< ModuleInfo > m_modules
int FWPSetTableManager::numberOfColumns ( ) const
virtual

Number of columns in the table.

Implements FWTableManagerBase.

Definition at line 659 of file FWPSetTableManager.cc.

int FWPSetTableManager::numberOfRows ( ) const
virtual

Number of rows in the table.

Implements FWTableManagerBase.

Definition at line 655 of file FWPSetTableManager.cc.

const FWPSetTableManager& FWPSetTableManager::operator= ( const FWPSetTableManager )
private
void FWPSetTableManager::recalculateVisibility ( )
private

Definition at line 938 of file FWPSetTableManager.cc.

bool FWPSetTableManager::rowIsSelected ( int  row) const
virtual

Definition at line 645 of file FWPSetTableManager.cc.

std::vector<int>& FWPSetTableManager::rowToIndex ( )
inline

Definition at line 110 of file FWPSetTableManager.h.

References m_row_to_index.

110 { return m_row_to_index; }
std::vector< int > m_row_to_index
int FWPSetTableManager::selectedColumn ( ) const

Definition at line 641 of file FWPSetTableManager.cc.

int FWPSetTableManager::selectedRow ( ) const

Definition at line 637 of file FWPSetTableManager.cc.

void FWPSetTableManager::setCellValueEditor ( FWPSetCellEditor editor)
private

Definition at line 557 of file FWPSetTableManager.cc.

void FWPSetTableManager::setExpanded ( int  row)
protected

Definition at line 714 of file FWPSetTableManager.cc.

void FWPSetTableManager::setSelection ( int  row,
int  column,
int  mask 
)
protected

Definition at line 663 of file FWPSetTableManager.cc.

const std::string FWPSetTableManager::title ( ) const
virtual

Definition at line 624 of file FWPSetTableManager.cc.

int FWPSetTableManager::unsortedRowNumber ( int  iSortedRowNumber) const
virtual

when passed the index to the sorted order of the rows it returns the original row number from the underlying data

Implements FWTableManagerBase.

Definition at line 650 of file FWPSetTableManager.cc.

void FWPSetTableManager::update ( std::vector< PathUpdate > &  pathUpdates)
protected

Update the status of a given path. This is the information that changes on event by event basis.

Definition at line 519 of file FWPSetTableManager.cc.

Referenced by Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom().

void FWPSetTableManager::updateFilter ( const char *  filter)
virtual

Definition at line 852 of file FWPSetTableManager.cc.

void FWPSetTableManager::updateSchedule ( const edm::ScheduleInfo info)
protected

Definition at line 432 of file FWPSetTableManager.cc.

Friends And Related Function Documentation

friend class FWPathsPopup
friend

Definition at line 39 of file FWPSetTableManager.h.

Member Data Documentation

std::vector<std::string> FWPSetTableManager::m_availablePaths
private

Definition at line 194 of file FWPSetTableManager.h.

FWPSetCellEditor* FWPSetTableManager::m_editor
private

Definition at line 193 of file FWPSetTableManager.h.

std::vector<PSetData> FWPSetTableManager::m_entries
private

Definition at line 183 of file FWPSetTableManager.h.

Referenced by data(), and entries().

std::string FWPSetTableManager::m_filter
private

Definition at line 192 of file FWPSetTableManager.h.

std::vector<ModuleInfo> FWPSetTableManager::m_modules
private

Definition at line 186 of file FWPSetTableManager.h.

Referenced by modules().

std::vector<size_t> FWPSetTableManager::m_parentStack
private

Definition at line 188 of file FWPSetTableManager.h.

std::map<std::string, size_t> FWPSetTableManager::m_pathIndex
private

Definition at line 187 of file FWPSetTableManager.h.

std::vector<PathInfo> FWPSetTableManager::m_paths
private

Index in m_entries where to find paths

Definition at line 185 of file FWPSetTableManager.h.

FWTextTreeCellRenderer FWPSetTableManager::m_renderer
mutableprivate

Definition at line 196 of file FWPSetTableManager.h.

std::vector<int> FWPSetTableManager::m_row_to_index
private

Definition at line 189 of file FWPSetTableManager.h.

Referenced by rowToIndex().

int FWPSetTableManager::m_selectedColumn
private

Definition at line 191 of file FWPSetTableManager.h.

int FWPSetTableManager::m_selectedRow
private

Definition at line 190 of file FWPSetTableManager.h.