QtPdWidgets  2.3.1
SendBroadcastWidget.h
Go to the documentation of this file.
1 /*****************************************************************************
2  *
3  * Copyright (C) 2009 - 2023 Bjarne von Horn <vh@igh.de>
4  *
5  * This file is part of the QtPdWidgets library.
6  *
7  * The QtPdWidgets library is free software: you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public License as
9  * published by the Free Software Foundation, either version 3 of the License,
10  * or (at your option) any later version.
11  *
12  * The QtPdWidgets library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
15  * General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License
18  * along with the QtPdWidgets Library. If not, see
19  * <http://www.gnu.org/licenses/>.
20  *
21  ****************************************************************************/
22 
23 #ifndef PD_SENDBROADCASTWIDGET_H
24 #define PD_SENDBROADCASTWIDGET_H
25 
26 #include "Export.h"
27 
28 #include <QScopedPointer>
29 #include <QString>
30 #include <QWidget>
31 
32 class QLineEdit;
33 class QPushButton;
34 
35 namespace QtPdCom {
36 class Process;
37 }
38 
39 namespace Pd {
40 
41 class SendBroadcastWidgetPrivate;
42 
50 class PD_PUBLIC SendBroadcastWidget : public QWidget
51 {
52  Q_OBJECT
53  public:
54  explicit SendBroadcastWidget(QWidget *parent = nullptr);
56 
61  Q_PROPERTY(
62  QString attributeName READ getAttributeName WRITE setAttributeName)
63 
64 
65 
69  void setProcess(QtPdCom::Process *p);
70 
71  QtPdCom::Process *getProcess() const;
72 
73  QString getAttributeName() const;
74  void setAttributeName(QString name);
75 
76  private:
77  Q_DECLARE_PRIVATE(SendBroadcastWidget)
78 
79  QScopedPointer<SendBroadcastWidgetPrivate> const d_ptr;
80 
81  PD_PRIVATE void changeEvent(QEvent *event) override;
82 };
83 
84 } // namespace Pd
85 
86 #endif // PD_SENDBROADCASTWIDGET_H
Definition: Bar.h:36
#define PD_PRIVATE
Definition: Export.h:28
Definition: SendBroadcastWidget.h:35
#define PD_PUBLIC
Definition: Export.h:33
Widget to send broadcast messages.
Definition: SendBroadcastWidget.h:50
Definition: SendBroadcastWidget.cpp:33