USGS

Isis 3.0 Object Programmers' Reference

Home

ToolList.h
Go to the documentation of this file.
1 #ifndef ToolList_h
2 #define ToolList_h
3 
26 #include <QList>
27 
28 #include <QPointer>
29 
30 class QStackedWidget;
31 class QToolBar;
32 
33 namespace Isis {
34  class RubberBandTool;
35  class Tool;
36 
46  class ToolList {
47  public:
48  ToolList();
49  ~ToolList();
50 
51  void append(Tool *tool);
52  int count() const;
53  RubberBandTool *rubberBandTool();
54  QStackedWidget *toolBarStack();
55  QStackedWidget *toolBarStack(QToolBar *toolBar);
56 
57  Tool *operator[](int index);
58 
59  private:
60  Q_DISABLE_COPY(ToolList);
61 
62  QList<Tool *> m_tools;
63 
64  QPointer<QStackedWidget> m_activeToolBarStack;
65  QPointer<RubberBandTool> m_rubberBandTool;
66  };
67 }
68 
69 #endif