diff --git a/DataControlPlugin.cc b/DataControlPlugin.cc index 7471e642643e5569d718390ce856df86d13e900f..3766594c6744b806538a1192783d4e002d744f44 100644 --- a/DataControlPlugin.cc +++ b/DataControlPlugin.cc @@ -74,6 +74,28 @@ const ACG::Vec4f target_color (0.0,0.5,0.2,1.0); //****************************************************************************** + + +DataControlPlugin::DataControlPlugin() : + tool_(0), + toolIcon_(0), + MeshDialogLayout_(0), + objectList_(0), + locked(false), + model_(0), + view_(0), + viewHeader_(0), + onlyDown_(0), + onlyUp_(0), + headerPopupType_(0), + targetAction_(0), + sourceAction_(0), + removeAction_(0) +{ + +} + + /** \brief Plugin initialization * */ @@ -143,7 +165,6 @@ void DataControlPlugin::initializePlugin() if ( ! OpenFlipper::Options::gui()) return; - locked = false; tool_ = new DatacontrolToolboxWidget(); connect( tool_ , SIGNAL( keyEvent( QKeyEvent* ) ), this , SLOT(slotKeyEvent ( QKeyEvent* ) )); @@ -189,9 +210,6 @@ void DataControlPlugin::initializePlugin() emit addToolbox("Data Control", tool_, toolIcon_); - onlyDown_ = 0; - onlyUp_ = 0; - QIcon icon = QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"datacontrol-boundingBox.png"); tool_->boundingBoxBtn->setIcon( icon ); icon = QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"datacontrol-hide-object.png"); diff --git a/DataControlPlugin.hh b/DataControlPlugin.hh index 785b890613867c69b9f31b1bfe48a3ca8d2fc6d5..8794b78d0c3a40108fcd463d92b67f9746f2ef28 100644 --- a/DataControlPlugin.hh +++ b/DataControlPlugin.hh @@ -127,6 +127,10 @@ class DataControlPlugin : public QObject, BaseInterface, ToolboxInterface, KeyIn void noguiSupported( ) {} ; public : + + /// Constructor + DataControlPlugin(); + /// Destructor ~DataControlPlugin() {};