Mantid
Loading...
Searching...
No Matches
Public Member Functions | Protected Slots | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
MantidQt::MantidWidgets::Batch::JobTreeView Class Reference

#include <JobTreeView.h>

Inheritance diagram for MantidQt::MantidWidgets::Batch::JobTreeView:
MantidQt::MantidWidgets::Batch::IJobTreeView

Public Member Functions

void appendAllUnselectedDescendants (QModelIndexList &selectedRows, QModelIndex const &index) const
 
void appendAndEditAtChildRow () override
 
void appendAndEditAtRowBelow () override
 
RowLocation appendChildRowOf (RowLocation const &parent) override
 
RowLocation appendChildRowOf (RowLocation const &parentLocation, std::vector< Cell > const &rowText) override
 
void appendSubtreeAt (RowLocation const &parent, Subtree const &subtree) override
 
void appendSubtreesAt (RowLocation const &parent, std::vector< Subtree > subtrees) override
 
Cell cellAt (RowLocation location, int column) const override
 
std::vector< CellcellsAt (RowLocation const &location) const override
 
void clearSelection () override
 
void collapseAll () override
 
int currentColumn () const override
 
Cell deadCell () const override
 
void editAtRowAbove () override
 
void expandAll () override
 
void filterRowsBy (RowPredicate *predicate) override
 
void filterRowsBy (std::unique_ptr< RowPredicate > predicate) override
 
QModelIndexList findImplicitlySelected (QModelIndexList const &selectedRows) const
 
bool hasFilter () const override
 
bool hasNoSelectedDescendants (QModelIndex const &index) const
 
RowLocation insertChildRowOf (RowLocation const &parent, int beforeRow) override
 
RowLocation insertChildRowOf (RowLocation const &parent, int beforeRow, std::vector< Cell > const &rowText) override
 
void insertSubtreeAt (RowLocation const &parent, int index, Subtree const &subtree) override
 
bool isOnlyChildOfRoot (RowLocation const &location) const override
 
 JobTreeView (QStringList const &columnHeadings, Cell const &defaultCellStyle, QWidget *parent=nullptr)
 
QModelIndex moveCursor (CursorAction cursorAction, Qt::KeyboardModifiers modifiers) override
 
void removeAllRows () override
 
void removeRowAt (RowLocation const &location) override
 
void removeRows (std::vector< RowLocation > rowsToRemove) override
 
void replaceRows (std::vector< RowLocation > replacementPoints, std::vector< Subtree > replacements) override
 
void replaceSubtreeAt (RowLocation const &rootToRemove, Subtree const &toInsert) override
 
void resetFilter () override
 
std::vector< RowLocationselectedRowLocations () const override
 
boost::optional< std::vector< RowLocation > > selectedSubtreeRoots () const override
 
boost::optional< std::vector< Subtree > > selectedSubtrees () const override
 
void setCellAt (RowLocation location, int column, Cell const &cellText) override
 
void setCellsAt (RowLocation const &location, std::vector< Cell > const &rowText) override
 
void setHintsForColumn (int column, HintStrategy *hintStrategy) override
 
void setHintsForColumn (int column, std::unique_ptr< HintStrategy > hintStrategy) override
 
void subscribe (JobTreeViewSubscriber *subscriber) override
 
- Public Member Functions inherited from MantidQt::MantidWidgets::Batch::IJobTreeView
virtual void appendAndEditAtChildRow ()=0
 
virtual void appendAndEditAtRowBelow ()=0
 
virtual RowLocation appendChildRowOf (RowLocation const &parent)=0
 
virtual RowLocation appendChildRowOf (RowLocation const &parentLocation, std::vector< Cell > const &rowText)=0
 
virtual void appendSubtreeAt (RowLocation const &parent, Subtree const &subtree)=0
 
virtual void appendSubtreesAt (RowLocation const &parent, std::vector< Subtree > subtrees)=0
 
virtual Cell cellAt (RowLocation location, int column) const =0
 
virtual std::vector< CellcellsAt (RowLocation const &location) const =0
 
virtual void clearSelection ()=0
 
