23 #include "tulip/Color.h"
24 #include "tulip/Graph.h"
25 #include "tulip/GlMainWidget.h"
26 #include "tulip/DataSet.h"
28 #include <QtGui/QColor>
29 #include <QtCore/QDebug>
35 TLP_QT_SCOPE
bool getColorDialog(
const QColor &color,QWidget *parent,
const QString &title,QColor &result);
37 inline QColor colorToQColor(
const Color& color) {
38 return QColor(color.getR(), color.getG(), color.getB(), color.getA());
40 inline Color QColorToColor(
const QColor& color) {
41 return Color(color.red(), color.green(), color.blue(), color.alpha());
47 return std::string(toConvert.toUtf8());
53 return QString::fromUtf8(toConvert.c_str());
60 return QString::localeAwareCompare(s1, s2) < 0;
96 TLP_QT_SCOPE QString getPluginStagingDirectory();
98 TLP_QT_SCOPE QString getPluginLocalInstallationDir();
100 TLP_QT_SCOPE QGLFramebufferObject *createQGLFramebufferObject(
int width,
int height, QGLFramebufferObject::Attachment attachment);
102 TLP_QT_SCOPE QString localPluginsPath();
113 extern TLP_QT_SCOPE
void initTulipSoftware(PluginLoader *loader = NULL,
bool removeDiscardedPlugins=
false);
133 inline QDebug
operator<<(QDebug dbg,
const std::string& s) {
134 dbg.nospace() << s.c_str();