Commit e46b203b authored by Dirk Wilden's avatar Dirk Wilden

removed warnings

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@3265 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 43f3419d
......@@ -61,7 +61,7 @@ class BackupInterface {
* @param _id Identifier of the object to create the backup
* @param _name Name of the Backup, to show the user what can be recovered
*/
virtual void createBackup( int _id , QString _name ) {};
virtual void createBackup( int /*_id*/ , QString /*_name*/ ) {};
private slots:
/** This function will be called if a plugin requests a backup. You can
......@@ -70,7 +70,7 @@ class BackupInterface {
* @param _name Name of the Backup, to show the user what can be recovered
* @param _backup_id Unique Number of the backup.
*/
virtual void slotBackupRequested( int _id , QString _name , int _backup_id) {} ;
virtual void slotBackupRequested( int /*_id*/ , QString /*_name*/ , int /*_backup_id*/) {} ;
/** This function will be called if a plugin requests a backup. You can
* also react on this event.
......@@ -78,7 +78,7 @@ class BackupInterface {
* @param _name Name of the Backup, to show the user what can be recovered
* @param _backup_id Unique Number of the backup.
*/
virtual void slotRestoreRequested( int _id , QString _name , int _backup_id) {};
virtual void slotRestoreRequested( int /*_id*/ , QString /*_name*/ , int /*_backup_id*/) {};
public :
......
......@@ -92,7 +92,7 @@ class BaseInterface {
* Dont emit BaseInterface::updated_objects(int) in this slot as this causes an endless Loop!!
* @param _identifier Identifier of the updated/new object or -1 if one is deleted
*/
virtual void slotObjectUpdated( int _identifier ) {};
virtual void slotObjectUpdated( int /*_identifier*/ ) {};
/** \brief Called if the whole scene is cleared
*
......
......@@ -82,7 +82,7 @@ signals:
* This Menu will be always visible when you rightclick in the viewer widget.
* @param _menu Pointer to the new Menu
*/
virtual void addContextMenu(QMenu* _menu , ContextMenuType _type) {};
virtual void addContextMenu(QMenu* /*_menu*/ , ContextMenuType /*_type*/) {};
/** \brief Add an entry for a context Menu
*
......@@ -95,7 +95,7 @@ signals:
* @param _objectType Type of the picked object
* @param _type Type of the context Menu ( See ContextMenuType )
*/
virtual void addContextMenu(QMenu* _menu ,DataType _objectType , ContextMenuType _type ) {};
virtual void addContextMenu(QMenu* /*_menu*/ ,DataType /*_objectType*/ , ContextMenuType /*_type*/ ) {};
private slots:
......@@ -104,7 +104,7 @@ private slots:
* depending on the given object,
* @param _objectId id of the object or -1 if nothing picked
*/
virtual void slotUpdateContextMenu( int _objectId ) {};
virtual void slotUpdateContextMenu( int /*_objectId*/ ) {};
};
......
......@@ -61,7 +61,7 @@ class FileInterface {
public :
/** \brief The core gives the root of the object tree via this function */
virtual void setObjectRoot( BaseObject* _root ) = 0;
virtual void setObjectRoot( BaseObject* /*_root*/ ) = 0;
/// Return support for adding empty objects
virtual bool supportAddEmpty() = 0;
......@@ -88,7 +88,7 @@ class FileInterface {
*
* Return 0 when you dont need one
*/
virtual QWidget* saveOptionsWidget(QString _currentFilter) = 0;
virtual QWidget* saveOptionsWidget(QString /*_currentFilter*/) = 0;
/** You can provide a special widget showing options for loading your file types
* depending on the current filter
......@@ -97,15 +97,15 @@ class FileInterface {
*
* Return 0 when you dont need one
*/
virtual QWidget* loadOptionsWidget(QString _currentFilter) = 0;
virtual QWidget* loadOptionsWidget(QString /*_currentFilter*/) = 0;
public slots:
/// load an object from the given file
virtual int loadObject(QString _filename) = 0;
virtual int loadObject(QString /*_filename*/) = 0;
/// Save the object with given id,filename
virtual bool saveObject(int _id, QString _filename) = 0;
virtual bool saveObject(int /*_id*/, QString /*_filename*/) = 0;
//Optionswidget
......
......@@ -65,7 +65,7 @@ class GlobalAccessInterface {
* This function is called to set a pointer to the global examiner Widget.\n
* @param _examiner_widget Pointer to the Examiner Widget in the Main app
*/
virtual void set_examiner(ACG::QtWidgets::QtExaminerViewer* _examiner_widget) = 0;
virtual void set_examiner(ACG::QtWidgets::QtExaminerViewer* /*_examiner_widget*/) = 0;
};
......
......@@ -71,23 +71,23 @@ class INIInterface {
* @param _ini ini file
* @param _id Id of the object to load data for
*/
virtual void loadIniFile( INIFile& _ini ,int _id ) {};
virtual void loadIniFile( INIFile& /*_ini*/ ,int /*_id*/ ) {};
/** Save object information to an ini file
* @param _ini ini file
* @param _id Identifier of the object to save (-1 for all)
*/
virtual void saveIniFile( INIFile& _ini ,int _id) {};
virtual void saveIniFile( INIFile& /*_ini*/ ,int /*_id*/) {};
/** Load Plugin options (state information) to an ini file
* @param _ini ini file
*/
virtual void loadIniFileOptions( INIFile& _ini ) {};
virtual void loadIniFileOptions( INIFile& /*_ini*/ ) {};
/** Save Plugin options (state information) to an ini file
* @param _ini ini file
*/
virtual void saveIniFileOptions( INIFile& _ini ) {};
virtual void saveIniFileOptions( INIFile& /*_ini*/ ) {};
};
......
......@@ -66,7 +66,7 @@ class KeyInterface {
* @param _description a short description about the functionality
* @param _multiUse can the key additionally be registered by another plugin
*/
virtual void registerKey(int _key, Qt::KeyboardModifiers _modifiers, QString _description, bool _multiUse = false) {};
virtual void registerKey(int /*_key*/, Qt::KeyboardModifiers /*_modifiers*/, QString /*_description*/, bool /*_multiUse*/ = false) {};
public slots :
......@@ -75,14 +75,14 @@ class KeyInterface {
* This slot is called if a key event occured in the Viewer
* @param _event Keyevent
*/
virtual void slotKeyEvent( QKeyEvent* _event ) {};
virtual void slotKeyEvent( QKeyEvent* /*_event*/ ) {};
/** \brief Key Release Event from Main App
*
* This slot is called if a key release event occured in the Viewer
* @param _event Keyevent
*/
virtual void slotKeyReleaseEvent( QKeyEvent* _event ) {};
virtual void slotKeyReleaseEvent( QKeyEvent* /*_event*/ ) {};
public :
......
......@@ -60,37 +60,37 @@ class LoadSaveInterface {
* @param _type Type to be loaded
* @param _id Here the id of the loaded object is returned. id its -1 something went wrong
*/
virtual void load(QString _filename, DataType _type, int& _id) {};
virtual void load(QString /*_filename*/, DataType /*_type*/, int& /*_id*/) {};
/** Add an empty object of the given type
*
* @param _type Type to be created
* @param _id Here the id of the loaded object is returned. id its -1 something went wrong
*/
virtual void addEmptyObject( DataType _type, int& _id) {};
virtual void addEmptyObject( DataType /*_type*/, int& /*_id*/) {};
/**
*
* @param _id Object to Save
* @param _filename Filename to save it to (Leave as "" to automatically determine filename)
*/
virtual void save(int _id , QString _filename ) {};
virtual void save(int /*_id*/ , QString /*_filename*/ ) {};
/** \brief file has been opened
* @param _id Id of the opened object
*/
virtual void openedFile( int _id ) {};
virtual void openedFile( int /*_id*/ ) {};
/** \brief Emit this signal if an empty object has been created
* @param _id Id of the added object
*/
virtual void emptyObjectAdded( int _id ) {};
virtual void emptyObjectAdded( int /*_id*/ ) {};
/** \brief get a list of all Filters
* request a list of all Filters
* @param _list StringList where the filters should be put into
*/
virtual void getAllFilters( QStringList& _list ) {};
virtual void getAllFilters( QStringList& /*_list*/ ) {};
private slots :
......@@ -99,7 +99,7 @@ class LoadSaveInterface {
* This slot is called if a file has been opened by the core.\n
* @param _id Id of the new object
*/
virtual void fileOpened( int _id ) {};
virtual void fileOpened( int /*_id*/ ) {};
};
......
......@@ -61,19 +61,19 @@ class LoggingInterface {
* @param _type Message type (LOGINFO,LOGOUT,LOGWARN,LOGERR)
* @param _message Message to be displayed
*/
virtual void log(Logtype _type, QString _message) = 0;
virtual void log(Logtype /*_type*/, QString /*_message*/) = 0;
/** Send a log message to the mainwindow of the widget \n
* defaults to LOGOUT message type
* @param _message Message to be displayed
*/
virtual void log(QString _message) = 0;
virtual void log(QString /*_message*/) = 0;
private slots:
/** Through this slot you can receive all logging information emitted by OpenFlipper
* or one of its plugins */
virtual void logOutput( Logtype _type , QString _message ) {};
virtual void logOutput( Logtype /*_type*/ , QString /*_message*/ ) {};
};
......
......@@ -88,7 +88,7 @@ signals:
* @param _menu Pointer to the new Menu
* @param _type Type of the Menu ( See MenuType for Details )
*/
virtual void initializeMenu(QMenu* _menu, MenuType _type ) {};
virtual void initializeMenu(QMenu* /*_menu*/, MenuType /*_type*/ ) {};
};
......
......@@ -66,7 +66,7 @@ class MouseInterface {
* @param _event Mousevent
* @param _mode Name of the current Picking Mode.
*/
virtual void slotMouseWheelEvent(QWheelEvent * _event, const std::string & _mode) {};
virtual void slotMouseWheelEvent(QWheelEvent * /*_event*/, const std::string & /*_mode*/) {};
/** \brief Mouse Event from Main App ( Picking Mode )
*
......@@ -77,7 +77,7 @@ class MouseInterface {
*
* @param _event Mousevent
*/
virtual void slotMouseEvent( QMouseEvent* _event ) {};
virtual void slotMouseEvent( QMouseEvent* /*_event*/ ) {};
/** \brief Mouse Event from Main App ( Identify Mode )
*
......
......@@ -58,7 +58,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
*
......@@ -68,13 +68,13 @@ 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 Add a new picking mode to the examiner and has its own cursor
*
* @param _mode Identifier of Picking mode or "Separator" to add a Separator
*/
virtual void addPickMode( const std::string _mode , QCursor _cursor ) {};
virtual void addPickMode( const std::string /*_mode*/ , QCursor /*_cursor*/ ) {};
/** \brief Add a new picking mode to the examiner which will be invisible but has its own cursor
*
......@@ -84,7 +84,7 @@ class PickingInterface {
*
* @param _mode Identifier of Picking mode or "Separator" to add a Separator
*/
virtual void addHiddenPickMode( const std::string _mode , QCursor _cursor ) {};
virtual void addHiddenPickMode( const std::string /*_mode*/ , QCursor /*_cursor*/ ) {};
/** \brief The pickingMode has changed
......@@ -92,7 +92,7 @@ class PickingInterface {
* This slot is called if the user changes the current picking mode
* @param _mode Identifier of Picking mode
*/
virtual void slotPickModeChanged( const std::string& _mode) {};
virtual void slotPickModeChanged( const std::string& /*_mode*/) {};
public :
......
......@@ -54,7 +54,7 @@ class RPCInterface {
* @param _pluginName Name of the Plugin (has to be the clean version .. no Spaces etc)
* @param _exists found or not
*/
virtual void pluginExists( QString _pluginName , bool& _exists ) {};
virtual void pluginExists( QString /*_pluginName*/ , bool& /*_exists*/ ) {};
/** Check if a plugin exists and provides the given function \n
......@@ -62,7 +62,7 @@ class RPCInterface {
* @param _functionName requested function
* @param _exists found or not
*/
virtual void functionExists( QString _pluginName , QString _functionName , bool& _exists ) {};
virtual void functionExists( QString /*_pluginName*/ , QString /*_functionName*/ , bool& /*_exists*/ ) {};
/** Execute the function of the given plugin \n
*
......@@ -70,7 +70,7 @@ class RPCInterface {
* @param _functionName requested function
* @param _success Function call succeeded
*/
virtual void call( QString _pluginName , QString _functionName , bool& _success ) {};
virtual void call( QString /*_pluginName*/ , QString /*_functionName*/ , bool& /*_success*/ ) {};
/** Executes the given expression.
* No checks are performed if the remote function is available.
......@@ -78,7 +78,7 @@ class RPCInterface {
* @param _expression command to execute
* @param _success successfull execution?
*/
virtual void call( QString _expression , bool& _success ) {};
virtual void call( QString /*_expression*/ , bool& /*_success*/ ) {};
/** Executes the given expression and returns the result
* No checks are performed if the remote function is available.
......@@ -90,9 +90,9 @@ class RPCInterface {
* @param _expression command to execute
* @param _result The return value of the command
*/
virtual void getValue( QString _expression , QVariant& _result ) {};
virtual void getValue( QString /*_expression*/ , QVariant& /*_result*/ ) {};
virtual void getPlugin( QString _name, QObject* & _plugin ) {};
virtual void getPlugin( QString /*_name*/, QObject* & /*_plugin*/ ) {};
};
......
......@@ -61,22 +61,22 @@ class ScriptInterface {
* @param _functionName the called function
* @param _exists found or not
*/
virtual void scriptInfo( QString _functionName ) {};
virtual void scriptInfo( QString /*_functionName*/ ) {};
/** Emit this signal to execute a script
* @param _script The script to execute
*/
virtual void executeScript( QString _script ) {};
virtual void executeScript( QString /*_script*/ ) {};
/** Emit this signal to get the core scripting engine
* @param _engine The scripting Engine
*/
virtual void getScriptingEngine( QScriptEngine*& _engine ) {};
virtual void getScriptingEngine( QScriptEngine*& /*_engine*/ ) {};
/** With this signal you can get a list of all available scripting functions
* @param _functions All available functions
*/
virtual void getAvailableFunctions( QStringList& _functions ) {};
virtual void getAvailableFunctions( QStringList& /*_functions*/ ) {};
private slots:
......@@ -85,19 +85,19 @@ class ScriptInterface {
* @param _pluginName Name of the plugin that executed a scriptable function
* @param _functionName Name of the executed function
*/
virtual void slotScriptInfo( QString _pluginName , QString _functionName ) {};
virtual void slotScriptInfo( QString /*_pluginName*/ , QString /*_functionName*/ ) {};
/** Slot for a scripting plugin. Gets the Script and executes it.
*
* @param _script Script to execute
*/
virtual void slotExecuteScript( QString _script ) {};
virtual void slotExecuteScript( QString /*_script*/ ) {};
/** Call this slot to open the given file and execute the script in it
*/
virtual void slotExecuteFileScript( QString _filename ) {};
virtual void slotExecuteFileScript( QString /*_filename*/ ) {};
};
......
......@@ -72,13 +72,13 @@ class StatusbarInterface {
* You can specify a timeout if the message should be removed after
* _timeout milliseconds
*/
virtual void showStatusMessage(QString _message, int _timeout = 0) {};
virtual void showStatusMessage(QString /*_message*/, int /*_timeout*/ = 0) {};
/** \brief Sets the icon of the StatusBar
*
*/
void setStatus( ApplicationStatus::applicationStatus _status) {};
void setStatus( ApplicationStatus::applicationStatus /*_status*/) {};
/** \brief Removes the current message from the statusBar
*
......
......@@ -64,11 +64,11 @@ class TextureInterface {
* @param _filename Filename of the texture ( "./Textures/<name>")
* @param _dimension 1D texture ( currenty only supports 1 )
*/
virtual void addTexture( QString _name , QString _filename , uint _dimension ) {};
virtual void addTexture( QString /*_name*/ , QString /*_filename*/ , uint /*_dimension*/ ) {};
/** \brief Tell Plugins to update the given texture for the given identifier
*/
virtual void updateTexture( QString _textureName , int _identifier) {};
virtual void updateTexture( QString /*_textureName*/ , int /*_identifier*/) {};
/** \brief Tell Plugins to update all textures
*/
......@@ -107,14 +107,14 @@ class TextureInterface {
* @param _textureName Name of your Texture
* @param _mode colon seperated String describing your settings (e.g. clamp,abs )
*/
virtual void setTextureMode(QString _textureName ,QString _mode) {};
virtual void setTextureMode(QString /*_textureName*/ ,QString /*_mode*/) {};
private slots :
/** \brief update the texture with the given Name ( if this plugin provides this texture ) for all meshes
* @param _textureName Name of the Texture to be updated
* @param _identifier The id of the object to update
*/
virtual void slotUpdateTexture( QString _textureName , int _identifier) {};
virtual void slotUpdateTexture( QString /*_textureName*/ , int /*_identifier*/) {};
/** \brief update all textures provided by this plugin
*/
......@@ -127,7 +127,7 @@ class TextureInterface {
* @param _filename Filename of the Texture Image to be used
* @param dimension Dimension of the Texture (currently only 1D and 2D Textures are supported
*/
virtual void slotTextureAdded( QString _textureName , QString _filename , uint dimension ) {};
virtual void slotTextureAdded( QString /*_textureName*/ , QString /*_filename*/ , uint /*dimension*/ ) {};
/** \brief A texture has been updated
*
......@@ -135,7 +135,7 @@ class TextureInterface {
* @param _textureName The name of the updated texture
* @param _identifier -1 if all objects updated, otherwise the identifier of the object
*/
virtual void slotTextureUpdated( QString _textureName , int _identifier ) {};
virtual void slotTextureUpdated( QString /*_textureName*/ , int /*_identifier*/ ) {};
/** \brief Texturemode for texture should be changed
*
......@@ -143,13 +143,13 @@ class TextureInterface {
* @param _textureName The name of the updated texture
* @param _mode New mode flags for the given texture
*/
virtual void slotSetTextureMode(QString _textureName ,QString _mode) {};
virtual void slotSetTextureMode(QString /*_textureName*/ ,QString /*_mode*/) {};
/** \brief This slot is called when a plugin requests to switch to a different texture mode
*
* @param _textureName Name of the Texture
*/
virtual void slotSwitchTexture( QString _textureName ) {};
virtual void slotSwitchTexture( QString /*_textureName*/ ) {};
public :
......
......@@ -68,14 +68,14 @@ class ToolbarInterface {
* To create your own Toolbar, emit this signal with a pointer to your Toolbar.
* @param _toolbar Your Toolbar
*/
virtual void addToolbar(QToolBar* _toolbar) {};
virtual void addToolbar(QToolBar* /*_toolbar*/) {};
/** \brief Remove a Toolbar from the main widget
*
* @param _toolbar Toolbar to be removed
*/
virtual void removeToolbar(QToolBar* _toolbar) {};
virtual void removeToolbar(QToolBar* /*_toolbar*/) {};
};
......
......@@ -77,14 +77,14 @@ class ToolboxInterface {
* @param _widget Pointer to the new Widget
* @return Return true if a widget has been created
*/
virtual bool initializeToolbox(QWidget*& _widget) = 0;
virtual bool initializeToolbox(QWidget*& /*_widget*/) = 0;
/** \brief The Toolbox of this Widget is activated/deactivated
*
* Called, when the user selected this widgets toolbox
* @param _active (when true, toolbox has been activated else deactivated)
*/
virtual void toolboxActivated(bool _active ) = 0;
virtual void toolboxActivated(bool /*_active*/ ) = 0;
signals :
......@@ -95,7 +95,7 @@ class ToolboxInterface {
* @param _mode name of the ViewMode
* @param _usedWidgets list of used Widgets names
*/
virtual void defineViewMode(QString& _mode, QStringList& _usedWidgets){};
virtual void defineViewMode(QString& /*_mode*/, QStringList& /*_usedWidgets*/){};
};
......
......@@ -61,20 +61,20 @@ class ViewInterface {
* @param _name Name of the Widget
* @param _widget The requested widget or 0 if not found
*/
virtual void getStackWidget( QString _name, QWidget*& _widget ) {};
virtual void getStackWidget( QString /*_name*/, QWidget*& /*_widget*/ ) {};
/** Update a widget form the Stackwidget with Name. *
* @param _name Name of the Widget
* @param _widget The requested widget or 0 if not found
*/
virtual void updateStackWidget( QString _name, QWidget* _widget ) {};
virtual void updateStackWidget( QString /*_name*/, QWidget* /*_widget*/ ) {};
/** Add a widget to the Stackwidget with a Name.
*
* @param _name Name of the Widget
* @param _widget The new widget
*/
virtual void addStackWidget( QString _name, QWidget* _widget ) {};
virtual void addStackWidget( QString /*_name*/, QWidget* /*_widget*/ ) {};
public :
......
......@@ -246,7 +246,7 @@ void CoreWidget::slotChangeView(QString _mode, QStringList _toolWidgets){
}
/// Slot is called when the visibility of a toolWidget changes
void CoreWidget::slotVisibilityChanged ( bool visible ){
void CoreWidget::slotVisibilityChanged ( bool /*visible*/ ){
for (uint p=0; p < plugins_.size(); p++){
if (!plugins_[p].widget) continue;
if (plugins_[p].widget->isVisible() && !plugins_[p].widget->isFloating()){
......
......@@ -87,7 +87,7 @@ OptionsWidget::OptionsWidget(std::vector<PluginInfo>& _plugins, std::vector<KeyB
connect(progressDialog, SIGNAL(canceled()), this, SLOT(cancelDownload()));
}
void OptionsWidget::showEvent ( QShowEvent * event ) {
void OptionsWidget::showEvent ( QShowEvent * /*event*/ ) {
//general
fullscreen->setChecked( OpenFlipper::Options::fullScreen() );
......
......@@ -136,12 +136,12 @@ void viewModeWidget::slotRemoveWidget(){
}
/// Slot for updating removeButton when new mode is selected
void viewModeWidget::slotModeClicked(QModelIndex _id){
void viewModeWidget::slotModeClicked(QModelIndex /*_id*/){
slotModeChanged(QString());
}
/// Slot for updating removeButton when new mode is selected
void viewModeWidget::slotModeChanged(QString _mode){
void viewModeWidget::slotModeChanged(QString /*_mode*/){
//check if mode is custom e.g. that it can be removed
if (modeList->selectedItems().count() > 0){
for (int i=0; i < modes_.size(); i++)
......
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