1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 06:35:30 +00:00

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

62 lines
1.1 KiB
C++
Raw Normal View History

#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:
2020-11-13 11:39:47 +04:00
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