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++
729 B
Raw Blame
#ifndef CSV_DOC_FILEWIDGET_H
#define CSV_DOC_FILEWIDGET_H

#include <QString>
#include <QWidget>

#include <string>

class QLabel;
class QLineEdit;

namespace CSVDoc
{
    class FileWidget : public QWidget
    {
        Q_OBJECT

        bool mAddon;
        QLineEdit* mInput;
        QLabel* mType;

        QString getExtension() const;

    public:
        FileWidget(QWidget* parent = nullptr);

        void setType(bool addon);

        QString getName() const;

        void extensionLabelIsVisible(bool visible);

        void setName(const std::string& text);

    private slots:

        void textChanged(const QString& text);

    signals:

        void nameChanged(const QString& file, bool addon);
    };
}

#endif