|
|
|
@ -58,7 +58,6 @@ nmWxPebiResultViewWidget::nmWxPebiResultViewWidget(
|
|
|
|
m_pStatusLabel(nullptr),
|
|
|
|
m_pStatusLabel(nullptr),
|
|
|
|
m_pScalarBarAction(nullptr),
|
|
|
|
m_pScalarBarAction(nullptr),
|
|
|
|
m_pScaleGridAction(nullptr),
|
|
|
|
m_pScaleGridAction(nullptr),
|
|
|
|
m_pCellEdgesAction(nullptr),
|
|
|
|
|
|
|
|
m_pWellMarkersAction(nullptr),
|
|
|
|
m_pWellMarkersAction(nullptr),
|
|
|
|
m_pWellNamesAction(nullptr),
|
|
|
|
m_pWellNamesAction(nullptr),
|
|
|
|
m_bObservedSnapshotCurrent(false),
|
|
|
|
m_bObservedSnapshotCurrent(false),
|
|
|
|
@ -174,7 +173,6 @@ void nmWxPebiResultViewWidget::appendContextMenuActions(QMenu* pMenu)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
pMenu->addAction(m_pScalarBarAction);
|
|
|
|
pMenu->addAction(m_pScalarBarAction);
|
|
|
|
pMenu->addAction(m_pScaleGridAction);
|
|
|
|
pMenu->addAction(m_pScaleGridAction);
|
|
|
|
pMenu->addAction(m_pCellEdgesAction);
|
|
|
|
|
|
|
|
pMenu->addAction(m_pWellMarkersAction);
|
|
|
|
pMenu->addAction(m_pWellMarkersAction);
|
|
|
|
pMenu->addAction(m_pWellNamesAction);
|
|
|
|
pMenu->addAction(m_pWellNamesAction);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -215,13 +213,6 @@ void nmWxPebiResultViewWidget::onScaleGridToggled(bool bVisible)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void nmWxPebiResultViewWidget::onCellEdgesToggled(bool bVisible)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if(m_pSceneController != nullptr && m_pSceneController->hasSnapshot()) {
|
|
|
|
|
|
|
|
m_pSceneController->setCellEdgesVisible(bVisible);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void nmWxPebiResultViewWidget::onWellMarkersToggled(bool bVisible)
|
|
|
|
void nmWxPebiResultViewWidget::onWellMarkersToggled(bool bVisible)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if(m_pSceneController != nullptr && m_pSceneController->hasSnapshot()) {
|
|
|
|
if(m_pSceneController != nullptr && m_pSceneController->hasSnapshot()) {
|
|
|
|
@ -278,9 +269,6 @@ void nmWxPebiResultViewWidget::createUi()
|
|
|
|
m_pScaleGridAction = new QAction(
|
|
|
|
m_pScaleGridAction = new QAction(
|
|
|
|
QIcon(resultViewIconPath("NmScaleGrid.png")),
|
|
|
|
QIcon(resultViewIconPath("NmScaleGrid.png")),
|
|
|
|
tr("Scale Grid"), this);
|
|
|
|
tr("Scale Grid"), this);
|
|
|
|
m_pCellEdgesAction = new QAction(
|
|
|
|
|
|
|
|
QIcon(resultViewIconPath("SpecialLineVisible.png")),
|
|
|
|
|
|
|
|
tr("Cell Edges"), this);
|
|
|
|
|
|
|
|
m_pWellMarkersAction = new QAction(
|
|
|
|
m_pWellMarkersAction = new QAction(
|
|
|
|
QIcon(resultViewIconPath("NmWell.png")),
|
|
|
|
QIcon(resultViewIconPath("NmWell.png")),
|
|
|
|
tr("Well Markers"), this);
|
|
|
|
tr("Well Markers"), this);
|
|
|
|
@ -289,10 +277,10 @@ void nmWxPebiResultViewWidget::createUi()
|
|
|
|
tr("Well Names"), this);
|
|
|
|
tr("Well Names"), this);
|
|
|
|
|
|
|
|
|
|
|
|
QAction* const pBusinessActions[] = {
|
|
|
|
QAction* const pBusinessActions[] = {
|
|
|
|
m_pScalarBarAction, m_pScaleGridAction, m_pCellEdgesAction,
|
|
|
|
m_pScalarBarAction, m_pScaleGridAction,
|
|
|
|
m_pWellMarkersAction, m_pWellNamesAction
|
|
|
|
m_pWellMarkersAction, m_pWellNamesAction
|
|
|
|
};
|
|
|
|
};
|
|
|
|
for(int nIndex = 0; nIndex < 5; ++nIndex) {
|
|
|
|
for(int nIndex = 0; nIndex < 4; ++nIndex) {
|
|
|
|
pBusinessActions[nIndex]->setCheckable(true);
|
|
|
|
pBusinessActions[nIndex]->setCheckable(true);
|
|
|
|
pBusinessActions[nIndex]->setToolTip(
|
|
|
|
pBusinessActions[nIndex]->setToolTip(
|
|
|
|
pBusinessActions[nIndex]->text());
|
|
|
|
pBusinessActions[nIndex]->text());
|
|
|
|
@ -324,7 +312,7 @@ void nmWxPebiResultViewWidget::createUi()
|
|
|
|
if(pFrontAction != nullptr) m_pToolBar->addAction(pFrontAction);
|
|
|
|
if(pFrontAction != nullptr) m_pToolBar->addAction(pFrontAction);
|
|
|
|
if(pPickCenterAction != nullptr) m_pToolBar->addAction(pPickCenterAction);
|
|
|
|
if(pPickCenterAction != nullptr) m_pToolBar->addAction(pPickCenterAction);
|
|
|
|
m_pToolBar->addSeparator();
|
|
|
|
m_pToolBar->addSeparator();
|
|
|
|
for(int nIndex = 0; nIndex < 5; ++nIndex) {
|
|
|
|
for(int nIndex = 0; nIndex < 4; ++nIndex) {
|
|
|
|
m_pToolBar->addAction(pBusinessActions[nIndex]);
|
|
|
|
m_pToolBar->addAction(pBusinessActions[nIndex]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m_pToolBar->addSeparator();
|
|
|
|
m_pToolBar->addSeparator();
|
|
|
|
@ -335,8 +323,6 @@ void nmWxPebiResultViewWidget::createUi()
|
|
|
|
this, SLOT(onScalarBarToggled(bool)));
|
|
|
|
this, SLOT(onScalarBarToggled(bool)));
|
|
|
|
connect(m_pScaleGridAction, SIGNAL(toggled(bool)),
|
|
|
|
connect(m_pScaleGridAction, SIGNAL(toggled(bool)),
|
|
|
|
this, SLOT(onScaleGridToggled(bool)));
|
|
|
|
this, SLOT(onScaleGridToggled(bool)));
|
|
|
|
connect(m_pCellEdgesAction, SIGNAL(toggled(bool)),
|
|
|
|
|
|
|
|
this, SLOT(onCellEdgesToggled(bool)));
|
|
|
|
|
|
|
|
connect(m_pWellMarkersAction, SIGNAL(toggled(bool)),
|
|
|
|
connect(m_pWellMarkersAction, SIGNAL(toggled(bool)),
|
|
|
|
this, SLOT(onWellMarkersToggled(bool)));
|
|
|
|
this, SLOT(onWellMarkersToggled(bool)));
|
|
|
|
connect(m_pWellNamesAction, SIGNAL(toggled(bool)),
|
|
|
|
connect(m_pWellNamesAction, SIGNAL(toggled(bool)),
|
|
|
|
@ -498,8 +484,6 @@ void nmWxPebiResultViewWidget::synchronizeBusinessActions()
|
|
|
|
m_pScalarBarAction, m_pSceneController->isScalarBarVisible());
|
|
|
|
m_pScalarBarAction, m_pSceneController->isScalarBarVisible());
|
|
|
|
setActionCheckedWithoutSignal(
|
|
|
|
setActionCheckedWithoutSignal(
|
|
|
|
m_pScaleGridAction, m_pSceneController->isScaleGridVisible());
|
|
|
|
m_pScaleGridAction, m_pSceneController->isScaleGridVisible());
|
|
|
|
setActionCheckedWithoutSignal(
|
|
|
|
|
|
|
|
m_pCellEdgesAction, m_pSceneController->areCellEdgesVisible());
|
|
|
|
|
|
|
|
setActionCheckedWithoutSignal(
|
|
|
|
setActionCheckedWithoutSignal(
|
|
|
|
m_pWellMarkersAction, m_pSceneController->areWellMarkersVisible());
|
|
|
|
m_pWellMarkersAction, m_pSceneController->areWellMarkersVisible());
|
|
|
|
setActionCheckedWithoutSignal(
|
|
|
|
setActionCheckedWithoutSignal(
|
|
|
|
@ -508,7 +492,6 @@ void nmWxPebiResultViewWidget::synchronizeBusinessActions()
|
|
|
|
const bool bEnabled = m_pSceneController->hasSnapshot();
|
|
|
|
const bool bEnabled = m_pSceneController->hasSnapshot();
|
|
|
|
m_pScalarBarAction->setEnabled(bEnabled);
|
|
|
|
m_pScalarBarAction->setEnabled(bEnabled);
|
|
|
|
m_pScaleGridAction->setEnabled(bEnabled);
|
|
|
|
m_pScaleGridAction->setEnabled(bEnabled);
|
|
|
|
m_pCellEdgesAction->setEnabled(bEnabled);
|
|
|
|
|
|
|
|
m_pWellMarkersAction->setEnabled(bEnabled);
|
|
|
|
m_pWellMarkersAction->setEnabled(bEnabled);
|
|
|
|
m_pWellNamesAction->setEnabled(bEnabled);
|
|
|
|
m_pWellNamesAction->setEnabled(bEnabled);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|