Commit Graph

36 Commits (c95752783f1d63be44887cd896bcbd8e2bf0ae23)

Author SHA1 Message Date
mio 430d1bae9d Add context menu to audioView
Allows people to toggle the analyzer visibility.

Signed-off-by: mio <stigma@disroot.org>
4 months ago
mio 5e57ab35af Add context menu to status bar
It adds an item which toggles the visibility of the Analyzer when
watching videos.

Signed-off-by: mio <stigma@disroot.org>
4 months ago
Michele Calgaro a130452020
Use tdeApp
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
5 months ago
mio 5cfecec409 Create a AudioView widget for audio-only streams
Currently Codeine will show a blank area when playing an audio-only
file, such as music.  This patch adds a new widget that contains an
instance of the Analyzer::Block class, so instead of a blank area it
contains a "visualizer" of sorts.

Signed-off-by: mio <stigma@disroot.org>
6 months ago
mio 14b52b5a46 Fix mouse events not changing volume
Using the scroll wheel over the volume slider would not change the
volume, neither would dragging the slider (until released) or clicking
on the slider.

This patch fixes the above.

See: TDE/codeine#5
Signed-off-by: mio <stigma@disroot.org>
8 months ago
mio 462472610d Allow seeking in FLAC
Xine has supported seeking in FLAC files since 1.1.16.

Signed-off-by: mio <stigma@disroot.org>
8 months ago
mio ff2a5768dd Update the xineScope to remove global variables.
This patch updates xineScope.c to better align with Amarok's code. As a
result, the analyzer is more accurate.  For instance, when playing an
audio file and there is a silent spot, the blocks will correctly "drop"
to the bottom, leaving an empty analyzer.  The previous behaviour would
leave some blocks "stuck" in their position

See: TDE/codeine#23
Signed-off-by: mio <stigma@disroot.org>
8 months ago
mio a3ea0ee70f Fix the audio analyzer
Most of the code was already borrowed from Amarok, but wasn't properly
finished. This just updates the code to more closely match what is
currently in TDE's Amarok.

The Analyzer still sits in the statusBar(), which is cool, but can have
some delays when watching a video (the video itself is unaffected).

See: TDE/codeine#23
Signed-off-by: mio <stigma@disroot.org>
9 months ago
mio f460840a5e Fix channel selection menus disappearing
When adding/removing an action to/from the toolbar, the aspect ratio,
audio channel, and subtitle channel menus would disappear from the
parent settings menu.

My understanding is that this happened because nothing was keeping those
menus present (plugged?) when other actions were plugged/unplugged.

This changes it so "Aspect Ratio", "Subtitles", and "Audio Channels"
each are a TDESelectAction that is dynamically filled with items. This
way, each popup menu is still present after other actions being
plugged/unplugged.

Resolves: TDE/codeine#24
Signed-off-by: mio <stigma@disroot.org>
9 months ago
mio 9ef39acd5d Address -Wall warnings
VideoWindow::ExposeEvent wasn't being used correctly; it should be a
TQCustomEvent (although, the 3000 type is already being used for
forwarding XINE_PROGRESS_EVENT).

While the pts_per_smpls part never seemed to be encountered, it would
have resulted in a floating point exception as it's always 0.  Commented
out to leave a hint as to what the code should be doing.

Resolves: TDE/codeine#2
Signed-off-by: mio <stigma@disroot.org>
9 months ago
mio c0311bdfc3 Fix filter list when opening a file
Signed-off-by: mio <stigma@disroot.org>
10 months ago
mio 11c0638baf Improve the layout of XineConfigDialog
Properly display the description of each of the settings.  Also,
reorganize the layout so that it uses layouts rather than VBox/HBox.

The TabWidget class has been removed in favour of the standard
TQTabWidget class, as the different behaviour doesn't make a notable
visual difference.

Signed-off-by: mio <stigma@disroot.org>
10 months ago
mio b62e6bc2b9 Fix crash when showing context menu in DVDs
Signed-off-by: mio <stigma@disroot.org>
10 months ago
mio ed55bf0726 Use nullptr instead of NULL/0 pointer in C++ files
See: https://mirror.git.trinitydesktop.org/gitea/TDE/tde/issues/73
Signed-off-by: mio <stigma@disroot.org>
11 months ago
mio 5e965846d1 Use safer xine_get_current_frame_s
xine_get_current_frame was deprecated back in 2019 because it is
"unsafe by design"[0].  The '_s' version was introduced in xine-lib
1.1.11, which was released in 2008, so there are no version checks.

