mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-16 20:00:01 +01:00
added combo box
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
#include<cstdlib>
|
#include<cstdlib>
|
||||||
|
|
||||||
ChromaWindow::ChromaWindow(QWidget *parent) : QDialog(parent) {
|
ChromaWindow::ChromaWindow(QWidget *parent) : QDialog(parent) {
|
||||||
setFixedSize(400, 240);
|
setFixedSize(400, 300);
|
||||||
setWindowTitle(tr("Chroma Key"));
|
setWindowTitle(tr("Chroma Key"));
|
||||||
setWindowIcon(QPixmap(":/images/icon.png"));
|
setWindowIcon(QPixmap(":/images/icon.png"));
|
||||||
createControls();
|
createControls();
|
||||||
@@ -89,6 +89,12 @@ void ChromaWindow::createControls() {
|
|||||||
highButton = new QPushButton("Set", this);
|
highButton = new QPushButton("Set", this);
|
||||||
highButton->setGeometry(300, 90, 25, 20);
|
highButton->setGeometry(300, 90, 25, 20);
|
||||||
|
|
||||||
|
select_mode = new QComboBox(this);
|
||||||
|
select_mode->setGeometry(15, 235, 290, 25);
|
||||||
|
|
||||||
|
select_mode->addItem("Replace with Filter");
|
||||||
|
select_mode->addItem("Replace with Image");
|
||||||
|
|
||||||
connect(color_add, SIGNAL(clicked()), this, SLOT(colorAdd()));
|
connect(color_add, SIGNAL(clicked()), this, SLOT(colorAdd()));
|
||||||
connect(color_remove, SIGNAL(clicked()), this, SLOT(colorRemove()));
|
connect(color_remove, SIGNAL(clicked()), this, SLOT(colorRemove()));
|
||||||
connect(color_okay, SIGNAL(clicked()), this, SLOT(colorSet()));
|
connect(color_okay, SIGNAL(clicked()), this, SLOT(colorSet()));
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ private:
|
|||||||
std::vector<ac::Keys> colorkeys_vec;
|
std::vector<ac::Keys> colorkeys_vec;
|
||||||
QPushButton *lowButton, *highButton;
|
QPushButton *lowButton, *highButton;
|
||||||
QColor set_low_color, set_high_color;
|
QColor set_low_color, set_high_color;
|
||||||
|
QComboBox *select_mode;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user