mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3860 Z scale label. Do not show in contour map
This commit is contained in:
parent
1311d4eb4d
commit
01249ace3a
@ -218,11 +218,11 @@ protected:
|
|||||||
void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue) override;
|
void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue) override;
|
||||||
void defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) override;
|
void defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) override;
|
||||||
virtual void updateViewWidgetAfterCreation() override;
|
virtual void updateViewWidgetAfterCreation() override;
|
||||||
|
QWidget* createViewWidget(QWidget* mainWindowParent) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Overridden ViewWindow methods:
|
// Overridden ViewWindow methods:
|
||||||
|
|
||||||
QWidget* createViewWidget(QWidget* mainWindowParent) override;
|
|
||||||
void updateMdiWindowTitle() override;
|
void updateMdiWindowTitle() override;
|
||||||
void deleteViewWidget() override;
|
void deleteViewWidget() override;
|
||||||
QWidget* viewWidget() override;
|
QWidget* viewWidget() override;
|
||||||
|
@ -388,3 +388,18 @@ std::set<RivCellSetEnum> RimContourMapView::allVisibleFaultGeometryTypes() const
|
|||||||
}
|
}
|
||||||
return faultGeoTypes;
|
return faultGeoTypes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
QWidget* RimContourMapView::createViewWidget(QWidget* mainWindowParent)
|
||||||
|
{
|
||||||
|
auto widget = Rim3dView::createViewWidget(mainWindowParent);
|
||||||
|
|
||||||
|
if (viewer())
|
||||||
|
{
|
||||||
|
viewer()->showZScaleLabel(false);
|
||||||
|
viewer()->hideZScaleCheckbox(true);
|
||||||
|
}
|
||||||
|
return widget;
|
||||||
|
}
|
||||||
|
@ -54,6 +54,8 @@ protected:
|
|||||||
|
|
||||||
virtual std::set<RivCellSetEnum> allVisibleFaultGeometryTypes() const override;
|
virtual std::set<RivCellSetEnum> allVisibleFaultGeometryTypes() const override;
|
||||||
|
|
||||||
|
QWidget* createViewWidget(QWidget* mainWindowParent) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
cvf::ref<RivContourMapProjectionPartMgr> m_contourMapProjectionPartMgr;
|
cvf::ref<RivContourMapProjectionPartMgr> m_contourMapProjectionPartMgr;
|
||||||
caf::PdmChildField<RimContourMapProjection*> m_contourMapProjection;
|
caf::PdmChildField<RimContourMapProjection*> m_contourMapProjection;
|
||||||
|
@ -152,6 +152,7 @@ RiuViewer::RiuViewer(const QGLFormat& format, QWidget* parent)
|
|||||||
m_zScaleLabel->setAlignment(Qt::AlignLeft);
|
m_zScaleLabel->setAlignment(Qt::AlignLeft);
|
||||||
m_zScaleLabel->setText(QString("Z: "));
|
m_zScaleLabel->setText(QString("Z: "));
|
||||||
m_showZScaleLabel = true;
|
m_showZScaleLabel = true;
|
||||||
|
m_hideZScaleCheckbox = false;
|
||||||
|
|
||||||
QPalette versionInfoPalette = p;
|
QPalette versionInfoPalette = p;
|
||||||
QColor versionInfoLabelColor = p.color(QPalette::Window);
|
QColor versionInfoLabelColor = p.color(QPalette::Window);
|
||||||
@ -487,6 +488,14 @@ void RiuViewer::setInfoText(QString text)
|
|||||||
m_infoLabel->setText(text);
|
m_infoLabel->setText(text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
void RiuViewer::hideZScaleCheckbox(bool hide)
|
||||||
|
{
|
||||||
|
m_hideZScaleCheckbox = hide;
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
@ -83,6 +83,7 @@ public:
|
|||||||
void showInfoText(bool enable);
|
void showInfoText(bool enable);
|
||||||
void setInfoText(QString text);
|
void setInfoText(QString text);
|
||||||
|
|
||||||
|
void hideZScaleCheckbox(bool hide);
|
||||||
void showZScaleLabel(bool enable);
|
void showZScaleLabel(bool enable);
|
||||||
void setZScale(int scale);
|
void setZScale(int scale);
|
||||||
|
|
||||||
@ -158,6 +159,7 @@ private:
|
|||||||
|
|
||||||
QLabel* m_zScaleLabel;
|
QLabel* m_zScaleLabel;
|
||||||
bool m_showZScaleLabel;
|
bool m_showZScaleLabel;
|
||||||
|
bool m_hideZScaleCheckbox;
|
||||||
|
|
||||||
QProgressBar* m_animationProgress;
|
QProgressBar* m_animationProgress;
|
||||||
bool m_showAnimProgress;
|
bool m_showAnimProgress;
|
||||||
|
Loading…
Reference in New Issue
Block a user