Isis Developer Reference
Isis::HistoryTreeWidget Class Reference

History Widget for ipce. More...

#include <HistoryTreeWidget.h>

Inheritance diagram for Isis::HistoryTreeWidget:
Inheritance graph
Collaboration diagram for Isis::HistoryTreeWidget:
Collaboration graph

Public Member Functions

 HistoryTreeWidget (Project *project, QWidget *parent=0)
 Construct a history tree widget.
 
virtual ~HistoryTreeWidget ()
 Clean up allocated memory.
 
void addToHistory (QString historyEntry)
 Add a non-workorder history to the display.
 

Protected Member Functions

int sizeHintForColumn (int column) const
 Get the preferred size of a given column.
 

Detailed Description

History Widget for ipce.

This widget shows the history of work orders performed on the project.

Author
2012-07-23 Steven Lambright

Constructor & Destructor Documentation

◆ HistoryTreeWidget()

Isis::HistoryTreeWidget::HistoryTreeWidget ( Project * project,
QWidget * parent = 0 )

Construct a history tree widget.

Parameters
projectThe project to show history for
parentThe Qt-relationship parent

References addToHistory(), and Isis::Project::undoStack().

◆ ~HistoryTreeWidget()

Isis::HistoryTreeWidget::~HistoryTreeWidget ( )
virtual

Clean up allocated memory.

Member Function Documentation

◆ addToHistory()

void Isis::HistoryTreeWidget::addToHistory ( QString historyEntry)

Add a non-workorder history to the display.

Parameters
(QString)historyEntry The string displayed in the history tree

Referenced by HistoryTreeWidget().

◆ sizeHintForColumn()

int Isis::HistoryTreeWidget::sizeHintForColumn ( int column) const
protected

Get the preferred size of a given column.

This is used by resizeColumnToContents().

The work order name column prefers space not taken by other columns. The progress column prefers 200. The date column prefers a little more than the text size of a date.

Returns
The preferred width of the given column

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