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