virtual void collapseAll ()=0
 
virtual int currentColumn () const =0
 
virtual Cell deadCell () const =0
 
virtual void editAtRowAbove ()=0
 
virtual void expandAll ()=0
 
virtual void filterRowsBy (RowPredicate *predicate)=0
 
virtual void filterRowsBy (std::unique_ptr< RowPredicate > predicate)=0
 
virtual bool hasFilter () const =0
 
virtual RowLocation insertChildRowOf (RowLocation const &parent, int beforeRow)=0
 
virtual RowLocation insertChildRowOf (RowLocation const &parent, int beforeRow, std::vector< Cell > const &rowText)=0
 
virtual void insertSubtreeAt (RowLocation const &parent, int index, Subtree const &subtree)=0
 
virtual bool isOnlyChildOfRoot (RowLocation const &location) const =0
 
virtual void removeAllRows ()=0
 
virtual void removeRowAt (RowLocation const &location)=0
 
virtual void removeRows (std::vector< RowLocation > rowsToRemove)=0
 
virtual void replaceRows (std::vector< RowLocation > replacementPoints, std::vector< Subtree > replacements)=0
 
virtual void replaceSubtreeAt (RowLocation const &rootToRemove, Subtree const &toInsert)=0
 
virtual void resetFilter ()=0
 
virtual std::vector< RowLocationselectedRowLocations () const =0
 
virtual boost::optional< std::vector< RowLocation > > selectedSubtreeRoots () const =0
 
virtual boost::optional< std::vector< Subtree > > selectedSubtrees () const =0
 
virtual void setCellAt (RowLocation location, int column, Cell const &cellText)=0
 
virtual void setCellsAt (RowLocation const &location, std::vector< Cell > const &rowText)=0
 
virtual void setHintsForColumn (int column, HintStrategy *hintStrategy)=0
 
virtual void setHintsForColumn (int column, std::unique_ptr< HintStrategy > hintStrategy)=0
 
virtual void subscribe (JobTreeViewSubscriber *subscriber)=0
 
virtual ~IJobTreeView ()=default
 

Protected Slots

void commitData (QWidget *) override
 
void selectionChanged (const QItemSelection &selected, const QItemSelection &deselected) override
 

Protected Member Functions

void appendAndEditAtChildRowRequested ()
 
void appendAndEditAtRowBelowRequested ()
 
void copySelectedRequested ()
 
void cutSelectedRequested ()
 
bool edit (const QModelIndex &index, EditTrigger trigger, QEvent *event) override
 
void editAtRowAboveRequested ()
 
void enableFiltering ()
 
void keyPressEvent (QKeyEvent *event) override
 
void pasteSelectedRequested ()
 
void removeSelectedRequested ()
 
void setHeaderLabels (QStringList const &columnHeadings)
 

Private Member Functions

QModelIndex applyNavigationResult (QtTreeCursorNavigationResult const &result)
 
void closeAnyOpenEditorsOnUneditableCells (QModelIndexForMainModel const &firstCellOnRow, std::vector< Cell > const &cells)
 
void closeEditorIfCellIsUneditable (QModelIndexForMainModel const &cellIndex, Cell const &cell)
 
void closeEditorIfOpenAtCell (QModelIndexForFilteredModel const &cellIndex)
 
void editAt (QModelIndexForFilteredModel const &index)
 
QModelIndexForFilteredModel expanded (QModelIndexForFilteredModel const &index)
 
std::pair< QModelIndexForFilteredModel, bool > findOrMakeCellBelow (QModelIndexForFilteredModel const &index)
 
QModelIndexForFilteredModel fromFilteredModel (QModelIndex const &filteredModelIndex) const
 
QModelIndexForMainModel fromMainModel (QModelIndex const &mainModelIndex) const
 
bool hasEditorOpen () const
 
bool indexesAreOnSameRow (QModelIndex const &a, QModelIndex const &b) const
 
bool isBeingEdited (QModelIndexForFilteredModel const &cellIndex) const
 
bool isEditable (const QModelIndex &index) const
 
bool isOnlyChild (QModelIndexForMainModel const &index) const
 
