Commit 11c3cbc0 authored by Dirk Wilden's avatar Dirk Wilden

toolbox icon added

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10531 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 17e6cad1
......@@ -48,7 +48,7 @@
#include <iostream>
#include "OpenFlipper/BasePlugin/PluginFunctions.hh"
#include <OpenFlipper/common/GlobalOptions.hh>
void SlicePlugin::initializePlugin(){
//init the slice node
......@@ -88,8 +88,9 @@ void SlicePlugin::initializePlugin(){
connect(tool_->radioZ, SIGNAL( released() ), this, SLOT( updateSlice() ) );
connect(tool_->posSlider, SIGNAL( sliderMoved(int) ), this, SLOT( updateSlice(int) ) );
connect(tool_->sizeSlider, SIGNAL( sliderMoved(int) ), this, SLOT( updateSlice(int) ) );
emit addToolbox( tr("Slice") , tool_ );
toolIcon_ = new QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"slice.png");
emit addToolbox( tr("Slice") , tool_, toolIcon_);
}
void SlicePlugin::resetParameters(){
......
......@@ -72,7 +72,7 @@ signals:
void log( QString _message );
// ToolboxInterface
void addToolbox( QString _name , QWidget* _widget );
void addToolbox( QString _name , QWidget* _widget, QIcon* _icon );
private slots:
......@@ -87,6 +87,7 @@ public :
private :
SliceToolBox* tool_;
QIcon* toolIcon_;
QButtonGroup* bbGroup;
QButtonGroup* axisGroup;
......
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