23 #include "tulip/Color.h"
24 #include "tulip/Graph.h"
25 #include "tulip/GlMainWidget.h"
26 #include "tulip/DataSet.h"
28 #include <QtGui/QColor>
34 TLP_QT_SCOPE
bool getColorDialog(
const QColor &color,QWidget *parent,
const QString &title,QColor &result);
36 inline QColor colorToQColor(
const Color& color) {
37 return QColor(color.getR(), color.getG(), color.getB(), color.getA());
39 inline Color QColorToColor(
const QColor& color) {
40 return Color(color.red(), color.green(), color.blue(), color.alpha());
45 inline std::string QStringToTlpString(
const QString& toConvert) {
46 return std::string(toConvert.toUtf8());
51 inline QString tlpStringToQString(
const std::string& toConvert) {
52 return QString::fromUtf8(toConvert.c_str());
58 inline bool QStringCaseCmp(
const QString& s1,
const QString& s2) {
59 return QString::localeAwareCompare(s1, s2) < 0;
69 TLP_QT_SCOPE QString propertyTypeToPropertyTypeLabel(
const std::string& typeName);
77 return propertyTypeToPropertyTypeLabel(property->
getTypename());
85 TLP_QT_SCOPE std::string propertyTypeLabelToPropertyType(
const QString& typeNameLabel);
93 TLP_QT_SCOPE QString getPluginPackageName(
const QString& pluginName);
95 TLP_QT_SCOPE QString getPluginStagingDirectory();
97 TLP_QT_SCOPE QString getPluginLocalInstallationDir();
99 TLP_QT_SCOPE QGLFramebufferObject *createQGLFramebufferObject(
int width,
int height, QGLFramebufferObject::Attachment attachment);
101 TLP_QT_SCOPE QString localPluginsPath();
112 extern TLP_QT_SCOPE
void initTulipSoftware(PluginLoader *loader = NULL,
bool removeDiscardedPlugins=
false);