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:
@@ -18,6 +18,8 @@
|
|||||||
|
|
||||||
#include "RiuExportMultipleSnapshotsWidget.h"
|
#include "RiuExportMultipleSnapshotsWidget.h"
|
||||||
|
|
||||||
|
#include "RiaApplication.h"
|
||||||
|
|
||||||
#include "RimMultiSnapshotDefinition.h"
|
#include "RimMultiSnapshotDefinition.h"
|
||||||
#include "RimProject.h"
|
#include "RimProject.h"
|
||||||
#include "RimCase.h"
|
#include "RimCase.h"
|
||||||
@@ -33,7 +35,7 @@
|
|||||||
#include <QMenu>
|
#include <QMenu>
|
||||||
#include <QTableView>
|
#include <QTableView>
|
||||||
#include <QWidget>
|
#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(accepted()), this, SLOT(accept()));
|
||||||
connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
|
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);
|
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 customMenuRequested(QPoint pos);
|
||||||
void addSnapshotItem();
|
void addSnapshotItem();
|
||||||
void deleteAllSnapshotItems();
|
void deleteAllSnapshotItems();
|
||||||
|
void exportSnapshots();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
RimProject* m_rimProject;
|
RimProject* m_rimProject;
|
||||||
|
|||||||
Reference in New Issue
Block a user