2018-10-07 03:40:25 +00:00
|
|
|
#pragma once
|
2018-08-10 06:19:23 +00:00
|
|
|
|
2019-08-28 00:51:38 +00:00
|
|
|
#include <cstddef>
|
|
|
|
#include <cstdint>
|
|
|
|
|
2018-08-10 06:19:23 +00:00
|
|
|
#include <QComboBox>
|
2019-08-28 00:51:38 +00:00
|
|
|
#include <QDialog>
|
2018-08-10 06:19:23 +00:00
|
|
|
#include <QDialogButtonBox>
|
2019-08-28 00:51:38 +00:00
|
|
|
#include <QLineEdit>
|
2018-08-10 06:19:23 +00:00
|
|
|
|
2018-12-08 05:20:09 +00:00
|
|
|
struct SoundMacroTemplateEntry {
|
|
|
|
const char* m_name;
|
|
|
|
size_t m_length;
|
|
|
|
const uint32_t* m_data;
|
2018-08-10 06:19:23 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:20:09 +00:00
|
|
|
class NewSoundMacroDialog : public QDialog {
|
|
|
|
Q_OBJECT
|
|
|
|
QLineEdit m_le;
|
|
|
|
QComboBox m_combo;
|
|
|
|
QDialogButtonBox m_buttonBox;
|
|
|
|
|
2018-08-10 06:19:23 +00:00
|
|
|
public:
|
2018-12-08 05:20:09 +00:00
|
|
|
explicit NewSoundMacroDialog(const QString& groupName, QWidget* parent = Q_NULLPTR);
|
2019-08-28 00:51:38 +00:00
|
|
|
~NewSoundMacroDialog() override;
|
|
|
|
|
2018-12-08 05:20:09 +00:00
|
|
|
QString getName() const { return m_le.text(); }
|
|
|
|
const SoundMacroTemplateEntry* getSelectedTemplate() const;
|
2018-08-10 06:19:23 +00:00
|
|
|
};
|