mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1018 : Added export button
This commit is contained in:
parent
99d54beb4a
commit
b3f294c133
@ -18,6 +18,8 @@
|
||||
|
||||
#include "RiuExportMultipleSnapshotsWidget.h"
|
||||
|
||||
#include "RiaApplication.h"
|
||||
|
||||
#include "RimMultiSnapshotDefinition.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimCase.h"
|
||||
@ -33,7 +35,7 @@
|
||||
#include <QMenu>
|
||||
#include <QTableView>
|
||||
#include <QWidget>
|
||||
#include "RiaApplication.h"
|
||||
#include <QPushButton>
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -66,6 +68,11 @@ RiuExportMultipleSnapshotsWidget::RiuExportMultipleSnapshotsWidget(QWidget* pare
|
||||
connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
|
||||
connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
|
||||
|
||||
QPushButton* exportButton = new QPushButton(tr("Export"));
|
||||
exportButton->setDefault(true);
|
||||
buttonBox->addButton(exportButton, QDialogButtonBox::ActionRole);
|
||||
connect(exportButton, SIGNAL(clicked()), this, SLOT(exportSnapshots()));
|
||||
|
||||
dialogLayout->addWidget(buttonBox);
|
||||
}
|
||||
|
||||
@ -118,6 +125,15 @@ void RiuExportMultipleSnapshotsWidget::deleteAllSnapshotItems()
|
||||
}
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuExportMultipleSnapshotsWidget::exportSnapshots()
|
||||
{
|
||||
// TODO: wire up call of static method
|
||||
// RicExportMultipleSnapshotsFeature::staticMethod()
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -39,6 +39,7 @@ private slots:
|
||||
void customMenuRequested(QPoint pos);
|
||||
void addSnapshotItem();
|
||||
void deleteAllSnapshotItems();
|
||||
void exportSnapshots();
|
||||
|
||||
private:
|
||||
RimProject* m_rimProject;
|
||||
|
Loading…
Reference in New Issue
Block a user