OpenToonz - An open-source full-featured 2D animation creation software
C
v1.5.0 (#3754)
shun-iwasawa96a86d9e5d1c
diff --git a/appveyor.yml b/appveyor.ymlindex 73b282968..a65df5999 100644--- a/appveyor.yml+++ b/appveyor.yml@@ -1,4 +1,4 @@-version: 1.4.0.{build}+version: 1.5.0.{build}pull_requests:do_not_increment_build_number: trueskip_tags: truediff --git a/toonz/cmake/BundleInfo.plist.in b/toonz/cmake/BundleInfo.plist.inindex 0f50b983d..c3bdadd1c 100644--- a/toonz/cmake/BundleInfo.plist.in+++ b/toonz/cmake/BundleInfo.plist.in@@ -19,11 +19,11 @@<key>CFBundlePackageType</key><string>APPL</string><key>CFBundleShortVersionString</key>- <string>1.4.0</string>+ <string>1.5.0</string><key>CFBundleSignature</key><string>????</string><key>CFBundleVersion</key>- <string>1.4</string>+ <string>1.5</string><key>CSResourcesFileMapped</key><true/><key>LSRequiresCarbon</key>diff --git a/toonz/sources/include/toonzqt/dvdialog.h b/toonz/sources/include/toonzqt/dvdialog.hindex f745ca6bb..fbd0f2e6f 100644--- a/toonz/sources/include/toonzqt/dvdialog.h+++ b/toonz/sources/include/toonzqt/dvdialog.h@@ -49,12 +49,6 @@ class MessageAndCheckboxDialog;//=============================================================================-//-------------------------------------------------------------------------------void DVAPI setDialogTitle(const QString &dialogTitle);--//------------------------------------------------------------------------------void DVAPI MsgBoxInPopup(MsgType type, const QString &text);// ATTENZIONE: Valore di ritornodiff --git a/toonz/sources/include/tversion.h b/toonz/sources/include/tversion.hindex d22470b1d..cdbaad087 100644--- a/toonz/sources/include/tversion.h+++ b/toonz/sources/include/tversion.h@@ -18,7 +18,7 @@ public:private:const char *applicationName = "OpenToonz";- const float applicationVersion = 1.4;+ const float applicationVersion = 1.5;const float applicationRevision = 0;const char *applicationNote = "";};@@ -39,9 +39,7 @@ std::string ToonzVersion::getAppNote(void) {std::string appnote = applicationNote;return appnote;}-bool ToonzVersion::hasAppNote(void) {- return *applicationNote != 0;-}+bool ToonzVersion::hasAppNote(void) { return *applicationNote != 0; }std::string ToonzVersion::getAppVersionString(void) {char buffer[50];snprintf(buffer, sizeof(buffer), "%.1f", applicationVersion);@@ -59,8 +57,7 @@ std::string ToonzVersion::getAppVersionInfo(std::string msg) {appinfo += " " + msg + " v";appinfo += getAppVersionString();appinfo += "." + getAppRevisionString();- if (hasAppNote())- appinfo += " " + std::string(applicationNote);+ if (hasAppNote()) appinfo += " " + std::string(applicationNote);return appinfo;}diff --git a/toonz/sources/toonz/CMakeLists.txt b/toonz/sources/toonz/CMakeLists.txtindex a33838310..5d9ebac8c 100644--- a/toonz/sources/toonz/CMakeLists.txt+++ b/toonz/sources/toonz/CMakeLists.txt@@ -1,4 +1,4 @@-set(VERSION 1.4)+set(VERSION 1.5)set(MOC_HEADERSaddfilmstripframespopup.hdiff --git a/toonz/sources/toonzqt/dvdialog.cpp b/toonz/sources/toonzqt/dvdialog.cppindex 03a7b07f2..d65d6ffdf 100644--- a/toonz/sources/toonzqt/dvdialog.cpp+++ b/toonz/sources/toonzqt/dvdialog.cpp@@ -14,6 +14,9 @@#include "toonz/preferences.h"#include "toonz/toonzfolders.h"+// TnzCore includes+#include "tversion.h"+// Qt includes#include <QFrame>#include <QLayout>@@ -32,8 +35,6 @@using namespace DVGui;-QString DialogTitle = "OpenToonz 1.4";-//=============================================================================namespace {QPixmap getMsgBoxPixmap(MsgType type) {@@ -69,7 +70,9 @@ QPixmap getMsgBoxPixmap(MsgType type) {//-----------------------------------------------------------------------------QString getMsgBoxTitle(MsgType type) {- QString title = DialogTitle + " - ";+ TVER::ToonzVersion tver;+ QString title = QString::fromStdString(tver.getAppName() + " " ++ tver.getAppVersionString() + " - ");switch (type) {case DVGui::INFORMATION:@@ -314,10 +317,10 @@ Dialog::Dialog(QWidget *parent, bool hasButton, bool hasFixedSize,// on another monitor by default, but this is better than// a user thinking the program is broken because they didn't notice// the popup on another monitor- if (x > screen.right() - 50) x = screen.right() - 50;- if (x < screen.left()) x = screen.left();+ if (x > screen.right() - 50) x = screen.right() - 50;+ if (x < screen.left()) x = screen.left();if (y > screen.bottom() - 90) y = screen.bottom() - 90;- if (y < screen.top()) y = screen.top();+ if (y < screen.top()) y = screen.top();setGeometry(x, y, values.at(2).toInt(), values.at(3).toInt());settings.setValue(m_name, QString::number(x) + " " + QString::number(y) +" " + QString::number(values.at(2).toInt()) +@@ -370,10 +373,10 @@ void Dialog::hideEvent(QHideEvent *event) {}QRect screen = QApplication::desktop()->availableGeometry(currentScreen);- if (x > screen.right() - 50) x = screen.right() - 50;- if (x < screen.left()) x = screen.left();+ if (x > screen.right() - 50) x = screen.right() - 50;+ if (x < screen.left()) x = screen.left();if (y > screen.bottom() - 90) y = screen.bottom() - 90;- if (y < screen.top()) y = screen.top();+ if (y < screen.top()) y = screen.top();move(QPoint(x, y));resize(size());QRect r = geometry();@@ -1347,7 +1350,7 @@ QString DVGui::getText(const QString &title, const QString &labelText,dialog.addButtonBarWidget(okBtn, cancelBtn);- int ret = dialog.exec();+ int ret = dialog.exec();if (ok) *ok = (ret == QDialog::Accepted);return nameFld->text();@@ -1451,10 +1454,4 @@ int DVGui::eraseStylesInDemand(TPalette *palette, std::vector<int> styleIds,return (assert(ret == 2), ret); // return 2 ? :D}-//-------------------------------------------------------------------------------void DVGui::setDialogTitle(const QString &dialogTitle) {- DialogTitle = dialogTitle;-}--//-----------------------------------------------------------------------------+//-----------------------------------------------------------------------------\ No newline at end of filediff --git a/toonz/sources/xdg-data/io.github.OpenToonz.appdata.xml b/toonz/sources/xdg-data/io.github.OpenToonz.appdata.xmlindex 7b2cba13c..0b7dddae0 100644--- a/toonz/sources/xdg-data/io.github.OpenToonz.appdata.xml+++ b/toonz/sources/xdg-data/io.github.OpenToonz.appdata.xml@@ -28,6 +28,6 @@</screenshots><content_rating type="oars-1.1" /><releases>- <release version="1.4.0" date="2020-01-31"></release>+ <release version="1.5.0" date="2021-03-25"></release></releases></component>