bool isOnlyChildOfRoot (QModelIndexForMainModel const &index) const
 
QModelIndexForFilteredModel mapToFilteredModel (QModelIndexForMainModel const &mainModelIndex) const
 
QModelIndexForMainModel mapToMainModel (QModelIndexForFilteredModel const &filteredModelIndex) const
 
QtTreeCursorNavigationResult moveNextUntilEditable (QModelIndex const &startingPoint)
 
QModelIndex movePreviousUntilEditable (QModelIndex const &startingPoint)
 
QtTreeCursorNavigation navigation () const
 
RowLocationAdapter rowLocation () const
 
bool rowRemovalWouldBeIneffective (QModelIndexForMainModel const &indexToRemove) const
 
QModelIndex siblingIfExistsElseParent (QModelIndex const &index) const
 

Private Attributes

QtStandardItemTreeModelAdapter m_adaptedMainModel
 
FilteredTreeModel m_filteredModel
 
bool m_hasEditorOpen
 
QModelIndexForMainModel m_lastEdited
 
QStandardItemModel m_mainModel
 
JobTreeViewSubscriberm_notifyee
 

Static Private Attributes

static Cell const g_deadCell = Cell("", "white", 0, "transparent", 0, false)
 

Detailed Description

Definition at line 29 of file JobTreeView.h.

Constructor & Destructor Documentation

◆ JobTreeView()

MantidQt::MantidWidgets::Batch::JobTreeView::JobTreeView ( QStringList const &  columnHeadings,
Cell const &  defaultCellStyle,
QWidget *  parent = nullptr 
)

Definition at line 30 of file JobTreeView.cpp.

References enableFiltering(), m_filteredModel, m_mainModel, and setHeaderLabels().

Member Function Documentation

◆ appendAllUnselectedDescendants()

void MantidQt::MantidWidgets::Batch::JobTreeView::appendAllUnselectedDescendants ( QModelIndexList &  selectedRows,
QModelIndex const &  index 
) const

◆ appendAndEditAtChildRow()

void MantidQt::MantidWidgets::Batch::JobTreeView::appendAndEditAtChildRow ( )
overridevirtual

◆ appendAndEditAtChildRowRequested()

void MantidQt::MantidWidgets::Batch::JobTreeView::appendAndEditAtChildRowRequested ( )
protected

◆ appendAndEditAtRowBelow()

void MantidQt::MantidWidgets::Batch::JobTreeView::appendAndEditAtRowBelow ( )
overridevirtual

◆ appendAndEditAtRowBelowRequested()

void MantidQt::MantidWidgets::Batch::JobTreeView::appendAndEditAtRowBelowRequested ( )
protected

◆ appendChildRowOf() [1/2]

RowLocation MantidQt::MantidWidgets::Batch::JobTreeView::appendChildRowOf ( RowLocation const &  parent)
overridevirtual

◆ appendChildRowOf() [2/2]

RowLocation MantidQt::MantidWidgets::Batch::JobTreeView::appendChildRowOf ( RowLocation const &  parentLocation,
std::vector< Cell > const &  rowText 
)
overridevirtual

◆ appendSubtreeAt()

void MantidQt::MantidWidgets::Batch::JobTreeView::appendSubtreeAt ( RowLocation const &  parent,
Subtree const &  subtree 
)
overridevirtual

◆ appendSubtreesAt()

void MantidQt::MantidWidgets::Batch::JobTreeView::appendSubtreesAt ( RowLocation const &  parent,
std::vector< Subtree subtrees 
)
overridevirtual

Implements MantidQt::MantidWidgets::Batch::IJobTreeView.

Definition at line 245 of file JobTreeView.cpp.

References appendSubtreeAt().

◆ applyNavigationResult()

QModelIndex MantidQt::MantidWidgets::Batch::JobTreeView::applyNavigationResult ( QtTreeCursorNavigationResult const &  result)
private

◆ cellAt()

Cell MantidQt::MantidWidgets::Batch::JobTreeView::cellAt ( RowLocation  location,
int  column 
) const
overridevirtual

