AddProcessDialog.hpp
1 #pragma once
2 #include <Process/ProcessList.hpp>
3 
4 #include <QDialog>
5 
6 #include <score_plugin_scenario_export.h>
7 class QListWidget;
8 namespace Scenario
9 {
10 class SCORE_PLUGIN_SCENARIO_EXPORT AddProcessDialog final : public QDialog
11 {
12 public:
13  using Key = typename Process::ProcessFactoryList::key_type;
14 
16  const Process::ProcessFactoryList& plist, Process::ProcessFlags acceptable,
17  QWidget* parent);
19 
20  void launchWindow();
21 
22  std::function<void(Key, QString)> on_okPressed;
23 
24 private:
25  void updateProcesses(const QString& str);
26  void setup();
27 
28  const Process::ProcessFactoryList& m_factoryList;
29  QListWidget* m_categories{};
30  QListWidget* m_processes{};
31  Process::ProcessFlags m_flags{};
32 };
33 }
Definition: ProcessList.hpp:10
Definition: AddProcessDialog.hpp:11
ProcessFlags
Various settings for processes.
Definition: ProcessFlags.hpp:17
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14