Skip to content

Commit 552c820

Browse files
committed
OTX: Code merge cleanups
1 parent b376a53 commit 552c820

36 files changed

+73
-301
lines changed

README.md

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,51 @@
22

33
![](./toonz/sources/toonz/Resources/splash_OTX.svg)
44

5-
OpenToonz (eXperimental), also known as OTX, is a portable version of OpenToonz that contain features proposed via PRs but not yet integrated into the official version.
5+
OpenToonz (eXperimental), also known as OTX, is a portable version of OpenToonz that contain changes, fixes and new features that will either be in the next official release or somewhere down the road.
66

7-
This repository IS NOT source code repository of OpenToonz. Please see https://github.com/opentoonz/opentoonz for the source code.
7+
This repository IS NOT source code repository of OpenToonz and should not be used for continued development. Please see https://github.com/opentoonz/opentoonz for the source code.
8+
9+
### Program Requirements
10+
11+
- Windows 7 (64bit) or later
12+
- macOS 10.13 (High Sierra) or later
13+
- Ubuntu 14.04 (or equivalent) or later
14+
15+
For additional requirements, please refer to the OpenToonz site at <https://opentoonz.github.io/e/index.html>.
16+
17+
### Installation and Usage
18+
19+
OTX builds are created as portables so no installation is required. You can keep existing installed OpenToonz versions on your system.
20+
21+
- Windows:
22+
23+
- Download the file: OpenToonz-OTX-win.zip
24+
- Right-click the OpenToonz-OTX-win.zip file and select "Extract All..." to extract the contents.
25+
- This will extract a folder called "OpenToonzPortable".
26+
- Move the OpenToonzPortable folder to a desired location (i.e. C:\Program Files, Desktop, a USB key)
27+
- Double-click the 'OpenToonzPortable\OpenToonz.exe' to run
28+
29+
- macOS:
30+
31+
- Download the file: OpenToonz-OTX-osx.dmg
32+
- Double-click the OpenToonz-OTX-osx.dmg file to open it
33+
- Drag the "OpenToonz" application to wherever you want to run it from (i.e Applications, Desktop, a USB key)
34+
- If you already have the official OpenToonz application installed, you should rename the OTX version (OpenToonz_OTX) if you want to keep it in the same directory as the official version.
35+
- Double-click the "OpenToonz" application to run.
36+
- The 1st time you do this, macOS will likely block the application from running. You will need to update your Security settings to allow it to run.
37+
38+
- NOTE(s):
39+
- Do NOT run the OTX application from inside the .dmg file. It will not work.
40+
- If you run this for the first time on a system that already has OpenToonz officially installed, it will detect the preferences and prompt you 2x to import them, once for preferences and another for room layouts.
41+
42+
However, due to a Qt bug, not OT, the popups appear behind the splash screen and will make it seem like it's taking forever to load.
43+
44+
If it seems like it is taking forever to initialize OTX, click away from the splash screen to reveal the popups. Click and drag it away from splash screen area before interacting with it.
45+
46+
- Linux:
47+
48+
- Download the file: OpenToonz-OTX-linux.tar.gz
49+
- Right-click the OpenToonz-OTX-linux.tar.gz file and "Extract Here" to extract the contents.
50+
- This will create a folder as "OpenToonz-OTX-linux/OpenToonzPortable".
51+
- Move the entire OpenToonzPortable folder to a desired location (i.e. application folder, Desktop, a USB key)
52+
- Double-click the 'OpenToonzPortable/OpenToonz.AppImage' to run

