mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-16 20:00:01 +01:00
adding to Chroma Key window
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
|
|
||||||
ChromaWindow::ChromaWindow(QWidget *parent) : QDialog(parent) {
|
ChromaWindow::ChromaWindow(QWidget *parent) : QDialog(parent) {
|
||||||
setFixedSize(800, 600);
|
setFixedSize(400, 240);
|
||||||
setWindowTitle(tr("Chroma Key"));
|
setWindowTitle(tr("Chroma Key"));
|
||||||
setWindowIcon(QPixmap(":/images/icon.png"));
|
setWindowIcon(QPixmap(":/images/icon.png"));
|
||||||
createControls();
|
createControls();
|
||||||
@@ -16,7 +16,25 @@ void ChromaWindow::createControls() {
|
|||||||
button_select_tolerance = new QRadioButton("Select Color Tolerance", this);
|
button_select_tolerance = new QRadioButton("Select Color Tolerance", this);
|
||||||
button_select_tolerance->setGeometry(75+120+10, 25, 150, 20);
|
button_select_tolerance->setGeometry(75+120+10, 25, 150, 20);
|
||||||
connect(button_select_tolerance, SIGNAL(clicked()), this, SLOT(openColorSelectTolerance()));
|
connect(button_select_tolerance, SIGNAL(clicked()), this, SLOT(openColorSelectTolerance()));
|
||||||
// create 6 text input boxes.
|
low_b = new QLineEdit("0", this);
|
||||||
|
low_g = new QLineEdit("0", this);
|
||||||
|
low_r = new QLineEdit("0", this);
|
||||||
|
high_b = new QLineEdit("0", this);
|
||||||
|
high_g = new QLineEdit("0", this);
|
||||||
|
high_r = new QLineEdit("0", this);
|
||||||
|
low_b->setGeometry(95, 65, 50, 20);
|
||||||
|
low_g->setGeometry(170, 65, 50, 20);
|
||||||
|
low_r->setGeometry(245, 65, 50, 20);
|
||||||
|
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->setGeometry(15, 65, 75, 20);
|
||||||
|
string_high->setGeometry(15, 90, 75, 20);
|
||||||
|
|
||||||
|
button_select_range->setChecked(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ public slots:
|
|||||||
private:
|
private:
|
||||||
void createControls();
|
void createControls();
|
||||||
QRadioButton *button_select_range, *button_select_tolerance;
|
QRadioButton *button_select_range, *button_select_tolerance;
|
||||||
QLabel *color_select_low, *color_select_high;
|
QLineEdit *low_b, *low_g, *low_r, *high_b, *high_g, *high_r;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user