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

Basic context menu implementation. Not yet switching textures.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@5641 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 8b1f709a
......@@ -753,5 +753,9 @@ void TextureControlPlugin::slotUpdateContextMenu( int _objectId ) {
}
void TextureControlPlugin::slotTextureContextMenu( QAction * _action ) {
}
Q_EXPORT_PLUGIN2( texturecontrolplugin , TextureControlPlugin );
......@@ -123,9 +123,6 @@ class TextureControlPlugin : public QObject, BaseInterface, TextureInterface, Me
// LoadSaveInterface
void fileOpened( int _id );
// ContextMenuInterface
void slotUpdateContextMenu( int _objectId );
private slots:
/// Called when an action in the TextureMenu is triggered
void slotTextureMenu(QAction* _action);
......@@ -163,8 +160,6 @@ class TextureControlPlugin : public QObject, BaseInterface, TextureInterface, Me
texturePropertiesWidget* settingsDialog_;
QMenu* contextMenu_;
/// Set the active texture values to the values in the dialog box.
void applyDialogSettings();
......@@ -226,6 +221,34 @@ class TextureControlPlugin : public QObject, BaseInterface, TextureInterface, Me
/** @} */
//===========================================================================
/** @name Context Menu stuff
* @{ */
//===========================================================================
private slots:
/** \brief Slot from the context menu interface.
*
* This slot is called, when the core requests a context menu and creates and updates
* the context menu.
*/
void slotUpdateContextMenu( int _objectId );
/** \brief Called when the context menu has been triggered
*
* This slot is called when the per object context menu is triggered.
* It will switch to the requested texture and mode.
*/
void slotTextureContextMenu( QAction * _action );
private:
/// Stores the per object context menu
QMenu* contextMenu_;
/** @} */
public slots:
QString version() { return QString("1.0"); };
};
......
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