#1105 Stripped down basic infrastructure code

This commit is contained in:
Magne Sjaastad
2017-01-13 09:50:43 +01:00
parent 96396eed10
commit 0cbdcd587d
8 changed files with 99 additions and 561 deletions

View File

@@ -18,15 +18,17 @@
#pragma once
#include "cafPdmObject.h"
#include "cafPdmField.h"
#include "RimViewWindow.h"
#include "cafPdmField.h"
#include "cafPdmObject.h"
#include "cafPdmPtrField.h"
#include <QPointer>
class RiuWellAllocationPlot;
class QwtInterval;
class RimEclipseWell;
//==================================================================================================
@@ -41,21 +43,15 @@ public:
RimWellAllocationPlot();
virtual ~RimWellAllocationPlot();
void setSimulationWell(RimEclipseWell* simWell);
void setDescription(const QString& description);
QString description() const;
void loadDataAndUpdate();
void handleViewerDeletion();
void updateCaseNameHasChanged();
void updateAxes();
virtual void zoomAll() override;
void updateZoomInQwt();
void disableAutoZoom();
virtual QWidget* viewWidget() override;
virtual void zoomAll() override;
protected:
// Overridden PDM methods
@@ -63,23 +59,21 @@ protected:
virtual caf::PdmFieldHandle* userDescriptionField() { return &m_userName; }
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue) override;
virtual void setupBeforeSave() override;
virtual void defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName = "") override;
virtual QImage snapshotWindowContent() override;
private:
void updateViewerWidget();
void updateViewerWidgetWindowTitle();
void detachAllCurves();
void deletePlotWidget();
private:
caf::PdmField<bool> m_showWindow;
caf::PdmField<bool> m_showPlotTitle;
caf::PdmField<QString> m_userName;
QPointer<RiuWellAllocationPlot> m_qwtPlot;
caf::PdmPtrField<RimEclipseWell*> m_simulationWell;
QPointer<RiuWellAllocationPlot> m_wellAllocationPlot;
};