Isis 3 Programmer Reference
AbstractParentItem.h
1 #ifndef AbstractParentItem_H
2 #define AbstractParentItem_H
3 
4 
5 #include "AbstractTreeItem.h"
6 
7 
8 template< typename T > class QList;
9 class QVariant;
10 
11 
12 namespace Isis {
13 
27  class AbstractParentItem : public virtual AbstractTreeItem {
28  public:
30  virtual ~AbstractParentItem();
31 
32  virtual AbstractTreeItem *childAt(int row) const;
33  virtual QList< AbstractTreeItem * > getChildren() const;
34  virtual AbstractTreeItem *getFirstVisibleChild() const;
35  virtual AbstractTreeItem *getLastVisibleChild() const;
36  virtual int indexOf(AbstractTreeItem *child) const;
37  virtual int childCount() const;
38  virtual void addChild(AbstractTreeItem *child);
39  virtual void setFirstVisibleChild(AbstractTreeItem *child);
40  virtual void setLastVisibleChild(AbstractTreeItem *child);
41 
42 
43  private: // disable copying of this class
45  const AbstractParentItem &operator=(const AbstractParentItem &);
46 
47 
48  private:
49  QList< AbstractTreeItem * > * m_children;
50  AbstractTreeItem *m_firstVisibleChild;
51  AbstractTreeItem *m_lastVisibleChild;
52  };
53 }
54 
55 #endif
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Base class for an item in the tree.
Base class for an item that is a parent in the tree.