QtPdWidgets  2.3.1
ParameterSetWidget.h
Go to the documentation of this file.
1 /*****************************************************************************
2  *
3  * Copyright (C) 2023 Daniel Ramirez <dr@igh.de>
4  * 2023 Florian Pose <fp@igh.de>
5  *
6  * This file is part of the QtPdWidgets library.
7  *
8  * The QtPdWidgets library is free software: you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public License as
10  * published by the Free Software Foundation, either version 3 of the License,
11  * or (at your option) any later version.
12  *
13  * The QtPdWidgets library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
16  * General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with the QtPdWidgets Library. If not, see
20  * <http://www.gnu.org/licenses/>.
21  *
22  ****************************************************************************/
23 
24 #ifndef PD_PARAMETERSETWIDGET_H
25 #define PD_PARAMETERSETWIDGET_H
26 
27 #include <QtPdCom1/Process.h>
28 
29 #include "Export.h"
30 
31 #include <QFrame>
32 
33 #include <memory>
34 
35 namespace Pd {
36 
37 /****************************************************************************/
38 
89  public QFrame
90 {
91  Q_OBJECT
92 
93  Q_PROPERTY(QString path READ getPath WRITE setPath)
94 
95  public:
96  ParameterSetWidget(QWidget *parent = nullptr);
97  virtual ~ParameterSetWidget();
98 
99  void setProcesses(QSet<QtPdCom::Process *> processes);
100 
101  void setPath(const QString &);
102  QString getPath() const;
103 
104  protected:
105  bool event(QEvent *) override;
106  QSize sizeHint() const override;
107 
108  private:
109  struct PD_PRIVATE Impl;
110  std::unique_ptr<Impl> impl;
111 };
112 
113 /****************************************************************************/
114 
115 } // namespace
116 
117 #endif
std::unique_ptr< Impl > impl
Definition: ParameterSetWidget.h:110
Quick-selector widget for parameter sets.
Definition: ParameterSetWidget.h:88
Definition: Bar.h:36
Definition: ParameterSetWidget.cpp:50
#define PD_PRIVATE
Definition: Export.h:28
#define PD_PUBLIC
Definition: Export.h:33