Isis 3.0 Programmer Reference
Back | Home
AbstractProjectItemView.h
Go to the documentation of this file.
1 #ifndef AbstractProjectItemView_h
2 #define AbstractProjectItemView_h
3 
26 #include <QWidget>
27 
28 class QAction;
29 class QDragEnterEvent;
30 template <typename T> class QList;
31 
32 namespace Isis {
33 
34  class ProjectItem;
35  class ProjectItemModel;
65 
66  Q_OBJECT
67 
68  public:
70 
71  virtual void setModel(ProjectItemModel *model);
72  virtual ProjectItemModel *model();
73 
74  virtual void dragEnterEvent(QDragEnterEvent *event);
75  virtual void dragMoveEvent(QDragMoveEvent *event);
76  virtual void dropEvent(QDropEvent *event);
77 
81 
83 
90 
91  virtual ProjectItem *currentItem();
93 
95  virtual void setInternalModel(ProjectItemModel *model);
96 
97  public slots:
98  virtual void addItem(ProjectItem *item);
99  virtual void addItems(QList<ProjectItem *> items);
100 
101  virtual void removeItem(ProjectItem *item);
102  virtual void removeItems(QList<ProjectItem *> items);
103 
104  private:
106  };
107 
108 }
109 
110 #endif
virtual void addItem(ProjectItem *item)
Adds an item to the view.
virtual QList< QAction * > projectMenuActions()
Returns a list of actions appropriate for a project menu.
virtual void dropEvent(QDropEvent *event)
Drops the data into the internal model if it can accept the data.
virtual void addItems(QList< ProjectItem * > items)
Adds several items to the view.
virtual void setInternalModel(ProjectItemModel *model)
Sets the internal model of the view.
virtual void setModel(ProjectItemModel *model)
Sets the model used by the view.
virtual QList< QAction * > helpMenuActions()
Returns a list of actions appropriate for a help menu.
virtual QList< QAction * > editMenuActions()
Returns a list of actions appropriate for an edit menu.
virtual void removeItem(ProjectItem *item)
Removes an item to the view.
AbstractProjectItemView is a base class for views of a ProjectItemModel in Qt&#39;s model-view framework...
Provides access to data stored in a Project through Qt&#39;s model-view framework.
virtual ProjectItem * currentItem()
Returns the current item of the model.
virtual QList< QAction * > settingsMenuActions()
Returns a list of actions appropriate for a settings menu.
virtual ProjectItemModel * internalModel()
Returns the internal model of the view.
virtual QList< QAction * > contextMenuActions()
Returns a list of actions appropriate for a context menu.
virtual void dragMoveEvent(QDragMoveEvent *event)
Accepts the drag event if the internal model can accept the mime data.
ProjectItemModel * m_internalModel
The internal model used by the view.
virtual QList< QAction * > activeToolBarActions()
Returns a list of actions appropriate for the active tool bar.
virtual void dragEnterEvent(QDragEnterEvent *event)
Accepts the drag enter event if the internal model can accept the mime data.
AbstractProjectItemView(QWidget *parent=0)
Constructs the AbstractProjectItemView.
virtual QList< QAction * > viewMenuActions()
Returns a list of actions appropriate for a view menu.
virtual QList< ProjectItem * > selectedItems()
Return the selected items of the model.
Represents an item of a ProjectItemModel in Qt&#39;s model-view framework.
Definition: ProjectItem.h:113
virtual void removeItems(QList< ProjectItem * > items)
Removes several items from the view.
virtual QList< QAction * > fileMenuActions()
Returns a list of actions appropriate for a file menu.
virtual QList< QAction * > permToolBarActions()
Returns a list of actions appropriate for the permanent tool bar.
virtual QList< QAction * > toolPadActions()
Returns a list of actions appropriate for the tool pad.
virtual ProjectItemModel * model()
Returns the model used by the view.

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:47