Commit Graph

19 Commits (master)

Author SHA1 Message Date
Daniel Kamil Kozar 28b1d1eeec
Make language names translatable (#603)
Fixes #591.
2022-05-15 22:53:32 +02:00
Dan c2de3db345
Qt6 Readiness (#470)
Make it possible to build GUI with Qt 6 while keeping compatibility with 5.6.3.
2021-11-12 18:15:19 +01:00
Daniel Kamil Kozar 0a162cce0d
Use the model-view approach for handling font settings (#485)
This change moves all code related to handling font settings from TsMuxerWindow to its own model. The widget handling the data is now just an ordinary QTableView.

This does away with storing everything as strings inside a QTableWidget, which means that functions using font data to generate metafile or other kinds of output use QFont objects directly.
2021-11-01 17:29:50 +01:00
Daniel Kamil Kozar 1a1b771e14
Remove default font settings from UI XML (#484)
This causes these strings to be set when retranslateUi is called, possibly overwriting the proper ones loaded from the settings.

Fixes #482 .
2021-11-01 16:24:51 +01:00
Daniel Kamil Kozar 304cb687f1
Allow selecting multiple files also when clicking "join" (#341) 2020-09-18 00:19:53 +02:00
Daniel Kamil Kozar 632b6e4c10
Always save settings when closing GUI (#310)
Fixes #257.
2020-07-02 00:10:49 +02:00
Daniel Kamil Kozar 2cf8661b97
Fix translated strings appearing in the metafile (#233) 2020-03-06 00:20:05 +01:00
Daniel Kamil Kozar 4b8c084082
Simplify TsMuxerWindow::myPlaySound (#226)
It turns out that playing sound files available as application resources is as simple as using QSoundEffect with a qrc URL. This saves us from all the shenanigans previously done in order to save the resource to a file just to be able to pass it to a QSound object.
2020-03-03 21:57:01 +01:00
Daniel Kamil Kozar ce05c5d4d1
Move the contents of the "about" tab to an external file and other GUI improvements (#221)
The contents of the UI tab were saved as inline HTML in the UI file for TsMuxerWindow. Making them translatable would've exported the content to .ts files, which means that translators would have to put up with not only HTML, but HTML with XML escaping applied into it.
Moving the content to an external file seems like a best approach in this case. The content of the file is loaded in the appropriate language when switching languages. The HTML files themselves are included as resources at build time.
2020-03-01 19:32:53 +01:00
Daniel Kamil Kozar d9a90f44f3
Enable translation in GUI (#218)
This change brings translation support to the tsMuxeR GUI. We have a Russian translation available so far, thanks to @abakum. The last selected translation is saved in the settings file and restored at the application's next startup. The currently used language is selectable by a combo box in the lower left corner of the window.
2020-03-01 00:35:31 +01:00
Daniel Kamil Kozar ec66ec3e42
Remove lambda due to compiler segfault on Win64 2020-02-09 10:16:04 +01:00
Daniel Kamil Kozar 31d39b60a7
Implement support for default audio and subtitle tracks when muxing to Blu-ray (#161)
Fixes #126.
2020-02-08 20:48:41 +01:00
Daniel Kamil Kozar 451ec61a50
Introduce a uniform formatting style (#131)
The repository now contains a clang-format file which should be used when committing new code. Additionally, a new workflow job is added which checks the conformance of source files to the specified formatting rules.

Fixes #47.
2020-01-14 21:56:44 +01:00
Daniel Kamil Kozar a4cc39fb10
Non-functional GUI improvements
* Don't include <QtGui>, which is a leftover from Qt4 and causes literally
  everything to be pulled into the TU.
* Use forward declarations instead of includes where possible.
* Replace aggregated Ui* classes with aggregation via pointer, which allows
  these classes to be forward-declared and thus further reduce the number of
  included headers. Aggregation via pointer has been the default in Qt Creator
  for some time now.
* Fix minor warnings reported by Clang.
* Move QnCheckBoxedHeaderView to a separate file.
* Move QtvCodecInfo to a separate file, change initializer list to inline member initialization.
* Create an actual QMake .pro file instead of stuffing it in MXE build scripts.
* Fix 32-bit integers being used as pointers to QtvCodecInfo objects in 64-bit Windows builds.
* Update information in the "About" tab.
2020-01-11 23:46:04 +01:00
Daniel Kamil Kozar 1701957c05
Avoid using the "general" group in QSettings due to QTBUG-28893 (#135)
Fixes #132
2020-01-11 18:28:31 +01:00
Dan Bryant aaecc7c1d6 Merging pull request #67 2019-12-10 22:42:23 +00:00
Daniel Kamil Kozar 5ee30737be
Make the GUI look for the main binary under "tsmuxer" and "tsMuxeR"
The all-lowercase binary name is the one that's emitted by the current build
system, while the old one is kept for backwards compatibility.

Fixes #63
2019-12-07 19:37:30 +01:00
Dan Bryant 0c9f5291d7 apply Selur's patch for Qt5 compatibility 2019-08-10 18:07:43 +01:00
Dan Bryant 71f0f89c93 add source code and changelog 2019-07-15 16:52:40 +01:00