nngn
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages Concepts
edit.h
Go to the documentation of this file.
1#ifndef NNGN_TOOLS_AUDIO_EDIT_H
2#define NNGN_TOOLS_AUDIO_EDIT_H
3
4#include <string>
5
6#include <QMainWindow>
7
8#include "utils/utils.h"
9
10#include "gen.h"
11
12class QDial;
13class QPlainTextEdit;
14class QSpinBox;
15class QTabBar;
16
17namespace nngn {
18
19class Edit final : public QMainWindow {
20 Q_OBJECT
21public:
23 Edit(void);
24signals:
25 void updated(std::vector<std::byte> v) const;
26private:
27 bool init_generator(void);
28 bool exec(void);
29 bool generate(void);
30 QSpinBox *rate = nullptr;
31 QPlainTextEdit *editor = nullptr, *error = nullptr;
32 QTabBar *tab_bar = nullptr;
33 QMetaObject::Connection editor_con = {}, param_con = {};
35 QList<QString> presets = {};
36};
37
38}
39
40#endif
Definition edit.h:19
bool init_generator(void)
Definition edit.cpp:267
QTabBar * tab_bar
Definition edit.h:32
QMetaObject::Connection param_con
Definition edit.h:33
bool exec(void)
Definition edit.cpp:275
QList< QString > presets
Definition edit.h:35
QPlainTextEdit * error
Definition edit.h:31
void updated(std::vector< std::byte > v) const
QMetaObject::Connection editor_con
Definition edit.h:33
Generator gen
Definition edit.h:34
bool generate(void)
Definition edit.cpp:279
QSpinBox * rate
Definition edit.h:30
Edit(void)
Definition edit.cpp:170
QPlainTextEdit * editor
Definition edit.h:31
Definition gen.h:12
Definition audio.cpp:7
v[1]
Definition math.lua:22
#define NNGN_NO_COPY(x)
Definition utils.h:35