1#ifndef AbstractProjectItemView_h
2#define AbstractProjectItemView_h
17template <
typename T>
class QList;
22 class ProjectItemModel;
93 virtual void dropEvent(QDropEvent *event);
95 virtual void moveEvent(QMoveEvent *event);
115 virtual void addItems(QList<ProjectItem *> items);
118 virtual void removeItems(QList<ProjectItem *> items);
AbstractProjectItemView is a base class for views of a ProjectItemModel in Qt's model-view framework.
Definition AbstractProjectItemView.h:79
virtual void moveEvent(QMoveEvent *event)
Definition AbstractProjectItemView.cpp:160
virtual QList< QAction * > contextMenuActions()
Returns a list of actions appropriate for a context menu.
Definition AbstractProjectItemView.cpp:219
virtual void dropEvent(QDropEvent *event)
Drops the data into the internal model if it can accept the data.
Definition AbstractProjectItemView.cpp:149
virtual void enableActions()
Enables toolbars and toolpad actions.
Definition AbstractProjectItemView.cpp:207
virtual void dragEnterEvent(QDragEnterEvent *event)
Accepts the drag enter event if the internal model can accept the mime data.
Definition AbstractProjectItemView.cpp:120
virtual void resizeEvent(QResizeEvent *event)
Definition AbstractProjectItemView.cpp:167
virtual void dragMoveEvent(QDragMoveEvent *event)
Accepts the drag event if the internal model can accept the mime data.
Definition AbstractProjectItemView.cpp:135
virtual void disableActions()
Disables toolbars and toolpad actions.
Definition AbstractProjectItemView.cpp:197
virtual void enterEvent(QEvent *event)
Enables actions when cursor enters the view.
Definition AbstractProjectItemView.cpp:179
void windowChangeEvent(bool event)
virtual QList< ProjectItem * > selectedItems()
Return the selected items of the model.
Definition AbstractProjectItemView.cpp:239
virtual void addItem(ProjectItem *item)
Adds an item to the view.
Definition AbstractProjectItemView.cpp:251
virtual QSize sizeHint() const
Returns the suggested size.
Definition AbstractProjectItemView.cpp:55
virtual void removeItems(QList< ProjectItem * > items)
Removes several items from the view.
Definition AbstractProjectItemView.cpp:293
virtual ProjectItemModel * model()
Returns the model used by the view.
Definition AbstractProjectItemView.cpp:84
virtual void setInternalModel(ProjectItemModel *model)
Sets the internal model of the view.
Definition AbstractProjectItemView.cpp:98
virtual void addItems(QList< ProjectItem * > items)
Adds several items to the view.
Definition AbstractProjectItemView.cpp:265
virtual void removeItem(ProjectItem *item)
Removes an item to the view.
Definition AbstractProjectItemView.cpp:279
AbstractProjectItemView(QWidget *parent=0)
Constructs the AbstractProjectItemView.
Definition AbstractProjectItemView.cpp:36
virtual void setModel(ProjectItemModel *model)
Sets the model used by the view.
Definition AbstractProjectItemView.cpp:70
virtual ProjectItem * currentItem()
Returns the current item of the model.
Definition AbstractProjectItemView.cpp:229
virtual ProjectItemModel * internalModel()
Returns the internal model of the view.
Definition AbstractProjectItemView.cpp:109
virtual void leaveEvent(QEvent *event)
Disables actions when cursor leaves the view.
Definition AbstractProjectItemView.cpp:189
Represents an item of a ProjectItemModel in Qt's model-view framework.
Definition ProjectItem.h:134
Provides access to data stored in a Project through Qt's model-view framework.
Definition ProjectItemModel.h:132
This is free and unencumbered software released into the public domain.
Definition BoxcarCachingAlgorithm.h:13
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16