View | Details | Raw Unified
Collapse All | Expand All

(-) basket-0.5.0-orig/src/item.cpp (-20 lines)
 Lines 46-54    Link Here 
#include <kfiledialog.h>
#include <kfiledialog.h>
#include <qfile.h>
#include <qfile.h>
#include <kurifilter.h>
#include <kurifilter.h>
#include <arts/kartsdispatcher.h>
//#include <arts/kplayobjectfactory.h>
//#include <arts/kartsserver.h>
#include <kaction.h>
#include <kaction.h>
#include <kglobalsettings.h>
#include <kglobalsettings.h>
 Lines 219-226    Link Here 
	connect( m_check->checkBox(), SIGNAL(clicked()), this, SLOT(slotChecked()) );
	connect( m_check->checkBox(), SIGNAL(clicked()), this, SLOT(slotChecked()) );
	connect( &m_selectTimer,      SIGNAL(timeout()), this, SLOT(select())      );
	connect( &m_selectTimer,      SIGNAL(timeout()), this, SLOT(select())      );
	m_playObj    = 0L;
	m_playServer = 0L;
	m_previous   = 0L;
	m_previous   = 0L;
	m_next       = 0L;
	m_next       = 0L;
	m_isSelected = false;
	m_isSelected = false;
 Lines 598-612    Link Here 
		if ( Settings::singleClick() && kapp->activePopupWidget() == 0L )
		if ( Settings::singleClick() && kapp->activePopupWidget() == 0L )
			m_selectTimer.start(KGlobalSettings::autoSelectDelay(), true);
			m_selectTimer.start(KGlobalSettings::autoSelectDelay(), true);
	}
	}
	if (m_type == Sound) {
		KArtsDispatcher *dispatcher = new KArtsDispatcher(); // Needed for m_playObj
		dispatcher = dispatcher; // To avoid "warning: unused variable `KArtsDispatcher*dispatcher'" warning
		if (!m_playServer)
			m_playServer = new KArtsServer();
		m_playFactory = new KDE::PlayObjectFactory(m_playServer);
		m_playObj = m_playFactory->createPlayObject(fullPath(), true);
		m_playObj->play();
	}
}
}
void Item::leaveEvent(QEvent*)
void Item::leaveEvent(QEvent*)
 Lines 614-625    Link Here 
	m_selectTimer.stop();
	m_selectTimer.stop();
	OnClickAction::stopHoverFeedback();
	OnClickAction::stopHoverFeedback();
	if (m_playObj) {
		m_playObj->halt();
		delete m_playObj;
		delete m_playFactory;
		m_playObj = 0L;
	}
}
}
void Item::mousePressEvent(QMouseEvent *event)
void Item::mousePressEvent(QMouseEvent *event)
(-) basket-0.5.0-orig/src/item.h (-6 lines)
 Lines 32-40    Link Here 
#include <qcolor.h>
#include <qcolor.h>
#include <kurl.h>
#include <kurl.h>
#include <kio/jobclasses.h>
#include <kio/jobclasses.h>
#include <arts/kplayobject.h>
#include <arts/kplayobjectfactory.h>
#include <arts/kartsserver.h>
#include "onclickaction.h"
#include "onclickaction.h"
 Lines 254-262    Link Here 
	bool     m_canDrag;
	bool     m_canDrag;
	QPoint   m_pressPos;
	QPoint   m_pressPos;
	bool     m_wasPressed;
	bool     m_wasPressed;
	KArtsServer            *m_playServer;
	KDE::PlayObject        *m_playObj;
	KDE::PlayObjectFactory *m_playFactory;
	int      m_x;
	int      m_x;
	int      m_y;
	int      m_y;
(-) basket-0.5.0-orig/src/Makefile.am (-1 / +1 lines)
 Lines 22-28    Link Here 
# the application source, library search path, and link libraries
# the application source, library search path, and link libraries
basket_LDFLAGS = $(KDE_RPATH) $(all_libraries)
basket_LDFLAGS = $(KDE_RPATH) $(all_libraries)
basket_LDADD = -lartskde -lkio $(LIB_KDEUI) $(LIB_KDECORE) $(LIB_QT) $(LIBSOCKET)
basket_LDADD = -lkio $(LIB_KDEUI) $(LIB_KDECORE) $(LIB_QT) $(LIBSOCKET)
# this is where the desktop file will go 
# this is where the desktop file will go 
shelldesktopdir = $(kde_appsdir)/Utilities
shelldesktopdir = $(kde_appsdir)/Utilities
(-) basket-0.5.0-orig/src/Makefile.in (-1 / +1 lines)
 Lines 264-270    Link Here 
# the application source, library search path, and link libraries
# the application source, library search path, and link libraries
basket_LDFLAGS = $(KDE_RPATH) $(all_libraries)
basket_LDFLAGS = $(KDE_RPATH) $(all_libraries)
basket_LDADD = -lartskde -lkio $(LIB_KDEUI) $(LIB_KDECORE) $(LIB_QT) $(LIBSOCKET)
basket_LDADD = -lkio $(LIB_KDEUI) $(LIB_KDECORE) $(LIB_QT) $(LIBSOCKET)
# this is where the desktop file will go 
# this is where the desktop file will go 
shelldesktopdir = $(kde_appsdir)/Utilities
shelldesktopdir = $(kde_appsdir)/Utilities