Mantid
Loading...
Searching...
No Matches
Signals | Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
AlgHistoryTreeWidget Class Reference

#include <AlgorithmHistoryWindow.h>

Inheritance diagram for AlgHistoryTreeWidget:

Signals

void rollAlgorithmHistory (int index)
 
void unrollAlgorithmHistory (const std::vector< int > &indicies)
 
void updateAlgorithmHistoryWindow (Mantid::API::AlgorithmHistory_const_sptr algHistory)
 

Public Member Functions

 AlgHistoryTreeWidget (QWidget *w)
 Constructor. More...
 
void populateAlgHistoryTreeWidget (const Mantid::API::WorkspaceHistory &wsHist)
 

Protected Member Functions

void selectionChanged (const QItemSelection &selected, const QItemSelection &deselected) override
 

Private Slots

void onItemChanged (QTreeWidgetItem *item, int index)
 

Private Member Functions

QString concatVersionwithName (const std::string &name, const int version)
 
void getItemIndex (QTreeWidgetItem *item, int &index)
 
void itemChecked (QTreeWidgetItem *item, int index)
 
void itemUnchecked (QTreeWidgetItem *item, int index)
 
void populateNestedHistory (AlgHistoryItem *parentWidget, const Mantid::API::AlgorithmHistory_sptr &history)
 
void treeSelectionChanged ()
 
void uncheckAllChildren (QTreeWidgetItem *item, int index)
 

Private Attributes

QString m_algName
 
int m_nVersion
 

Static Private Attributes

static const int UNROLL_COLUMN_INDEX = 1
 

Detailed Description

Definition at line 57 of file AlgorithmHistoryWindow.h.

Constructor & Destructor Documentation

◆ AlgHistoryTreeWidget()

AlgHistoryTreeWidget::AlgHistoryTreeWidget ( QWidget *  w)
inlineexplicit

Constructor.

Definition at line 67 of file AlgorithmHistoryWindow.h.

References onItemChanged().

Member Function Documentation

◆ concatVersionwithName()

QString AlgHistoryTreeWidget::concatVersionwithName ( const std::string &  name,
const int  version 
)
private

◆ getItemIndex()

void AlgHistoryTreeWidget::getItemIndex ( QTreeWidgetItem *  item,
int &  index 
)
private

Definition at line 641 of file AlgorithmHistoryWindow.cpp.

References index.

Referenced by itemChecked(), and itemUnchecked().

◆ itemChecked()

void AlgHistoryTreeWidget::itemChecked ( QTreeWidgetItem *  item,
int  index 
)
private

Definition at line 662 of file AlgorithmHistoryWindow.cpp.

References getItemIndex(), index, and unrollAlgorithmHistory().

Referenced by onItemChanged().

◆ itemUnchecked()

void AlgHistoryTreeWidget::itemUnchecked ( QTreeWidgetItem *  item,
int  index 
)
private

Definition at line 689 of file AlgorithmHistoryWindow.cpp.

References getItemIndex(), index, rollAlgorithmHistory(), and uncheckAllChildren().

Referenced by onItemChanged().

◆ onItemChanged

void AlgHistoryTreeWidget::onItemChanged ( QTreeWidgetItem *  item,
int  index 
)
privateslot

Definition at line 631 of file AlgorithmHistoryWindow.cpp.

References index, itemChecked(), itemUnchecked(), and UNROLL_COLUMN_INDEX.

Referenced by AlgHistoryTreeWidget().

◆ populateAlgHistoryTreeWidget()

void AlgHistoryTreeWidget::populateAlgHistoryTreeWidget ( const Mantid::API::WorkspaceHistory wsHist)

◆ populateNestedHistory()

void AlgHistoryTreeWidget::populateNestedHistory ( AlgHistoryItem parentWidget,
const Mantid::API::AlgorithmHistory_sptr history 
)
private

◆ rollAlgorithmHistory

void AlgHistoryTreeWidget::rollAlgorithmHistory ( int  index)
signal

Referenced by itemUnchecked().

◆ selectionChanged()

void AlgHistoryTreeWidget::selectionChanged ( const QItemSelection &  selected,
const QItemSelection &  deselected 
)
overrideprotected

Definition at line 720 of file AlgorithmHistoryWindow.cpp.

References treeSelectionChanged().

◆ treeSelectionChanged()

void AlgHistoryTreeWidget::treeSelectionChanged ( )
private

Definition at line 714 of file AlgorithmHistoryWindow.cpp.

References updateAlgorithmHistoryWindow().

Referenced by selectionChanged().

◆ uncheckAllChildren()

void AlgHistoryTreeWidget::uncheckAllChildren ( QTreeWidgetItem *  item,
int  index 
)
private

Definition at line 705 of file AlgorithmHistoryWindow.cpp.

References index, and uncheckAllChildren().

Referenced by itemUnchecked(), and uncheckAllChildren().

◆ unrollAlgorithmHistory

void AlgHistoryTreeWidget::unrollAlgorithmHistory ( const std::vector< int > &  indicies)
signal

Referenced by itemChecked().

◆ updateAlgorithmHistoryWindow

void AlgHistoryTreeWidget::updateAlgorithmHistoryWindow ( Mantid::API::AlgorithmHistory_const_sptr  algHistory)
signal

Referenced by treeSelectionChanged().

Member Data Documentation

◆ m_algName

QString AlgHistoryTreeWidget::m_algName
private

Definition at line 88 of file AlgorithmHistoryWindow.h.

◆ m_nVersion

int AlgHistoryTreeWidget::m_nVersion
private

Definition at line 89 of file AlgorithmHistoryWindow.h.

◆ UNROLL_COLUMN_INDEX

const int AlgHistoryTreeWidget::UNROLL_COLUMN_INDEX = 1
staticprivate

Definition at line 87 of file AlgorithmHistoryWindow.h.

Referenced by onItemChanged().


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