#1018 : Added export button

This commit is contained in:
Magne Sjaastad
2016-12-13 15:17:50 +01:00
parent 99d54beb4a
commit b3f294c133
2 changed files with 18 additions and 1 deletions

View File

@@ -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()
}
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
/// ///
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------

View File

@@ -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;