50 #ifndef COLORPLUGIN_HH
51 #define COLORPLUGIN_HH
60 #include "OpenFlipper/BasePlugin/INIInterface.hh"
64 #include "ColorPlugin.hh"
66 #include "ColorOptions.hh"
68 #include "OpenFlipper/INIFile/INIFile.hh"
83 #if QT_VERSION >= 0x050000
84 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-Color")
92 void scriptInfo( QString _functionName );
95 void addMenubarAction(QAction* _action, QString _type );
98 void addToolbar(QToolBar* _toolbar);
99 void removeToolbar(QToolBar* _toolbar);
102 void showStatusMessage(QString _message,
int _timeout = 0);
122 QString
name() {
return (QString(
"Color Plugin")); };
123 QString
description( ) {
return (tr(
"Sets the Default colors e.g. for slides, paper,... snapshots")); };
232 #endif //COLORPLUGIN_HH
Interface class from which all plugins have to be created.
ColorOptions * optionsWidget_
the options widget to set colors
QString description()
Return a description of what the plugin is doing.
double lineWidthDefault_
the options widget to set colors
Interface class for Plugins which have to store information in ini files.
void setNewColor(QIcon _icon, OpenMesh::Vec4f &_color)
set the color of a color vector to the one in the given icon
void setPresentationColor()
Set the presentation color preset.
void saveIniFileOptions(INIFile &_ini)
Store current color preset to an ini file.
ColorPlugin()
ConstructorOptionsInterface.
OpenMesh::Vec4f baseColorPresentation_
the options widget to set colors
bool initializeOptionsWidget(QWidget *&_widget)
generate an optionsWidget to change color presets
OpenMesh::Vec4f backgroundColorDefault_
the options widget to set colors
Options Dialog interface.
void convertColor(uint _color, OpenMesh::Vec4f &_vector)
convert betweeen uint and Vec4f
void setBackgroundColor(Vector _color)
Set the backgroundColor.
Class for the handling of simple configuration files.
OpenMesh::Vec4f materialColorDefault_
the options widget to set colors
QString name()
Return a name for the plugin.
void setObjectDiffuseColor(int _objectId, Vector4 _color)
void applyOptions()
Store the changed color presets when the apply Button was hit.
void setDefaultColor()
set the defaultColor preset
Add a toolbox to OpenFlipper.
Interface for all Plugins which provide scriptable Functions.
void getColorDialog()
display a color dialog
OpenMesh::Vec4f baseColorPaper_
the options widget to set colors
OpenMesh::Vec4f backgroundColorPaper_
the options widget to set colors
void pluginsInitialized()
initialize the toolbar and menubar
double lineWidthPaper_
the options widget to set colors
QRgb getIconColor(QIcon _icon)
get the color from a given icon
OpenMesh::Vec4f materialColorPresentation_
the options widget to set colors
QIcon generateIcon(QRgb _color)
generate an icon from a given color
double lineWidthPresentation_
the options widget to set colors
Control OpenFlippers status bar.
void loadIniFileOptions(INIFile &_ini)
read color preset from ini file
OpenMesh::Vec4f backgroundColorPresentation_
the options widget to set colors
OpenMesh::Vec4f materialColorPaper_
the options widget to set colors
void setObjectSpecularColor(int _objectId, Vector4 _color)
OpenMesh::Vec4f baseColorDefault_
the options widget to set colors
void setObjectAmbientColor(int _objectId, Vector4 _color)
void setPaperColor()
set the paperColor Preset
Interface for all plugins which provide entries to the main menubar.
void setObjectEmissiveColor(int _objectId, Vector4 _color)