25#include <QColorDialog>
28#include "commonWidgets.h"
44 explicit ColorDialog(
const QColor& initial, QWidget* parent = 0);
57 inline void addTab(QWidget* widget,
const QString& label);
62 void insertTab(
int tabIndex, QWidget* widget,
const QString& label);
67 void removeTab(
int index);
70 void setCurrentTab(
int index);
74 QWidget* widget(
int index)
const;
78 int indexOf(QWidget* widget)
const;
81 QString colorName()
const;
90 static QColor getColor(
const QColor &initial, QWidget *parent,
91 const QString &title, ColorDialogOptions options = QColorDialog::ColorDialogOption());
95 static QString getColorName();
101 static inline void addDefaultTab(QWidget* widget,
const QString& label,
102 const char* colorSignal = 0,
103 const char* nameSignal = 0);
107 static void insertDefaultTab(
int tabIndex, QWidget* widget,
const QString& label,
108 const char* colorSignal = 0,
109 const char* nameSignal = 0);
112 static void setDefaultTab(
int index);
116 void setColor(
const QColor& color);
120 void setColorName(
const QString& name);
123 void currentColorNameChanged(
const QString& colorName);
126 void resetColorName();
129 QScopedPointer<ColorDialogPrivate> d_ptr;
131 static QList<QWidget*> DefaultTabs;
132 static int DefaultTab;
133 static QString LastColorName;
147 const char* colorSignal,
148 const char* nameSignal)
Definition colorDialog.h:36
void insertTab(int tabIndex, QWidget *widget, const QString &label)
Definition colorDialog.cpp:110
void addTab(QWidget *widget, const QString &label)
Definition colorDialog.h:140
static void insertDefaultTab(int tabIndex, QWidget *widget, const QString &label, const char *colorSignal=0, const char *nameSignal=0)
Definition colorDialog.cpp:198
static void addDefaultTab(QWidget *widget, const QString &label, const char *colorSignal=0, const char *nameSignal=0)
Definition colorDialog.h:146
QWidget * widget(int index) const
Definition colorDialog.cpp:138
Definition colorDialog.cpp:37