Skip to content

An OpenMW mod that lets you play the whole Elder Scrolls III: Morrowind as a top-down isometric game — with full online co-op or MMO modes.

C++
635 B
Raw Blame
#ifndef TEXTINPUTDIALOG_HPP
#define TEXTINPUTDIALOG_HPP

#include <QDialog>

#include "lineedit.hpp"

class QDialogButtonBox;

namespace Launcher
{
    class TextInputDialog : public QDialog
    {
        Q_OBJECT

    public:
        explicit TextInputDialog(const QString& title, const QString& text, QWidget* parent = nullptr);
        ~TextInputDialog() override = default;

        inline LineEdit* lineEdit() { return mLineEdit; }
        void setOkButtonEnabled(bool enabled);

        int exec() override;

    private:
        QDialogButtonBox* mButtonBox;
        LineEdit* mLineEdit;
    };
}

#endif // TEXTINPUTDIALOG_HPP