mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-10 01:13:49 +00:00
Rename CreateDocumentArgs -> CreateDocArgs
This commit is contained in:
parent
2088d331ff
commit
e88952572c
@ -145,7 +145,7 @@ void Context::executeCommand(Command* command, const Params& params)
|
||||
#endif
|
||||
}
|
||||
|
||||
void Context::onCreateDocument(CreateDocumentArgs* args)
|
||||
void Context::onCreateDocument(CreateDocArgs* args)
|
||||
{
|
||||
args->setDocument(new Doc(nullptr));
|
||||
}
|
||||
|
@ -88,7 +88,7 @@ namespace app {
|
||||
|
||||
protected:
|
||||
// DocsObserver impl
|
||||
void onCreateDocument(CreateDocumentArgs* args) override;
|
||||
void onCreateDocument(CreateDocArgs* args) override;
|
||||
void onAddDocument(Doc* doc) override;
|
||||
void onRemoveDocument(Doc* doc) override;
|
||||
|
||||
|
@ -34,7 +34,7 @@ Doc* Docs::add(int width, int height, ColorMode mode, int ncolors)
|
||||
{
|
||||
// Ask to observers to create the document (maybe a doc::Document or
|
||||
// a derived class).
|
||||
CreateDocumentArgs args;
|
||||
CreateDocArgs args;
|
||||
notify_observers(&DocsObserver::onCreateDocument, &args);
|
||||
if (!args.document())
|
||||
args.setDocument(new Doc(nullptr));
|
||||
|
@ -11,9 +11,9 @@
|
||||
namespace app {
|
||||
class Doc;
|
||||
|
||||
class CreateDocumentArgs {
|
||||
class CreateDocArgs {
|
||||
public:
|
||||
CreateDocumentArgs() : m_doc(nullptr) { }
|
||||
CreateDocArgs() : m_doc(nullptr) { }
|
||||
Doc* document() { return m_doc; }
|
||||
void setDocument(Doc* doc) { m_doc = doc; }
|
||||
private:
|
||||
@ -23,7 +23,7 @@ namespace app {
|
||||
class DocsObserver {
|
||||
public:
|
||||
virtual ~DocsObserver() { }
|
||||
virtual void onCreateDocument(CreateDocumentArgs* args) { }
|
||||
virtual void onCreateDocument(CreateDocArgs* args) { }
|
||||
virtual void onAddDocument(Doc* doc) { }
|
||||
virtual void onRemoveDocument(Doc* doc) { }
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user