mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-05 14:30:03 +01:00
window UI done now for adding/rmv files
This commit is contained in:
@@ -7,19 +7,40 @@ ImageWindow::ImageWindow(QWidget *parent) : QDialog(parent) {
|
||||
}
|
||||
|
||||
void ImageWindow::createControls() {
|
||||
// create
|
||||
image_files = new QListWidget(this);
|
||||
image_files->setGeometry(20,20,770,300);
|
||||
image_files->setGeometry(20,20,(770/2)-10,300);
|
||||
add_files = new QPushButton(tr("Add"), this);
|
||||
add_files->setGeometry(15,325,100,25);
|
||||
rmv_file = new QPushButton(tr("Remove"), this);
|
||||
rmv_file->setGeometry(115,325,100,25);
|
||||
set_file = new QPushButton(tr("Set Image"), this);
|
||||
set_file->setGeometry(690,325,100,25);
|
||||
set_file->setGeometry(685,325,100,25);
|
||||
image_cycle_on = new QCheckBox("Image Cycle", this);
|
||||
image_cycle_on->setGeometry(220, 325, 100, 25);
|
||||
image_cycle = new QComboBox(this);
|
||||
image_cycle->setGeometry(320, 325, 100, 25);
|
||||
image_cycle->addItem("Random");
|
||||
image_cycle->addItem("In Order");
|
||||
image_cycle->addItem("Shuffle");
|
||||
image_cycle->addItem(tr("Random"));
|
||||
image_cycle->addItem(tr("In Order"));
|
||||
image_cycle->addItem(tr("Shuffle"));
|
||||
image_pic = new QLabel("", this);
|
||||
image_pic->setGeometry((770/2)+10, 20, 770/2,300);
|
||||
image_pic->setStyleSheet("QLabel{background: black; color: #000000;}");
|
||||
// connect
|
||||
connect(add_files, SIGNAL(clicked()), this, SLOT(image_AddFiles()));
|
||||
connect(rmv_file, SIGNAL(clicked()), this, SLOT(image_RmvFile()));
|
||||
connect(set_file, SIGNAL(clicked()), this, SLOT(image_SetFile()));
|
||||
//image_files->addItem("TEST!!");
|
||||
}
|
||||
|
||||
void ImageWindow::image_AddFiles() {
|
||||
|
||||
}
|
||||
|
||||
void ImageWindow::image_RmvFile() {
|
||||
|
||||
}
|
||||
|
||||
void ImageWindow::Image_SetFile() {
|
||||
|
||||
}
|
||||
|
||||
@@ -8,11 +8,18 @@ Q_OBJECT
|
||||
public:
|
||||
ImageWindow(QWidget *parent);
|
||||
void createControls();
|
||||
|
||||
public slots:
|
||||
void image_AddFiles();
|
||||
void image_RmvFile();
|
||||
void Image_SetFile();
|
||||
|
||||
private:
|
||||
QListWidget *image_files;
|
||||
QPushButton *add_files, *rmv_file, *set_file;
|
||||
QComboBox *image_cycle;
|
||||
QCheckBox *image_cycle_on;
|
||||
QLabel *image_pic;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user