mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-17 12:20:00 +01:00
interface
This commit is contained in:
@@ -28,20 +28,28 @@ void ChromaWindow::createControls() {
|
||||
high_b->setGeometry(95, 90, 50, 20);
|
||||
high_g->setGeometry(170, 90, 50, 20);
|
||||
high_r->setGeometry(245, 90, 50, 20);
|
||||
QLabel *string_low, *string_high;
|
||||
string_low = new QLabel("<b>Low BGR:</b> ", this);
|
||||
string_high = new QLabel("<b>High BGR:</b> ", this);
|
||||
string_low = new QLabel("<b>BGR Low:</b> ", this);
|
||||
string_high = new QLabel("<b>BGR High:</b> ", this);
|
||||
string_low->setGeometry(15, 65, 75, 20);
|
||||
string_high->setGeometry(15, 90, 75, 20);
|
||||
|
||||
button_select_range->setChecked(true);
|
||||
color_keys = new QListWidget(this);
|
||||
color_keys->setGeometry(15, 130, 320-30, 100);
|
||||
color_add = new QPushButton("Add Key", this);
|
||||
color_add->setGeometry(320-10, 130, 75, 20);
|
||||
color_remove = new QPushButton("Remove", this);
|
||||
color_remove->setGeometry(320-10, 155, 75, 20);
|
||||
}
|
||||
|
||||
|
||||
void ChromaWindow::openColorSelectRange() {
|
||||
// set to use range
|
||||
string_low->setText(tr("<b>BGR Low:</b> "));
|
||||
string_high->setText(tr("<b>BGR High:</b>"));
|
||||
}
|
||||
|
||||
void ChromaWindow::openColorSelectTolerance() {
|
||||
// set to use tolerance
|
||||
string_low->setText(tr("<b>Tolerance -</b>"));
|
||||
string_high->setText(tr("<b>Tolerance +</b>"));
|
||||
}
|
||||
|
||||
@@ -15,6 +15,9 @@ private:
|
||||
void createControls();
|
||||
QRadioButton *button_select_range, *button_select_tolerance;
|
||||
QLineEdit *low_b, *low_g, *low_r, *high_b, *high_g, *high_r;
|
||||
QLabel *string_low, *string_high;
|
||||
QListWidget *color_keys;
|
||||
QPushButton *color_add, *color_remove, *color_okay;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user