Isis 3 Programmer Reference
HistoryTreeWidget.h
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();
71  void handleUndoIndexChanged(int);
72  void removeFromHistory(QObject *);
73  void showHistory();
74  void updateStatus(WorkOrder *);
75 
76 
78 
79  private:
80  Q_DISABLE_COPY(HistoryTreeWidget);
81 
82  Project *m_project;
83  };
84 }
85 
86 #endif
void addToHistory(QString historyEntry)
Add a non-workorder history to the display.
The main project for ipce.
Definition: Project.h:289
void markUndone(QTreeWidgetItem *)
Display the item as an item that has been undone.
void markNotUndone(QTreeWidgetItem *)
Display the item as not an item that has been undone - it&#39;s working or done.
History Widget for ipce.
HistoryTreeWidget(Project *project, QWidget *parent=0)
Construct a history tree widget.
virtual ~HistoryTreeWidget()
Clean up allocated memory.
int sizeHintForColumn(int column) const
Get the preferred size of a given column.
void handleUndoIndexChanged(int)
The project&#39;s undo stack has changed.
Provide Undo/redo abilities, serialization, and history for an operation.
Definition: WorkOrder.h:322
void removeFromHistory(QObject *)
A work order was lost...
void updateProgressWidgets()
We need to manually manage these progress widgets because QTreeWidget does a poor job of it...
void showHistory()
This resets the tree widget and re-initializes.
void refit()
This resizes the columns to an okay width for viewing all of the data cleanly.
QTreeWidgetItem * undoCommandToTreeItem(const QUndoCommand *)
Get the QTreeWidgetItem associated with the given undo command (work order).
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31