Isis Developer Reference
HistoryTreeWidget.h
Go to the documentation of this file.
1 #ifndef HistoryTreeWidget_H
2 #define HistoryTreeWidget_H
3 
4 #include <QTreeWidget>
5 #include <QMutex>
6 
7 
8 class QResizeEvent;
9 class QUndoCommand;
10 
11 namespace Isis {
12  class Project;
13  class WorkOrder;
14 
50  class HistoryTreeWidget : public QTreeWidget {
51  Q_OBJECT
52  public:
53  HistoryTreeWidget(Project *project, QWidget *parent = 0);
54  virtual ~HistoryTreeWidget();
55 
56  void addToHistory(QString historyEntry);
57 
58  protected:
59  int sizeHintForColumn(int column) const;
60 
61  private:
62  void refit();
63  void updateStatus(QTreeWidgetItem *);
64  QMutex m_mutex;
65 
66  private slots:
67  void addToHistory(WorkOrder *);
68  void updateProgressWidgets();
69  void markNotUndone(QTreeWidgetItem *);
70  void markUndone(QTreeWidgetItem *);
71  void handleUndoIndexChanged(int);
72  void removeFromHistory(QObject *);
73  void showHistory();
74  void updateStatus(WorkOrder *);
75 
76 
77  QTreeWidgetItem *undoCommandToTreeItem(const QUndoCommand *);
78 
79  private:
80  Q_DISABLE_COPY(HistoryTreeWidget);
81 
82  Project *m_project;
83  };
84 }
85 
86 #endif
QWidget
Isis::WorkOrder
Provide Undo/redo abilities, serialization, and history for an operation.
Definition: WorkOrder.h:311
Project.h
Isis::HistoryTreeWidget::addToHistory
void addToHistory(QString historyEntry)
Add a non-workorder history to the display.
Definition: HistoryTreeWidget.cpp:165
Isis::Project::workOrderHistory
QList< WorkOrder * > workOrderHistory()
Get the entire list of work orders that have executed.
Definition: Project.cpp:1748
HistoryTreeWidget.h
Isis::HistoryTreeWidget
History Widget for ipce.
Definition: HistoryTreeWidget.h:50
QTreeWidget
Isis::Project::clearing
bool clearing()
Definition: Project.cpp:666
QTreeWidgetItem
Isis::Project::undoStack
QUndoStack * undoStack()
Returns the Projects stack of QUndoCommands.
Definition: Project.cpp:1694
QStringList
Isis::Project
The main project for ipce.
Definition: Project.h:289
Isis::HistoryTreeWidget::~HistoryTreeWidget
virtual ~HistoryTreeWidget()
Clean up allocated memory.
Definition: HistoryTreeWidget.cpp:43
WorkOrder.h
Isis::HistoryTreeWidget::HistoryTreeWidget
HistoryTreeWidget(Project *project, QWidget *parent=0)
Construct a history tree widget.
Definition: HistoryTreeWidget.cpp:17
QUndoCommand
Isis::HistoryTreeWidget::sizeHintForColumn
int sizeHintForColumn(int column) const
Get the preferred size of a given column.
Definition: HistoryTreeWidget.cpp:57
ProgressBar.h
Isis::WorkOrder::progressBar
ProgressBar * progressBar()
Returns the ProgressBar.
Definition: WorkOrder.cpp:975
QObject
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16