/****************************************************************************
Copyright (C) 2010-2012 the Office National des Forêts (ONF), France
and the Association de Recherche Technologie et Sciences (ARTS), Ecole Nationale Suprieure d'Arts et Métiers (ENSAM), Cluny, France.
All rights reserved.
Contact : alexandre.piboule@onf.fr
Developers : Michaël KREBS (ARTS/ENSAM)
This file is part of Computree version 2.0.
Computree is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Computree is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Computree. If not, see .
*****************************************************************************/
#ifndef DM_DOCUMENTMANAGERVIEW_H
#define DM_DOCUMENTMANAGERVIEW_H
#include "dm_documentmanager.h"
#include "dm_documentview.h"
#include "dm_asynchroneprogress.h"
class CT_AbstractResult;
class CT_OutAbstractItemModel;
class DM_DocumentManagerView : public DM_DocumentManager
{
public:
DM_DocumentManagerView();
virtual bool addAllItemDrawableOfResultToActiveDocument(CT_AbstractResult &res, DM_AsynchroneProgress &progress) = 0;
virtual bool addAllItemDrawableOfModelToDocument(CT_AbstractResult &res, CT_OutAbstractItemModel &model, DM_DocumentView *doc, DM_AsynchroneProgress &progress) = 0;
virtual bool addAllItemDrawableOfResultToDocument(CT_AbstractResult &res, DM_DocumentView *doc, DM_AsynchroneProgress &progress) = 0;
virtual bool addAllItemDrawableOfListToActiveDocument(QList &itemList, DM_AsynchroneProgress &progress) = 0;
virtual bool addAllItemDrawableOfListToDocument(QList &itemList, DM_DocumentView *doc, DM_AsynchroneProgress &progress) = 0;
virtual bool removeAllItemDrawableOfResultFromDocuments(CT_AbstractResult &res, DM_AsynchroneProgress &progress) = 0;
virtual bool removeAllItemDrawableOfModelFromDocuments(CT_OutAbstractItemModel &model, DM_AsynchroneProgress &progress) = 0;
virtual bool removeAllItemDrawableOfListFromDocuments(QList &itemList, DM_AsynchroneProgress &progress) = 0;
virtual bool removeAllItemDrawableOfModelFromDocument(CT_OutAbstractItemModel &model, DM_DocumentView *doc, DM_AsynchroneProgress &progress) = 0;
virtual bool removeAllItemDrawableOfListFromDocument(QList &itemList, DM_DocumentView *doc, DM_AsynchroneProgress &progress) = 0;
virtual DM_DocumentView* getActiveDocumentView() = 0;
virtual DM_DocumentView* getDocumentView(int index) const = 0;
virtual int nbDocumentView() const = 0;
};
#endif // DM_DOCUMENTMANAGERVIEW_H