2015-08-06 10:52:10 +00:00
|
|
|
#ifndef CSV_TOOLS_REPORTTABLE_H
|
|
|
|
#define CSV_TOOLS_REPORTTABLE_H
|
|
|
|
|
2015-08-13 10:53:00 +00:00
|
|
|
#include <QWidget>
|
2015-08-06 10:52:10 +00:00
|
|
|
|
2018-12-01 20:27:43 +00:00
|
|
|
#ifndef Q_MOC_RUN
|
2015-08-06 10:52:10 +00:00
|
|
|
#include <boost/filesystem/path.hpp>
|
2018-12-01 20:27:43 +00:00
|
|
|
#endif
|
2015-08-06 10:52:10 +00:00
|
|
|
|
|
|
|
class QPushButton;
|
|
|
|
class QListWidget;
|
|
|
|
|
|
|
|
namespace CSMDoc
|
|
|
|
{
|
|
|
|
class Document;
|
2015-08-16 13:24:48 +00:00
|
|
|
class DocumentManager;
|
2015-08-06 10:52:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
namespace CSVDoc
|
|
|
|
{
|
|
|
|
class FileWidget;
|
|
|
|
class AdjusterWidget;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace CSVTools
|
|
|
|
{
|
2015-08-13 10:53:00 +00:00
|
|
|
class Merge : public QWidget
|
2015-08-06 10:52:10 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
CSMDoc::Document *mDocument;
|
|
|
|
QPushButton *mOkay;
|
|
|
|
QListWidget *mFiles;
|
|
|
|
CSVDoc::FileWidget *mNewFile;
|
|
|
|
CSVDoc::AdjusterWidget *mAdjuster;
|
2015-08-16 13:24:48 +00:00
|
|
|
CSMDoc::DocumentManager& mDocumentManager;
|
2015-08-06 10:52:10 +00:00
|
|
|
|
2020-10-16 18:18:54 +00:00
|
|
|
void keyPressEvent (QKeyEvent *event) override;
|
2015-08-13 10:53:00 +00:00
|
|
|
|
2015-08-06 10:52:10 +00:00
|
|
|
public:
|
|
|
|
|
2020-11-13 07:39:47 +00:00
|
|
|
Merge (CSMDoc::DocumentManager& documentManager, QWidget *parent = nullptr);
|
2015-08-06 10:52:10 +00:00
|
|
|
|
|
|
|
/// Configure dialogue for a new merge
|
|
|
|
void configure (CSMDoc::Document *document);
|
|
|
|
|
|
|
|
void setLocalData (const boost::filesystem::path& localData);
|
|
|
|
|
|
|
|
CSMDoc::Document *getDocument() const;
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
2015-08-13 10:53:00 +00:00
|
|
|
void cancel();
|
2015-08-06 10:52:10 +00:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
2015-08-13 10:53:00 +00:00
|
|
|
void accept();
|
2015-08-06 10:52:10 +00:00
|
|
|
|
2015-08-13 10:53:00 +00:00
|
|
|
void stateChanged (bool valid);
|
2015-08-06 10:52:10 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|