◆ cellsAt()

std::vector< Cell > MantidQt::MantidWidgets::Batch::JobTreeView::cellsAt ( RowLocation const &  location) const
overridevirtual

◆ clearSelection()

void MantidQt::MantidWidgets::Batch::JobTreeView::clearSelection ( )
overridevirtual

Implements MantidQt::MantidWidgets::Batch::IJobTreeView.

Definition at line 382 of file JobTreeView.cpp.

Referenced by removeAllRows().

◆ closeAnyOpenEditorsOnUneditableCells()

void MantidQt::MantidWidgets::Batch::JobTreeView::closeAnyOpenEditorsOnUneditableCells ( QModelIndexForMainModel const &  firstCellOnRow,
std::vector< Cell > const &  cells 
)
private

◆ closeEditorIfCellIsUneditable()

void MantidQt::MantidWidgets::Batch::JobTreeView::closeEditorIfCellIsUneditable ( QModelIndexForMainModel const &  cellIndex,
Cell const &  cell 
)
private

◆ closeEditorIfOpenAtCell()

void MantidQt::MantidWidgets::Batch::JobTreeView::closeEditorIfOpenAtCell ( QModelIndexForFilteredModel const &  cellIndex)
private

◆ collapseAll()

void MantidQt::MantidWidgets::Batch::JobTreeView::collapseAll ( )
overridevirtual

Implements MantidQt::MantidWidgets::Batch::IJobTreeView.

Definition at line 386 of file JobTreeView.cpp.

◆ commitData

void MantidQt::MantidWidgets::Batch::JobTreeView::commitData ( QWidget *  editor)
overrideprotectedslot

◆ copySelectedRequested()

void MantidQt::MantidWidgets::Batch::JobTreeView::copySelectedRequested ( )
protected

◆ currentColumn()

int MantidQt::MantidWidgets::Batch::JobTreeView::currentColumn ( ) const
overridevirtual

Implements MantidQt::MantidWidgets::Batch::IJobTreeView.

Definition at line 565 of file JobTreeView.cpp.

◆ cutSelectedRequested()

void MantidQt::MantidWidgets::Batch::JobTreeView::cutSelectedRequested ( )
protected

◆ deadCell()

Cell MantidQt::MantidWidgets::Batch::JobTreeView::deadCell ( ) const
overridevirtual

Implements MantidQt::MantidWidgets::Batch::IJobTreeView.

Definition at line 87 of file JobTreeView.cpp.

References g_deadCell.

◆ edit()

bool MantidQt::MantidWidgets::Batch::JobTreeView::edit ( const QModelIndex &  index,
EditTrigger  trigger,
QEvent *  event 
)
overrideprotected

Definition at line 81 of file JobTreeView.cpp.

References fromFilteredModel(), index, m_hasEditorOpen, m_lastEdited, and mapToMainModel().

Referenced by editAt().

◆ editAt()

void MantidQt::MantidWidgets::Batch::JobTreeView::editAt ( QModelIndexForFilteredModel const &  index)
private

◆ editAtRowAbove()

void MantidQt::MantidWidgets::Batch::JobTreeView::editAtRowAbove ( )
overridevirtual

◆ editAtRowAboveRequested()

void MantidQt::MantidWidgets::Batch::JobTreeView::editAtRowAboveRequested ( )
protected

◆ enableFiltering()

void MantidQt::MantidWidgets::Batch::JobTreeView::enableFiltering ( )
protected

Definition at line 450 of file JobTreeView.cpp.

References m_filteredModel, and m_mainModel.

Referenced by JobTreeView().

◆ expandAll()

void MantidQt::MantidWidgets::Batch::JobTreeView::expandAll ( )
overridevirtual

Implements MantidQt::MantidWidgets::Batch::IJobTreeView.

Definition at line 384 of file JobTreeView.cpp.

Referenced by filterRowsBy().

◆ expanded()

QModelIndexForFilteredModel MantidQt::MantidWidgets::Batch::JobTreeView::expanded ( QModelIndexForFilteredModel const &  index)
private

Definition at line 388 of file JobTreeView.cpp.

