You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kaffeine/kaffeine/src/player-parts/xine-part
Michele Calgaro e6473e544e
Replace Qt with TQt
3 months ago
..
CMakeLists.txt Added translation of .desktop files. 3 years ago
README Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version 8 months ago
deinterlacequality.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines 5 months ago
deinterlacequality.h Replace Q_OBJECT with TQ_OBJECT 11 months ago
equalizer.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines 5 months ago
equalizer.h Replace Q_OBJECT with TQ_OBJECT 11 months ago
filterdialog.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines 5 months ago
filterdialog.h Replace Q_OBJECT with TQ_OBJECT 11 months ago
kxinewidget.cpp Replace Qt with TQt 3 months ago
kxinewidget.h Replace Qt with TQt 3 months ago
positionslider.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines 5 months ago
positionslider.h Replace Qt with TQt 7 months ago
postfilter.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines 5 months ago
postfilter.h Replace Q_OBJECT with TQ_OBJECT 11 months ago
screenshotpreview.cpp Rename additional header files to avoid conflicts with KDE4 11 years ago
screenshotpreview.h Replace Q_OBJECT with TQ_OBJECT 11 months ago
videosettings.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines 5 months ago
videosettings.h Replace Q_OBJECT with TQ_OBJECT 11 months ago
xine_part.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines 5 months ago
xine_part.desktop Added translation of .desktop files. 3 years ago
xine_part.h Replace Q_OBJECT with TQ_OBJECT 11 months ago
xine_part.rc Added old abandoned KDE3 version of Kaffeine 15 years ago
xine_part_iface.h TQt4 port Kaffeine 13 years ago
xineconfig.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines 5 months ago
xineconfig.h Replace Q_OBJECT with TQ_OBJECT 11 months ago

README

********************
*   XINE-PART      *
********************

The xine-based default player-part of Kaffeine.


*** IMPORTANT ***
The following example is outdated and unlikely to work.
*** IMPORTANT ***


You can use this part in your Application like this:
----------------------------------------------------

*** myplayer.h: ***

#include <tdemainwindow.h>

class KaffeinePart;

class MyPlayer : public MainWindow
{
  public:
    MyPlayer();
    ~MyPlayer();

  void loadURL(const TQString&);

  //...
  private:
    KaffeinePart* m_player;
};

*** myplayer.cpp: ***

#include <kaffeine/xine_part.h>

MyPlayer::MyPlayer() : TDEMainWindow(0)
{
  initMyActions();
  createGUI();

  //...

  m_player = new XinePart(this, "my_player", this, 0, QStringList());
  guiFactory()->addClient(m_player);
  setCentralWidget(m_player->widget());

  //..
}

void MyPlayer::loadURL(const TQString& url)
{
  m_player->openURL(url);
}

*** Makefile.am ***

bin_PROGRAMS = myplayer

INCLUDES = $(all_includes)

noinst_HEADERS = myplayer.h

METASOURCES = AUTO

myplayer_SOURCES = myplayer.cpp
myplayer_LDFLAGS = $(KDE_RPATH) $(all_libraries)
myplayer_LDADD   = $(LIB_TDEPARTS) -lxinepart


*******************

Thats it. If you need to implement your own UI, check kxinewidget.h