#ifndef SETTODATADIALOG_H
#define SETTODATADIALOG_H

#include "CutterCommon.h"

#include <QDialog>

#include <memory>

namespace Ui {
class SetToDataDialog;
}

/**
 * @brief A dialog for defining memory as a data type
 */
class SetToDataDialog : public QDialog
{
    Q_OBJECT

public:
    explicit SetToDataDialog(RVA startAddr, QWidget *parent = nullptr);
    ~SetToDataDialog();

    int getItemSize();
    int getItemCount();

private slots:
    void onSizeEditTextChanged(const QString &arg1);
    void onRepeatEditTextChanged(const QString &arg1);

private:
    void updateEndAddress();

    std::unique_ptr<Ui::SetToDataDialog> ui;
    RVA startAddress;
};

#endif // SETTODATADIALOG_H
