Commit 8f5f2d2e authored by Martin Schultz's avatar Martin Schultz

* added icon for mesh alignment (Magnet icon cc0 graphic from...

* added icon for mesh alignment (Magnet icon cc0 graphic from https://pixabay.com/en/magnet-horse-shoe-poles-north-312777/

* changed scale icons since i found the svg file ;)

closes #24
parent 1f1ecf17
......@@ -53,14 +53,15 @@ toolBox_(0) {
}
PluginAlignMeshes::~PluginAlignMeshes() {
delete toolIcon_;
}
void PluginAlignMeshes::initializePlugin() {
toolBox_ = new AlignMeshesToolbox();
emit addToolbox("Align Meshes", toolBox_);
toolIcon_ = new QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"alignMeshes.png");
emit addToolbox("Align Meshes", toolBox_, toolIcon_);
connect(toolBox_->alignMeshesButton, SIGNAL(pressed()), SLOT(alignMeshes()));
}
......
......@@ -80,7 +80,7 @@ signals:
void log(QString _message);
// ToolboxInterface
void addToolbox(QString _name, QWidget* _widget);
void addToolbox(QString _name, QWidget* _widget, QIcon* _icon);
public slots:
......@@ -96,6 +96,7 @@ private slots:
private:
AlignMeshesToolbox* toolBox_;
QIcon* toolIcon_;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment