Commit 8608bca5 authored by Jan Möbius's avatar Jan Möbius

Cleanup color plugin

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@2951 383ad7c9-94d9-4d36-a494-682f7c89f535
parent e2820c40
This diff is collapsed.
......@@ -17,49 +17,75 @@
class ColorPlugin : public QObject, BaseInterface, MenuInterface, ScriptInterface, ToolbarInterface, StatusbarInterface
{
Q_OBJECT
Q_INTERFACES(BaseInterface)
Q_INTERFACES(MenuInterface)
Q_INTERFACES(ScriptInterface)
Q_INTERFACES(ToolbarInterface)
Q_INTERFACES(StatusbarInterface)
signals:
void update_view();
void scriptInfo( QString _functionName );
void addMenu(QMenu* _menu, MenuType _type);
void addToolbar(QToolBar* _toolbar);
void removeToolbar(QToolBar* _toolbar);
void showStatusMessage(QString _message, int _timeout = 0);
private slots:
void pluginsInitialized();
public :
void init();
QString name() { return (QString("Color Plugin")); };
QString description( ) { return (QString("Sets the Default colors e.g. for slides, paper,... snapshots")); };
public slots:
void setDefaultColor();
void setPowerpointColor();
void setPaperColor();
/// Set the Background Color
void setBackgroundColor( Vector _color );
QString version() { return QString("1.0"); };
private :
QAction* AC_set_Default_color;
QAction* AC_set_Powerpoint_color;
QAction* AC_set_Paper_color;
Q_OBJECT
Q_INTERFACES(BaseInterface)
Q_INTERFACES(MenuInterface)
Q_INTERFACES(ScriptInterface)
Q_INTERFACES(ToolbarInterface)
Q_INTERFACES(StatusbarInterface)
signals:
void update_view();
void scriptInfo( QString _functionName );
void addMenu(QMenu* _menu, MenuType _type);
void addToolbar(QToolBar* _toolbar);
void removeToolbar(QToolBar* _toolbar);
void showStatusMessage(QString _message, int _timeout = 0);
private slots:
void pluginsInitialized();
public :
void init();
QString name() { return (QString("Color Plugin")); };
QString description( ) { return (QString("Sets the Default colors e.g. for slides, paper,... snapshots")); };
//===========================================================================
/** @name Scriptable functions to set colors
* @{ */
//===========================================================================
public slots:
/**
* Applies Default colors to the whole scene
*/
void setDefaultColor();
/**
* Applies colors for presentations to the scene
*/
void setPowerpointColor();
/**
* Applies colors for papers
*/
void setPaperColor();
/**
* Sets the background color of the scene
*/
void setBackgroundColor( Vector _color );
//===========================================================================
/** @name Other scriptable functions
* @{ */
//===========================================================================
public slots:
/**
* Version info of the color plugin
*/
QString version() { return QString("1.0"); };
/** @} */
};
#endif //COLORPLUGIN_HH
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