mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 12:42:11 +00:00
43 lines
689 B
C++
43 lines
689 B
C++
|
#ifndef CSV_DOC_FILEWIDGET_H
|
||
|
#define CSV_DOC_FILEWIDGET_H
|
||
|
|
||
|
#include <QWidget>
|
||
|
|
||
|
class QLabel;
|
||
|
class QString;
|
||
|
class QLineEdit;
|
||
|
|
||
|
namespace CSVDoc
|
||
|
{
|
||
|
class FileWidget : public QWidget
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
bool mAddon;
|
||
|
QLineEdit *mInput;
|
||
|
QLabel *mType;
|
||
|
|
||
|
QString getExtension() const;
|
||
|
|
||
|
public:
|
||
|
|
||
|
FileWidget (QWidget *parent = 0);
|
||
|
|
||
|
void setType (bool addon);
|
||
|
|
||
|
QString getName() const;
|
||
|
|
||
|
private slots:
|
||
|
|
||
|
void textChanged (const QString& text);
|
||
|
|
||
|
signals:
|
||
|
|
||
|
void stateChanged (bool valid);
|
||
|
|
||
|
void nameChanged (const QString& file);
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif
|