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;
30 SCORE_SETTINGS_PARAMETER_HPP(SCORE_PLUGIN_DEVICEEXPLORER_EXPORT,
bool,
LocalTree)
31 SCORE_SETTINGS_PARAMETER_HPP(SCORE_PLUGIN_DEVICEEXPLORER_EXPORT, QString, LogLevel)
34SCORE_SETTINGS_PARAMETER(
Model, LogLevel)
38namespace Explorer::ProjectSettings
45 "1f923578-08c3-49be-9ba9-69c144ee2e32")
47namespace Explorer::ProjectSettings
52 SCORE_SERIALIZE_FRIENDS
53 MODEL_METADATA_IMPL(Model)
55 qreal m_MidiImportRatio = 1.;
56 bool m_RefreshOnStart =
false;
57 bool m_ReconnectOnStart =
false;
63 template <
typename Impl>
65 :
score::ProjectSettingsModel{ctx, vis, parent}
70 SCORE_SETTINGS_PARAMETER_HPP(
71 SCORE_PLUGIN_DEVICEEXPLORER_EXPORT, qreal, MidiImportRatio)
72 SCORE_SETTINGS_PARAMETER_HPP(SCORE_PLUGIN_DEVICEEXPLORER_EXPORT,
bool, RefreshOnStart)
73 SCORE_SETTINGS_PARAMETER_HPP(
74 SCORE_PLUGIN_DEVICEEXPLORER_EXPORT,
bool, ReconnectOnStart)
77SCORE_SETTINGS_PARAMETER(Model, MidiImportRatio)
78SCORE_SETTINGS_PARAMETER(Model, RefreshOnStart)
79SCORE_SETTINGS_PARAMETER(Model, ReconnectOnStart)
Definition ExplorerModel.hpp:19
Definition UuidKey.hpp:345
Reimplement to instantiate document plug-ins.
Definition DocumentPluginCreator.hpp:25
Definition ProjectSettingsModel.hpp:9
Definition SettingsDelegateModel.hpp:18
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:112
Definition ExplorerModel.hpp:11
Used to access all the application-wide state and structures.
Definition ApplicationContext.hpp:25
Definition DocumentContext.hpp:18