26 #include <QMessageBox>
29 #include "ImageList.h"
37 RemoveImagesWorkOrder::RemoveImagesWorkOrder(
Project *project) :
WorkOrder(project) {
39 QAction::setText(tr(
"&Delete images from project..."));
40 QUndoCommand::setText(tr(
"Delete images from project"));
51 RemoveImagesWorkOrder::~RemoveImagesWorkOrder() {
68 return (images->count() > 0);
82 qDebug()<<
"RemoveImagesWorkOrder::syncRedo project()->directory()->model() = "<<
project()->
directory()->
model();
Internalizes a list of images and allows for operations on the entire list.
The main project for cnetsuite.
Project * project() const
Returns the Project this WorkOrder is attached to.
ProjectItem * currentItem()
Returns the current item of the internal selection model.
ProjectItemModel * model()
Gets the ProjectItemModel for this directory.
Parent class for anything that performs an action in Project.
virtual void removeItem(ProjectItem *item)
Removes an item and its children from the model.
Directory * directory() const
Returns the directory associated with this Project.
bool execute()
The (child) implementation of this method should prompt the user/gather state by any means necessary...
void setModifiesDiskState(bool changesProjectOnDisk)
.
virtual bool isExecutable(ImageList *images)
Determines if we can remove this ImageList.
Represents an item of a ProjectItemModel in Qt's model-view framework.
Removes selected images from current project.
virtual bool execute()
The (child) implementation of this method should prompt the user/gather state by any means necessary...
void syncRedo()
This method is designed to be implemented by children work orders.