MuseScore  3.4
Music composition and notation
pluginCreator.h
Go to the documentation of this file.
1 //=============================================================================
2 // MuseScore
3 // Music Composition & Notation
4 //
5 // Copyright (C) 2002-2011 Werner Schweer
6 //
7 // This program is free software; you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License version 2
9 // as published by the Free Software Foundation and appearing in
10 // the file LICENCE.GPL
11 //=============================================================================
12 
13 #ifndef __PLUGIN_CREATOR_H__
14 #define __PLUGIN_CREATOR_H__
15 
16 #include "ui_pluginCreator.h"
17 
18 namespace Ms {
19 
20 class QmlPlugin;
21 class HelpBrowser;
22 
23 //---------------------------------------------------------
24 // PluginCreator
25 //---------------------------------------------------------
26 
27 class PluginCreator : public QMainWindow, public Ui::PluginCreatorBase {
28  Q_OBJECT
29 
30  enum class PCState : char { INIT, EMPTY, CLEAN, DIRTY };
32  bool created;
33 
34  QString path;
37  QDockWidget* manualDock;
38  QPointer<QQuickView> view;
39  QPointer<QDockWidget> dock;
40 
41  void setState(PCState newState);
42  virtual void closeEvent(QCloseEvent*);
43  void readSettings();
44  void setTitle(const QString&);
45  QString manualPath();
46  void doSavePlugin(bool saveas);
47 
48  private slots:
49  void runClicked();
50  void stopClicked();
51  void loadPlugin();
52  void load();
53  void savePlugin();
54  void savePluginAs();
55  void newPlugin();
56  void textChanged();
57  void closePlugin();
58  void showManual();
59  void qmlWarnings(const QList<QQmlError>&);
60 
61  signals:
62  void closed(bool);
63 
64  public:
65  PluginCreator(QWidget* parent = 0);
66  void writeSettings();
67  void msg(const QString&);
68  };
69 
70 
71 } // namespace Ms
72 #endif
QDockWidget * manualDock
Definition: pluginCreator.h:37
Definition: helpBrowser.h:35
void msg(const QString &)
Definition: pluginCreator.cpp:569
Definition: qmlplugin.h:49
void readSettings()
Definition: pluginCreator.cpp:226
QString manualPath()
Definition: pluginCreator.cpp:119
void loadPlugin()
Definition: pluginCreator.cpp:424
void newPlugin()
Definition: pluginCreator.cpp:510
PCState
Definition: pluginCreator.h:30
QPointer< QDockWidget > dock
Definition: pluginCreator.h:39
Definition: pluginCreator.h:27
void savePlugin()
Definition: pluginCreator.cpp:496
QString path
Definition: pluginCreator.h:34
QPointer< QQuickView > view
Definition: pluginCreator.h:38
void writeSettings()
Definition: pluginCreator.cpp:211
void closePlugin()
Definition: pluginCreator.cpp:399
void stopClicked()
Definition: pluginCreator.cpp:415
void showManual()
Definition: pluginCreator.cpp:579
QmlPlugin * item
Definition: pluginCreator.h:35
PluginCreator(QWidget *parent=0)
Definition: pluginCreator.cpp:36
void setState(PCState newState)
Definition: pluginCreator.cpp:130
bool created
Definition: pluginCreator.h:32
void savePluginAs()
Definition: pluginCreator.cpp:501
Definition: aeolus.cpp:26
void doSavePlugin(bool saveas)
Definition: pluginCreator.cpp:466
void runClicked()
Definition: pluginCreator.cpp:293
HelpBrowser * helpBrowser
Definition: pluginCreator.h:36
void textChanged()
Definition: pluginCreator.cpp:549
void load()
Definition: pluginCreator.cpp:441
PCState state
Definition: pluginCreator.h:31
virtual void closeEvent(QCloseEvent *)
Definition: pluginCreator.cpp:243
void qmlWarnings(const QList< QQmlError > &)
Definition: pluginCreator.cpp:559
void closed(bool)
void setTitle(const QString &)
Definition: pluginCreator.cpp:198