36 #include <QRadioButton>
37 #include <QVBoxLayout>
43 this->
SetUpUi(iTraceName, iRandomIncluded);
59 tr(
"Choose your range of colors") );
60 if ( this->
m_LUT != NULL )
72 QLabel *ChooseYourWay =
new QLabel(
tr(
"Choose how you want to color your %1s :").arg( iTraceName.c_str() ) );
83 if ( iRandomIncluded )
91 | QDialogButtonBox::Ok);
106 std::string iTraceName, vtkLookupTable **ioLUT,
107 bool iRandomIncluded,
QWidget *iiParent)
114 if ( ColorDialog->
exec() == QDialog::Accepted )
120 if ( iRandomIncluded )
130 *ioLUT = ColorDialog->
m_LUT;
virtual ~QGoColorCodingDialog()
Destructor.
QRadioButton * m_LUTButton
QString tr(const char *sourceText, const char *disambiguation, int n)
vtkLookupTable * GetLookupTable()
get the selected look up table
QRadioButton * m_RandomButton
void OpenLUTDialog()
open tha QGoLUTDialog to let the user choose a LUT
static ColorWay GetColorWay(std::string iTraceName, vtkLookupTable **ioLUT, bool iRandomIncluded, QWidget *iiParent=0)
get the way the user wants its traces to be colorcoded and the LUT if he chooses the LUT ...
QRadioButton * m_DefaultButton
void SetUpUi(std::string iTraceName, bool iRandomIncluded)
set the components of the widget and the connection
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
This dialog asks the user to chose the way he wants its traces to be colorcoded.
QGoColorCodingDialog(std::string iTraceName, bool iRandomIncluded, QWidget *iParent=0)
Constructor.