167 setWindowTitle(tr(
"Tune the color of the HTML output"));
168 QGridLayout *layout =
new QGridLayout(
this);
172 layout->addWidget(
new QLabel(tr(
"Example output: use the sliders on the right to adjust the color")),0,0);
174 QHBoxLayout *buttonsLayout =
new QHBoxLayout;
176 QPushButton *okButton =
new QPushButton(tr(
"Ok"));
177 connect(okButton,SIGNAL(clicked()),SLOT(accept()));
178 okButton->setDefault(
true);
179 QPushButton *cancelButton =
new QPushButton(tr(
"Cancel"));
180 connect(cancelButton,SIGNAL(clicked()),SLOT(reject()));
184 huePicker->setFixedWidth(20);
185 layout->addWidget(huePicker,1,1);
188 satPicker->setFixedWidth(20);
189 layout->addWidget(satPicker,1,2);
192 gamPicker->setFixedWidth(20);
193 layout->addWidget(gamPicker,1,3);
195 connect(huePicker,SIGNAL(newHsv(
int,
int,
int)),satPicker,SLOT(setCol(
int,
int,
int)));
196 connect(satPicker,SIGNAL(newHsv(
int,
int,
int)),huePicker,SLOT(setCol(
int,
int,
int)));
197 connect(huePicker,SIGNAL(newHsv(
int,
int,
int)),gamPicker,SLOT(setCol(
int,
int,
int)));
198 connect(satPicker,SIGNAL(newHsv(
int,
int,
int)),gamPicker,SLOT(setCol(
int,
int,
int)));
199 connect(gamPicker,SIGNAL(newHsv(
int,
int,
int)),satPicker,SLOT(setCol(
int,
int,
int)));
200 connect(gamPicker,SIGNAL(newHsv(
int,
int,
int)),huePicker,SLOT(setCol(
int,
int,
int)));
205 buttonsLayout->addStretch();
206 buttonsLayout->addWidget(okButton);
207 buttonsLayout->addWidget(cancelButton);
208 layout->addLayout(buttonsLayout,5,0,1,4);
void updateImage(int hue, int sat, int val)
static QString fromLatin1(const char *, int len=-1)
def connect(nxgraph, k1, k2, p1=0, p2=0, kwds)
void setCol(int h, int s, int g)
double gamma(double KE, const simb::MCParticle *part)
def parent(G, child, parent_type)