Navigation Menu

Skip to content

Commit

Permalink
adding drawstyle icons
Browse files Browse the repository at this point in the history
  • Loading branch information
tanderson authored and yorikvanhavre committed Jan 16, 2014
1 parent 3b81765 commit 6f91426
Show file tree
Hide file tree
Showing 7 changed files with 1,402 additions and 6 deletions.
8 changes: 8 additions & 0 deletions src/Gui/CommandView.cpp
Expand Up @@ -549,6 +549,7 @@ StdCmdDrawStyle::StdCmdDrawStyle()
sMenuText = QT_TR_NOOP("Draw style");
sToolTipText = QT_TR_NOOP("Draw style");
sStatusTip = QT_TR_NOOP("Draw style");
sPixmap = "DrawStyleAsIs";
eType = Alter3DView;

this->getGuiApplication()->signalActivateView.connect(boost::bind(&StdCmdDrawStyle::updateIcon, this, _1));
Expand All @@ -562,14 +563,21 @@ Gui::Action * StdCmdDrawStyle::createAction(void)

QAction* a0 = pcAction->addAction(QString());
a0->setCheckable(true);
a0->setIcon(BitmapFactory().pixmap("DrawStyleAsIs"));
a0->setChecked(true);
QAction* a1 = pcAction->addAction(QString());
a1->setCheckable(true);
a1->setIcon(BitmapFactory().pixmap("DrawStyleFlatLines"));
QAction* a2 = pcAction->addAction(QString());
a2->setCheckable(true);
a2->setIcon(BitmapFactory().pixmap("DrawStyleShaded"));
QAction* a3 = pcAction->addAction(QString());
a3->setCheckable(true);
a3->setIcon(BitmapFactory().pixmap("DrawStyleWireFrame"));
QAction* a4 = pcAction->addAction(QString());
a4->setCheckable(true);
a4->setIcon(BitmapFactory().pixmap("DrawStylePoints"));
pcAction->setIcon(a0->icon());

_pcAction = pcAction;
languageChange();
Expand Down
281 changes: 281 additions & 0 deletions src/Gui/Icons/DrawStyleAsIs.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 6f91426

Please sign in to comment.