10 Commits

Author SHA1 Message Date
FeRD (Frank Dana)
c9ad762f36 Switch to C++14 [[deprecated]] annotation 2021-11-11 07:19:06 -05:00
Jonathan Thomas
9c4a98a1cd Merge pull request #704 from ferdnyc/py_message
Exceptions: Add py_message() for Python
2021-11-10 22:13:57 -06:00
Frank Dana
59138ea3e4 Adopt license management via Reuse project/tool (#711)
* reuse-managed license/copyright headers

reuse is a tool for compliance with the REUSE recommendations. See
<https://reuse.software/> for more information, and
<https://reuse.readthedocs.io/> for the online documentation.

* Set jsoncpp license
* Add MIT license for Decklink sources
* Explicitly license examples/
  - Add headers to source files
  - Change blanket licensing in .reuse/dep5 to only cover binary media
  - Import CC-BY-3.0 license and assign to sintel_trailer
2021-10-16 01:26:26 -04:00
FeRD (Frank Dana)
b39ff359ad Exceptions: Add py_message() for Python
- Most exceptions are now based on two new base classes,
  FileExceptionBase and FrameExceptionBase.
- All exception classes now export a `py_message()` method
  (inherited or defined) which constructs a message for Python
  that includes **all** arguments to the exception, not just
  the why() text.
- Python's exception handling is updated to catch
  openshot::ExceptionBase and display py_message() instead of why()
- (I didn't modify why() because it returns char*; py_message()
  returns a std::string.)
2021-07-12 22:47:43 -04:00
FeRD (Frank Dana)
58fba3ff9c Deprecate TooManySeeks exception less confusingly 2021-03-07 12:43:15 -05:00
FeRD (Frank Dana)
8278496042 Headers: Fix doc comments
KalmanTracker: Convert comment to doc comment
2021-03-07 12:43:15 -05:00
FeRD (Frank Dana)
2f3615f706 Move Exceptions.h includes to .cpp files 2021-01-26 10:52:04 -05:00
FeRD (Frank Dana)
77229147de Restore (unused) TooManySeeks exception, deprecate
To avoid API changes, we should phase the deprecation of TooManySeeks
in case external callers are catching it. But it remains unused in
the code, and should be considered deprecated. Add a deprecation
message instead.

Exceptions: Exclude TooManySeeks from SWIG
2021-01-26 10:41:24 -05:00
Frank Dana
6009a26e4c Eliminate TooManySeeks exception (#611)
Since commit bfa050409c (2015-08-24),
there is no code in libopenshot which ever throws TooManySeeks.

- Removed catch() statements for TooManySeeks from multiple functions
- Removed the exception from Exceptions.h
- in Qt/AudioPlaybackThread.h:
  - Removed the "SafeTimeSliceThread" class definition, as it only
    existed to catch TooManySeeks.
  - Replaced SafeTimeSliceThread with a standard juce::TimeSliceThread
2021-01-01 05:24:48 -05:00
FeRD (Frank Dana)
a6441d822d Reorganize source tree (headers in src/)
- src/bindings/ moves to /bindings/
- src/examples/ moves to /examples/
- Contents of include/ merged into src/ with same hierarchy
- src/Qt/demo/ moves to examples/qt-demo/
2020-10-18 05:05:29 -04:00