[0]:
c1a154c1a8/

Signed-off-by: mio <stigma@disroot.org>
11 months ago
mio 000a65ca62 Scale capture preview if it exceeds screen bounds
Signed-off-by: mio <stigma@disroot.org>
11 months ago
Michele Calgaro 00a73f1dea
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
1 year ago
Michele Calgaro 1ca6231ff7
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
2 years ago
Michele Calgaro b5977d5e67
xine engine: make volume control logarithmic for versions of xine < 1.2.13. For xine versions >= 1.2.13, libxine already makes the volume logarithmic. This relates to TDE/tdemultimedia#40.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
2 years ago
Michele Calgaro 1884d0e5a2
Fix volume slider functionality and visualization
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
2 years ago
Michele Calgaro ea718087e4
Replace Q_OBJECT with TQ_OBJECT
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
2 years ago
gregory guy a25a38afa5
Add a couple of missing icons.
Signed-off-by: gregory guy <gregory-tde@laposte.net>
5 years ago
Michele Calgaro 304d3a226c
Fixed xine scope plugin functionality with xine 1.2.10.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
5 years ago
gregory guy 9977caccb3
Bring back missing icons, thanks to Slávek Banko for the tip.
Signed-off-by: gregory guy <gregory-tde@laposte.net>
5 years ago
Slávek Banko 4ca91724d7
Drop the use of the HAVE_XINE_H definition.
Add include <xine.h> to the appropriate headers.
Clean up the arrangement of include files.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
5 years ago
Slávek Banko 7090ff34ea
Install libcodeine as a plugin instead of as a shared library.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
5 years ago
Slávek Banko 440bda1096
Add CMakeL10n rules.
Update translation templates.
Use common cmake rules for documentation.
Added creation of translated desktop files during build.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
5 years ago
Slávek Banko 5e7b4208af
Added controlled conversions to char* instead of automatic ascii conversions.
The definition of -UTQT_NO_ASCII_CAST is no longer needed.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
5 years ago
Michele Calgaro b51af279c4
Fixed FTBFS with xine 1.2.10. The use of the xine scope plugin is currently
disabled when xine >= 1.2.10 is detected.

Additional info:
The xine scope plugin is statically linked and therefore written by
accessing internal xine data that are no longer publicly available from
xine 1.2.10.
To add back the scope plugin functionality, the plugin will have to be
converted into a dynamically linked one and further work done to fix the
logic of the plugin itself.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
5 years ago
gregory guy 088b37ef3c
Get rid of some deprecated.
given warning: "xine_mrl_reference_data_t XINE_DEPRECATED"

Signed-off-by: gregory guy <gregory-tde@laposte.net>
5 years ago
gregory guy 0b2288da16
Conversion to the cmake building system.
Signed-off-by: gregory guy <gregory-tde@laposte.net>
5 years ago
gregory guy 88aa431c9d
Add support for xinelib-1.2, patch is from anixx@opensuse.org
taken from the kde3 OpenSuse repo, package kde3-codeine-1.0.1-52.73.src.rpm
http://download.opensuse.org/repositories/KDE:/KDE3/openSUSE_Tumbleweed/src

Signed-off-by: gregory guy <gregory-tde@laposte.net>
5 years ago
gregory guy 12b478cefd
Conversion KDE -> TDE environment.
Signed-off-by: gregory guy <gregory-tde@laposte.net>
5 years ago
gregory guy 2c9bc9b806
Conversion qt3 -> tqt3
Signed-off-by: gregory guy <gregory-tde@laposte.net>
5 years ago
Michele Calgaro 38eaf7209a
Applied patches from debian/patches.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
5 years ago
Michele Calgaro 5f44f7b187
Initial code import from debian snapshot
https://snapshot.debian.org/package/codeine/1.0.1-3.dfsg-3.1/

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
5 years ago