diff --git a/src/chroma_window.cpp b/src/chroma_window.cpp index a9ed0f7..898eaf3 100644 --- a/src/chroma_window.cpp +++ b/src/chroma_window.cpp @@ -4,7 +4,7 @@ #include ChromaWindow::ChromaWindow(QWidget *parent) : QDialog(parent) { - setFixedSize(400, 240); + setFixedSize(400, 300); setWindowTitle(tr("Chroma Key")); setWindowIcon(QPixmap(":/images/icon.png")); createControls(); @@ -89,6 +89,12 @@ void ChromaWindow::createControls() { highButton = new QPushButton("Set", this); 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_remove, SIGNAL(clicked()), this, SLOT(colorRemove())); connect(color_okay, SIGNAL(clicked()), this, SLOT(colorSet())); diff --git a/src/chroma_window.h b/src/chroma_window.h index 0869fe2..b4bcfcc 100644 --- a/src/chroma_window.h +++ b/src/chroma_window.h @@ -30,6 +30,7 @@ private: std::vector colorkeys_vec; QPushButton *lowButton, *highButton; QColor set_low_color, set_high_color; + QComboBox *select_mode; };