References index, and m_filteredModel.

Referenced by appendAndEditAtChildRow(), applyNavigationResult(), and insertChildRowOf().

◆ filterRowsBy() [1/2]

void MantidQt::MantidWidgets::Batch::JobTreeView::filterRowsBy ( RowPredicate predicate)
overridevirtual

◆ filterRowsBy() [2/2]

void MantidQt::MantidWidgets::Batch::JobTreeView::filterRowsBy ( std::unique_ptr< RowPredicate predicate)
overridevirtual

◆ findImplicitlySelected()

QModelIndexList MantidQt::MantidWidgets::Batch::JobTreeView::findImplicitlySelected ( QModelIndexList const &  selectedRows) const

Definition at line 136 of file JobTreeView.cpp.

References appendAllUnselectedDescendants(), and hasNoSelectedDescendants().

Referenced by selectedRowLocations().

◆ findOrMakeCellBelow()

std::pair< QModelIndexForFilteredModel, bool > MantidQt::MantidWidgets::Batch::JobTreeView::findOrMakeCellBelow ( QModelIndexForFilteredModel const &  index)
private

◆ fromFilteredModel()

QModelIndexForFilteredModel MantidQt::MantidWidgets::Batch::JobTreeView::fromFilteredModel ( QModelIndex const &  filteredModelIndex) const
private

◆ fromMainModel()

QModelIndexForMainModel MantidQt::MantidWidgets::Batch::JobTreeView::fromMainModel ( QModelIndex const &  mainModelIndex) const
private

Definition at line 498 of file JobTreeView.cpp.

References m_mainModel.

Referenced by applyNavigationResult(), and replaceSubtreeAt().

◆ hasEditorOpen()

bool MantidQt::MantidWidgets::Batch::JobTreeView::hasEditorOpen ( ) const
private

◆ hasFilter()

bool MantidQt::MantidWidgets::Batch::JobTreeView::hasFilter ( ) const
overridevirtual

◆ hasNoSelectedDescendants()

bool MantidQt::MantidWidgets::Batch::JobTreeView::hasNoSelectedDescendants ( QModelIndex const &  index) const

◆ indexesAreOnSameRow()

bool MantidQt::MantidWidgets::Batch::JobTreeView::indexesAreOnSameRow ( QModelIndex const &  a,
QModelIndex const &  b 
) const
private

◆ insertChildRowOf() [1/2]

RowLocation MantidQt::MantidWidgets::Batch::JobTreeView::insertChildRowOf ( RowLocation const &  parent,
int  beforeRow 
)
overridevirtual

◆ insertChildRowOf() [2/2]

RowLocation MantidQt::MantidWidgets::Batch::JobTreeView::insertChildRowOf ( RowLocation const &  parent,
int  beforeRow,
std::vector< Cell > const &  rowText 
)
overridevirtual

◆ insertSubtreeAt()

void MantidQt::MantidWidgets::Batch::JobTreeView::insertSubtreeAt ( RowLocation const &  parent,
int  index,
Subtree const &  subtree 
)
overridevirtual

◆ isBeingEdited()

bool MantidQt::MantidWidgets::Batch::JobTreeView::isBeingEdited ( QModelIndexForFilteredModel const &  cellIndex) const
private

Definition at line 188 of file JobTreeView.cpp.

References fromFilteredModel(), and hasEditorOpen().

Referenced by closeEditorIfOpenAtCell().

◆ isEditable()

bool MantidQt::MantidWidgets::Batch::JobTreeView::isEditable ( const QModelIndex &  index) const
private

Definition at line 506 of file JobTreeView.cpp.

References index.

Referenced by editAt(), moveNextUntilEditable(), and movePreviousUntilEditable().

◆ isOnlyChild()

bool MantidQt::MantidWidgets::Batch::JobTreeView::isOnlyChild ( QModelIndexForMainModel const &  index) const
private

Definition at line 300 of file JobTreeView.cpp.

References index, and m_mainModel.

Referenced by isOnlyChildOfRoot().

◆ isOnlyChildOfRoot() [1/2]

