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

Made updateType contains function const

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9101 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 8c1a850e
......@@ -38,7 +38,7 @@ bool UpdateType::operator==(const UpdateType& _type) const {
};
/// Check if this update contains the given UpdateType
bool UpdateType::contains( const UpdateType& _type ) {
bool UpdateType::contains( const UpdateType& _type ) const {
if ( type_ == UPDATE_ALL.type_ )
return true;
......
......@@ -22,7 +22,7 @@ class DLLEXPORT UpdateType {
bool operator<( const UpdateType& _i ) const;
/// Check if this update contains the given UpdateType
bool contains( const UpdateType& _type );
bool contains( const UpdateType& _type ) const;
protected:
UpdateTypeSet type_;
......
......@@ -302,7 +302,7 @@ void DataControlPlugin::slotObjectPropertiesChanged( int _identifier ){
*
* @param _identifier id of an object
*/
void DataControlPlugin::slotObjectUpdated( int _identifier , UpdateType _type ){
void DataControlPlugin::slotObjectUpdated( int _identifier , const UpdateType _type ){
}
......
......@@ -80,7 +80,7 @@ class DataControlPlugin : public QObject, BaseInterface, ToolboxInterface, KeyIn
signals:
// BaseInterface
void updateView();
void updatedObject(int _it, UpdateType _type);
void updatedObject(int _it, const UpdateType _type);
void setSlotDescription(QString _slotName, QString _slotDescription,
QStringList _parameters, QStringList _descriptions);
......@@ -105,7 +105,7 @@ class DataControlPlugin : public QObject, BaseInterface, ToolboxInterface, KeyIn
// BaseInterface
void initializePlugin();
void pluginsInitialized();
void slotObjectUpdated ( int _identifier , UpdateType _type);
void slotObjectUpdated ( int _identifier , const UpdateType _type);
void slotVisibilityChanged ( int _identifier );
void slotObjectSelectionChanged ( int _identifier );
void slotObjectPropertiesChanged( int _identifier );
......
......@@ -347,7 +347,7 @@ void DecimaterPlugin::slotObjectSelectionChanged(int /*_identifier*/)
//-----------------------------------------------------------------------------
void DecimaterPlugin::slotObjectUpdated(int /*_identifier*/ , UpdateType _type )
void DecimaterPlugin::slotObjectUpdated(int /*_identifier*/ , const UpdateType _type )
{
if ( _type.contains(UPDATE_TOPOLOGY) )
slotUpdateNumVertices ();
......
......@@ -80,7 +80,7 @@ signals:
// BaseInterface
void updateView();
void updatedObject(int _id, UpdateType _type);
void updatedObject(int _id, const UpdateType _type);
void setSlotDescription(QString _slotName, QString _slotDescription,
QStringList _parameters, QStringList _descriptions);
......@@ -100,7 +100,7 @@ private slots:
void initializePlugin();
void pluginsInitialized();
void slotObjectUpdated( int _identifier , UpdateType _type ); // BaseInterface
void slotObjectUpdated( int _identifier , const UpdateType _type ); // BaseInterface
void slotObjectSelectionChanged( int _identifier ); // BaseInterface
public :
......
......@@ -57,6 +57,7 @@
#include <OpenFlipper/ACGHelper/DrawModeConverter.hh>
void FileSPHPlugin::initializePlugin() {
}
......
......@@ -523,7 +523,7 @@ bool InfoPlugin::getEdgeLengths(int _id, double &min, double &max, double &mean)
//------------------------------------------------------------------------------
void InfoPlugin::slotObjectUpdated( int _identifier , UpdateType _type){
void InfoPlugin::slotObjectUpdated( int _identifier , const UpdateType _type){
if ( (PluginFunctions::objectCount() == 1) || (PluginFunctions::targetCount() == 1) ){
......
......@@ -96,7 +96,7 @@ class InfoPlugin : public QObject, BaseInterface, MouseInterface, LoggingInterfa
// BaseInterface
void initializePlugin();
void pluginsInitialized();
void slotObjectUpdated( int _identifier, UpdateType _type );
void slotObjectUpdated( int _identifier, const UpdateType _type );
void slotObjectSelectionChanged( int _identifier );
void slotAllCleared();
......
......@@ -31,7 +31,7 @@ signals:
//BaseInterface
void updateView();
void updatedObject(int _id,UpdateType _type);
void updatedObject(int _id, const UpdateType _type);
void setSlotDescription(QString _slotName, QString _slotDescription,
QStringList _parameters, QStringList _descriptions);
......
......@@ -45,7 +45,6 @@
#include <QObject>
#include <QMenuBar>
#include "PrintPlugin.hh"
#include <OpenFlipper/common/Types.hh>
#include <OpenFlipper/BasePlugin/BaseInterface.hh>
......@@ -59,7 +58,7 @@ class PrintPlugin : public QObject, BaseInterface, MenuInterface, KeyInterface
Q_INTERFACES(MenuInterface)
Q_INTERFACES(KeyInterface)
signals:
signals:
void addMenubarAction(QAction* _action, QString _type );
private slots:
......
......@@ -61,7 +61,7 @@ class SmootherPlugin : public QObject, BaseInterface, ToolboxInterface, LoggingI
signals:
//BaseInterface
void updateView();
void updatedObject(int _id, UpdateType _type);
void updatedObject(int _id, const UpdateType _type);
//LoggingInterface
void log(Logtype _type, QString _message);
......
......@@ -807,7 +807,7 @@ void TextureControlPlugin::computeValue(Texture& _texture, double _min, double _
}
}
void TextureControlPlugin::slotObjectUpdated(int _identifier, UpdateType _type)
void TextureControlPlugin::slotObjectUpdated(int _identifier, const UpdateType _type)
{
if( !_type.contains(UPDATE_ALL) && !_type.contains(UPDATE_GEOMETRY) && !_type.contains(UPDATE_TOPOLOGY) )
return;
......
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