Skip to content

Commit

Permalink
CommandLink: add icons for link commands
Browse files Browse the repository at this point in the history
  • Loading branch information
realthunder committed Jan 10, 2018
1 parent b2568d3 commit 52fe7ee
Show file tree
Hide file tree
Showing 13 changed files with 1,316 additions and 67 deletions.
10 changes: 10 additions & 0 deletions src/Gui/CommandLink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ StdCmdLinkMakeGroup::StdCmdLinkMakeGroup()
sWhatsThis = "Std_LinkMakeGroup";
sStatusTip = sToolTipText;
eType = AlterDoc;
sPixmap = "LinkGroup";
}

bool StdCmdLinkMakeGroup::isActive() {
Expand Down Expand Up @@ -138,6 +139,7 @@ StdCmdLinkMake::StdCmdLinkMake()
sWhatsThis = "Std_LinkMake";
sStatusTip = sToolTipText;
eType = AlterDoc;
sPixmap = "Link";
}

void StdCmdLinkMake::activated(int) {
Expand Down Expand Up @@ -190,6 +192,7 @@ StdCmdLinkMakeRelative::StdCmdLinkMakeRelative()
sWhatsThis = "Std_LinkMakeRelative";
sStatusTip = sToolTipText;
eType = AlterDoc;
sPixmap = "LinkSub";
}

static App::DocumentObject *resolveLinkRelative(std::string *subname=0) {
Expand Down Expand Up @@ -563,6 +566,7 @@ StdCmdLinkReplace::StdCmdLinkReplace()
sWhatsThis = "Std_LinkReplace";
sStatusTip = sToolTipText;
eType = AlterDoc;
sPixmap = "LinkReplace";
}

bool StdCmdLinkReplace::isActive() {
Expand All @@ -586,6 +590,7 @@ StdCmdLinkUnlink::StdCmdLinkUnlink()
sWhatsThis = "Std_LinkUnlink";
sStatusTip = sToolTipText;
eType = AlterDoc;
sPixmap = "Unlink";
}

bool StdCmdLinkUnlink::isActive() {
Expand All @@ -609,6 +614,7 @@ StdCmdLinkImport::StdCmdLinkImport()
sWhatsThis = "Std_LinkImport";
sStatusTip = sToolTipText;
eType = AlterDoc;
sPixmap = "LinkImport";
}

static std::map<App::Document*, std::vector<App::DocumentObject*> > getLinkImportSelections(bool checking)
Expand Down Expand Up @@ -666,6 +672,7 @@ StdCmdLinkImportAll::StdCmdLinkImportAll()
sWhatsThis = "Std_LinkImportAll";
sStatusTip = sToolTipText;
eType = AlterDoc;
sPixmap = "LinkImportAll";
}

bool StdCmdLinkImportAll::isActive() {
Expand Down Expand Up @@ -704,6 +711,7 @@ StdCmdLinkSelectLinked::StdCmdLinkSelectLinked()
sWhatsThis = "Std_LinkSelectLinked";
sStatusTip = sToolTipText;
eType = AlterSelection;
sPixmap = "LinkSelect";
}

static App::DocumentObject *getSelectedLink(bool finalLink) {
Expand Down Expand Up @@ -750,6 +758,7 @@ StdCmdLinkSelectLinkedFinal::StdCmdLinkSelectLinkedFinal()
sWhatsThis = "Std_LinkSelectLinkedFinal";
sStatusTip = sToolTipText;
eType = AlterSelection;
sPixmap = "LinkSelectFinal";
}

bool StdCmdLinkSelectLinkedFinal::isActive() {
Expand Down Expand Up @@ -779,6 +788,7 @@ StdCmdLinkSelectAllLinks::StdCmdLinkSelectAllLinks()
sWhatsThis = "Std_LinkSelectAllLinks";
sStatusTip = sToolTipText;
eType = AlterSelection;
sPixmap = "LinkSelectAll";
}

bool StdCmdLinkSelectAllLinks::isActive() {
Expand Down
96 changes: 36 additions & 60 deletions src/Gui/Icons/Link.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions src/Gui/Icons/LinkArray.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/Gui/Icons/LinkGroup.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 52fe7ee

Please sign in to comment.