* libtunepimp updates

* kmix fixes
* noatun automake patch
* juk configuration dialog enhancements
* hide aRTS menu entries

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1062736 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 15 years ago
parent e2de64d6f1
commit b00800d31c

@ -120,3 +120,4 @@ DocPath=artsbuilder/index.html
X-DCOP-ServiceType=Multi X-DCOP-ServiceType=Multi
OnlyShowIn=KDE; OnlyShowIn=KDE;
Categories=Qt;KDE;AudioVideo;X-KDE-More; Categories=Qt;KDE;AudioVideo;X-KDE-More;
NoDisplay=true

@ -134,3 +134,4 @@ X-DCOP-ServiceType=Multi
DocPath=artsbuilder/index.html DocPath=artsbuilder/index.html
OnlyShowIn=KDE; OnlyShowIn=KDE;
Categories=Qt;KDE;AudioVideo;X-KDE-More; Categories=Qt;KDE;AudioVideo;X-KDE-More;
NoDisplay=true

@ -10,7 +10,7 @@ AC_ARG_WITH(musicbrainz,
have_musicbrainz=no have_musicbrainz=no
if test "x$with_musicbrainz" != xno; then if test "x$with_musicbrainz" != xno; then
KDE_CHECK_HEADER(tunepimp/tp_c.h, have_musicbrainz=yes) KDE_CHECK_HEADER(tunepimp-0.5/tp_c.h, have_musicbrainz=yes)
if test "x$with_musicbrainz" != xcheck && test "x$have_musicbrainz" != xyes; then if test "x$with_musicbrainz" != xcheck && test "x$have_musicbrainz" != xyes; then
AC_MSG_ERROR([--with-musicbrainz was given, but test for MusicBrainz failed]) AC_MSG_ERROR([--with-musicbrainz was given, but test for MusicBrainz failed])

@ -64,6 +64,7 @@ k_dcop:
virtual void forward() = 0; virtual void forward() = 0;
virtual void seekBack() = 0; virtual void seekBack() = 0;
virtual void seekForward() = 0; virtual void seekForward() = 0;
virtual void forwardAlbum() = 0;
virtual void volumeUp() = 0; virtual void volumeUp() = 0;
virtual void volumeDown() = 0; virtual void volumeDown() = 0;

@ -443,6 +443,17 @@ void PlayerManager::back()
stop(); stop();
} }
void PlayerManager::forwardAlbum()
{
m_playlistInterface->playNextAlbum();
FileHandle file = m_playlistInterface->currentFile();
if(!file.isNull())
play(file);
else
stop();
}
void PlayerManager::volumeUp() void PlayerManager::volumeUp()
{ {
if(!player() || !m_sliderAction || !m_sliderAction->volumeSlider()) if(!player() || !m_sliderAction || !m_sliderAction->volumeSlider())

@ -78,6 +78,7 @@ public slots:
void playPause(); void playPause();
void forward(); void forward();
void back(); void back();
void forwardAlbum();
void volumeUp(); void volumeUp();
void volumeDown(); void volumeDown();
void mute(); void mute();

@ -65,6 +65,7 @@ public:
virtual void playNext() = 0; virtual void playNext() = 0;
virtual void playPrevious() = 0; virtual void playPrevious() = 0;
virtual void playNextAlbum() = 0;
virtual void stop() = 0; virtual void stop() = 0;
virtual bool playing() const = 0; virtual bool playing() const = 0;

@ -197,7 +197,7 @@ KMixWindow::updateDocking()
// create dock widget // create dock widget
// !! This should be a View in the future // !! This should be a View in the future
m_dockWidget = new KMixDockWidget( Mixer::mixers().first(), this, "mainDockWidget", m_volumeWidget ); m_dockWidget = new KMixDockWidget( Mixer::mixers().first(), this, "mainDockWidget", m_volumeWidget, m_dockIconMuting );
/* Belongs in KMixDockWidget /* Belongs in KMixDockWidget
// create RMB menu // create RMB menu
@ -249,6 +249,7 @@ KMixWindow::saveConfig()
config->writeEntry( "Tickmarks", m_showTicks ); config->writeEntry( "Tickmarks", m_showTicks );
config->writeEntry( "Labels", m_showLabels ); config->writeEntry( "Labels", m_showLabels );
config->writeEntry( "startkdeRestore", m_onLogin ); config->writeEntry( "startkdeRestore", m_onLogin );
config->writeEntry( "DockIconMuting", m_dockIconMuting );
Mixer* mixerMasterCard = Mixer::masterCard(); Mixer* mixerMasterCard = Mixer::masterCard();
if ( mixerMasterCard != 0 ) { if ( mixerMasterCard != 0 ) {
config->writeEntry( "MasterMixer", mixerMasterCard->id() ); config->writeEntry( "MasterMixer", mixerMasterCard->id() );
@ -298,6 +299,7 @@ KMixWindow::loadConfig()
m_showLabels = config->readBoolEntry("Labels", true); m_showLabels = config->readBoolEntry("Labels", true);
const QString& valueStyleString = config->readEntry("ValueStyle", "None"); const QString& valueStyleString = config->readEntry("ValueStyle", "None");
m_onLogin = config->readBoolEntry("startkdeRestore", true ); m_onLogin = config->readBoolEntry("startkdeRestore", true );
m_dockIconMuting = config->readBoolEntry( "DockIconMuting", false);
m_startVisible = config->readBoolEntry("Visible", true); m_startVisible = config->readBoolEntry("Visible", true);
m_multiDriverMode = config->readBoolEntry("MultiDriver", false); m_multiDriverMode = config->readBoolEntry("MultiDriver", false);
m_surroundView = config->readBoolEntry("Experimental-ViewSurround", false ); m_surroundView = config->readBoolEntry("Experimental-ViewSurround", false );
@ -428,6 +430,7 @@ KMixWindow::showSettings()
m_prefDlg->m_showTicks->setChecked( m_showTicks ); m_prefDlg->m_showTicks->setChecked( m_showTicks );
m_prefDlg->m_showLabels->setChecked( m_showLabels ); m_prefDlg->m_showLabels->setChecked( m_showLabels );
m_prefDlg->m_onLogin->setChecked( m_onLogin ); m_prefDlg->m_onLogin->setChecked( m_onLogin );
m_prefDlg->m_dockIconMuting->setChecked( m_dockIconMuting );
m_prefDlg->_rbVertical ->setChecked( m_toplevelOrientation == Qt::Vertical ); m_prefDlg->_rbVertical ->setChecked( m_toplevelOrientation == Qt::Vertical );
m_prefDlg->_rbHorizontal->setChecked( m_toplevelOrientation == Qt::Horizontal ); m_prefDlg->_rbHorizontal->setChecked( m_toplevelOrientation == Qt::Horizontal );
m_prefDlg->_rbNone->setChecked( m_valueStyle == MixDeviceWidget::NNONE ); m_prefDlg->_rbNone->setChecked( m_valueStyle == MixDeviceWidget::NNONE );
@ -497,6 +500,7 @@ KMixWindow::applyPrefs( KMixPrefDlg *prefDlg )
m_showTicks = prefDlg->m_showTicks->isChecked(); m_showTicks = prefDlg->m_showTicks->isChecked();
m_showLabels = prefDlg->m_showLabels->isChecked(); m_showLabels = prefDlg->m_showLabels->isChecked();
m_onLogin = prefDlg->m_onLogin->isChecked(); m_onLogin = prefDlg->m_onLogin->isChecked();
m_dockIconMuting = prefDlg->m_dockIconMuting->isChecked();
if ( prefDlg->_rbNone->isChecked() ) { if ( prefDlg->_rbNone->isChecked() ) {
m_valueStyle = MixDeviceWidget::NNONE; m_valueStyle = MixDeviceWidget::NNONE;

@ -100,6 +100,7 @@ KMixWindow : public KMainWindow
bool m_volumeWidget; bool m_volumeWidget;
bool m_hideOnClose; bool m_hideOnClose;
bool m_showTicks; bool m_showTicks;
bool m_dockIconMuting;
bool m_showLabels; bool m_showLabels;
MixDeviceWidget::ValueStyle m_valueStyle; // No numbers by default MixDeviceWidget::ValueStyle m_valueStyle; // No numbers by default
bool m_onLogin; bool m_onLogin;

@ -47,7 +47,7 @@
#include "kwin.h" #include "kwin.h"
#include "viewdockareapopup.h" #include "viewdockareapopup.h"
KMixDockWidget::KMixDockWidget( Mixer *mixer, QWidget *parent, const char *name, bool volumePopup ) KMixDockWidget::KMixDockWidget( Mixer *mixer, QWidget *parent, const char *name, bool volumePopup, bool dockIconMuting )
: KSystemTray( parent, name ), : KSystemTray( parent, name ),
m_mixer(mixer), m_mixer(mixer),
_dockAreaPopup(0L), _dockAreaPopup(0L),
@ -55,7 +55,8 @@ KMixDockWidget::KMixDockWidget( Mixer *mixer, QWidget *parent, const char *name,
_playBeepOnVolumeChange(false), // disabled due to triggering a "Bug" _playBeepOnVolumeChange(false), // disabled due to triggering a "Bug"
_oldToolTipValue(-1), _oldToolTipValue(-1),
_oldPixmapType('-'), _oldPixmapType('-'),
_volumePopup(volumePopup) _volumePopup(volumePopup),
_dockIconMuting(dockIconMuting)
{ {
Mixer* preferredMasterMixer = Mixer::masterCard(); Mixer* preferredMasterMixer = Mixer::masterCard();
if ( preferredMasterMixer != 0 ) { if ( preferredMasterMixer != 0 ) {
@ -294,7 +295,11 @@ KMixDockWidget::mousePressEvent(QMouseEvent *me)
return; return;
} // LeftMouseButton pressed } // LeftMouseButton pressed
else if ( me->button() == MidButton ) { else if ( me->button() == MidButton ) {
toggleActive(); if ( ! _dockIconMuting ) {
toggleActive();
} else {
dockMute();
}
return; return;
} }
else { else {

@ -43,7 +43,7 @@ class KMixDockWidget : public KSystemTray {
friend class KMixWindow; friend class KMixWindow;
public: public:
KMixDockWidget(Mixer *, QWidget *parent=0, const char *name=0, bool volumePopup=true); KMixDockWidget(Mixer *, QWidget *parent=0, const char *name=0, bool volumePopup=true, bool dockIconMuting=false);
~KMixDockWidget(); ~KMixDockWidget();
void setErrorPixmap(); void setErrorPixmap();
@ -73,6 +73,7 @@ class KMixDockWidget : public KSystemTray {
int _oldToolTipValue; int _oldToolTipValue;
char _oldPixmapType; char _oldPixmapType;
bool _volumePopup; bool _volumePopup;
bool _dockIconMuting;
private slots: private slots:
void dockMute(); void dockMute();
void selectMaster(); void selectMaster();

@ -68,6 +68,10 @@ KMixPrefDlg::KMixPrefDlg( QWidget *parent )
m_onLogin = new QCheckBox( i18n("Restore volumes on login"), m_generalTab ); m_onLogin = new QCheckBox( i18n("Restore volumes on login"), m_generalTab );
layout->addWidget( m_onLogin ); layout->addWidget( m_onLogin );
m_dockIconMuting = new QCheckBox(
i18n("Middle click on system tray icon toggles muting"), m_generalTab );
layout->addWidget( m_dockIconMuting );
QBoxLayout *numbersLayout = new QHBoxLayout( layout ); QBoxLayout *numbersLayout = new QHBoxLayout( layout );
QButtonGroup *numbersGroup = new QButtonGroup( 3, Qt::Horizontal, i18n("Numbers"), m_generalTab ); QButtonGroup *numbersGroup = new QButtonGroup( 3, Qt::Horizontal, i18n("Numbers"), m_generalTab );
numbersGroup->setRadioButtonExclusive(true); numbersGroup->setRadioButtonExclusive(true);

@ -57,6 +57,7 @@ KMixPrefDlg : public KDialogBase
QCheckBox *m_showTicks; QCheckBox *m_showTicks;
QCheckBox *m_showLabels; QCheckBox *m_showLabels;
QCheckBox *m_onLogin; QCheckBox *m_onLogin;
QCheckBox *m_dockIconMuting;
QRadioButton *_rbVertical; QRadioButton *_rbVertical;
QRadioButton *_rbHorizontal; QRadioButton *_rbHorizontal;
QRadioButton *_rbNone; QRadioButton *_rbNone;

@ -144,12 +144,6 @@ OS_TYPE=`uname -s`
AC_MSG_RESULT($OS_TYPE) AC_MSG_RESULT($OS_TYPE)
INTELCPPFLAG= INTELCPPFLAG=
dnl MMX_SUPPORT is set as variable in main configure.in.in
dnl now make it a config.h entry
if test x$MMX_SUPPORT = xyes; then
AC_DEFINE(INTEL,1,[Define if you have MMX support on x86 with gcc])
INTELCPPFLAG="-DINTEL"
fi
AC_SUBST(INTELCPPFLAG) AC_SUBST(INTELCPPFLAG)
AC_DEFUN([KDE_MPEGLIB_COMPILES], AC_DEFUN([KDE_MPEGLIB_COMPILES],

@ -11,7 +11,9 @@ presets_DATA = preset.dance preset.jazz preset.metal preset.trance preset.zero
updatedir = $(kde_datadir)/kconf_update updatedir = $(kde_datadir)/kconf_update
update_DATA = noatun.upd update_DATA = noatun.upd
update_PROGRAMS = noatun20update
kconfdir = $(libdir)/kconf_update_bin
kconf_PROGRAMS = noatun20update
noatun20update_SOURCES = noatun20update.cpp noatun20update_SOURCES = noatun20update.cpp
noatun20update_LDFLAGS = $(all_libraries) $(KDE_RPATH) noatun20update_LDFLAGS = $(all_libraries) $(KDE_RPATH)

Loading…
Cancel
Save