toonz/sources/common/tapptools/tenv.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ class EnvGlobals { // singleton
174174
m_applicationFullName += " " + m_version.getAppNote();
175175

176176
m_moduleName = m_version.getAppName();
177-
// m_moduleName = m_version.getAppName() + " (eXperimental)";
178177
m_rootVarName = toUpper(m_version.getAppName()) + "ROOT";
179178
#ifdef _WIN32
180179
// from v1.3, registry root is moved to SOFTWARE\\OpenToonz\\OpenToonz

toonz/sources/common/tsound/tsound_nt.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,12 +499,12 @@ bool TSoundOutputDeviceImp::doOpenDevice(const TSoundTrackFormat &format) {
499499
wf.cbSize = 0;
500500

501501
TThread::MutexLocker sl(&m_mutex);
502-
CloseHandle(CreateThread(NULL, 0, MyWaveOutCallbackThread, (LPVOID) this, 0,
502+
CloseHandle(CreateThread(NULL, 0, MyWaveOutCallbackThread, (LPVOID)this, 0,
503503
&m_notifyThreadId));
504504

505505
MMRESULT ret;
506506
if ((ret = waveOutOpen(&m_wout, WAVE_MAPPER, &wf, (DWORD)m_notifyThreadId,
507-
(DWORD) this, CALLBACK_THREAD)) != MMSYSERR_NOERROR) {
507+
(DWORD)this, CALLBACK_THREAD)) != MMSYSERR_NOERROR) {
508508
while (!PostThreadMessage(m_notifyThreadId, WM_QUIT, 0, 0))
509509
;
510510
}

toonz/sources/common/tsystem/tfilepath.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,10 @@ void TFilePath::setPath(std::wstring path) {
321321
m_path.length() > 1 && m_path[m_path.length() - 1] == wslash)
322322
m_path.erase(m_path.length() - 1, 1);
323323

324-
if (isUncName && !(m_path.find_last_of(L'\\') > 1 ||
325-
m_path.find_last_of(L'/') >
326-
1)) // e' indicato solo il nome della macchina...
324+
if (isUncName &&
325+
!(m_path.find_last_of(L'\\') > 1 ||
326+
m_path.find_last_of(L'/') >
327+
1)) // e' indicato solo il nome della macchina...
327328
m_path.append(1, wslash);
328329
}
329330

@@ -666,9 +667,8 @@ TFilePath TFilePath::getParentDir() const // noSlash!
666667
{
667668
int i = getLastSlash(m_path); // cerco l'ultimo slash
668669
if (i < 0) {
669-
if (m_path.length() >= 2 &&
670-
('a' <= m_path[0] && m_path[0] <= 'z' ||
671-
'A' <= m_path[0] && m_path[0] <= 'Z') &&
670+
if (m_path.length() >= 2 && ('a' <= m_path[0] && m_path[0] <= 'z' ||
671+
'A' <= m_path[0] && m_path[0] <= 'Z') &&
672672
m_path[1] == ':')
673673
return TFilePath(m_path.substr(0, 2));
674674
else

toonz/sources/image/3gp/tiio_3gp.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
// Windows include
1616
#include <windows.h>
1717

18-
#include "tlevel_io.h"
19-
#include "tthreadmessage.h"
20-
2118
namespace QuickTime {
2219
#define list List
2320
#define map Map

toonz/sources/image/mov/tiio_mov.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@
1515
// Windows include
1616
#include <windows.h>
1717

18-
// Toonz includes
19-
#include "tlevel_io.h"
20-
#include "tthreadmessage.h"
21-
#include "tcommon.h"
22-
2318
// QuickTime includes
2419
namespace QuickTime {
2520
#define list QuickTime_list

toonz/sources/include/tools/tool.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,8 @@ class DVAPI TTool {
280280
MeshImage = 0x8, //!< Will work on mesh images
281281
Splines = 0x10, //!< Will work on motion paths
282282

283-
LevelColumns= 0x20, //!< Will work on level columns
284-
MeshColumns = 0x40, //!< Will work on mesh columns
283+
LevelColumns = 0x20, //!< Will work on level columns
284+
MeshColumns = 0x40, //!< Will work on mesh columns
285285

286286
EmptyTarget = 0x80, //!< Will work on empty cells/columns
287287

toonz/sources/include/toonz/preferences.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,14 @@ class DVAPI Preferences final : public QObject // singleton
127127
public:
128128
static Preferences *instance();
129129

130+
void load();
131+
130132
QMap<PreferencesItemId, PreferencesItem> m_items;
131133
void initializeOptions();
132134
void definePreferenceItems();
133135
void define(PreferencesItemId id, QString idString, QMetaType::Type type,
134136
QVariant defaultValue, QVariant min = 0, QVariant max = -1);
135137

136-
void load();
137-
138138
void setCallBack(const PreferencesItemId id, OnEditedFunc func);
139139
void resolveCompatibility();
140140

toonz/sources/include/toonz/preferencesitemids.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ enum PreferencesItemId {
178178
// Shortcut popup settings
179179
shortcutPreset,
180180
// Viewer context menu
181-
guidedDrawingEnabled,
182181
guidedDrawingType,
183182
guidedAutoInbetween,
184183
guidedInterpolationType,

toonz/sources/include/tversion.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ std::string ToonzVersion::getAppVersionInfo(std::string msg) {
6161
appinfo += "." + getAppRevisionString();
6262
if (hasAppNote())
6363
appinfo += " " + std::string(applicationNote);
64-
// appinfo += " (eXperimental)";
6564
return appinfo;
6665
}
6766

0 commit comments

Comments
 (0)