2016-12-09 04:11:16 -06:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2016 Statoil ASA
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2016-12-09 04:11:16 -06:00
|
|
|
// ResInsight is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2016-12-09 04:11:16 -06:00
|
|
|
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
// FITNESS FOR A PARTICULAR PURPOSE.
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2016-12-09 04:11:16 -06:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
class RimProject;
|
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
namespace caf
|
|
|
|
{
|
|
|
|
class PdmUiTableView;
|
2016-12-09 04:11:16 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
class QWidget;
|
2016-12-13 09:25:42 -06:00
|
|
|
class QLineEdit;
|
2016-12-09 04:11:16 -06:00
|
|
|
|
2019-03-25 04:59:31 -05:00
|
|
|
class RiuAdvancedSnapshotExportWidget : public QDialog
|
2016-12-09 04:11:16 -06:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2019-09-06 03:40:57 -05:00
|
|
|
RiuAdvancedSnapshotExportWidget( QWidget* parent, RimProject* project );
|
2019-03-25 04:59:31 -05:00
|
|
|
~RiuAdvancedSnapshotExportWidget() override;
|
2016-12-09 04:11:16 -06:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void addSnapshotItemFromActiveView();
|
|
|
|
void addEmptySnapshotItems( size_t itemCount );
|
|
|
|
void setExportFolder( const QString& folder );
|
2019-06-06 06:35:25 -05:00
|
|
|
QString exportFolder() const;
|
2016-12-21 03:36:37 -06:00
|
|
|
|
2016-12-09 04:11:16 -06:00
|
|
|
private slots:
|
2019-09-06 03:40:57 -05:00
|
|
|
void customMenuRequested( QPoint pos );
|
2016-12-09 07:40:26 -06:00
|
|
|
void addSnapshotItem();
|
2016-12-13 02:52:05 -06:00
|
|
|
void deleteAllSnapshotItems();
|
2016-12-13 08:17:50 -06:00
|
|
|
void exportSnapshots();
|
2016-12-09 04:11:16 -06:00
|
|
|
|
2016-12-13 09:25:42 -06:00
|
|
|
void folderSelectionClicked();
|
|
|
|
|
2016-12-09 04:11:16 -06:00
|
|
|
private:
|
2016-12-09 07:40:26 -06:00
|
|
|
RimProject* m_rimProject;
|
2016-12-09 04:11:16 -06:00
|
|
|
caf::PdmUiTableView* m_pdmTableView;
|
2016-12-14 06:54:51 -06:00
|
|
|
QLineEdit* m_exportFolderLineEdit;
|
2016-12-09 04:11:16 -06:00
|
|
|
};
|