Skip to content

Commit

Permalink
Merge pull request #2 from Teddy-van-Jerry/dev
Browse files Browse the repository at this point in the history
New Version - 5.1.8
  • Loading branch information
Teddy-van-Jerry authored Mar 13, 2021
2 parents 08165c4 + 9a12f99 commit 8edd436
Show file tree
Hide file tree
Showing 9 changed files with 134 additions and 70 deletions.
1 change: 1 addition & 0 deletions Icon_resources.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<file>Menu Icon/Create Images in Range.svg</file>
<file>Menu Icon/DeleteImage.svg</file>
<file>Menu Icon/Check Images.svg</file>
<file>Menu Icon/GitHub.png</file>
</qresource>
<qresource prefix="/">
<file>Menu Icon/Next.svg</file>
Expand Down
Binary file added Menu Icon/GitHub.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 7 additions & 5 deletions help.ui
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ p, li { white-space: pre-wrap; }
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;4. Use the sorting function well so you can add and remove rows easily.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;5. You can use the &lt;/span&gt;&lt;span style=&quot; font-size:10pt; color:#0000ff;&quot;&gt;Route Tool&lt;/span&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt; (&lt;/span&gt;&lt;img src=&quot;:/Menu Icon/Route_Tool.svg&quot; /&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot; font-size:10pt; color:#aa00ff;&quot;&gt;Ctrl + T&lt;/span&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;) which has the icon of a hammer to assist you. You can drag the image to move, and use the wheel to change the size of the image (the centre point remains the same and this needs additional click of the &lt;/span&gt;&lt;span style=&quot; font-size:10pt; color:#0000ff;&quot;&gt;View&lt;/span&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt; button). Double click to set this point as the the centre point (this needs additional click of the &lt;/span&gt;&lt;span style=&quot; font-size:10pt; color:#0000ff;&quot;&gt;View&lt;/span&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt; button).&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;Please note that in this version (v 5.0), the v rate only supports angle.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;Please note that in this version (v 5.1), the v rate only supports angle.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;Fifth, define &lt;/span&gt;&lt;span style=&quot; font-size:10pt; color:#00aa00;&quot;&gt;other information&lt;/span&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt; related to the project.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
Expand Down Expand Up @@ -111,11 +111,13 @@ p, li { white-space: pre-wrap; }
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;6. New Features is also available to be checked in the Menu More of the Help window.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;7. Use the &lt;/span&gt;&lt;span style=&quot; font-size:10pt; color:#00aa00;&quot;&gt;searching&lt;/span&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt; function well and it supports Chinese searching.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;8. All the editings can call the Undo (&lt;/span&gt;&lt;img src=&quot;:/icon/Menu Icon/Undo.svg&quot; /&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot; font-size:10pt; color:#aa00ff;&quot;&gt;Ctrl + X&lt;/span&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;) and Redo (&lt;/span&gt;&lt;img src=&quot;:/icon/Menu Icon/Redo.svg&quot; /&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot; font-size:10pt; color:#aa00ff;&quot;&gt;Ctrl + Y&lt;/span&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;) and supports momories up to 50 actions. (except the Compatibility Module.)&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;9. Be careful that finishing editing a line or a combo box (i.e. the focus is removed) can the information be recognized or saved.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;10. To close a project (&lt;/span&gt;&lt;img src=&quot;:/Menu Icon/Close.svg&quot; /&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;), &lt;/span&gt;&lt;span style=&quot; font-size:10pt; color:#aa00ff;&quot;&gt;Ctrl + W&lt;/span&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;. To exit the application (&lt;/span&gt;&lt;img src=&quot;:/icon/Menu Icon/Exit.svg&quot; /&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;), &lt;/span&gt;&lt;span style=&quot; font-size:10pt; color:#aa00ff;&quot;&gt;Crtl + E&lt;/span&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;11. Fractal Designer 5.0 is licenced under &lt;/span&gt;&lt;span style=&quot; font-size:10pt; font-style:italic; text-decoration: underline;&quot;&gt;The MIT Licence&lt;/span&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;. © 2021 Teddy van Jerry&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;9. Check Images (&lt;/span&gt;&lt;img src=&quot;:/icon/Menu Icon/Check Images.svg&quot; /&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;) can check if there are missed images and you can choose to recreate those.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;10. Delete Images (&lt;/span&gt;&lt;img src=&quot;:/icon/Menu Icon/DeleteImage.svg&quot; /&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;) can delete images already created.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;11. Be careful that finishing editing a line or a combo box (i.e. the focus is removed) can the information be recognized or saved.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;12. To close a project (&lt;/span&gt;&lt;img src=&quot;:/Menu Icon/Close.svg&quot; /&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;), &lt;/span&gt;&lt;span style=&quot; font-size:10pt; color:#aa00ff;&quot;&gt;Ctrl + W&lt;/span&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;. To exit the application (&lt;/span&gt;&lt;img src=&quot;:/icon/Menu Icon/Exit.svg&quot; /&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;), &lt;/span&gt;&lt;span style=&quot; font-size:10pt; color:#aa00ff;&quot;&gt;Crtl + E&lt;/span&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;13. Fractal Designer 5.0 is licenced under &lt;/span&gt;&lt;span style=&quot; font-size:10pt; font-style:italic; text-decoration: underline;&quot;&gt;The MIT Licence&lt;/span&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;. © 2021 Teddy van Jerry&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; &lt;/p&gt;
&lt;p align=&quot;right&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:10pt; color:#828282;&quot;&gt;Fractal Designer - Version 5.0.27 - 2021/03/01&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
&lt;p align=&quot;right&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:10pt; color:#828282;&quot;&gt;Fractal Designer - Version 5.1.8 - 2021/03/13&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
Expand Down
36 changes: 32 additions & 4 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ void MainWindow::on_actionExit_E_triggered()