bool MantidQt::MantidWidgets::Batch::JobTreeView::isOnlyChildOfRoot ( QModelIndexForMainModel const &  index) const
private

Definition at line 309 of file JobTreeView.cpp.

References index, and isOnlyChild().

◆ isOnlyChildOfRoot() [2/2]

bool MantidQt::MantidWidgets::Batch::JobTreeView::isOnlyChildOfRoot ( RowLocation const &  location) const
overridevirtual

◆ keyPressEvent()

void MantidQt::MantidWidgets::Batch::JobTreeView::keyPressEvent ( QKeyEvent *  event)
overrideprotected

◆ mapToFilteredModel()

QModelIndexForFilteredModel MantidQt::MantidWidgets::Batch::JobTreeView::mapToFilteredModel ( QModelIndexForMainModel const &  mainModelIndex) const
private

◆ mapToMainModel()

QModelIndexForMainModel MantidQt::MantidWidgets::Batch::JobTreeView::mapToMainModel ( QModelIndexForFilteredModel const &  filteredModelIndex) const
private

◆ moveCursor()

QModelIndex MantidQt::MantidWidgets::Batch::JobTreeView::moveCursor ( CursorAction  cursorAction,
Qt::KeyboardModifiers  modifiers 
)
override

◆ moveNextUntilEditable()

QtTreeCursorNavigationResult MantidQt::MantidWidgets::Batch::JobTreeView::moveNextUntilEditable ( QModelIndex const &  startingPoint)
private

◆ movePreviousUntilEditable()

QModelIndex MantidQt::MantidWidgets::Batch::JobTreeView::movePreviousUntilEditable ( QModelIndex const &  startingPoint)
private

◆ navigation()

QtTreeCursorNavigation MantidQt::MantidWidgets::Batch::JobTreeView::navigation ( ) const
private

Definition at line 397 of file JobTreeView.cpp.

References m_filteredModel.

Referenced by moveNextUntilEditable(), and movePreviousUntilEditable().

◆ pasteSelectedRequested()

void MantidQt::MantidWidgets::Batch::JobTreeView::pasteSelectedRequested ( )
protected

◆ removeAllRows()

void MantidQt::MantidWidgets::Batch::JobTreeView::removeAllRows ( )
overridevirtual

◆ removeRowAt()

void MantidQt::MantidWidgets::Batch::JobTreeView::removeRowAt ( RowLocation const &  location)
overridevirtual

◆ removeRows()

void MantidQt::MantidWidgets::Batch::JobTreeView::removeRows ( std::vector< RowLocation rowsToRemove)
overridevirtual

Implements MantidQt::MantidWidgets::Batch::IJobTreeView.

Definition at line 177 of file JobTreeView.cpp.

References removeRowAt().

◆ removeSelectedRequested()

void MantidQt::MantidWidgets::Batch::JobTreeView::removeSelectedRequested ( )
protected

◆ replaceRows()

void MantidQt::MantidWidgets::Batch::JobTreeView::replaceRows ( std::vector< RowLocation replacementPoints,
std::vector< Subtree replacements 
)
overridevirtual

◆ replaceSubtreeAt()

void MantidQt::MantidWidgets::Batch::JobTreeView::replaceSubtreeAt ( RowLocation const &  rootToRemove,
Subtree const &  toInsert 
)
overridevirtual

◆ resetFilter()

void MantidQt::MantidWidgets::Batch::JobTreeView::resetFilter ( )
overridevirtual

◆ rowLocation()

RowLocationAdapter MantidQt::MantidWidgets::Batch::JobTreeView::rowLocation ( ) const
private

◆ rowRemovalWouldBeIneffective()

bool MantidQt::MantidWidgets::Batch::JobTreeView::rowRemovalWouldBeIneffective ( QModelIndexForMainModel const &  indexToRemove) const
private

◆ selectedRowLocations()

std::vector< RowLocation > MantidQt::MantidWidgets::Batch::JobTreeView::selectedRowLocations ( ) const
overridevirtual

◆ selectedSubtreeRoots()

