Skip to content

Commit

Permalink
Sketcher: Ellipse implementation: Art by Jim
Browse files Browse the repository at this point in the history
  • Loading branch information
abdullahtahiriyo authored and wwmayer committed Dec 20, 2014
1 parent fc7f179 commit c8d7f70
Show file tree
Hide file tree
Showing 4 changed files with 354 additions and 18 deletions.
10 changes: 5 additions & 5 deletions src/Mod/Sketcher/Gui/CommandCreateGeo.cpp
Expand Up @@ -2569,7 +2569,7 @@ CmdSketcherCreateEllipseBy3Points::CmdSketcherCreateEllipseBy3Points()
sToolTipText = QT_TR_NOOP("Create an ellipse by 3 points in the sketch");
sWhatsThis = sToolTipText;
sStatusTip = sToolTipText;
sPixmap = "Sketcher_Conics_Ellipse_3points";
sPixmap = "Sketcher_CreateEllipse_3points";
eType = ForEdit;
}

Expand Down Expand Up @@ -3009,19 +3009,19 @@ Gui::Action * CmdSketcherCompCreateConic::createAction(void)
applyCommandData(this->className(), pcAction);

QAction* ellipseByCenter = pcAction->addAction(QString());
ellipseByCenter->setIcon(Gui::BitmapFactory().pixmapFromSvg("Sketcher_CreateEllipse", QSize(32,32)));
ellipseByCenter->setIcon(Gui::BitmapFactory().pixmapFromSvg("Sketcher_CreateEllipse", QSize(24,24)));
/// @todo replace with correct icon
QAction* ellipseBy3Points = pcAction->addAction(QString());
ellipseBy3Points->setIcon(Gui::BitmapFactory().pixmapFromSvg("Sketcher_Conics_Ellipse_3points", QSize(32,32)));
ellipseBy3Points->setIcon(Gui::BitmapFactory().pixmapFromSvg("Sketcher_CreateEllipse_3points", QSize(24,24)));

QAction* arcofellipse = pcAction->addAction(QString());
arcofellipse->setIcon(Gui::BitmapFactory().pixmapFromSvg("Sketcher_Elliptical_Arc", QSize(32,32)));
arcofellipse->setIcon(Gui::BitmapFactory().pixmapFromSvg("Sketcher_Elliptical_Arc", QSize(24,24)));

_pcAction = pcAction;
languageChange();

// set ellipse by center, a, b as default method
pcAction->setIcon(Gui::BitmapFactory().pixmapFromSvg("Sketcher_Conics", QSize(32,32)));
pcAction->setIcon(Gui::BitmapFactory().pixmapFromSvg("Sketcher_Conics", QSize(24,24)));
int defaultId = 0;
pcAction->setProperty("defaultAction", QVariant(defaultId));

Expand Down
1 change: 1 addition & 0 deletions src/Mod/Sketcher/Gui/Resources/Sketcher.qrc
Expand Up @@ -49,6 +49,7 @@
<file>icons/Sketcher_CreateArc.svg</file>
<file>icons/Sketcher_CreateCircle.svg</file>
<file>icons/Sketcher_CreateEllipse.svg</file>
<file>icons/Sketcher_CreateEllipse_3points.svg</file>
<file>icons/Sketcher_CreateFillet.svg</file>
<file>icons/Sketcher_CreateHeptagon.svg</file>
<file>icons/Sketcher_CreateHexagon.svg</file>
Expand Down
26 changes: 13 additions & 13 deletions src/Mod/Sketcher/Gui/Resources/icons/Sketcher_CreateEllipse.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 c8d7f70

Please sign in to comment.