2#include <score/plugins/ProjectSettings/ProjectSettingsModel.hpp>
3#include <score/plugins/settingsdelegate/SettingsDelegateModel.hpp>
5#include <score_plugin_deviceexplorer_export.h>
8namespace Explorer::Settings
12 QString logNothing{
"Nothing"};
13 QString logUnfolded{
"Unfolded"};
14 QString logEverything{
"Everything"};
15 operator QStringList()
const {
return {logNothing, logUnfolded, logEverything}; }
22 bool m_LocalTree =
false;
28 SCORE_SETTINGS_PARAMETER_HPP(SCORE_PLUGIN_DEVICEEXPLORER_EXPORT,
bool,
LocalTree)
29 SCORE_SETTINGS_PARAMETER_HPP(SCORE_PLUGIN_DEVICEEXPLORER_EXPORT, QString, LogLevel)
32SCORE_SETTINGS_PARAMETER(
Model, LogLevel)
36namespace Explorer::ProjectSettings
43 "1f923578-08c3-49be-9ba9-69c144ee2e32")
45namespace Explorer::ProjectSettings
50 SCORE_SERIALIZE_FRIENDS
51 MODEL_METADATA_IMPL(Model)
53 qreal m_MidiImportRatio = 1.;
54 bool m_RefreshOnStart =
false;
55 bool m_ReconnectOnStart =
false;
61 template <
typename Impl>
63 :
score::ProjectSettingsModel{ctx, vis, parent}
68 SCORE_SETTINGS_PARAMETER_HPP(
69 SCORE_PLUGIN_DEVICEEXPLORER_EXPORT, qreal, MidiImportRatio)
70 SCORE_SETTINGS_PARAMETER_HPP(SCORE_PLUGIN_DEVICEEXPLORER_EXPORT,
bool, RefreshOnStart)
71 SCORE_SETTINGS_PARAMETER_HPP(
72 SCORE_PLUGIN_DEVICEEXPLORER_EXPORT,
bool, ReconnectOnStart)
75SCORE_SETTINGS_PARAMETER(Model, MidiImportRatio)
76SCORE_SETTINGS_PARAMETER(Model, RefreshOnStart)
77SCORE_SETTINGS_PARAMETER(Model, ReconnectOnStart)
Definition ExplorerModel.hpp:19
Reimplement to instantiate document plug-ins.
Definition DocumentPluginCreator.hpp:25
Definition ProjectSettingsModel.hpp:9
Definition SettingsDelegateModel.hpp:16
Local tree provides a way to extend the tree given through the Engine::Network::LocalDevice.
Definition BaseCallbackWrapper.hpp:9
Base toolkit upon which the software is built.
Definition Application.cpp:90
Definition ExplorerModel.hpp:11
Used to access all the application-wide state and structures.
Definition ApplicationContext.hpp:24
Definition DocumentContext.hpp:18