File failed to load: https://isis.astrogeology.usgs.gov/3.9.0/Object/assets/jax/output/NativeMML/config.js
Isis 3 Developer Reference
AbstractProjectItemView.h
Go to the documentation of this file.
1 #ifndef AbstractProjectItemView_h
2 #define AbstractProjectItemView_h
3 
26 #include <QMainWindow>
27 
28 class QAction;
29 class QDragEnterEvent;
30 class QWidget;
31 template <typename T> class QList;
32 
33 namespace Isis {
34 
35  class ProjectItem;
36  class ProjectItemModel;
37 
94 
95  Q_OBJECT
96 
97  public:
99 
100  virtual QSize sizeHint() const;
101 
102  virtual void setModel(ProjectItemModel *model);
103  virtual ProjectItemModel *model();
104 
105  virtual void dragEnterEvent(QDragEnterEvent *event);
106  virtual void dragMoveEvent(QDragMoveEvent *event);
107  virtual void dropEvent(QDropEvent *event);
108 
109  virtual void moveEvent(QMoveEvent *event);
110  virtual void resizeEvent(QResizeEvent *event);
111 
112  virtual void enterEvent(QEvent *event);
113  virtual void leaveEvent(QEvent *event);
114  virtual void enableActions();
115 
117 
118  virtual ProjectItem *currentItem();
120 
121  virtual ProjectItemModel *internalModel();
122  virtual void setInternalModel(ProjectItemModel *model);
123 
124  signals:
125  void windowChangeEvent(bool event);
126 
127  public slots:
128  virtual void addItem(ProjectItem *item);
129  virtual void addItems(QList<ProjectItem *> items);
130 
131  virtual void removeItem(ProjectItem *item);
132  virtual void removeItems(QList<ProjectItem *> items);
133 
134  virtual void disableActions();
135 
136  private:
137  ProjectItemModel *m_internalModel;
138  };
139 }
140 
141 #endif
virtual void enterEvent(QEvent *event)
Enables actions when cursor enters the view.
Definition: AbstractProjectItemView.cpp:192
virtual void addItem(ProjectItem *item)
Adds an item to the view.
Definition: AbstractProjectItemView.cpp:264
virtual void leaveEvent(QEvent *event)
Disables actions when cursor leaves the view.
Definition: AbstractProjectItemView.cpp:202
virtual void dropEvent(QDropEvent *event)
Drops the data into the internal model if it can accept the data.
Definition: AbstractProjectItemView.cpp:162
virtual void disableActions()
Disables toolbars and toolpad actions.
Definition: AbstractProjectItemView.cpp:210
virtual void addItems(QList< ProjectItem *> items)
Adds several items to the view.
Definition: AbstractProjectItemView.cpp:278
virtual void removeItems(QList< ProjectItem *> items)
Removes several items from the view.
Definition: AbstractProjectItemView.cpp:306
virtual void setInternalModel(ProjectItemModel *model)
Sets the internal model of the view.
Definition: AbstractProjectItemView.cpp:111
virtual void setModel(ProjectItemModel *model)
Sets the model used by the view.
Definition: AbstractProjectItemView.cpp:83
virtual QSize sizeHint() const
Returns the suggested size.
Definition: AbstractProjectItemView.cpp:67
void windowChangeEvent(bool event)
virtual void moveEvent(QMoveEvent *event)
Definition: AbstractProjectItemView.cpp:173
virtual void removeItem(ProjectItem *item)
Removes an item to the view.
Definition: AbstractProjectItemView.cpp:292
AbstractProjectItemView is a base class for views of a ProjectItemModel in Qt&#39;s model-view framework...
Definition: AbstractProjectItemView.h:93
Provides access to data stored in a Project through Qt&#39;s model-view framework.
Definition: ProjectItemModel.h:146
virtual ProjectItem * currentItem()
Returns the current item of the model.
Definition: AbstractProjectItemView.cpp:242
virtual ProjectItemModel * internalModel()
Returns the internal model of the view.
Definition: AbstractProjectItemView.cpp:122
virtual QList< QAction * > contextMenuActions()
Returns a list of actions appropriate for a context menu.
Definition: AbstractProjectItemView.cpp:232
virtual void dragMoveEvent(QDragMoveEvent *event)
Accepts the drag event if the internal model can accept the mime data.
Definition: AbstractProjectItemView.cpp:148
virtual void dragEnterEvent(QDragEnterEvent *event)
Accepts the drag enter event if the internal model can accept the mime data.
Definition: AbstractProjectItemView.cpp:133
AbstractProjectItemView(QWidget *parent=0)
Constructs the AbstractProjectItemView.
Definition: AbstractProjectItemView.cpp:48
virtual QList< ProjectItem * > selectedItems()
Return the selected items of the model.
Definition: AbstractProjectItemView.cpp:252
Represents an item of a ProjectItemModel in Qt&#39;s model-view framework.
Definition: ProjectItem.h:146
Definition: BoxcarCachingAlgorithm.h:29
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
virtual void resizeEvent(QResizeEvent *event)
Definition: AbstractProjectItemView.cpp:180
virtual void enableActions()
Enables toolbars and toolpad actions.
Definition: AbstractProjectItemView.cpp:220
virtual ProjectItemModel * model()
Returns the model used by the view.
Definition: AbstractProjectItemView.cpp:97

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 USGS Astrogeology Discussion Board
To report a bug, or suggest a feature go to: ISIS Github
File Modified: 07/12/2023 23:13:52