tilde~
Puredata Qt-based GUI
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Clipboard.h
Go to the documentation of this file.
1 // (c) 2017 Alex Nadzharov
2 // License: GPL3
3 
4 #ifndef CLIPBOARD_H
5 #define CLIPBOARD_H
6 
7 #include <QObject>
8 
9 namespace tilde {
13 class Clipboard : public QObject {
14  Q_OBJECT
15 
16 private:
17  static Clipboard* _instance;
18  explicit Clipboard(){};
19 
20  QStringList _data;
21 
22 public:
23  static Clipboard* inst();
24 
25  // -----------------------------
26 
27  void append(QStringList data);
28  void clear();
29  size_t size();
30  QStringList get();
31  void setStringAt(int idx, QString str);
32 
33  // change to pointer?
34  QString at(int idx);
35 
36 signals:
37 
38 public slots:
39 };
40 }
41 
42 #endif // CLIPBOARD_H
size_t size()
Definition: Clipboard.cpp:32
void append(QStringList data)
Definition: Clipboard.cpp:22
void setStringAt(int idx, QString str)
Definition: Clipboard.cpp:42
static Clipboard * inst()
Definition: Clipboard.cpp:10
The Clipboard class - just a QStringList with Pd strings for objects.
Definition: Clipboard.h:13
QString at(int idx)
Definition: Clipboard.cpp:51
void clear()
Definition: Clipboard.cpp:27