Commit bb1f618e authored by Jan Möbius's avatar Jan Möbius

PickModeInterface make const std::string reference

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@13342 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 4c07628d
......@@ -70,7 +70,7 @@ class PickingInterface {
*
* @param _mode Identifier of Picking mode or "Separator" to add a Separator
*/
virtual void addPickMode( const std::string _mode) {};
virtual void addPickMode( const std::string& _mode) {};
/** \brief Add a new picking mode to the examiner which will be invisible
*
......@@ -80,7 +80,7 @@ class PickingInterface {
*
* @param _mode Identifier of Picking mode or "Separator" to add a Separator
*/
virtual void addHiddenPickMode( const std::string _mode ) {};
virtual void addHiddenPickMode( const std::string& _mode ) {};
/** \brief Set the cursor of the given PickMode
*
......@@ -89,7 +89,7 @@ class PickingInterface {
* @param _mode Identifier of Picking mode
* @param _cursor the new cursor
*/
virtual void setPickModeCursor( const std::string _mode , QCursor _cursor ) {};
virtual void setPickModeCursor( const std::string& _mode , QCursor _cursor ) {};
/** \brief Set mouse tracking for the given PickMode
*
......@@ -99,7 +99,7 @@ class PickingInterface {
* @param _mode Identifier of Picking mode
* @param _mouseTracking new state of mouseTracking
*/
virtual void setPickModeMouseTracking( const std::string _mode , bool _mouseTracking ) {};
virtual void setPickModeMouseTracking( const std::string& _mode , bool _mouseTracking ) {};
/** \brief Set the additional toolbar of the given PickMode
*
......@@ -108,7 +108,7 @@ class PickingInterface {
* @param _mode Identifier of Picking mode
* @param _toolbar the toolbar
*/
virtual void setPickModeToolbar( const std::string _mode , QToolBar * _toolbar ) {};
virtual void setPickModeToolbar( const std::string& _mode , QToolBar * _toolbar ) {};
/** \brief Removes the additional toolbar of the given PickMode
*
......@@ -116,7 +116,7 @@ class PickingInterface {
*
* @param _mode Identifier of Picking mode
*/
virtual void removePickModeToolbar( const std::string _mode ) {};
virtual void removePickModeToolbar( const std::string& _mode ) {};
private slots:
......
......@@ -1152,31 +1152,31 @@ void Core::loadPlugin(QString filename, bool silent, QString& _licenseErrors, QO
connect(coreWidget_,SIGNAL(signalPickModeChanged (const std::string &)),
plugin,SLOT(slotPickModeChanged( const std::string &)));
if ( checkSignal(plugin,"addPickMode(const std::string)") )
connect(plugin,SIGNAL(addPickMode( const std::string )),
this,SLOT(slotAddPickMode( const std::string )),Qt::DirectConnection);
if ( checkSignal(plugin,"addPickMode(const std::string&)") )
connect(plugin,SIGNAL(addPickMode( const std::string& )),
this,SLOT(slotAddPickMode( const std::string& )),Qt::DirectConnection);
if ( checkSignal(plugin,"addHiddenPickMode(const std::string)") )
connect(plugin,SIGNAL(addHiddenPickMode( const std::string )),
this,SLOT(slotAddHiddenPickMode( const std::string )),Qt::DirectConnection);
if ( checkSignal(plugin,"addHiddenPickMode(const std::string&)") )
connect(plugin,SIGNAL(addHiddenPickMode( const std::string& )),
this,SLOT(slotAddHiddenPickMode( const std::string& )),Qt::DirectConnection);
if ( checkSignal(plugin,"setPickModeCursor(const std::string,QCursor)") )
if ( checkSignal(plugin,"setPickModeCursor(const std::string&,QCursor)") )
for ( uint i = 0 ; i < OpenFlipper::Options::examinerWidgets() ; ++i )
connect(plugin,SIGNAL(setPickModeCursor( const std::string ,QCursor)),
coreWidget_,SLOT(setPickModeCursor( const std::string ,QCursor)),Qt::DirectConnection);
connect(plugin,SIGNAL(setPickModeCursor( const std::string& ,QCursor)),
coreWidget_,SLOT(setPickModeCursor( const std::string& ,QCursor)),Qt::DirectConnection);
if ( checkSignal(plugin,"setPickModeMouseTracking(const std::string,bool)") )
if ( checkSignal(plugin,"setPickModeMouseTracking(const std::string&,bool)") )
for ( uint i = 0 ; i < OpenFlipper::Options::examinerWidgets() ; ++i )
connect(plugin,SIGNAL(setPickModeMouseTracking( const std::string ,bool)),
coreWidget_,SLOT(setPickModeMouseTracking( const std::string ,bool)),Qt::DirectConnection);
connect(plugin,SIGNAL(setPickModeMouseTracking( const std::string& ,bool)),
coreWidget_,SLOT(setPickModeMouseTracking( const std::string& ,bool)),Qt::DirectConnection);
if ( checkSignal(plugin,"setPickModeToolbar(const std::string,QToolBar*)") )
connect(plugin,SIGNAL(setPickModeToolbar (const std::string, QToolBar*)),
coreWidget_,SLOT(setPickModeToolbar (const std::string, QToolBar*)),Qt::DirectConnection);
if ( checkSignal(plugin,"setPickModeToolbar(const std::string&,QToolBar*)") )
connect(plugin,SIGNAL(setPickModeToolbar (const std::string&, QToolBar*)),
coreWidget_,SLOT(setPickModeToolbar (const std::string&, QToolBar*)),Qt::DirectConnection);
if ( checkSignal(plugin,"removePickModeToolbar(const std::string)") )
connect(plugin,SIGNAL(removePickModeToolbar( const std::string)),
coreWidget_,SLOT(removePickModeToolbar( const std::string)),Qt::DirectConnection);
if ( checkSignal(plugin,"removePickModeToolbar(const std::string&)") )
connect(plugin,SIGNAL(removePickModeToolbar( const std::string&)),
coreWidget_,SLOT(removePickModeToolbar( const std::string&)),Qt::DirectConnection);
}
......
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