boost::optional< std::vector< RowLocation > > MantidQt::MantidWidgets::Batch::JobTreeView::selectedSubtreeRoots ( ) const
overridevirtual

Implements MantidQt::MantidWidgets::Batch::IJobTreeView.

Definition at line 103 of file JobTreeView.cpp.

References selectedRowLocations().

◆ selectedSubtrees()

boost::optional< std::vector< Subtree > > MantidQt::MantidWidgets::Batch::JobTreeView::selectedSubtrees ( ) const
overridevirtual

Implements MantidQt::MantidWidgets::Batch::IJobTreeView.

Definition at line 89 of file JobTreeView.cpp.

References selectedRowLocations().

◆ selectionChanged

void MantidQt::MantidWidgets::Batch::JobTreeView::selectionChanged ( const QItemSelection &  selected,
const QItemSelection &  deselected 
)
overrideprotectedslot

◆ setCellAt()

void MantidQt::MantidWidgets::Batch::JobTreeView::setCellAt ( RowLocation  location,
int  column,
Cell const &  cellText 
)
overridevirtual

◆ setCellsAt()

void MantidQt::MantidWidgets::Batch::JobTreeView::setCellsAt ( RowLocation const &  location,
std::vector< Cell > const &  rowText 
)
overridevirtual

◆ setHeaderLabels()

void MantidQt::MantidWidgets::Batch::JobTreeView::setHeaderLabels ( QStringList const &  columnHeadings)
protected

Definition at line 274 of file JobTreeView.cpp.

References m_mainModel.

Referenced by JobTreeView().

◆ setHintsForColumn() [1/2]

void MantidQt::MantidWidgets::Batch::JobTreeView::setHintsForColumn ( int  column,
HintStrategy hintStrategy 
)
overridevirtual

Implements MantidQt::MantidWidgets::Batch::IJobTreeView.

Definition at line 132 of file JobTreeView.cpp.

References setHintsForColumn().

◆ setHintsForColumn() [2/2]

void MantidQt::MantidWidgets::Batch::JobTreeView::setHintsForColumn ( int  column,
std::unique_ptr< HintStrategy hintStrategy 
)
overridevirtual

Implements MantidQt::MantidWidgets::Batch::IJobTreeView.

Definition at line 128 of file JobTreeView.cpp.

Referenced by setHintsForColumn().

◆ siblingIfExistsElseParent()

QModelIndex MantidQt::MantidWidgets::Batch::JobTreeView::siblingIfExistsElseParent ( QModelIndex const &  index) const
private

◆ subscribe()

void MantidQt::MantidWidgets::Batch::JobTreeView::subscribe ( JobTreeViewSubscriber subscriber)
overridevirtual

Member Data Documentation

◆ g_deadCell

Cell const MantidQt::MantidWidgets::Batch::JobTreeView::g_deadCell = Cell("", "white", 0, "transparent", 0, false)
staticprivate

Definition at line 108 of file JobTreeView.h.

Referenced by appendChildRowOf(), deadCell(), and insertChildRowOf().

◆ m_adaptedMainModel

QtStandardItemTreeModelAdapter MantidQt::MantidWidgets::Batch::JobTreeView::m_adaptedMainModel
private

◆ m_filteredModel

FilteredTreeModel MantidQt::MantidWidgets::Batch::JobTreeView::m_filteredModel
private

◆ m_hasEditorOpen

bool MantidQt::MantidWidgets::Batch::JobTreeView::m_hasEditorOpen
private

Definition at line 148 of file JobTreeView.h.

Referenced by commitData(), and edit().

◆ m_lastEdited

QModelIndexForMainModel MantidQt::MantidWidgets::Batch::JobTreeView::m_lastEdited
private

Definition at line 147 of file JobTreeView.h.

Referenced by commitData(), edit(), and hasEditorOpen().

◆ m_mainModel

QStandardItemModel MantidQt::MantidWidgets::Batch::JobTreeView::m_mainModel
private

◆ m_notifyee

JobTreeViewSubscriber* MantidQt::MantidWidgets::Batch::JobTreeView::m_notifyee
private

The documentation for this class was generated from the following files: