diff --git a/mainwindow.cpp b/mainwindow.cpp
index 325efa6..eae3f25 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -54,6 +54,19 @@ void MainWindow::on_pushButton_open_files_clicked()
init();
}
+void MainWindow::on_pushButton_change_dir_clicked()
+{
+ bool bRetImgDir = false;
+ bool bRetObjFile = false;
+
+ open_img_dir(bRetImgDir);
+
+ if (!bRetImgDir) return ;
+
+ init();
+}
+
+
void MainWindow::init()
{
ui->label_image->init();
@@ -193,6 +206,7 @@ void MainWindow::load_label_list_data(QString qstrLabelListFile)
m_objList.clear();
+ ui->tableWidget_label->setRowCount(0);
ui->label_image->m_drawObjectBoxColor.clear();
string strLabel;
@@ -417,6 +431,7 @@ void MainWindow::on_horizontalSlider_images_sliderMoved(int position)
void MainWindow::init_button_event()
{
+ ui->pushButton_change_dir->setEnabled(true);
ui->pushButton_next->setEnabled(true);
ui->pushButton_prev->setEnabled(true);
ui->pushButton_save->setEnabled(true);
diff --git a/mainwindow.h b/mainwindow.h
index eeb0cfc..1e25c45 100644
--- a/mainwindow.h
+++ b/mainwindow.h
@@ -23,6 +23,7 @@ public:
private slots:
void on_pushButton_open_files_clicked();
+ void on_pushButton_change_dir_clicked();
void on_pushButton_save_clicked();
void on_pushButton_remove_clicked();
diff --git a/mainwindow.ui b/mainwindow.ui
index 33aee3f..841610a 100644
--- a/mainwindow.ui
+++ b/mainwindow.ui
@@ -377,6 +377,50 @@ border-color: rgb(0, 255, 255);
+ -
+
+
+ false
+
+
+
+ 200
+ 91
+
+
+
+
+ 16777215
+ 91
+
+
+
+
+ 75
+ true
+ true
+
+
+
+ Qt::NoFocus
+
+
+ background-color : rgb(0, 0, 17);color : rgb(0, 255, 255);
+border-style: outset;
+border-width: 2px;
+border-color: rgb(0, 255, 255);
+
+
+ Change Directory
+
+
+ false
+
+
+ false
+
+
+
-
@@ -743,7 +787,7 @@ QTableView {
0
0
1528
- 25
+ 23