mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-25 06:39:58 +00:00
34 lines
801 B
C++
34 lines
801 B
C++
// Aseprite Document Library
|
|
// Copyright (c) 2001-2014 David Capello
|
|
//
|
|
// This file is released under the terms of the MIT license.
|
|
// Read LICENSE.txt for more information.
|
|
|
|
#ifndef DOC_DOCUMENTS_OBSERVER_H_INCLUDED
|
|
#define DOC_DOCUMENTS_OBSERVER_H_INCLUDED
|
|
#pragma once
|
|
|
|
namespace doc {
|
|
class Document;
|
|
|
|
class CreateDocumentArgs {
|
|
public:
|
|
CreateDocumentArgs() : m_doc(NULL) { }
|
|
Document* document() { return m_doc; }
|
|
void setDocument(Document* doc) { m_doc = doc; }
|
|
private:
|
|
Document* m_doc;
|
|
};
|
|
|
|
class DocumentsObserver {
|
|
public:
|
|
virtual ~DocumentsObserver() { }
|
|
virtual void onCreateDocument(CreateDocumentArgs* args) { }
|
|
virtual void onAddDocument(Document* doc) { }
|
|
virtual void onRemoveDocument(Document* doc) { }
|
|
};
|
|
|
|
} // namespace doc
|
|
|
|
#endif
|