Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update latest from dev #1

Merged
merged 82 commits into from
Oct 4, 2018
Merged
Show file tree
Hide file tree
Changes from 66 commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
553fb7e
Bump to 2.4.2
jonoomph Jun 30, 2018
aecaf4a
Merge pull request #1755 from OpenShot/feature/bump-version
jonoomph Jun 30, 2018
0d4f66f
Remove inefficient clear canvas code
DylanC Aug 14, 2018
6426a92
Remove duplicated line of code
DylanC Aug 14, 2018
6d6b01f
Fix the waveform not being drawn after completion
DylanC Aug 14, 2018
fc1df5b
ClosePath and remove duplicate beginPath for performance
DylanC Aug 14, 2018
a4cbba2
Merge pull request #1995 from DylanC/audio_wave
DylanC Aug 17, 2018
fa9e669
Improve audio rendering
DerGenaue Aug 24, 2018
407a111
Merge pull request #2029 from DerGenaue/patch-1
DylanC Aug 26, 2018
d600d16
Fix secondsToZoom to work correctly for exact matches
DerGenaue Aug 28, 2018
9be860c
Improve Title duplication counting
DerGenaue Aug 28, 2018
962978a
Merge pull request #2040 from DerGenaue/patch-1
DylanC Aug 30, 2018
f4edef2
Merge branch 'develop' into patch-2
DylanC Aug 30, 2018
4719578
Merge pull request #2042 from DerGenaue/patch-2
DylanC Aug 31, 2018
05a2350
Square icon
ferdnyc Sep 4, 2018
da52a77
Tag screenshots with pixel dimensions
ferdnyc Sep 4, 2018
ab9a1b9
Addditional contact URLs
ferdnyc Sep 4, 2018
a005ab7
Update license and name
ferdnyc Sep 4, 2018
49624e3
Flesh out description/summary
ferdnyc Sep 4, 2018
dbd0fe6
Typo in summary tag
ferdnyc Sep 4, 2018
566881e
Merge pull request #2060 from ferdnyc/square-icon
DylanC Sep 4, 2018
e683eff
Merge branch 'develop' into appdata-edits
DylanC Sep 4, 2018
4764b1a
Merge pull request #2059 from ferdnyc/appdata-edits
DylanC Sep 4, 2018
440b13e
More framerates for Youtube-HD preset
ferdnyc Sep 7, 2018
aaf020f
More framerates for Vimeo-HD preset
ferdnyc Sep 7, 2018
c018967
Optimize icon svg file
ferdnyc Sep 11, 2018
e930538
Add 256x256 PNG icon to xdg/ dir
ferdnyc Sep 11, 2018
b75d29b
Add 512x512 pixel icon
ferdnyc Sep 11, 2018
51621c5
Move PNG icons to `xdg/icon/` subtree
ferdnyc Sep 11, 2018
f090dc3
Install icons to freedesktop paths from setup.py
ferdnyc Sep 11, 2018
1899bd0
Travis CI Integration, Zoom fixes, and undo/redo fixes (#2084)
jonoomph Sep 11, 2018
d8e888b
Merge branch 'develop' into youtube-framerate
DylanC Sep 12, 2018
fa11ca9
Merge branch 'develop' into icon-install
DylanC Sep 12, 2018
861c63f
Merge pull request #2073 from ferdnyc/youtube-framerate
DylanC Sep 12, 2018
8bc1f40
Merge branch 'develop' into icon-install
DylanC Sep 12, 2018
85b433b
Merge pull request #2083 from ferdnyc/icon-install
DylanC Sep 12, 2018
0ed917d
scripts: Add shebangs and make executable
ferdnyc Sep 12, 2018
b982593
Drop src/locale/README file as outdated
ferdnyc Sep 12, 2018
c4eb48d
Move OpenShot.pot to language dir
ferdnyc Sep 12, 2018
d02fea0
Move translation scripts to src/language/
ferdnyc Sep 12, 2018
b96a431
Update generate_translations for new path
ferdnyc Sep 12, 2018
c9a36e3
Update test_translations, add show_translations
ferdnyc Sep 12, 2018
b2527ce
Remove locale dir
ferdnyc Sep 12, 2018
6d65172
Remove locale dir from build-mac-dmg.sh
ferdnyc Sep 12, 2018
17c42fe
Copy QT translations to language/ in freeze.py
ferdnyc Sep 12, 2018
058ace6
update AUTHORS reference to translations path
ferdnyc Sep 12, 2018
a6d69d5
Update packaged QT translation file path
ferdnyc Sep 12, 2018
fb5afb5
Also package qtbase_*.qm translation files
ferdnyc Sep 12, 2018
a3c5b97
locale => translation, in a comment
ferdnyc Sep 12, 2018
073ac20
Stupid typo
ferdnyc Sep 12, 2018
515d088
Stupider typo
ferdnyc Sep 12, 2018
02b8f6a
show_translations.py fixes
ferdnyc Sep 12, 2018
1502082
Updating name of experimental setting for multiple thread safety. Als…
jonoomph Sep 15, 2018
a11b872
Bumping version to 2.4.3 (libopenshot dependency to 0.2.1)
jonoomph Sep 15, 2018
2f0c8d1
Preventing libopenshot check on unittests
jonoomph Sep 16, 2018
b297484
Merge pull request #2103 from ferdnyc/no-locale
DylanC Sep 16, 2018
4f8f558
Fixed split keep both sides (right side position was incorrect)
jonoomph Sep 16, 2018
2faf7d8
Updating default project type to 720p 30 FPS, and sample rate 44100
jonoomph Sep 17, 2018
2033873
Disable OMP thread concurrency during Export, to make exports as safe…
jonoomph Sep 17, 2018
6b7b56a
Add "release-candidate" to filename for daily RC builds, so they don'…
jonoomph Sep 17, 2018
3cc472f
Reverting a change from @DylanC (from commit 6a09742eb67d80eab6d212a2…
jonoomph Sep 17, 2018
cace754
Updating translations
jonoomph Sep 17, 2018
4b4172d
Updating contributors and supporters (Thank You!)
jonoomph Sep 17, 2018
06db243
Merge branch 'develop' into release, and update language translations…
jonoomph Sep 19, 2018
544de45
Adding translation POT file and generated resource file (openshot_lan…
jonoomph Sep 19, 2018
946dc0d
Bumping libopenshot dependency version to 0.2.2 (to include a fix for…
jonoomph Sep 22, 2018
90fdc53
Merge branch 'master' into release
jonoomph Sep 22, 2018
b90557d
Merge pull request #2134 from OpenShot/release
jonoomph Sep 22, 2018
f2fac8c
Merge pull request #2135 from OpenShot/master
jonoomph Sep 22, 2018
8b79f7f
Simplify version number and file name logic in build server (especial…
jonoomph Sep 22, 2018
d0a09f2
Bumping version to 2.4.3-dev1 (for development reasons)
jonoomph Sep 22, 2018
cc6e998
Merge pull request #2136 from OpenShot/simplify-buildserver-version
jonoomph Sep 22, 2018
42ed592
appdata: v2.4.3
eszlari Sep 23, 2018
f2c369f
Merge pull request #2138 from eszlari/patch-1
DylanC Sep 23, 2018
a81486d
Common log format for param changes
ferdnyc Sep 27, 2018
d58fbf1
Label logged values with context
ferdnyc Sep 27, 2018
0d6c060
Log arg to onBlenderVersionError
ferdnyc Sep 27, 2018
7d610bb
Only log if image is detected
ferdnyc Sep 27, 2018
78899aa
Don't import QWebView, never used
ferdnyc Sep 30, 2018
973d647
Merge pull request #2171 from ferdnyc/title-editor-nowebkit
DylanC Sep 30, 2018
1eca866
Merge branch 'develop' into blender-logs
ferdnyc Oct 1, 2018
3c51e7c
Merge pull request #2159 from ferdnyc/blender-logs
DylanC Oct 2, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
language: cpp
dist: trusty

before_install:
- sudo add-apt-repository ppa:openshot.developers/libopenshot-daily -y
- sudo apt-get update -qq
- sudo apt-get install gcc-4.8 xvfb tar cmake libopenshot-dev libopenshot-audio-dev libunittest++-dev swig doxygen doxypy libssl-dev python3 python3-dev python3-pip python3-pyqt5 python3-setuptools python3-openshot python3-pyqt5 python3-pyqt5.qtmultimedia python3-pyqt5.qtopengl python3-pyqt5.qtsvg python3-pyqt5.qtwebkit python3-requests python3-xdg python3-zmq qttranslations5-l10n -y
- sudo apt autoremove -y
- wget https://files.pythonhosted.org/packages/d0/6d/9492644452727094543575de9846af5a2b9c764f760e2d414af7c876618c/cx_Freeze-5.0.1.tar.gz
- tar xf cx_Freeze-5.0.1.tar.gz
- cd cx_Freeze-5.0.1; python3 setup.py build; sudo python3 setup.py install; cd ..;
- pwd

script:
- python3 freeze.py build;
- xvfb-run --auto-servernum --server-num=1 --server-args "-screen 0 1920x1080x24" python3 src/tests/query_tests.py

notifications:
email: true

env:
global:
- TRAVIS_LIBOPENSHOT=TEST
- LANG="en_US.UTF-8"
4 changes: 2 additions & 2 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ developer credits.


Translation:
See src/locale/ folders for details on translation credits. Each
See src/language/ folder for details on translation credits. Each
translation contains a "translator-credits" key containing the
details of each translator that contributed to that language.

Expand Down Expand Up @@ -35,4 +35,4 @@ https://github.com/OpenShot/openshot-qt/graphs/contributors
https://github.com/OpenShot/libopenshot/graphs/contributors
https://github.com/OpenShot/libopenshot-audio/graphs/contributors
http://openshot.org/developers
https://launchpad.net/~openshot.developers
https://launchpad.net/~openshot.developers
8 changes: 4 additions & 4 deletions freeze.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,16 +125,16 @@ def find_files(directory, patterns):
build_exe_options = {}

# Copy QT translations to local folder (to be packaged)
qt_local_path = os.path.join(PATH, "openshot_qt", "locale", "QT")
qt_local_path = os.path.join(PATH, "openshot_qt", "language")
qt_system_path = QLibraryInfo.location(QLibraryInfo.TranslationsPath)
if os.path.exists(qt_system_path):
# Create local QT translation folder (if needed)
if not os.path.exists(qt_local_path):
os.mkdir(qt_local_path)
# Loop through QT translation files and copy them
for file in os.listdir(qt_system_path):
# Copy QT locale files
if file.startswith("qt_") and file.endswith(".qm"):
# Copy QT translation files
if (file.startswith("qt_") or file.startswith("qtbase_")) and file.endswith(".qm"):
shutil.copyfile(os.path.join(qt_system_path, file), os.path.join(qt_local_path, file))

if sys.platform == "win32":
Expand Down Expand Up @@ -272,4 +272,4 @@ def find_files(directory, patterns):

# Remove temporary folder (if SRC folder present)
if os.path.exists(os.path.join(PATH, "src")):
rmtree(os.path.join(PATH, "openshot_qt"), True)
rmtree(os.path.join(PATH, "openshot_qt"), True)
1 change: 0 additions & 1 deletion installer/build-mac-dmg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ mv "$OS_PATH/MacOS/blender" "$OS_PATH/Resources/blender"; ln -s "../Resources/bl
mv "$OS_PATH/MacOS/classes" "$OS_PATH/Resources/classes"; ln -s "../Resources/classes" "$OS_PATH/MacOS/classes";
mv "$OS_PATH/MacOS/effects" "$OS_PATH/Resources/effects"; ln -s "../Resources/effects" "$OS_PATH/MacOS/effects";
mv "$OS_PATH/MacOS/images" "$OS_PATH/Resources/images"; ln -s "../Resources/images" "$OS_PATH/MacOS/images";
mv "$OS_PATH/MacOS/locale" "$OS_PATH/Resources/locale"; ln -s "../Resources/locale" "$OS_PATH/MacOS/locale";
mv "$OS_PATH/MacOS/language" "$OS_PATH/Resources/language"; ln -s "../Resources/language" "$OS_PATH/MacOS/language";
mv "$OS_PATH/MacOS/presets" "$OS_PATH/Resources/presets"; ln -s "../Resources/presets" "$OS_PATH/MacOS/presets";
mv "$OS_PATH/MacOS/profiles" "$OS_PATH/Resources/profiles"; ln -s "../Resources/profiles" "$OS_PATH/MacOS/profiles";
Expand Down
2 changes: 1 addition & 1 deletion installer/build-server.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def parse_version_info(version_path):
github_release = get_release(repo, "daily")
elif git_branch_name == "release":
# Get daily git_release object
openshot_qt_git_desc = "OpenShot-v%s-%d" % (info.VERSION, int(time.time()))
openshot_qt_git_desc = "OpenShot-v%s-release-candidate-%d" % (info.VERSION, int(time.time()))
github_release = get_release(repo, "daily")
elif git_branch_name == "master":
# Get official version release (i.e. v2.1.0, v2.x.x)
Expand Down
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,13 @@
('share/applications', ['xdg/openshot-qt.desktop']),
# AppStream metadata
('share/metainfo', ['xdg/openshot-qt.appdata.xml']),
# XDG application icon
# Debian menu system application icon
('share/pixmaps', ['xdg/openshot-qt.svg']),
# XDG Freedesktop icon paths
('share/icons/hicolor/scalable/apps', ['xdg/openshot-qt.svg']),
('share/icons/hicolor/64/apps', ['xdg/icon/64/openshot-qt.png']),
('share/icons/hicolor/256/apps', ['xdg/icon/256/openshot-qt.png']),
('share/icons/hicolor/512/apps', ['xdg/icon/512/openshot-qt.png']),
# XDG desktop mime types cache
('share/mime/packages', ['xdg/openshot-qt.xml']),
# launcher (mime.types)
Expand Down
2 changes: 1 addition & 1 deletion src/classes/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def __init__(self, *args, mode=None):
# Detect minimum libopenshot version
_ = self._tr
libopenshot_version = openshot.GetVersion().ToString()
if libopenshot_version < info.MINIMUM_LIBOPENSHOT_VERSION:
if mode != "unittest" and libopenshot_version < info.MINIMUM_LIBOPENSHOT_VERSION:
QMessageBox.warning(None, _("Wrong Version of libopenshot Detected"),
_("<b>Version %(minimum_version)s is required</b>, but %(current_version)s was detected. Please update libopenshot or download our latest installer.") %
{"minimum_version": info.MINIMUM_LIBOPENSHOT_VERSION, "current_version": libopenshot_version})
Expand Down
3 changes: 1 addition & 2 deletions src/classes/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,11 @@ def zoomToSeconds(zoomValue):
def secondsToZoom(scaleValue):
""" Convert a number of seconds to a timeline zoom factor """
if scaleValue in zoomSeconds:
return zoomSeconds[scaleValue]
return zoomSeconds.index(scaleValue)
else:
# Find closest zoom
closestValue = zoomSeconds[0]
for zoomValue in zoomSeconds:
if zoomValue < scaleValue:
closestValue = zoomValue
return zoomSeconds.index(closestValue)

8 changes: 5 additions & 3 deletions src/classes/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@

import os

VERSION = "2.4.2"
MINIMUM_LIBOPENSHOT_VERSION = "0.2.0"
DATE = "20180630000000"
from PyQt5.QtCore import QDir

VERSION = "2.4.3"
MINIMUM_LIBOPENSHOT_VERSION = "0.2.2"
DATE = "20180922000000"
NAME = "openshot-qt"
PRODUCT_NAME = "OpenShot Video Editor"
GPL_VERSION = "3"
Expand Down
4 changes: 2 additions & 2 deletions src/classes/language.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ def init_language():
"path": QLibraryInfo.location(QLibraryInfo.TranslationsPath)},
{"type": 'QT',
"prefix": 'qt_',
"path": os.path.join(info.PATH, 'locale', 'QT')}, # Optional path where we package QT translations
"path": os.path.join(info.PATH, 'language')}, # Optional path where we package QT translations
{"type": 'QT',
"prefix": 'qtbase_',
"path": os.path.join(info.PATH, 'locale', 'QT')}, # Optional path where we package QT translations
"path": os.path.join(info.PATH, 'language')}, # Optional path where we package QT translations
{"type": 'OpenShot',
"prefix": 'OpenShot.', # Our custom translations
"path": language_path},
Expand Down
26 changes: 15 additions & 11 deletions src/classes/updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,17 @@ def json(self, is_array=False, only_value=False):

# Build the dictionary to be serialized
if only_value:
data_dict = self.values
data_dict = copy.deepcopy(self.values)
else:
data_dict = {"type": self.type,
"key": self.key,
"value": self.values,
"value": copy.deepcopy(self.values),
"partial": self.partial_update,
"old_values": self.old_values}
"old_values": copy.deepcopy(self.old_values)}

# Always remove 'history' key (if found)
if "history" in data_dict:
data_dict.pop("history")

if not is_array:
# Use a JSON Object as the root object
Expand Down Expand Up @@ -126,13 +130,15 @@ def load_history(self, project):

# Loop through each, and load serialized data into updateAction objects
for actionDict in history.get("redo", []):
action = UpdateAction()
action.load_json(json.dumps(actionDict))
self.redoHistory.append(action)
if "history" not in actionDict.keys():
action = UpdateAction()
action.load_json(json.dumps(actionDict))
self.redoHistory.append(action)
for actionDict in history.get("undo", []):
action = UpdateAction()
action.load_json(json.dumps(actionDict))
self.actionHistory.append(action)
if "history" not in actionDict.keys():
action = UpdateAction()
action.load_json(json.dumps(actionDict))
self.actionHistory.append(action)

# Notify watchers of new status
self.update_watchers()
Expand Down Expand Up @@ -268,8 +274,6 @@ def load(self, values):

self.last_action = UpdateAction('load', '', values)
self.redoHistory.clear()
if not self.ignore_history:
self.actionHistory.append(self.last_action)
self.dispatch_action(self.last_action)

# Perform new actions, clearing redo history for taking a new path
Expand Down
Binary file modified src/images/openshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/language/OpenShot.ar.qm
Binary file not shown.
Binary file modified src/language/OpenShot.ca.qm
Binary file not shown.
Binary file modified src/language/OpenShot.cs.qm
Binary file not shown.
Binary file modified src/language/OpenShot.en_AU.qm
Binary file not shown.
Binary file modified src/language/OpenShot.en_CA.qm
Binary file not shown.
Binary file modified src/language/OpenShot.eo.qm
Binary file not shown.
Binary file modified src/language/OpenShot.es.qm
Binary file not shown.
Binary file modified src/language/OpenShot.eu.qm
Binary file not shown.
Binary file modified src/language/OpenShot.fi.qm
Binary file not shown.
Binary file modified src/language/OpenShot.fr.qm
Binary file not shown.
Binary file modified src/language/OpenShot.fr_CA.qm
Binary file not shown.
Binary file modified src/language/OpenShot.he.qm
Binary file not shown.
Binary file modified src/language/OpenShot.ja.qm
Binary file not shown.
Binary file modified src/language/OpenShot.kk.qm
Binary file not shown.
Binary file modified src/language/OpenShot.my.qm
Binary file not shown.
Binary file modified src/language/OpenShot.nl.qm
Binary file not shown.
Binary file modified src/language/OpenShot.pl.qm
Binary file not shown.
Loading