Mantid
|
#include <JobTreeView.h>
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< Cell > | cellsAt (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< RowLocation > | selectedRowLocations () 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< Cell > | cellsAt (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< RowLocation > | selectedRowLocations () 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 Attributes | |
QtStandardItemTreeModelAdapter | m_adaptedMainModel |
FilteredTreeModel | m_filteredModel |
bool | m_hasEditorOpen |
QModelIndexForMainModel | m_lastEdited |
QStandardItemModel | m_mainModel |
JobTreeViewSubscriber * | m_notifyee |
Static Private Attributes | |
static Cell const | g_deadCell = Cell("", "white", 0, "transparent", 0, false) |
Definition at line 29 of file JobTreeView.h.
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().
void MantidQt::MantidWidgets::Batch::JobTreeView::appendAllUnselectedDescendants | ( | QModelIndexList & | selectedRows, |
QModelIndex const & | index | ||
) | const |
Definition at line 119 of file JobTreeView.cpp.
References appendAllUnselectedDescendants(), index, and m_filteredModel.
Referenced by appendAllUnselectedDescendants(), and findImplicitlySelected().
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 421 of file JobTreeView.cpp.
References MantidQt::MantidWidgets::Batch::QtStandardItemTreeModelAdapter::appendEmptyChildRow(), editAt(), expanded(), fromFilteredModel(), m_adaptedMainModel, m_notifyee, mapToFilteredModel(), mapToMainModel(), MantidQt::MantidWidgets::Batch::JobTreeViewSubscriber::notifyRowInserted(), resetFilter(), and rowLocation().
|
protected |
Definition at line 163 of file JobTreeView.cpp.
References m_notifyee, and MantidQt::MantidWidgets::Batch::JobTreeViewSubscriber::notifyAppendAndEditAtChildRowRequested().
Referenced by keyPressEvent().
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 429 of file JobTreeView.cpp.
References editAt(), findOrMakeCellBelow(), fromFilteredModel(), index, m_mainModel, m_notifyee, mapToMainModel(), MantidQt::MantidWidgets::Batch::JobTreeViewSubscriber::notifyRowInserted(), and rowLocation().
|
protected |
Definition at line 165 of file JobTreeView.cpp.
References m_notifyee, and MantidQt::MantidWidgets::Batch::JobTreeViewSubscriber::notifyAppendAndEditAtRowBelowRequested().
Referenced by keyPressEvent().
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 364 of file JobTreeView.cpp.
References MantidQt::MantidWidgets::Batch::QtStandardItemTreeModelAdapter::appendEmptyChildRow(), MantidQt::MantidWidgets::Batch::RowLocationAdapter::atIndex(), m_adaptedMainModel, and rowLocation().
Referenced by removeAllRows().
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 368 of file JobTreeView.cpp.
References MantidQt::MantidWidgets::Batch::QtStandardItemTreeModelAdapter::appendChildRow(), MantidQt::MantidWidgets::Batch::RowLocationAdapter::atIndex(), g_deadCell, MantidQt::MantidWidgets::Batch::RowLocationAdapter::indexAt(), m_adaptedMainModel, m_mainModel, MantidQt::MantidWidgets::Batch::paddedCellsToWidth(), and rowLocation().
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 250 of file JobTreeView.cpp.
References MantidQt::MantidWidgets::Batch::RowLocationAdapter::indexAt(), insertSubtreeAt(), m_mainModel, and rowLocation().
Referenced by appendSubtreesAt(), and replaceRows().
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 245 of file JobTreeView.cpp.
References appendSubtreeAt().
|
private |
Definition at line 531 of file JobTreeView.cpp.
References MantidQt::MantidWidgets::Batch::QtStandardItemTreeModelAdapter::appendEmptySiblingRow(), MantidQt::MantidWidgets::Batch::RowLocationAdapter::atIndex(), expanded(), MantidQt::MantidWidgets::Batch::firstCellOnRowOf(), fromFilteredModel(), fromMainModel(), MantidQt::MantidWidgets::Batch::RowLocationAdapter::indexIfExistsAt(), m_adaptedMainModel, m_notifyee, mapToFilteredModel(), mapToMainModel(), MantidQt::MantidWidgets::Batch::JobTreeViewSubscriber::notifyRowInserted(), resetFilter(), rowLocation(), and MantidQt::MantidWidgets::Batch::StrictQModelIndex< Derived >::untyped().
Referenced by moveCursor().
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 183 of file JobTreeView.cpp.
References MantidQt::MantidWidgets::Batch::QtStandardItemTreeModelAdapter::cellFromCellIndex(), MantidQt::MantidWidgets::Batch::RowLocationAdapter::indexAt(), m_adaptedMainModel, and rowLocation().
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 208 of file JobTreeView.cpp.
References MantidQt::MantidWidgets::Batch::QtStandardItemTreeModelAdapter::cellsAtRow(), m_adaptedMainModel, and rowLocation().
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 382 of file JobTreeView.cpp.
Referenced by removeAllRows().
|
private |
Definition at line 212 of file JobTreeView.cpp.
References MantidQt::MantidWidgets::Batch::QtStandardItemTreeModelAdapter::enumerateCellsInRow(), m_adaptedMainModel, and m_mainModel.
Referenced by setCellsAt().
|
private |
Definition at line 197 of file JobTreeView.cpp.
References closeEditorIfOpenAtCell(), MantidQt::MantidWidgets::Batch::Cell::isEditable(), and mapToFilteredModel().
Referenced by setCellAt().
|
private |
Definition at line 192 of file JobTreeView.cpp.
References isBeingEdited(), MantidQt::MantidWidgets::Batch::StrictQModelIndex< Derived >::isValid(), and MantidQt::MantidWidgets::Batch::StrictQModelIndex< Derived >::untyped().
Referenced by closeEditorIfCellIsUneditable().
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 386 of file JobTreeView.cpp.
|
overrideprotectedslot |
Definition at line 43 of file JobTreeView.cpp.
References MantidQt::MantidWidgets::Batch::QtStandardItemTreeModelAdapter::cellFromCellIndex(), MantidQt::MantidWidgets::Batch::StrictQModelIndex< Derived >::column(), MantidQt::MantidWidgets::Batch::Cell::contentText(), editAt(), fromFilteredModel(), m_adaptedMainModel, m_hasEditorOpen, m_lastEdited, m_notifyee, MantidQt::MantidWidgets::Batch::JobTreeViewSubscriber::notifyCellTextChanged(), and rowLocation().
|
protected |
Definition at line 171 of file JobTreeView.cpp.
References m_notifyee, and MantidQt::MantidWidgets::Batch::JobTreeViewSubscriber::notifyCopyRowsRequested().
Referenced by keyPressEvent().
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 565 of file JobTreeView.cpp.
|
protected |
Definition at line 173 of file JobTreeView.cpp.
References m_notifyee, and MantidQt::MantidWidgets::Batch::JobTreeViewSubscriber::notifyCutRowsRequested().
Referenced by keyPressEvent().
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 87 of file JobTreeView.cpp.
References g_deadCell.
|
overrideprotected |
Definition at line 81 of file JobTreeView.cpp.
References fromFilteredModel(), index, m_hasEditorOpen, m_lastEdited, and mapToMainModel().
Referenced by editAt().
|
private |
Definition at line 374 of file JobTreeView.cpp.
References edit(), index, and isEditable().
Referenced by appendAndEditAtChildRow(), appendAndEditAtRowBelow(), commitData(), editAtRowAbove(), and insertChildRowOf().
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 445 of file JobTreeView.cpp.
References MantidQt::MantidWidgets::Batch::above(), editAt(), fromFilteredModel(), and MantidQt::MantidWidgets::Batch::hasRowAbove().
|
protected |
Definition at line 167 of file JobTreeView.cpp.
References m_notifyee, and MantidQt::MantidWidgets::Batch::JobTreeViewSubscriber::notifyEditAtRowAboveRequested().
Referenced by keyPressEvent().
|
protected |
Definition at line 450 of file JobTreeView.cpp.
References m_filteredModel, and m_mainModel.
Referenced by JobTreeView().
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 384 of file JobTreeView.cpp.
Referenced by filterRowsBy().
|
private |
Definition at line 388 of file JobTreeView.cpp.
References index, and m_filteredModel.
Referenced by appendAndEditAtChildRow(), applyNavigationResult(), and insertChildRowOf().
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 69 of file JobTreeView.cpp.
References expandAll(), m_filteredModel, and MantidQt::MantidWidgets::Batch::FilteredTreeModel::setPredicate().
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 64 of file JobTreeView.cpp.
References expandAll(), m_filteredModel, and MantidQt::MantidWidgets::Batch::FilteredTreeModel::setPredicate().
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().
|
private |
Definition at line 402 of file JobTreeView.cpp.
References MantidQt::MantidWidgets::Batch::QtStandardItemTreeModelAdapter::appendEmptySiblingRow(), MantidQt::MantidWidgets::Batch::below(), fromFilteredModel(), MantidQt::MantidWidgets::Batch::hasRowBelow(), index, m_adaptedMainModel, mapToFilteredModel(), mapToMainModel(), and resetFilter().
Referenced by appendAndEditAtRowBelow().
|
private |
Definition at line 502 of file JobTreeView.cpp.
References m_filteredModel.
Referenced by appendAndEditAtChildRow(), appendAndEditAtRowBelow(), applyNavigationResult(), commitData(), edit(), editAtRowAbove(), findOrMakeCellBelow(), isBeingEdited(), and rowRemovalWouldBeIneffective().
|
private |
Definition at line 498 of file JobTreeView.cpp.
References m_mainModel.
Referenced by applyNavigationResult(), and replaceSubtreeAt().
|
private |
Definition at line 283 of file JobTreeView.cpp.
References MantidQt::MantidWidgets::Batch::StrictQModelIndex< Derived >::isValid(), and m_lastEdited.
Referenced by isBeingEdited(), and rowRemovalWouldBeIneffective().
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 79 of file JobTreeView.cpp.
References MantidQt::MantidWidgets::Batch::FilteredTreeModel::isReset(), and m_filteredModel.
bool MantidQt::MantidWidgets::Batch::JobTreeView::hasNoSelectedDescendants | ( | QModelIndex const & | index | ) | const |
Definition at line 108 of file JobTreeView.cpp.
References hasNoSelectedDescendants(), index, and m_filteredModel.
Referenced by findImplicitlySelected(), and hasNoSelectedDescendants().
|
private |
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 346 of file JobTreeView.cpp.
References MantidQt::MantidWidgets::Batch::RowLocationAdapter::atIndex(), editAt(), expanded(), MantidQt::MantidWidgets::Batch::QtStandardItemTreeModelAdapter::insertEmptyChildRow(), m_adaptedMainModel, mapToFilteredModel(), and rowLocation().
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 352 of file JobTreeView.cpp.
References assertOrThrow(), MantidQt::MantidWidgets::Batch::RowLocationAdapter::atIndex(), editAt(), expanded(), g_deadCell, MantidQt::MantidWidgets::Batch::QtStandardItemTreeModelAdapter::insertChildRow(), m_adaptedMainModel, m_mainModel, mapToFilteredModel(), MantidQt::MantidWidgets::Batch::paddedCellsToWidth(), and rowLocation().
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 240 of file JobTreeView.cpp.
References index, m_adaptedMainModel, and rowLocation().
Referenced by appendSubtreeAt(), and replaceSubtreeAt().
|
private |
Definition at line 188 of file JobTreeView.cpp.
References fromFilteredModel(), and hasEditorOpen().
Referenced by closeEditorIfOpenAtCell().
|
private |
Definition at line 506 of file JobTreeView.cpp.
References index.
Referenced by editAt(), moveNextUntilEditable(), and movePreviousUntilEditable().
|
private |
Definition at line 300 of file JobTreeView.cpp.
References index, and m_mainModel.
Referenced by isOnlyChildOfRoot().
|
private |
Definition at line 309 of file JobTreeView.cpp.
References index, and isOnlyChild().
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 305 of file JobTreeView.cpp.
References index, isOnlyChildOfRoot(), and rowLocation().
Referenced by isOnlyChildOfRoot(), removeAllRows(), and removeRowAt().
|
overrideprotected |
Definition at line 456 of file JobTreeView.cpp.
References appendAndEditAtChildRowRequested(), appendAndEditAtRowBelowRequested(), copySelectedRequested(), cutSelectedRequested(), editAtRowAboveRequested(), pasteSelectedRequested(), and removeSelectedRequested().
|
private |
Definition at line 417 of file JobTreeView.cpp.
References m_filteredModel, and MantidQt::MantidWidgets::Batch::StrictQModelIndex< Derived >::untyped().
Referenced by appendAndEditAtChildRow(), applyNavigationResult(), closeEditorIfCellIsUneditable(), findOrMakeCellBelow(), insertChildRowOf(), and removeRowAt().
|
private |
Definition at line 413 of file JobTreeView.cpp.
References m_filteredModel, and MantidQt::MantidWidgets::Batch::StrictQModelIndex< Derived >::untyped().
Referenced by appendAndEditAtChildRow(), appendAndEditAtRowBelow(), applyNavigationResult(), edit(), findOrMakeCellBelow(), and rowRemovalWouldBeIneffective().
|
override |
Definition at line 522 of file JobTreeView.cpp.
References applyNavigationResult(), moveNextUntilEditable(), and movePreviousUntilEditable().
|
private |
Definition at line 508 of file JobTreeView.cpp.
References isEditable(), MantidQt::MantidWidgets::Batch::QtTreeCursorNavigation::moveCursorNext(), and navigation().
Referenced by moveCursor().
|
private |
Definition at line 515 of file JobTreeView.cpp.
References isEditable(), MantidQt::MantidWidgets::Batch::QtTreeCursorNavigation::moveCursorPrevious(), and navigation().
Referenced by moveCursor().
|
private |
Definition at line 397 of file JobTreeView.cpp.
References m_filteredModel.
Referenced by moveNextUntilEditable(), and movePreviousUntilEditable().
|
protected |
Definition at line 175 of file JobTreeView.cpp.
References m_notifyee, and MantidQt::MantidWidgets::Batch::JobTreeViewSubscriber::notifyPasteRowsRequested().
Referenced by keyPressEvent().
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 337 of file JobTreeView.cpp.
References appendChildRowOf(), clearSelection(), isOnlyChildOfRoot(), and removeRowAt().
Referenced by removeRowAt().
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 313 of file JobTreeView.cpp.
References assertOrThrow(), MantidQt::MantidWidgets::Batch::RowLocationAdapter::indexAt(), isOnlyChildOfRoot(), m_adaptedMainModel, mapToFilteredModel(), removeAllRows(), MantidQt::MantidWidgets::Batch::QtStandardItemTreeModelAdapter::removeRowFrom(), resetFilter(), rowLocation(), rowRemovalWouldBeIneffective(), and siblingIfExistsElseParent().
Referenced by removeAllRows(), removeRows(), replaceRows(), and replaceSubtreeAt().
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 177 of file JobTreeView.cpp.
References removeRowAt().
|
protected |
Definition at line 169 of file JobTreeView.cpp.
References m_notifyee, MantidQt::MantidWidgets::Batch::JobTreeViewSubscriber::notifyRemoveRowsRequested(), and selectedRowLocations().
Referenced by keyPressEvent().
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 255 of file JobTreeView.cpp.
References appendSubtreeAt(), assertOrThrow(), removeRowAt(), and replaceSubtreeAt().
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 226 of file JobTreeView.cpp.
References MantidQt::MantidWidgets::Batch::below(), fromMainModel(), MantidQt::MantidWidgets::Batch::RowLocationAdapter::indexAt(), insertSubtreeAt(), MantidQt::MantidWidgets::Batch::RowLocation::parent(), removeRowAt(), rowLocation(), and MantidQt::MantidWidgets::Batch::RowLocation::rowRelativeToParent().
Referenced by replaceRows().
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 74 of file JobTreeView.cpp.
References m_filteredModel, m_notifyee, MantidQt::MantidWidgets::Batch::JobTreeViewSubscriber::notifyFilterReset(), and MantidQt::MantidWidgets::Batch::FilteredTreeModel::resetPredicate().
Referenced by appendAndEditAtChildRow(), applyNavigationResult(), findOrMakeCellBelow(), and removeRowAt().
|
private |
Definition at line 399 of file JobTreeView.cpp.
References m_mainModel.
Referenced by appendAndEditAtChildRow(), appendAndEditAtRowBelow(), appendChildRowOf(), appendSubtreeAt(), applyNavigationResult(), cellAt(), cellsAt(), commitData(), insertChildRowOf(), insertSubtreeAt(), isOnlyChildOfRoot(), removeRowAt(), replaceSubtreeAt(), setCellAt(), and setCellsAt().
|
private |
Definition at line 285 of file JobTreeView.cpp.
References MantidQt::MantidWidgets::Batch::areOnSameRow(), fromFilteredModel(), hasEditorOpen(), mapToMainModel(), and MantidQt::MantidWidgets::Batch::StrictQModelIndex< Derived >::untyped().
Referenced by removeRowAt().
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 149 of file JobTreeView.cpp.
References findImplicitlySelected(), and index.
Referenced by removeSelectedRequested(), selectedSubtreeRoots(), and selectedSubtrees().
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 103 of file JobTreeView.cpp.
References selectedRowLocations().
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 89 of file JobTreeView.cpp.
References selectedRowLocations().
|
overrideprotectedslot |
Definition at line 57 of file JobTreeView.cpp.
References m_notifyee, and MantidQt::MantidWidgets::Batch::JobTreeViewSubscriber::notifySelectionChanged().
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 202 of file JobTreeView.cpp.
References closeEditorIfCellIsUneditable(), MantidQt::MantidWidgets::Batch::RowLocationAdapter::indexAt(), m_adaptedMainModel, rowLocation(), and MantidQt::MantidWidgets::Batch::QtStandardItemTreeModelAdapter::setCellAtCellIndex().
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 220 of file JobTreeView.cpp.
References closeAnyOpenEditorsOnUneditableCells(), MantidQt::MantidWidgets::Batch::RowLocationAdapter::indexAt(), m_adaptedMainModel, rowLocation(), and MantidQt::MantidWidgets::Batch::QtStandardItemTreeModelAdapter::setCellsAtRow().
|
protected |
Definition at line 274 of file JobTreeView.cpp.
References m_mainModel.
Referenced by JobTreeView().
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 132 of file JobTreeView.cpp.
References setHintsForColumn().
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 128 of file JobTreeView.cpp.
Referenced by setHintsForColumn().
|
private |
Definition at line 290 of file JobTreeView.cpp.
References MantidQt::MantidWidgets::Batch::above(), MantidQt::MantidWidgets::Batch::below(), MantidQt::MantidWidgets::Batch::hasRowAbove(), MantidQt::MantidWidgets::Batch::hasRowBelow(), and index.
Referenced by removeRowAt().
|
overridevirtual |
Implements MantidQt::MantidWidgets::Batch::IJobTreeView.
Definition at line 281 of file JobTreeView.cpp.
References m_notifyee.
Referenced by MantidQt::MantidWidgets::Batch::JobTreeViewSignalAdapter::JobTreeViewSignalAdapter().
|
staticprivate |
Definition at line 108 of file JobTreeView.h.
Referenced by appendChildRowOf(), deadCell(), and insertChildRowOf().
|
private |
Definition at line 144 of file JobTreeView.h.
Referenced by appendAndEditAtChildRow(), appendChildRowOf(), applyNavigationResult(), cellAt(), cellsAt(), closeAnyOpenEditorsOnUneditableCells(), commitData(), findOrMakeCellBelow(), insertChildRowOf(), insertSubtreeAt(), removeRowAt(), setCellAt(), and setCellsAt().
|
private |
Definition at line 146 of file JobTreeView.h.
Referenced by appendAllUnselectedDescendants(), enableFiltering(), expanded(), filterRowsBy(), fromFilteredModel(), hasFilter(), hasNoSelectedDescendants(), JobTreeView(), mapToFilteredModel(), mapToMainModel(), navigation(), and resetFilter().
|
private |
Definition at line 148 of file JobTreeView.h.
Referenced by commitData(), and edit().
|
private |
Definition at line 147 of file JobTreeView.h.
Referenced by commitData(), edit(), and hasEditorOpen().
|
private |
Definition at line 143 of file JobTreeView.h.
Referenced by appendAndEditAtRowBelow(), appendChildRowOf(), appendSubtreeAt(), closeAnyOpenEditorsOnUneditableCells(), enableFiltering(), fromMainModel(), insertChildRowOf(), isOnlyChild(), JobTreeView(), rowLocation(), and setHeaderLabels().
|
private |
Definition at line 142 of file JobTreeView.h.
Referenced by appendAndEditAtChildRow(), appendAndEditAtChildRowRequested(), appendAndEditAtRowBelow(), appendAndEditAtRowBelowRequested(), applyNavigationResult(), commitData(), copySelectedRequested(), cutSelectedRequested(), editAtRowAboveRequested(), pasteSelectedRequested(), removeSelectedRequested(), resetFilter(), selectionChanged(), and subscribe().