mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-19 05:10:00 +01:00
added user interface to select what to do with a key
This commit is contained in:
@@ -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> "));
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user