Skip to content

Commit

Permalink
Add SVG icons for five Std Tool commands
Browse files Browse the repository at this point in the history
This commit adds SVG files with icons for these commands. Also, it makes the necessary changes on CommandStd.cpp, CommandDoc.cpp, CommandView.cpp and resource.qrc files. 
Forum Discussion: https://forum.freecadweb.org/viewtopic.php?f=34&t=51502&start=10
  • Loading branch information
bitacovir authored and wwmayer committed Nov 22, 2020
1 parent 5a9da45 commit acf9b1f
Show file tree
Hide file tree
Showing 9 changed files with 1,251 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Gui/CommandDoc.cpp
Expand Up @@ -384,6 +384,7 @@ StdCmdDependencyGraph::StdCmdDependencyGraph()
sStatusTip = QT_TR_NOOP("Show the dependency graph of the objects in the active document");
sWhatsThis = "Std_DependencyGraph";
eType = 0;
sPixmap = "Std_DependencyGraph";
}

void StdCmdDependencyGraph::activated(int iMsg)
Expand Down Expand Up @@ -658,6 +659,7 @@ StdCmdProjectUtil::StdCmdProjectUtil()
sMenuText = QT_TR_NOOP("Project utility...");
sToolTipText = QT_TR_NOOP("Utility to extract or create project files");
sStatusTip = QT_TR_NOOP("Utility to extract or create project files");
sPixmap = "Std_ProjectUtil";
}

void StdCmdProjectUtil::activated(int iMsg)
Expand Down
2 changes: 1 addition & 1 deletion src/Gui/CommandStd.cpp
Expand Up @@ -343,7 +343,7 @@ StdCmdDlgParameter::StdCmdDlgParameter()
sToolTipText = QT_TR_NOOP("Opens a Dialog to edit the parameters");
sWhatsThis = "Std_DlgParameter";
sStatusTip = QT_TR_NOOP("Opens a Dialog to edit the parameters");
//sPixmap = "settings";
sPixmap = "Std_DlgParameter";
eType = 0;
}

Expand Down
2 changes: 2 additions & 0 deletions src/Gui/CommandView.cpp
Expand Up @@ -3009,6 +3009,7 @@ StdCmdSceneInspector::StdCmdSceneInspector()
sWhatsThis = "Std_SceneInspector";
sStatusTip = QT_TR_NOOP("Scene inspector");
eType = Alter3DView;
sPixmap = "Std_SceneInspector";
}

void StdCmdSceneInspector::activated(int iMsg)
Expand Down Expand Up @@ -3067,6 +3068,7 @@ StdCmdDemoMode::StdCmdDemoMode()
sWhatsThis = "Std_DemoMode";
sStatusTip = QT_TR_NOOP("View turntable");
eType = Alter3DView;
sPixmap = "Std_DemoMode";
}

void StdCmdDemoMode::activated(int iMsg)
Expand Down
325 changes: 325 additions & 0 deletions src/Gui/Icons/Std_DemoMode.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit acf9b1f

Please sign in to comment.