Isis 3.0 Programmer Reference
Back | Home
HistoryTreeWidget.h
1 #ifndef HistoryTreeWidget_H
2 #define HistoryTreeWidget_H
3 
4 #include <QTreeWidget>
5 
6 class QResizeEvent;
7 class QUndoCommand;
8 
9 namespace Isis {
10  class Project;
11  class WorkOrder;
12 
28  class HistoryTreeWidget : public QTreeWidget {
29  Q_OBJECT
30  public:
31  HistoryTreeWidget(Project *project, QWidget *parent = 0);
32  virtual ~HistoryTreeWidget();
33 
34  protected:
35  int sizeHintForColumn(int column) const;
36 
37  private:
38  void refit();
39  void updateStatus(QTreeWidgetItem *);
40 
41  private slots:
42  void addToHistory(WorkOrder *);
43  void updateProgressWidgets();
46  void handleUndoIndexChanged(int);
47  void removeFromHistory(QObject *);
48  void showHistory();
49  void updateStatus(WorkOrder *);
50 
51 
53 
54  private:
55  Q_DISABLE_COPY(HistoryTreeWidget);
56 
57  Project *m_project;
58  };
59 }
60 
61 #endif
The main project for cnetsuite.
Definition: Project.h:105
void markUndone(QTreeWidgetItem *)
Display the item as an item that has been undone.
void addToHistory(WorkOrder *)
Add a single work order to the display.
int sizeHintForColumn(int column) const
Get the preferred size of a given column.
void markNotUndone(QTreeWidgetItem *)
Display the item as not an item that has been undone - it&#39;s working or done.
History Widget for cnetsuite.
HistoryTreeWidget(Project *project, QWidget *parent=0)
Construct a history tree widget.
virtual ~HistoryTreeWidget()
Clean up allocated memory.
void handleUndoIndexChanged(int)
The project&#39;s undo stack has changed.
Parent class for anything that performs an action in Project.
Definition: WorkOrder.h:104
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).

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the ISIS Support Center
File Modified: 07/12/2023 23:19:45