1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 17:29:55 +00:00
openmw/apps/opencs/view/doc/adjusterwidget.hpp

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

55 lines
1.1 KiB
C++
Raw Permalink Normal View History

2013-09-10 14:45:01 +00:00
#ifndef CSV_DOC_ADJUSTERWIDGET_H
#define CSV_DOC_ADJUSTERWIDGET_H
#include <QWidget>
#include <filesystem>
2013-09-10 14:45:01 +00:00
class QLabel;
namespace CSVDoc
{
enum ContentAction
{
ContentAction_New,
ContentAction_Edit,
ContentAction_Undefined
};
2013-09-10 14:45:01 +00:00
class AdjusterWidget : public QWidget
{
Q_OBJECT
public:
std::filesystem::path mLocalData;
2013-09-10 14:45:01 +00:00
QLabel* mMessage;
QLabel* mIcon;
bool mValid;
std::filesystem::path mResultPath;
ContentAction mAction;
bool mDoFilenameCheck;
2013-09-10 14:45:01 +00:00
2022-09-22 18:26:05 +00:00
public:
2020-11-13 07:39:47 +00:00
AdjusterWidget(QWidget* parent = nullptr);
2013-09-10 14:45:01 +00:00
void setLocalData(const std::filesystem::path& localData);
void setAction(ContentAction action);
2013-09-10 14:45:01 +00:00
void setFilenameCheck(bool doCheck);
bool isValid() const;
std::filesystem::path getPath() const;
2013-09-10 14:45:01 +00:00
///< This function must not be called if there is no valid path.
public slots:
void setName(const QString& name, bool addon);
signals:
void stateChanged(bool valid);
};
}
#endif