The ImageTaskRunnerWidget implements a widget for manipulating and changing the settings of an image task e.g. the number of times to mutate each shape the task generates.
More...
#include <imagetaskrunnerwidget.h>
The ImageTaskRunnerWidget implements a widget for manipulating and changing the settings of an image task e.g. the number of times to mutate each shape the task generates.
geometrize::dialog::ImageTaskRunnerWidget::ImageTaskRunnerWidget |
( |
QWidget * |
parent = nullptr | ) |
|
172 d{std::make_unique<ImageTaskRunnerWidget::ImageTaskRunnerWidgetImpl>(
this)}
geometrize::dialog::ImageTaskRunnerWidget::~ImageTaskRunnerWidget |
( |
| ) |
|
|
virtual |
void geometrize::dialog::ImageTaskRunnerWidget::changeEvent |
( |
QEvent * |
event | ) |
|
|
overrideprotected |
282 if (event->type() == QEvent::LanguageChange) {
283 d->onLanguageChange();
285 QWidget::changeEvent(event);
void geometrize::dialog::ImageTaskRunnerWidget::clearButtonClicked |
( |
| ) |
|
|
signal |
void geometrize::dialog::ImageTaskRunnerWidget::on_candidateShapesPerStepSlider_valueChanged |
( |
int |
value | ) |
|
|
privateslot |
262 d->setCandidateShapesPerStep(value);
void geometrize::dialog::ImageTaskRunnerWidget::on_clearButton_clicked |
( |
| ) |
|
|
privateslot |
void geometrize::dialog::ImageTaskRunnerWidget::on_maxThreadsSpinBox_valueChanged |
( |
int |
value | ) |
|
|
privateslot |
277 d->setMaxThreads(value);
void geometrize::dialog::ImageTaskRunnerWidget::on_mutationsPerCandidateShapeSlider_valueChanged |
( |
int |
value | ) |
|
|
privateslot |
267 d->setMutationsPerCandidateShape(value);
void geometrize::dialog::ImageTaskRunnerWidget::on_randomSeedSpinBox_valueChanged |
( |
int |
value | ) |
|
|
privateslot |
272 d->setRandomSeed(value);
void geometrize::dialog::ImageTaskRunnerWidget::on_runStopButton_clicked |
( |
| ) |
|
|
privateslot |
void geometrize::dialog::ImageTaskRunnerWidget::on_shapeOpacitySlider_valueChanged |
( |
int |
value | ) |
|
|
privateslot |
257 d->setShapeOpacity(value);
void geometrize::dialog::ImageTaskRunnerWidget::on_stepButton_clicked |
( |
| ) |
|
|
privateslot |
void geometrize::dialog::ImageTaskRunnerWidget::on_usesCircles_clicked |
( |
bool |
checked | ) |
|
|
privateslot |
237 d->setShapes(geometrize::CIRCLE, checked);
void geometrize::dialog::ImageTaskRunnerWidget::on_usesEllipses_clicked |
( |
bool |
checked | ) |
|
|
privateslot |
227 d->setShapes(geometrize::ELLIPSE, checked);
void geometrize::dialog::ImageTaskRunnerWidget::on_usesLines_clicked |
( |
bool |
checked | ) |
|
|
privateslot |
242 d->setShapes(geometrize::LINE, checked);
void geometrize::dialog::ImageTaskRunnerWidget::on_usesPolylines_clicked |
( |
bool |
checked | ) |
|
|
privateslot |
252 d->setShapes(geometrize::POLYLINE, checked);
void geometrize::dialog::ImageTaskRunnerWidget::on_usesQuadraticBeziers_clicked |
( |
bool |
checked | ) |
|
|
privateslot |
247 d->setShapes(geometrize::QUADRATIC_BEZIER, checked);
void geometrize::dialog::ImageTaskRunnerWidget::on_usesRectangles_clicked |
( |
bool |
checked | ) |
|
|
privateslot |
212 d->setShapes(geometrize::RECTANGLE, checked);
void geometrize::dialog::ImageTaskRunnerWidget::on_usesRotatedEllipses_clicked |
( |
bool |
checked | ) |
|
|
privateslot |
232 d->setShapes(geometrize::ROTATED_ELLIPSE, checked);
void geometrize::dialog::ImageTaskRunnerWidget::on_usesRotatedRectangles_clicked |
( |
bool |
checked | ) |
|
|
privateslot |
217 d->setShapes(geometrize::ROTATED_RECTANGLE, checked);
void geometrize::dialog::ImageTaskRunnerWidget::on_usesTriangles_clicked |
( |
bool |
checked | ) |
|
|
privateslot |
222 d->setShapes(geometrize::TRIANGLE, checked);
void geometrize::dialog::ImageTaskRunnerWidget::runStopButtonClicked |
( |
| ) |
|
|
signal |
void geometrize::dialog::ImageTaskRunnerWidget::setImageTask |
( |
task::ImageTask * |
task | ) |
|
setImageTask Sets the current image task used by the runner.
- Parameters
-
task | Non-owning pointer to the image task that the runner settings on this widget will use. |
182 d->setImageTask(task);
void geometrize::dialog::ImageTaskRunnerWidget::setRunStopButtonText |
( |
const QString & |
text | ) |
|
setRunStopButtonText Sets the text on the run/stop button in the UI.
- Parameters
-
text | The text to set on the run/stop button. |
187 d->setRunStopButtonText(text);
void geometrize::dialog::ImageTaskRunnerWidget::stepButtonClicked |
( |
| ) |
|
|
signal |
void geometrize::dialog::ImageTaskRunnerWidget::syncUserInterface |
( |
| ) |
|
syncUserInterface Syncs the user interface with the current image task. This should be called after setting a new image task, or new task settings. Note this does not change the run/stop button text.
192 d->syncUserInterface();
The documentation for this class was generated from the following files: