Loading...
Searching...
No Matches
ProjectFilesApplicationPlugin.hpp
1#pragma once
2#include <score/plugins/application/GUIApplicationPlugin.hpp>
3
4#include <score_lib_process_export.h>
5
6class QAction;
7
8namespace score
9{
10class Document;
11}
12
13namespace Process
14{
15
18class SCORE_LIB_PROCESS_EXPORT ProjectFilesApplicationPlugin final
19 : public QObject
21{
22public:
25
27
29 void on_documentSaveAs(score::Document& doc, const QString& newFileName) override;
30
31private:
32 void consolidate();
33 void locateMissingFiles();
34 void trimMedia();
35 void removeUnused();
36 void archive();
37
40 score::Document* documentWithFolder(const QString& what);
41
42 QAction* m_consolidate{};
43 QAction* m_locate{};
44 QAction* m_trim{};
45 QAction* m_unused{};
46 QAction* m_archive{};
47};
48}
Definition ProjectFilesApplicationPlugin.hpp:21
void on_documentSaveAs(score::Document &doc, const QString &newFileName) override
on_documentSaveAs Called just before a document is written to newFileName, while it still knows where...
score::GUIElements makeGUIElements() override
makeGUIElements
void on_loadedDocument(score::Document &doc) override
on_loadedDocument Will be called only after a document has been loaded
The Document class is the central part of the software.
Definition Document.hpp:51
Used to extend the software with application-wide data.
Definition GUIApplicationPlugin.hpp:89
Base classes and tools to implement processes and layers.
Definition JSONVisitor.hpp:1115
Base toolkit upon which the software is built.
Definition Application.cpp:116
Specializes ApplicationContext with the QMainWindow.
Definition GUIApplicationContext.hpp:15
Definition GUIApplicationPlugin.hpp:24