mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-20 05:39:59 +01:00
starting on user interface
This commit is contained in:
@@ -10,14 +10,20 @@ ChromaWindow::ChromaWindow(QWidget *parent) : QDialog(parent) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ChromaWindow::createControls() {
|
void ChromaWindow::createControls() {
|
||||||
button_select = new QPushButton("Select Color", this);
|
button_select_range = new QRadioButton("Color Range", this);
|
||||||
connect(button_select, SIGNAL(clicked()), this, SLOT(openColorSelect()));
|
button_select_range->setGeometry(75, 25, 120, 20);
|
||||||
|
connect(button_select_range, SIGNAL(clicked()), this, SLOT(openColorSelectRange()));
|
||||||
|
button_select_tolerance = new QRadioButton("Select Color Tolerance", this);
|
||||||
|
button_select_tolerance->setGeometry(75+120+10, 25, 150, 20);
|
||||||
|
connect(button_select_tolerance, SIGNAL(clicked()), this, SLOT(openColorSelectTolerance()));
|
||||||
|
// create 6 text input boxes.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void ChromaWindow::openColorSelect() {
|
void ChromaWindow::openColorSelectRange() {
|
||||||
|
// set to use range
|
||||||
QColor color = QColorDialog::getColor();
|
}
|
||||||
|
|
||||||
|
void ChromaWindow::openColorSelectTolerance() {
|
||||||
|
// set to use tolerance
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,22 +8,15 @@ class ChromaWindow : public QDialog {
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
ChromaWindow(QWidget *parent);
|
ChromaWindow(QWidget *parent);
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void openColorSelect();
|
void openColorSelectRange();
|
||||||
|
void openColorSelectTolerance();
|
||||||
private:
|
private:
|
||||||
void createControls();
|
void createControls();
|
||||||
QPushButton *button_select;
|
QRadioButton *button_select_range, *button_select_tolerance;
|
||||||
|
QLabel *color_select_low, *color_select_high;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user