1 #ifndef AbstractProjectItemView_h
2 #define AbstractProjectItemView_h
29 class QDragEnterEvent;
30 template <
typename T>
class QList;
35 class ProjectItemModel;
76 virtual void dropEvent(QDropEvent *event);
virtual void addItem(ProjectItem *item)
Adds an item to the view.
Definition: AbstractProjectItemView.cpp:273
virtual QList< QAction * > projectMenuActions()
Returns a list of actions appropriate for a project menu.
Definition: AbstractProjectItemView.cpp:201
virtual void dropEvent(QDropEvent *event)
Drops the data into the internal model if it can accept the data.
Definition: AbstractProjectItemView.cpp:135
virtual void addItems(QList< ProjectItem * > items)
Adds several items to the view.
Definition: AbstractProjectItemView.cpp:287
virtual void setInternalModel(ProjectItemModel *model)
Sets the internal model of the view.
Definition: AbstractProjectItemView.cpp:84
virtual void setModel(ProjectItemModel *model)
Sets the model used by the view.
Definition: AbstractProjectItemView.cpp:56
virtual QList< QAction * > helpMenuActions()
Returns a list of actions appropriate for a help menu.
Definition: AbstractProjectItemView.cpp:241
virtual QList< QAction * > editMenuActions()
Returns a list of actions appropriate for an edit menu.
Definition: AbstractProjectItemView.cpp:211
virtual void removeItem(ProjectItem *item)
Removes an item to the view.
Definition: AbstractProjectItemView.cpp:301
AbstractProjectItemView is a base class for views of a ProjectItemModel in Qt's model-view framework...
Definition: AbstractProjectItemView.h:64
Provides access to data stored in a Project through Qt's model-view framework.
Definition: ProjectItemModel.h:94
virtual ProjectItem * currentItem()
Returns the current item of the model.
Definition: AbstractProjectItemView.cpp:251
virtual QList< QAction * > settingsMenuActions()
Returns a list of actions appropriate for a settings menu.
Definition: AbstractProjectItemView.cpp:231
virtual ProjectItemModel * internalModel()
Returns the internal model of the view.
Definition: AbstractProjectItemView.cpp:95
virtual QList< QAction * > contextMenuActions()
Returns a list of actions appropriate for a context menu.
Definition: AbstractProjectItemView.cpp:181
virtual void dragMoveEvent(QDragMoveEvent *event)
Accepts the drag event if the internal model can accept the mime data.
Definition: AbstractProjectItemView.cpp:121
virtual QList< QAction * > activeToolBarActions()
Returns a list of actions appropriate for the active tool bar.
Definition: AbstractProjectItemView.cpp:161
virtual void dragEnterEvent(QDragEnterEvent *event)
Accepts the drag enter event if the internal model can accept the mime data.
Definition: AbstractProjectItemView.cpp:106
AbstractProjectItemView(QWidget *parent=0)
Constructs the AbstractProjectItemView.
Definition: AbstractProjectItemView.cpp:44
virtual QList< QAction * > viewMenuActions()
Returns a list of actions appropriate for a view menu.
Definition: AbstractProjectItemView.cpp:221
virtual QList< ProjectItem * > selectedItems()
Return the selected items of the model.
Definition: AbstractProjectItemView.cpp:261
Represents an item of a ProjectItemModel in Qt's model-view framework.
Definition: ProjectItem.h:113
Definition: BoxcarCachingAlgorithm.h:29
virtual void removeItems(QList< ProjectItem * > items)
Removes several items from the view.
Definition: AbstractProjectItemView.cpp:316
virtual QList< QAction * > fileMenuActions()
Returns a list of actions appropriate for a file menu.
Definition: AbstractProjectItemView.cpp:191
virtual QList< QAction * > permToolBarActions()
Returns a list of actions appropriate for the permanent tool bar.
Definition: AbstractProjectItemView.cpp:151
virtual QList< QAction * > toolPadActions()
Returns a list of actions appropriate for the tool pad.
Definition: AbstractProjectItemView.cpp:171
virtual ProjectItemModel * model()
Returns the model used by the view.
Definition: AbstractProjectItemView.cpp:70