1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-22 20:23:53 +00:00
openmw/apps/opencs/view/doc/filewidget.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
729 B
C++
Raw Normal View History

#ifndef CSV_DOC_FILEWIDGET_H
#define CSV_DOC_FILEWIDGET_H
2022-10-19 17:02:00 +00:00
#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:
2020-11-13 07:39:47 +00:00
FileWidget(QWidget* parent = nullptr);
2020-11-13 07:39:47 +00:00
void setType(bool addon);
QString getName() const;
void extensionLabelIsVisible(bool visible);
void setName(const std::string& text);
private slots:
void textChanged(const QString& text);
2022-09-22 18:26:05 +00:00
signals:
2013-09-10 14:45:01 +00:00
void nameChanged(const QString& file, bool addon);
};
}
#endif