+ issue #0002053: Support of themes
This commit is contained in:
@@ -1250,25 +1250,25 @@ DEF_STD_CMD_A(StdCmdViewFitAll);
|
||||
StdCmdViewFitAll::StdCmdViewFitAll()
|
||||
: Command("Std_ViewFitAll")
|
||||
{
|
||||
sGroup = QT_TR_NOOP("Standard-View");
|
||||
sMenuText = QT_TR_NOOP("Fit all");
|
||||
sToolTipText = QT_TR_NOOP("Fits the whole content on the screen");
|
||||
sWhatsThis = "Std_ViewFitAll";
|
||||
sStatusTip = QT_TR_NOOP("Fits the whole content on the screen");
|
||||
sPixmap = "view-zoom-all";
|
||||
eType = Alter3DView;
|
||||
sGroup = QT_TR_NOOP("Standard-View");
|
||||
sMenuText = QT_TR_NOOP("Fit all");
|
||||
sToolTipText = QT_TR_NOOP("Fits the whole content on the screen");
|
||||
sWhatsThis = "Std_ViewFitAll";
|
||||
sStatusTip = QT_TR_NOOP("Fits the whole content on the screen");
|
||||
sPixmap = "zoom-all";
|
||||
eType = Alter3DView;
|
||||
}
|
||||
|
||||
void StdCmdViewFitAll::activated(int iMsg)
|
||||
{
|
||||
//doCommand(Command::Gui,"Gui.activeDocument().activeView().fitAll()");
|
||||
doCommand(Command::Gui,"Gui.SendMsgToActiveView(\"ViewFit\")");
|
||||
//doCommand(Command::Gui,"Gui.activeDocument().activeView().fitAll()");
|
||||
doCommand(Command::Gui,"Gui.SendMsgToActiveView(\"ViewFit\")");
|
||||
}
|
||||
|
||||
bool StdCmdViewFitAll::isActive(void)
|
||||
{
|
||||
//return isViewOfType(Gui::View3DInventor::getClassTypeId());
|
||||
return getGuiApplication()->sendHasMsgToActiveView("ViewFit");
|
||||
//return isViewOfType(Gui::View3DInventor::getClassTypeId());
|
||||
return getGuiApplication()->sendHasMsgToActiveView("ViewFit");
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
@@ -1285,7 +1285,7 @@ StdCmdViewFitSelection::StdCmdViewFitSelection()
|
||||
sWhatsThis = "Std_ViewFitSelection";
|
||||
sStatusTip = QT_TR_NOOP("Fits the selected content on the screen");
|
||||
#if QT_VERSION >= 0x040200
|
||||
sPixmap = "view-zoom-selection";
|
||||
sPixmap = "zoom-selection";
|
||||
#endif
|
||||
eType = Alter3DView;
|
||||
}
|
||||
@@ -1417,13 +1417,12 @@ DEF_STD_CMD_A(StdCmdViewVR);
|
||||
StdCmdViewVR::StdCmdViewVR()
|
||||
: Command("Std_ViewVR")
|
||||
{
|
||||
sGroup = QT_TR_NOOP("Standard-View");
|
||||
sMenuText = QT_TR_NOOP("FreeCAD-VR");
|
||||
sToolTipText = QT_TR_NOOP("Extend the FreeCAD 3D Window to a Oculus Rift");
|
||||
sWhatsThis = "Std_ViewVR";
|
||||
sStatusTip = QT_TR_NOOP("Extend the FreeCAD 3D Window to a Oculus Rift");
|
||||
sPixmap = "view-zoom-all";
|
||||
eType = Alter3DView;
|
||||
sGroup = QT_TR_NOOP("Standard-View");
|
||||
sMenuText = QT_TR_NOOP("FreeCAD-VR");
|
||||
sToolTipText = QT_TR_NOOP("Extend the FreeCAD 3D Window to a Oculus Rift");
|
||||
sWhatsThis = "Std_ViewVR";
|
||||
sStatusTip = QT_TR_NOOP("Extend the FreeCAD 3D Window to a Oculus Rift");
|
||||
eType = Alter3DView;
|
||||
}
|
||||
|
||||
void StdCmdViewVR::activated(int iMsg)
|
||||
@@ -2039,7 +2038,7 @@ StdViewZoomIn::StdViewZoomIn()
|
||||
sWhatsThis = "Std_ViewZoom";
|
||||
sStatusTip = QT_TR_NOOP("Zoom In");
|
||||
#if QT_VERSION >= 0x040200
|
||||
sPixmap = "view-zoom-in";
|
||||
sPixmap = "zoom-in";
|
||||
#endif
|
||||
sAccel = keySequenceToAccel(QKeySequence::ZoomIn);
|
||||
eType = Alter3DView;
|
||||
@@ -2073,7 +2072,7 @@ StdViewZoomOut::StdViewZoomOut()
|
||||
sWhatsThis = "Std_ViewZoom";
|
||||
sStatusTip = QT_TR_NOOP("Zoom Out");
|
||||
#if QT_VERSION >= 0x040200
|
||||
sPixmap = "view-zoom-out";
|
||||
sPixmap = "zoom-out";
|
||||
#endif
|
||||
sAccel = keySequenceToAccel(QKeySequence::ZoomOut);
|
||||
eType = Alter3DView;
|
||||
@@ -2107,7 +2106,7 @@ StdViewBoxZoom::StdViewBoxZoom()
|
||||
sWhatsThis = "Std_ViewBoxZoom";
|
||||
sStatusTip = QT_TR_NOOP("Box zoom");
|
||||
#if QT_VERSION >= 0x040200
|
||||
sPixmap = "view-zoom-border";
|
||||
sPixmap = "zoom-border";
|
||||
#endif
|
||||
sAccel = "Ctrl+B";
|
||||
eType = Alter3DView;
|
||||
|
||||
Reference in New Issue
Block a user