You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw/apps/opencs/view/tools/merge.hpp

61 lines
1.1 KiB
C++

#ifndef CSV_TOOLS_MERGE_H
#define CSV_TOOLS_MERGE_H
#include <QWidget>
#include <filesystem>
class QPushButton;
class QListWidget;
namespace CSMDoc
{
class Document;
class DocumentManager;
}
namespace CSVDoc
{
class FileWidget;
class AdjusterWidget;
}
namespace CSVTools
{
class Merge : public QWidget
{
Q_OBJECT
CSMDoc::Document* mDocument;
QPushButton* mOkay;
QListWidget* mFiles;
CSVDoc::FileWidget* mNewFile;
CSVDoc::AdjusterWidget* mAdjuster;
CSMDoc::DocumentManager& mDocumentManager;
void keyPressEvent(QKeyEvent* event) override;
public:
Merge(CSMDoc::DocumentManager& documentManager, QWidget* parent = nullptr);
/// Configure dialogue for a new merge
void configure(CSMDoc::Document* document);
void setLocalData(const std::filesystem::path& localData);
CSMDoc::Document* getDocument() const;
public slots:
void cancel();
private slots:
void accept();
void stateChanged(bool valid);
};
}
#endif