1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-29 09:32:45 +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 19:02:00 +02: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 11:39:47 +04:00
FileWidget(QWidget* parent = nullptr);
2020-11-13 11:39:47 +04: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 21:26:05 +03:00
signals:
2013-09-10 16:45:01 +02:00
void nameChanged(const QString& file, bool addon);
};
}
#endif