Isis 3 Developer Reference
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;
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
RubberBandTool * rubberBandTool()
Definition: ToolList.cpp:41
Tool * operator[](int index)
Definition: ToolList.cpp:61
ToolList()
Definition: ToolList.cpp:10
~ToolList()
Definition: ToolList.cpp:16
void append(Tool *tool)
Definition: ToolList.cpp:21
QStackedWidget * toolBarStack()
Definition: ToolList.cpp:46
Rubber banding tool.
Definition: RubberBandTool.h:50
Definition: BoxcarCachingAlgorithm.h:29
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Base class for the Qisis tools.
Definition: Tool.h:81
int count() const
Definition: ToolList.cpp:36
Allows tools to share data between each other.
Definition: ToolList.h:46