Isis 3.0 Programmer Reference
Back | Home
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  namespace CnetViz {
14 
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 
56 #endif
Base class for an item in the tree.
Base class for an item that is a parent in the tree.

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:13:41