|
|
|
@ -87,7 +87,7 @@ void nmWxPebiGridViewWidget::createUi()
|
|
|
|
m_pToolBar->setOrientation(Qt::Vertical);
|
|
|
|
m_pToolBar->setOrientation(Qt::Vertical);
|
|
|
|
m_pToolBar->setMovable(false);
|
|
|
|
m_pToolBar->setMovable(false);
|
|
|
|
m_pToolBar->setFloatable(false);
|
|
|
|
m_pToolBar->setFloatable(false);
|
|
|
|
m_pToolBar->setIconSize(QSize(20, 20));
|
|
|
|
m_pToolBar->setIconSize(QSize(24, 24));
|
|
|
|
m_pToolBar->setToolButtonStyle(Qt::ToolButtonIconOnly);
|
|
|
|
m_pToolBar->setToolButtonStyle(Qt::ToolButtonIconOnly);
|
|
|
|
m_pToolBar->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding);
|
|
|
|
m_pToolBar->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding);
|
|
|
|
|
|
|
|
|
|
|
|
@ -101,12 +101,12 @@ void nmWxPebiGridViewWidget::createUi()
|
|
|
|
m_pGridLinesAction->setToolTip(tr("Show Grid Lines"));
|
|
|
|
m_pGridLinesAction->setToolTip(tr("Show Grid Lines"));
|
|
|
|
m_pGridLinesAction->setCheckable(true);
|
|
|
|
m_pGridLinesAction->setCheckable(true);
|
|
|
|
m_pScalarBarAction = new QAction(
|
|
|
|
m_pScalarBarAction = new QAction(
|
|
|
|
QIcon(gridViewIconPath("Eyes.png")),
|
|
|
|
QIcon(gridViewIconPath("NmColorScale.png")),
|
|
|
|
tr("Show Scalar Bar"), this);
|
|
|
|
tr("Show Scalar Bar"), this);
|
|
|
|
m_pScalarBarAction->setToolTip(tr("Show Scalar Bar"));
|
|
|
|
m_pScalarBarAction->setToolTip(tr("Show Scalar Bar"));
|
|
|
|
m_pScalarBarAction->setCheckable(true);
|
|
|
|
m_pScalarBarAction->setCheckable(true);
|
|
|
|
m_pBoundsGridAction = new QAction(
|
|
|
|
m_pBoundsGridAction = new QAction(
|
|
|
|
QIcon(gridViewIconPath("CalGrid.png")),
|
|
|
|
QIcon(gridViewIconPath("NmScaleGrid.png")),
|
|
|
|
tr("Scale Grid"), this);
|
|
|
|
tr("Scale Grid"), this);
|
|
|
|
m_pBoundsGridAction->setToolTip(tr("Scale Grid"));
|
|
|
|
m_pBoundsGridAction->setToolTip(tr("Scale Grid"));
|
|
|
|
m_pBoundsGridAction->setCheckable(true);
|
|
|
|
m_pBoundsGridAction->setCheckable(true);
|
|
|
|
@ -123,24 +123,34 @@ void nmWxPebiGridViewWidget::createUi()
|
|
|
|
nmVTKViewCommandController::ViewCommand_Top);
|
|
|
|
nmVTKViewCommandController::ViewCommand_Top);
|
|
|
|
QAction* pCopyAction = pCommandController->getAction(
|
|
|
|
QAction* pCopyAction = pCommandController->getAction(
|
|
|
|
nmVTKViewCommandController::ViewCommand_CopyImage);
|
|
|
|
nmVTKViewCommandController::ViewCommand_CopyImage);
|
|
|
|
|
|
|
|
bool bHasPreviousGroup = false;
|
|
|
|
if(pZoomOutAction != nullptr) {
|
|
|
|
if(pZoomOutAction != nullptr) {
|
|
|
|
m_pToolBar->addAction(pZoomOutAction);
|
|
|
|
m_pToolBar->addAction(pZoomOutAction);
|
|
|
|
|
|
|
|
bHasPreviousGroup = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(pFitAction != nullptr) {
|
|
|
|
if(pFitAction != nullptr) {
|
|
|
|
m_pToolBar->addAction(pFitAction);
|
|
|
|
m_pToolBar->addAction(pFitAction);
|
|
|
|
|
|
|
|
bHasPreviousGroup = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(pZoomInAction != nullptr) {
|
|
|
|
if(pZoomInAction != nullptr) {
|
|
|
|
m_pToolBar->addAction(pZoomInAction);
|
|
|
|
m_pToolBar->addAction(pZoomInAction);
|
|
|
|
|
|
|
|
bHasPreviousGroup = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(pTopAction != nullptr) {
|
|
|
|
if(pTopAction != nullptr) {
|
|
|
|
|
|
|
|
if(bHasPreviousGroup) {
|
|
|
|
|
|
|
|
m_pToolBar->addSeparator();
|
|
|
|
|
|
|
|
}
|
|
|
|
m_pToolBar->addAction(pTopAction);
|
|
|
|
m_pToolBar->addAction(pTopAction);
|
|
|
|
|
|
|
|
bHasPreviousGroup = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if(bHasPreviousGroup) {
|
|
|
|
|
|
|
|
m_pToolBar->addSeparator();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m_pToolBar->addSeparator();
|
|
|
|
|
|
|
|
m_pToolBar->addAction(m_pGridLinesAction);
|
|
|
|
m_pToolBar->addAction(m_pGridLinesAction);
|
|
|
|
m_pToolBar->addAction(m_pScalarBarAction);
|
|
|
|
m_pToolBar->addAction(m_pScalarBarAction);
|
|
|
|
m_pToolBar->addAction(m_pBoundsGridAction);
|
|
|
|
m_pToolBar->addAction(m_pBoundsGridAction);
|
|
|
|
m_pToolBar->addSeparator();
|
|
|
|
|
|
|
|
if(pCopyAction != nullptr) {
|
|
|
|
if(pCopyAction != nullptr) {
|
|
|
|
|
|
|
|
m_pToolBar->addSeparator();
|
|
|
|
m_pToolBar->addAction(pCopyAction);
|
|
|
|
m_pToolBar->addAction(pCopyAction);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|