void MainWindow::on_actionChinese_triggered()
{
QDesktopServices::openUrl(QUrl("https://blog.csdn.net/weixin_50012998/article/details/114097695"));
QDesktopServices::openUrl(QUrl("https://blog.csdn.net/weixin_50012998/article/details/114767519"));
}

void MainWindow::on_MainWindow_AboutTVJ_clicked()
Expand Down Expand Up @@ -834,6 +834,7 @@ void MainWindow::on_actionCreate_Images_triggered()
ui->actionStop->setDisabled(false);
ui->actionCreate_Images->setDisabled(true);
ui->actionCreate_Images_in_Range->setDisabled(true);
ui->actionCheck_Images->setDisabled(true);
on_actionPreview_Refresh_triggered();
work_thread->start();
qDebug() << ui->timeEdit->time().second() + 60 * ui->timeEdit->time().minute();
Expand Down Expand Up @@ -961,13 +962,15 @@ void MainWindow::on_actionStop_triggered()
qDebug() << "Build Thread quit";
ui->actionCreate_Images->setDisabled(false);
ui->actionCreate_Images_in_Range->setDisabled(false);
ui->actionCheck_Images->setDisabled(false);
ui->actionStop->setDisabled(true);
}

void MainWindow::build_image_finished_deal()
{
ui->actionCreate_Images->setDisabled(false);
ui->actionCreate_Images_in_Range->setDisabled(false);
ui->actionCheck_Images->setDisabled(false);
ui->actionStop->setDisabled(true);
emit build_image_updateInfo_signal();
}
Expand Down Expand Up @@ -2464,7 +2467,7 @@ void MainWindow::on_actionVersion_2_triggered()

void MainWindow::on_actionBug_Report_triggered()
{
QDesktopServices::openUrl(QUrl("https://blog.csdn.net/weixin_50012998/article/details/114097618"));
QDesktopServices::openUrl(QUrl("https://blog.csdn.net/weixin_50012998/article/details/114767480"));
}

void MainWindow::on_actionVersion_triggered()
Expand Down Expand Up @@ -2658,6 +2661,7 @@ void MainWindow::on_actionCreate_Images_in_Range_triggered()
ui->actionStop->setDisabled(false);
ui->actionCreate_Images->setDisabled(true);
ui->actionCreate_Images_in_Range->setDisabled(true);
ui->actionCheck_Images->setDisabled(true);
on_actionPreview_Refresh_triggered();
work_thread->start();

Expand Down Expand Up @@ -2818,6 +2822,8 @@ void MainWindow::on_actionGitHub_Repository_triggered()

void MainWindow::on_actionCheck_Images_triggered()
{
if(!ui->actionCheck_Images->isEnabled()) return;

int total_image = ui->comboBox_fps->currentText().toInt() * (ui->timeEdit->time().second() + 60 * ui->timeEdit->time().minute());
QList<int> Missed_Images;
for(int i = 0; i != total_image; i++)
Expand Down Expand Up @@ -2911,13 +2917,35 @@ void MainWindow::on_actionCheck_Images_triggered()
}
}

bool MainWindow::existImage(int i) const
{
QFile image_file(ui->lineEdit_imagePath->text() + "/" + ui->lineEdit_imagePrefix->text() + QString::number(i) + ".png");
if(image_file.exists()) return true;
else return false;
}

void MainWindow::deleteImage(int i)
{
QFile image_file(ui->lineEdit_videoPath->text() + "/" + ui->lineEdit_imagePrefix->text() + QString::number(i) + ".png");
QFile image_file(ui->lineEdit_imagePath->text() + "/" + ui->lineEdit_imagePrefix->text() + QString::number(i) + ".png");
image_file.remove();
}

void MainWindow::on_actionDelete_Images_triggered()
{

int total_image = ui->comboBox_fps->currentText().toInt() * (ui->timeEdit->time().second() + 60 * ui->timeEdit->time().minute());
for(int i = 0; i != total_image; i++)
{
deleteImage(i);
}
int skip_number = 0;
int check_till = total_image - 1;
while(skip_number++ < 10000)
{
if(existImage(++check_till))
{
deleteImage(check_till);
skip_number = 0;
}
}
QMessageBox::information(this, "Information", "Deleting Images Finished!");
}
2 changes: 2 additions & 0 deletions mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ class MainWindow : public QMainWindow

void createImagesInRange(int From_I, int To_I);

bool existImage(int) const;

void deleteImage(int);

private slots:
Expand Down
Loading

0 comments on commit 8edd436

Please sign in to comment.