added user interface to select what to do with a key

This commit is contained in:
lostjared
2018-11-16 09:44:14 -08:00
parent bfb6abb49e
commit f0b4f44970
2 changed files with 18 additions and 0 deletions

View File

@@ -95,6 +95,16 @@ void ChromaWindow::createControls() {
select_mode->addItem("Replace with Filter");
select_mode->addItem("Replace with Image");
select_setimage = new QPushButton("Image", this);
select_setimage->setGeometry(20, 265, 60, 20);
select_image_path = new QLabel("Test Path", this);
select_image_path->setGeometry(85, 265, 400-85-5, 20);
keys_enabled = new QCheckBox("Enable", this);
keys_enabled->setGeometry(315, 240, 80, 20);
connect(select_setimage, SIGNAL(clicked()), this, SLOT(setImage()));
connect(color_add, SIGNAL(clicked()), this, SLOT(colorAdd()));
connect(color_remove, SIGNAL(clicked()), this, SLOT(colorRemove()));
connect(color_okay, SIGNAL(clicked()), this, SLOT(colorSet()));
@@ -103,6 +113,10 @@ void ChromaWindow::createControls() {
}
void ChromaWindow::setImage() {
}
void ChromaWindow::openColorSelectRange() {
// set to use range
string_low->setText(tr("<b>BGR Low:</b> "));

View File

@@ -19,6 +19,7 @@ public slots:
void colorSet();
void setColorLow();
void setColorHigh();
void setImage();
private:
void createControls();
QRadioButton *button_select_range, *button_select_tolerance;
@@ -31,6 +32,9 @@ private:
QPushButton *lowButton, *highButton;
QColor set_low_color, set_high_color;
QComboBox *select_mode;
QPushButton *select_setimage;
QLabel *select_image_path;
QCheckBox *keys_enabled;
};