rename the following methods:

tqparent parent
tqmask mask


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kaffeine@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent f2418d2c07
commit 585ba225bf

@ -28,8 +28,8 @@
#include <tqfile.h> #include <tqfile.h>
DrivesCombo::DrivesCombo(TQWidget* tqparent, const char* name) DrivesCombo::DrivesCombo(TQWidget* parent, const char* name)
: KComboBox(tqparent, name) : KComboBox(parent, name)
{ {
setEditable(true); setEditable(true);

@ -35,7 +35,7 @@ Let user choose the disc drive. Takes presets from /etc/fstab.
class DrivesCombo : public KComboBox class DrivesCombo : public KComboBox
{ {
public: public:
DrivesCombo(TQWidget* tqparent, const char* name = 0); DrivesCombo(TQWidget* parent, const char* name = 0);
virtual ~DrivesCombo(); virtual ~DrivesCombo();
}; };

@ -37,8 +37,8 @@ GoogleFetcherDialog::GoogleFetcherDialog(const TQString &name,
const GoogleImageList &imageList, const GoogleImageList &imageList,
const TQString &artist, const TQString &artist,
const TQString &album, const TQString &album,
TQWidget *tqparent) : TQWidget *parent) :
KDialogBase(tqparent, name.latin1(), true, TQString(), KDialogBase(parent, name.latin1(), true, TQString(),
Ok | Cancel | User1 , NoDefault, true), Ok | Cancel | User1 , NoDefault, true),
m_pixmap(TQPixmap()), m_pixmap(TQPixmap()),
m_imageList(imageList), m_imageList(imageList),
@ -203,8 +203,8 @@ TQPixmap GoogleFetcherDialog::pixmapFromURL(const KURL &url) const
// CoverIconViewItem // CoverIconViewItem
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
CoverIconViewItem::CoverIconViewItem(TQIconView *tqparent, const GoogleImage &image) : CoverIconViewItem::CoverIconViewItem(TQIconView *parent, const GoogleImage &image) :
TQObject(tqparent), KIconViewItem(tqparent, tqparent->lastItem(), image.size()), m_job(0) TQObject(parent), KIconViewItem(parent, parent->lastItem(), image.size()), m_job(0)
{ {
// Set up the iconViewItem // Set up the iconViewItem

@ -38,7 +38,7 @@ public:
const GoogleImageList &urlList, const GoogleImageList &urlList,
const TQString &artist, const TQString &artist,
const TQString &album, const TQString &album,
TQWidget *tqparent = 0); TQWidget *parent = 0);
virtual ~GoogleFetcherDialog(); virtual ~GoogleFetcherDialog();
@ -85,7 +85,7 @@ class CoverIconViewItem : public TQObject, public KIconViewItem
TQ_OBJECT TQ_OBJECT
public: public:
CoverIconViewItem(TQIconView *tqparent, const GoogleImage &image); CoverIconViewItem(TQIconView *parent, const GoogleImage &image);
~CoverIconViewItem(); ~CoverIconViewItem();
private slots: private slots:

@ -73,7 +73,7 @@
RollTitle::RollTitle( TQWidget *tqparent ) : TQLabel( "I", tqparent ) RollTitle::RollTitle( TQWidget *parent ) : TQLabel( "I", parent )
{ {
TQColorGroup cg = parentWidget()->tqcolorGroup(); TQColorGroup cg = parentWidget()->tqcolorGroup();
TQColor base = cg.base(); TQColor base = cg.base();
@ -184,7 +184,7 @@ struct CoverPopup : public TQWidget
virtual void mouseReleaseEvent(TQMouseEvent *) { close(); } virtual void mouseReleaseEvent(TQMouseEvent *) { close(); }
}; };
CoverFrame::CoverFrame( TQWidget *tqparent ) : TQFrame( tqparent ) CoverFrame::CoverFrame( TQWidget *parent ) : TQFrame( parent )
{ {
imagePath = ""; imagePath = "";
TQString path = locate("appdata", "nocover.png"); TQString path = locate("appdata", "nocover.png");
@ -275,14 +275,14 @@ void CoverFrame::mousePressEvent( TQMouseEvent *e )
} }
PlayList::PlayList( TQWidget* tqparent, TQObject *objParent, const char *name ) : KaffeineInput(objParent , name), PlayList::PlayList( TQWidget* parent, TQObject *objParent, const char *name ) : KaffeineInput(objParent , name),
m_playTime(0), m_playTimeVisible(0), m_countVisible(0), m_searchSelection(false), m_playTime(0), m_playTimeVisible(0), m_countVisible(0), m_searchSelection(false),
m_metaOnLoading(true), m_sortAscending(true), m_currentEntry(NULL), m_currentRandomListEntry(-1), m_metaOnLoading(true), m_sortAscending(true), m_currentEntry(NULL), m_currentRandomListEntry(-1),
m_endless(false), m_random(false), m_useAlternateEncoding(false), m_alternateEncoding("ISO 8859-1") m_endless(false), m_random(false), m_useAlternateEncoding(false), m_alternateEncoding("ISO 8859-1")
{ {
google = NULL; google = NULL;
mainWidget = new TQVBox( tqparent ); mainWidget = new TQVBox( parent );
//mainWidget->tqsetSizePolicy( TQSizePolicy (TQSizePolicy::Preferred, TQSizePolicy::Preferred) ); //mainWidget->tqsetSizePolicy( TQSizePolicy (TQSizePolicy::Preferred, TQSizePolicy::Preferred) );
hSplit = new TQSplitter( mainWidget ); hSplit = new TQSplitter( mainWidget );
hSplit->setOpaqueResize( true ); hSplit->setOpaqueResize( true );
@ -1610,8 +1610,8 @@ void PlayList::mergeMeta(const MRL& mrl)
setCover( mrl.artist().stripWhiteSpace(), mrl.album().stripWhiteSpace() ); setCover( mrl.artist().stripWhiteSpace(), mrl.album().stripWhiteSpace() );
} }
GalleryDialog::GalleryDialog( TQWidget *tqparent, GoogleFetcher *goog ) GalleryDialog::GalleryDialog( TQWidget *parent, GoogleFetcher *goog )
: KDialogBase( tqparent, TQString(i18n("Gallery")).latin1(), true, TQString(), Ok, NoDefault, true ) : KDialogBase( parent, TQString(i18n("Gallery")).latin1(), true, TQString(), Ok, NoDefault, true )
{ {
google = goog; google = goog;
hbox = new TQHBox(this); hbox = new TQHBox(this);
@ -2322,8 +2322,8 @@ bool PlayList::startsWith(TQString s1, TQString s2, bool caseSensitive )
return true; return true;
} }
SubtitleChooser::SubtitleChooser(TQStringList values, TQString filename,TQWidget *tqparent, const char * name) : SubtitleChooser::SubtitleChooser(TQStringList values, TQString filename,TQWidget *parent, const char * name) :
KDialogBase(tqparent,name,true,i18n("Select Subtitle"), Ok|Cancel, Ok, true) KDialogBase(parent,name,true,i18n("Select Subtitle"), Ok|Cancel, Ok, true)
{ {
TQVBox *page = makeVBoxMainWidget(); TQVBox *page = makeVBoxMainWidget();
TQLabel *label = new TQLabel(page); TQLabel *label = new TQLabel(page);
@ -2343,8 +2343,8 @@ TQString SubtitleChooser::getSelection()
return table->selectedItem()->text(); return table->selectedItem()->text();
} }
MovieChooser::MovieChooser(TQStringList values, TQString filename,TQWidget *tqparent, const char * name) : MovieChooser::MovieChooser(TQStringList values, TQString filename,TQWidget *parent, const char * name) :
KDialogBase(tqparent,name,true,i18n("Select Movie"), Ok|Cancel, Ok, true) KDialogBase(parent,name,true,i18n("Select Movie"), Ok|Cancel, Ok, true)
{ {
TQVBox *page = makeVBoxMainWidget(); TQVBox *page = makeVBoxMainWidget();
TQLabel *label = new TQLabel(page); TQLabel *label = new TQLabel(page);

@ -61,7 +61,7 @@ class GalleryDialog : public KDialogBase
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
GalleryDialog( TQWidget *tqparent, GoogleFetcher *goog ); GalleryDialog( TQWidget *parent, GoogleFetcher *goog );
protected slots: protected slots:
void slotOk(); void slotOk();
void slotNext(); void slotNext();
@ -80,7 +80,7 @@ class RollTitle : public TQLabel
TQ_OBJECT TQ_OBJECT
public: public:
RollTitle( TQWidget *tqparent ); RollTitle( TQWidget *parent );
void setTitle( MRL mrl ); void setTitle( MRL mrl );
private: private:
@ -106,7 +106,7 @@ class CoverFrame : public TQFrame
TQ_OBJECT TQ_OBJECT
public: public:
CoverFrame( TQWidget *tqparent ); CoverFrame( TQWidget *parent );
~CoverFrame(); ~CoverFrame();
void setCoverPixmap( const TQString &path ); void setCoverPixmap( const TQString &path );
@ -131,7 +131,7 @@ class PlayList : public KaffeineInput
TQ_OBJECT TQ_OBJECT
public: public:
PlayList(TQWidget *tqparent, TQObject *objParent, const char *name=0); PlayList(TQWidget *parent, TQObject *objParent, const char *name=0);
~PlayList(); ~PlayList();
// Reimplemented from KaffeineInput // Reimplemented from KaffeineInput
@ -316,7 +316,7 @@ class SubtitleChooser : public KDialogBase
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
SubtitleChooser(TQStringList, TQString, TQWidget *tqparent=0, const char *name = 0); SubtitleChooser(TQStringList, TQString, TQWidget *parent=0, const char *name = 0);
virtual ~SubtitleChooser(); virtual ~SubtitleChooser();
TQString getSelection(); TQString getSelection();
@ -330,7 +330,7 @@ class MovieChooser : public KDialogBase
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
MovieChooser(TQStringList, TQString, TQWidget *tqparent=0, const char *name = 0); MovieChooser(TQStringList, TQString, TQWidget *parent=0, const char *name = 0);
virtual ~MovieChooser(); virtual ~MovieChooser();
TQString getSelection(); TQString getSelection();

@ -37,7 +37,7 @@
#include "urllistview.moc" #include "urllistview.moc"
UrlListView::UrlListView(TQWidget *tqparent, const char *name ) : KListView(tqparent,name), UrlListView::UrlListView(TQWidget *parent, const char *name ) : KListView(parent,name),
m_listCleared(true), m_itemOfContextMenu(NULL) m_listCleared(true), m_itemOfContextMenu(NULL)
{ {
m_contextMenu = new KPopupMenu(this); m_contextMenu = new KPopupMenu(this);

@ -39,7 +39,7 @@ class UrlListView : public KListView
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
UrlListView(TQWidget *tqparent=0, const char *name=0); UrlListView(TQWidget *parent=0, const char *name=0);
~UrlListView(); ~UrlListView();
void setCleared(bool); void setCleared(bool);

@ -42,7 +42,7 @@
#include "disc.h" #include "disc.h"
#include "disc.moc" #include "disc.moc"
MLabel::MLabel( TQWidget *tqparent ) : TQLabel( tqparent ) MLabel::MLabel( TQWidget *parent ) : TQLabel( parent )
{ {
setText("<center><font size=\"6\"><b>"+i18n("Audio CD")+"</b></font></center>"); setText("<center><font size=\"6\"><b>"+i18n("Audio CD")+"</b></font></center>");
} }
@ -59,7 +59,7 @@ void MLabel::paintEvent( TQPaintEvent *pe )
setPaletteBackgroundColor( TQColor(r, g, b) ); setPaletteBackgroundColor( TQColor(r, g, b) );
} }
MListView::MListView( TQWidget *tqparent ) : KListView( tqparent ) MListView::MListView( TQWidget *parent ) : KListView( parent )
{ {
} }
@ -73,9 +73,9 @@ void MListView::resizeEvent( TQResizeEvent *rev )
KListView::resizeEvent(rev); KListView::resizeEvent(rev);
} }
Disc::Disc( TQWidget* tqparent, TQObject *objParent, const char *name ) : KaffeineInput(objParent , name) Disc::Disc( TQWidget* parent, TQObject *objParent, const char *name ) : KaffeineInput(objParent , name)
{ {
mainWidget = new TQVBox( tqparent ); mainWidget = new TQVBox( parent );
mainWidget->tqsetSizePolicy( TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Preferred) ); mainWidget->tqsetSizePolicy( TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Preferred) );
split = new TQSplitter( mainWidget ); split = new TQSplitter( mainWidget );
split->setOpaqueResize( true ); split->setOpaqueResize( true );

@ -46,7 +46,7 @@ class MLabel : public TQLabel
TQ_OBJECT TQ_OBJECT
public: public:
MLabel( TQWidget *tqparent ); MLabel( TQWidget *parent );
~MLabel() {} ~MLabel() {}
protected: protected:
@ -61,7 +61,7 @@ class MListView : public KListView
TQ_OBJECT TQ_OBJECT
public: public:
MListView( TQWidget *tqparent ); MListView( TQWidget *parent );
~MListView() {} ~MListView() {}
protected: protected:
@ -76,7 +76,7 @@ class Disc : public KaffeineInput
TQ_OBJECT TQ_OBJECT
public: public:
Disc(TQWidget *tqparent, TQObject *objParent, const char *name=0); Disc(TQWidget *parent, TQObject *objParent, const char *name=0);
~Disc(); ~Disc();
// Reimplemented from KaffeineInput // Reimplemented from KaffeineInput

@ -50,7 +50,7 @@
#define DEFAULT_DRIVE "/dev/cdrom" #define DEFAULT_DRIVE "/dev/cdrom"
KiloConfig::KiloConfig( TQWidget *tqparent, KConfig *confile, const TQStringList &encoders ) : ParanoiaSettings( tqparent ) KiloConfig::KiloConfig( TQWidget *parent, KConfig *confile, const TQStringList &encoders ) : ParanoiaSettings( parent )
{ {
int i; int i;
@ -227,14 +227,14 @@ void Paranoia::setMode( int mode )
paranoia_modeset( p, mode ); paranoia_modeset( p, mode );
} }
bool Paranoia::encode( const TQStringList &list, TQWidget *tqparent ) bool Paranoia::encode( const TQStringList &list, TQWidget *parent )
{ {
TQStringList desktop; TQStringList desktop;
TQStringList encoderName; TQStringList encoderName;
encodingList.clear(); encodingList.clear();
encodingList = list; encodingList = list;
myParent = tqparent; myParent = parent;
// check for encoders // check for encoders
KTrader::OfferList offers = KTrader::self()->query("KaffeineAudioEncoder"); KTrader::OfferList offers = KTrader::self()->query("KaffeineAudioEncoder");
@ -282,20 +282,20 @@ bool Paranoia::encode( const TQStringList &list, TQWidget *tqparent )
return true; return true;
} }
bool Paranoia::loadEncoder( TQWidget *tqparent ) bool Paranoia::loadEncoder( TQWidget *parent )
{ {
int error = 0; int error = 0;
KService::Ptr service = KService::serviceByDesktopName( encoderDesktop ); KService::Ptr service = KService::serviceByDesktopName( encoderDesktop );
if (!service) { if (!service) {
KMessageBox::error( tqparent, i18n("Loading of encoder '%1' failed.").tqarg(encoderDesktop) ); KMessageBox::error( parent, i18n("Loading of encoder '%1' failed.").tqarg(encoderDesktop) );
return false; return false;
} }
if ( service->serviceTypes().contains("KaffeineAudioEncoder") ) { if ( service->serviceTypes().contains("KaffeineAudioEncoder") ) {
currentEncoder = KParts::ComponentFactory::createPartInstanceFromService<KaffeineAudioEncoder>(service, 0, service->name().ascii(), 0, 0, 0, &error); currentEncoder = KParts::ComponentFactory::createPartInstanceFromService<KaffeineAudioEncoder>(service, 0, service->name().ascii(), 0, 0, 0, &error);
if (error > 0) { if (error > 0) {
KMessageBox::error( tqparent, i18n("Loading of encoder '%1' failed.").tqarg(encoderDesktop) ); KMessageBox::error( parent, i18n("Loading of encoder '%1' failed.").tqarg(encoderDesktop) );
return false; return false;
} }
else else

@ -43,7 +43,7 @@ class KiloConfig : public ParanoiaSettings
public: public:
KiloConfig( TQWidget *tqparent, KConfig *confile, const TQStringList &encoders ); KiloConfig( TQWidget *parent, KConfig *confile, const TQStringList &encoders );
~KiloConfig(); ~KiloConfig();
TQString getEncoder(); TQString getEncoder();

@ -21,7 +21,7 @@
#include "kaffeineaudioencoder.h" #include "kaffeineaudioencoder.h"
#include "kaffeineaudioencoder.moc" #include "kaffeineaudioencoder.moc"
KaffeineAudioEncoder::KaffeineAudioEncoder(TQObject* tqparent, const char* name) : KParts::Part( tqparent, name ) KaffeineAudioEncoder::KaffeineAudioEncoder(TQObject* parent, const char* name) : KParts::Part( parent, name )
{ {
} }

@ -36,7 +36,7 @@ class KDE_EXPORT KaffeineAudioEncoder : public KParts::Part
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KaffeineAudioEncoder(TQObject* tqparent, const char* name); KaffeineAudioEncoder(TQObject* parent, const char* name);
virtual ~KaffeineAudioEncoder(); virtual ~KaffeineAudioEncoder();
// return false if the user's canceled. // return false if the user's canceled.

@ -29,7 +29,7 @@
#include "klameenc.h" #include "klameenc.h"
#include "klameenc.moc" #include "klameenc.moc"
LameSettings::LameSettings( TQWidget *tqparent, KConfig *confile ) : LameConfig( tqparent ) LameSettings::LameSettings( TQWidget *parent, KConfig *confile ) : LameConfig( parent )
{ {
KIconLoader *icon = new KIconLoader(); KIconLoader *icon = new KIconLoader();
okBtn->setGuiItem( KGuiItem(i18n("OK"), icon->loadIconSet("ok", KIcon::Small) ) ); okBtn->setGuiItem( KGuiItem(i18n("OK"), icon->loadIconSet("ok", KIcon::Small) ) );
@ -79,8 +79,8 @@ bool LameSettings::isVBR()
K_EXPORT_COMPONENT_FACTORY (libkaffeinemp3lame, KParts::GenericFactory<KLameEnc>) K_EXPORT_COMPONENT_FACTORY (libkaffeinemp3lame, KParts::GenericFactory<KLameEnc>)
KLameEnc::KLameEnc( TQWidget*, const char*, TQObject* tqparent, const char* name, const TQStringList& ) KLameEnc::KLameEnc( TQWidget*, const char*, TQObject* parent, const char* name, const TQStringList& )
: KaffeineAudioEncoder(tqparent,name) : KaffeineAudioEncoder(parent,name)
{ {
setInstance(KParts::GenericFactory<KLameEnc>::instance()); setInstance(KParts::GenericFactory<KLameEnc>::instance());
} }
@ -101,9 +101,9 @@ TQString KLameEnc::getExtension()
return TQString(".mp3"); return TQString(".mp3");
} }
bool KLameEnc::options( TQWidget *tqparent, KConfig *conf ) bool KLameEnc::options( TQWidget *parent, KConfig *conf )
{ {
LameSettings dlg( tqparent, conf ); LameSettings dlg( parent, conf );
int ret = dlg.exec(); int ret = dlg.exec();
if ( ret!=TQDialog::Accepted ) if ( ret!=TQDialog::Accepted )
return false; return false;

@ -33,7 +33,7 @@ class LameSettings : public LameConfig
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
LameSettings( TQWidget *tqparent, KConfig *confile ); LameSettings( TQWidget *parent, KConfig *confile );
~LameSettings(); ~LameSettings();
int getBitrate(); int getBitrate();

@ -27,7 +27,7 @@
#include "koggenc.h" #include "koggenc.h"
#include "koggenc.moc" #include "koggenc.moc"
OggSettings::OggSettings( TQWidget *tqparent, KConfig *confile ) : OggConfig( tqparent ) OggSettings::OggSettings( TQWidget *parent, KConfig *confile ) : OggConfig( parent )
{ {
KIconLoader *icon = new KIconLoader(); KIconLoader *icon = new KIconLoader();
okBtn->setGuiItem( KGuiItem(i18n("OK"), icon->loadIconSet("ok", KIcon::Small) ) ); okBtn->setGuiItem( KGuiItem(i18n("OK"), icon->loadIconSet("ok", KIcon::Small) ) );
@ -56,8 +56,8 @@ int OggSettings::getQuality()
K_EXPORT_COMPONENT_FACTORY (libkaffeineoggvorbis, KParts::GenericFactory<KOggEnc>) K_EXPORT_COMPONENT_FACTORY (libkaffeineoggvorbis, KParts::GenericFactory<KOggEnc>)
KOggEnc::KOggEnc( TQWidget*, const char*, TQObject* tqparent, const char* name, const TQStringList& ) KOggEnc::KOggEnc( TQWidget*, const char*, TQObject* parent, const char* name, const TQStringList& )
: KaffeineAudioEncoder(tqparent,name) : KaffeineAudioEncoder(parent,name)
{ {
setInstance(KParts::GenericFactory<KOggEnc>::instance()); setInstance(KParts::GenericFactory<KOggEnc>::instance());
encodingQuality = 0.4; encodingQuality = 0.4;
@ -81,9 +81,9 @@ TQString KOggEnc::getExtension()
return TQString(".ogg"); return TQString(".ogg");
} }
bool KOggEnc::options( TQWidget *tqparent, KConfig *conf ) bool KOggEnc::options( TQWidget *parent, KConfig *conf )
{ {
OggSettings dlg( tqparent, conf ); OggSettings dlg( parent, conf );
int ret = dlg.exec(); int ret = dlg.exec();
if ( ret!=TQDialog::Accepted ) if ( ret!=TQDialog::Accepted )
return false; return false;

@ -41,7 +41,7 @@ class OggSettings : public OggConfig
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
OggSettings( TQWidget *tqparent, KConfig *confile ); OggSettings( TQWidget *parent, KConfig *confile );
~OggSettings(); ~OggSettings();
int getQuality(); int getQuality();

@ -29,7 +29,7 @@
#include "audioeditor.h" #include "audioeditor.h"
AudioEditor::AudioEditor( ChannelDesc *chan, TQWidget *tqparent ) : AudioEditorUI( tqparent ) AudioEditor::AudioEditor( ChannelDesc *chan, TQWidget *parent ) : AudioEditorUI( parent )
{ {
TQString s, t; TQString s, t;
int i; int i;

@ -31,7 +31,7 @@ class AudioEditor : public AudioEditorUI
public: public:
AudioEditor( ChannelDesc *chan, TQWidget *tqparent ); AudioEditor( ChannelDesc *chan, TQWidget *parent );
~AudioEditor(); ~AudioEditor();
private slots: private slots:

@ -27,7 +27,7 @@
#include "broadcasteditor.h" #include "broadcasteditor.h"
BroadcastEditor::BroadcastEditor( TQWidget *tqparent, TQPtrList<ChannelDesc> *ch, TQPtrList<ChannelDesc> *ret ) : BroadcastEditorUI( tqparent ) BroadcastEditor::BroadcastEditor( TQWidget *parent, TQPtrList<ChannelDesc> *ch, TQPtrList<ChannelDesc> *ret ) : BroadcastEditorUI( parent )
{ {
KIconLoader *icon = new KIconLoader(); KIconLoader *icon = new KIconLoader();

@ -35,7 +35,7 @@ class BroadcastEditor : public BroadcastEditorUI
public: public:
BroadcastEditor( TQWidget *tqparent, TQPtrList<ChannelDesc> *ch, TQPtrList<ChannelDesc> *ret ); BroadcastEditor( TQWidget *parent, TQPtrList<ChannelDesc> *ch, TQPtrList<ChannelDesc> *ret );
~BroadcastEditor(); ~BroadcastEditor();
TQPtrList<ChannelDesc> *chan; TQPtrList<ChannelDesc> *chan;

@ -34,7 +34,7 @@
#include "audioeditor.h" #include "audioeditor.h"
#include "subeditor.h" #include "subeditor.h"
ChannelEditor::ChannelEditor( TQStringList src, bool m, ChannelDesc *chan, TQPtrList<ChannelDesc> *cdesc, TQWidget *tqparent ) : ChannelEditorUI( tqparent ) ChannelEditor::ChannelEditor( TQStringList src, bool m, ChannelDesc *chan, TQPtrList<ChannelDesc> *cdesc, TQWidget *parent ) : ChannelEditorUI( parent )
{ {
int i; int i;
channel = chan; channel = chan;

@ -33,7 +33,7 @@ class ChannelEditor : public ChannelEditorUI
public: public:
ChannelEditor( TQStringList src, bool m, ChannelDesc *chan, TQPtrList<ChannelDesc> *cdesc, TQWidget *tqparent ); ChannelEditor( TQStringList src, bool m, ChannelDesc *chan, TQPtrList<ChannelDesc> *cdesc, TQWidget *parent );
~ChannelEditor(); ~ChannelEditor();
protected: protected:

@ -25,7 +25,7 @@
#include "crontimer.h" #include "crontimer.h"
CronTimer::CronTimer( int m, TQWidget *tqparent ) : CronTimerUI( tqparent ) CronTimer::CronTimer( int m, TQWidget *parent ) : CronTimerUI( parent )
{ {
connect( cronBtnGrp, TQT_SIGNAL(clicked(int)), this, TQT_SLOT(modeSelected(int)) ); connect( cronBtnGrp, TQT_SIGNAL(clicked(int)), this, TQT_SLOT(modeSelected(int)) );
mode = m; mode = m;

@ -36,7 +36,7 @@ class CronTimer : public CronTimerUI
public: public:
CronTimer( int m, TQWidget *tqparent ); CronTimer( int m, TQWidget *parent );
~CronTimer(); ~CronTimer();
int getMode() const; int getMode() const;

@ -707,8 +707,8 @@ int CamService::createSectionFilter(uint16_t pid, uint8_t table_id)
// create a section filter // create a section filter
uint8_t filter[18] = {table_id}; uint8_t filter[18] = {table_id};
uint8_t tqmask[18] = {0xff}; uint8_t mask[18] = {0xff};
if(dvbdemux_set_section_filter(demux_fd, pid, filter, tqmask, 1, 1)) { // crc check on if(dvbdemux_set_section_filter(demux_fd, pid, filter, mask, 1, 1)) { // crc check on
close(demux_fd); close(demux_fd);
return -1; return -1;
} }

@ -42,7 +42,7 @@
MSpinBox::MSpinBox( TQWidget *tqparent, int devNum ) : TQSpinBox( 1, 4, 1, tqparent ) MSpinBox::MSpinBox( TQWidget *parent, int devNum ) : TQSpinBox( 1, 4, 1, parent )
{ {
deviceNumber = devNum; deviceNumber = devNum;
connect( this, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotValueChanged(int)) ); connect( this, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotValueChanged(int)) );
@ -57,7 +57,7 @@ void MSpinBox::slotValueChanged( int value )
MPushButton::MPushButton( TQWidget *tqparent, int devNum, int lnbNum ) : KPushButton( tqparent ) MPushButton::MPushButton( TQWidget *parent, int devNum, int lnbNum ) : KPushButton( parent )
{ {
deviceNumber = devNum; deviceNumber = devNum;
lnbNumber = lnbNum; lnbNumber = lnbNum;
@ -73,7 +73,7 @@ void MPushButton::isClicked()
MCAMButton::MCAMButton( TQWidget *tqparent, int devNum ) : TQPushButton( i18n("CAM"), tqparent ) MCAMButton::MCAMButton( TQWidget *parent, int devNum ) : TQPushButton( i18n("CAM"), parent )
{ {
deviceNumber = devNum; deviceNumber = devNum;
connect( this, TQT_SIGNAL(clicked()), this, TQT_SLOT(isClicked()) ); connect( this, TQT_SIGNAL(clicked()), this, TQT_SLOT(isClicked()) );
@ -88,7 +88,7 @@ void MCAMButton::isClicked()
MComboBox::MComboBox( TQWidget *tqparent, int devNum, int lnbNum ) : TQComboBox( tqparent ) MComboBox::MComboBox( TQWidget *parent, int devNum, int lnbNum ) : TQComboBox( parent )
{ {
deviceNumber = devNum; deviceNumber = devNum;
lnbNumber = lnbNum; lnbNumber = lnbNum;
@ -275,14 +275,14 @@ void DVBconfig::setDownloadPercent( Job *job, unsigned long percent )
bool DVBconfig::loadDvbData( TQWidget *tqparent ) bool DVBconfig::loadDvbData( TQWidget *parent )
{ {
TQString s=""; TQString s="";
FileCopyJob *job; FileCopyJob *job;
TQFile f( dvbConfigDir+"dvbdata.tar.gz" ); TQFile f( dvbConfigDir+"dvbdata.tar.gz" );
//if ( f.exists() ) f.remove(); //if ( f.exists() ) f.remove();
downProgress = new KProgressDialog( tqparent, "progress", i18n("Downloading... "), i18n("Copying data files..."), true ); downProgress = new KProgressDialog( parent, "progress", i18n("Downloading... "), i18n("Copying data files..."), true );
downProgress->progressBar()->setTotalSteps( 100 ); downProgress->progressBar()->setTotalSteps( 100 );
//job = file_copy( KURL( "http://hftom.free.fr/kaxtv/dvbdata.tar.gz" ), KURL( dvbConfigDir+"dvbdata.tar.gz" ), -1, true, false, false ); //job = file_copy( KURL( "http://hftom.free.fr/kaxtv/dvbdata.tar.gz" ), KURL( dvbConfigDir+"dvbdata.tar.gz" ), -1, true, false, false );
job = file_copy( KURL( "http://hftom.free.fr/kaxtv/dvbdata.tar.gz" ), KURL( dvbConfigDir+"dvbdata.tar.gz" ), -1, true, false, false ); job = file_copy( KURL( "http://hftom.free.fr/kaxtv/dvbdata.tar.gz" ), KURL( dvbConfigDir+"dvbdata.tar.gz" ), -1, true, false, false );
@ -565,8 +565,8 @@ bool DVBconfig::firstRun()
DvbConfigDialog::DvbConfigDialog( DvbPanel *pan, DVBconfig *dc, TQWidget *tqparent, KaffeineDvbPlugin *p ) : DvbConfigDialog::DvbConfigDialog( DvbPanel *pan, DVBconfig *dc, TQWidget *parent, KaffeineDvbPlugin *p ) :
KDialogBase ( IconList, i18n("DVB Settings"), Ok|Cancel, Ok, tqparent, "dvbConfigDialog", true, true ) KDialogBase ( IconList, i18n("DVB Settings"), Ok|Cancel, Ok, parent, "dvbConfigDialog", true, true )
{ {
TQLabel *lab; TQLabel *lab;
KIconLoader *icon = new KIconLoader(); KIconLoader *icon = new KIconLoader();
@ -1271,8 +1271,8 @@ DvbConfigDialog::~DvbConfigDialog()
LnbConfig::LnbConfig( LNB *b, TQWidget *tqparent ) : LnbConfig::LnbConfig( LNB *b, TQWidget *parent ) :
KDialogBase ( tqparent, "lnbConfigDialog", true, i18n("LNB Settings"), Ok|Cancel, Ok, true ) KDialogBase ( parent, "lnbConfigDialog", true, i18n("LNB Settings"), Ok|Cancel, Ok, true )
{ {
TQGridLayout *grid; TQGridLayout *grid;
@ -1463,8 +1463,8 @@ void LnbConfig::accept()
RotorConfig::RotorConfig( Device *d, DVBconfig *c, int lnb, TQWidget *tqparent ) : RotorConfig::RotorConfig( Device *d, DVBconfig *c, int lnb, TQWidget *parent ) :
KDialogBase ( tqparent, "rotorConfigDialog", true, i18n("Rotor Settings"), Ok|Cancel, Ok, true ) KDialogBase ( parent, "rotorConfigDialog", true, i18n("Rotor Settings"), Ok|Cancel, Ok, true )
{ {
int i; int i;

@ -47,7 +47,7 @@ class MSpinBox : public TQSpinBox
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
MSpinBox( TQWidget *tqparent, int devNum ); MSpinBox( TQWidget *parent, int devNum );
public slots: public slots:
void slotValueChanged( int value ); void slotValueChanged( int value );
signals: signals:
@ -63,7 +63,7 @@ class MPushButton : public KPushButton
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
MPushButton( TQWidget *tqparent, int devNum, int lnbNum ); MPushButton( TQWidget *parent, int devNum, int lnbNum );
private slots: private slots:
void isClicked(); void isClicked();
signals: signals:
@ -80,7 +80,7 @@ class MCAMButton : public TQPushButton
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
MCAMButton( TQWidget *tqparent, int devNum ); MCAMButton( TQWidget *parent, int devNum );
private slots: private slots:
void isClicked(); void isClicked();
signals: signals:
@ -96,7 +96,7 @@ class MComboBox : public TQComboBox
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
MComboBox( TQWidget *tqparent, int devNum, int lnbNum ); MComboBox( TQWidget *parent, int devNum, int lnbNum );
private slots: private slots:
void isActivated( int index ); void isActivated( int index );
signals: signals:
@ -174,7 +174,7 @@ public:
void saveDvbChanOrder( int s, int col ); void saveDvbChanOrder( int s, int col );
void startup(); void startup();
static bool haveDvbDevice(); static bool haveDvbDevice();
bool loadDvbData( TQWidget *tqparent ); bool loadDvbData( TQWidget *parent );
bool localData(); bool localData();
TQStringList getSourcesList( fe_type_t type ); TQStringList getSourcesList( fe_type_t type );
bool haveData(); bool haveData();
@ -224,7 +224,7 @@ class DvbConfigDialog : public KDialogBase
public: public:
DvbConfigDialog( DvbPanel *pan, DVBconfig *dc, TQWidget *tqparent, KaffeineDvbPlugin *p ); DvbConfigDialog( DvbPanel *pan, DVBconfig *dc, TQWidget *parent, KaffeineDvbPlugin *p );
~DvbConfigDialog(); ~DvbConfigDialog();
void setSource( TQComboBox *box, TQString s ); void setSource( TQComboBox *box, TQString s );
@ -284,7 +284,7 @@ class LnbConfig : public KDialogBase
public: public:
LnbConfig( LNB *b, TQWidget *tqparent ); LnbConfig( LNB *b, TQWidget *parent );
protected slots: protected slots:
@ -314,7 +314,7 @@ class RotorConfig : public KDialogBase
public: public:
RotorConfig( Device *d, DVBconfig *c, int lnb, TQWidget *tqparent ); RotorConfig( Device *d, DVBconfig *c, int lnb, TQWidget *parent );
protected slots: protected slots:

@ -63,8 +63,8 @@
DIconViewItem::DIconViewItem( DvbPanel *pan, TQIconView *tqparent, const TQString &text, const TQPixmap &icon ) DIconViewItem::DIconViewItem( DvbPanel *pan, TQIconView *parent, const TQString &text, const TQPixmap &icon )
: KIconViewItem( tqparent, text, icon ) : KIconViewItem( parent, text, icon )
{ {
panel = pan; panel = pan;
} }
@ -83,7 +83,7 @@ void DIconViewItem::dropped( TQDropEvent *e, const TQValueList<TQIconDragItem> &
DListView::DListView( TQWidget *tqparent ) : KListView( tqparent ) DListView::DListView( TQWidget *parent ) : KListView( parent )
{ {
visibleItems = 0; visibleItems = 0;
} }
@ -100,7 +100,7 @@ TQDragObject* DListView::dragObject()
DvbPanel::DvbPanel( TQWidget *tqparent, TQObject *objParent, const char *name ) : KaffeineInput(objParent,name) DvbPanel::DvbPanel( TQWidget *parent, TQObject *objParent, const char *name ) : KaffeineInput(objParent,name)
{ {
browseDvbStream = -1; browseDvbStream = -1;
plug = NULL; plug = NULL;
@ -113,7 +113,7 @@ DvbPanel::DvbPanel( TQWidget *tqparent, TQObject *objParent, const char *name )
timers.setAutoDelete( true ); timers.setAutoDelete( true );
dvb.setAutoDelete( true ); dvb.setAutoDelete( true );
mainWidget = new TQVBox( tqparent ); mainWidget = new TQVBox( parent );
mainWidget->tqsetSizePolicy( TQSizePolicy (TQSizePolicy::Preferred, TQSizePolicy::Preferred) ); mainWidget->tqsetSizePolicy( TQSizePolicy (TQSizePolicy::Preferred, TQSizePolicy::Preferred) );
split = new TQSplitter( mainWidget ); split = new TQSplitter( mainWidget );
split->setOpaqueResize( true ); split->setOpaqueResize( true );

@ -58,7 +58,7 @@ class DListView : public KListView
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
DListView( TQWidget *tqparent ); DListView( TQWidget *parent );
int visibleItems; int visibleItems;
@ -71,7 +71,7 @@ protected:
class DIconViewItem : public KIconViewItem class DIconViewItem : public KIconViewItem
{ {
public: public:
DIconViewItem( DvbPanel *pan, TQIconView *tqparent, const TQString &text, const TQPixmap &icon ); DIconViewItem( DvbPanel *pan, TQIconView *parent, const TQString &text, const TQPixmap &icon );
protected: protected:
void dropped( TQDropEvent *e, const TQValueList<TQIconDragItem> & ); void dropped( TQDropEvent *e, const TQValueList<TQIconDragItem> & );
private: private:
@ -87,7 +87,7 @@ class DvbPanel : public KaffeineInput
public: public:
DvbPanel( TQWidget *tqparent, TQObject *objParent, const char *name=0); DvbPanel( TQWidget *parent, TQObject *objParent, const char *name=0);
~DvbPanel(); ~DvbPanel();
bool getChannelList(); bool getChannelList();
bool saveChannelList(); bool saveChannelList();

@ -37,7 +37,7 @@
EListViewItem::EListViewItem( TQListView *tqparent, TQString chanName, TQString eBegin, TQString eDuration, TQString eTitle, EventDesc *desc ) : KListViewItem( tqparent, chanName, eBegin, eDuration, eTitle ) EListViewItem::EListViewItem( TQListView *parent, TQString chanName, TQString eBegin, TQString eDuration, TQString eTitle, EventDesc *desc ) : KListViewItem( parent, chanName, eBegin, eDuration, eTitle )
{ {
event = desc; event = desc;
} }
@ -60,7 +60,7 @@ int EListViewItem::compare( TQListViewItem *i, int col, bool ascending ) const
KEvents::KEvents( TQPtrList<ChannelDesc> *chans, TQPtrList<DvbStream> *d, EventTable *t, TQWidget *tqparent, TQSize size ) : TQDialog( tqparent ) KEvents::KEvents( TQPtrList<ChannelDesc> *chans, TQPtrList<DvbStream> *d, EventTable *t, TQWidget *parent, TQSize size ) : TQDialog( parent )
{ {
dvb = d; dvb = d;
events = t; events = t;

@ -41,7 +41,7 @@ class EListViewItem : public KListViewItem
public: public:
EListViewItem( TQListView *tqparent, TQString chanName, TQString eBegin, TQString eDuration, TQString eTitle, EventDesc *desc ); EListViewItem( TQListView *parent, TQString chanName, TQString eBegin, TQString eDuration, TQString eTitle, EventDesc *desc );
virtual int compare( TQListViewItem *i, int col, bool ascending ) const; virtual int compare( TQListViewItem *i, int col, bool ascending ) const;
EventDesc *event; EventDesc *event;
@ -56,7 +56,7 @@ class KEvents : public TQDialog
public: public:
KEvents( TQPtrList<ChannelDesc> *chans, TQPtrList<DvbStream> *d, EventTable *t, TQWidget *tqparent, TQSize size ); KEvents( TQPtrList<ChannelDesc> *chans, TQPtrList<DvbStream> *d, EventTable *t, TQWidget *parent, TQSize size );
~KEvents(); ~KEvents();
private slots: private slots:

@ -25,7 +25,7 @@
KGradProgress::KGradProgress( TQWidget *tqparent ) : TQLabel( tqparent ) KGradProgress::KGradProgress( TQWidget *parent ) : TQLabel( parent )
{ {
barPix = 0; barPix = 0;
colorUp = TQColor( 0, 255, 0 ); colorUp = TQColor( 0, 255, 0 );

@ -34,7 +34,7 @@ class KGradProgress : public TQLabel
public: public:
KGradProgress( TQWidget *tqparent ); KGradProgress( TQWidget *parent );
~KGradProgress(); ~KGradProgress();
virtual void paintEvent(TQPaintEvent *event); virtual void paintEvent(TQPaintEvent *event);
virtual TQSize tqsizeHint(); virtual TQSize tqsizeHint();

@ -32,7 +32,7 @@
KRecord::KRecord( TQStringList chanList, TQPtrList<RecTimer> *t, TQWidget *tqparent, TQSize size ) : TQDialog( tqparent ) KRecord::KRecord( TQStringList chanList, TQPtrList<RecTimer> *t, TQWidget *parent, TQSize size ) : TQDialog( parent )
{ {
timers = t; timers = t;
channelsList = chanList; channelsList = chanList;

@ -39,7 +39,7 @@ class KRecord : public TQDialog
public: public:
KRecord( TQStringList chanList, TQPtrList<RecTimer> *t, TQWidget *tqparent, TQSize size ); KRecord( TQStringList chanList, TQPtrList<RecTimer> *t, TQWidget *parent, TQSize size );
~KRecord(); ~KRecord();
TQStringList channelsList; TQStringList channelsList;

@ -29,7 +29,7 @@
KTimerEditor::KTimerEditor( bool newone, TQStringList &chanList, RecTimer t, TQWidget *tqparent ) : TQDialog( tqparent ) KTimerEditor::KTimerEditor( bool newone, TQStringList &chanList, RecTimer t, TQWidget *parent ) : TQDialog( parent )
{ {
int i; int i;

@ -42,7 +42,7 @@ class KTimerEditor : public TQDialog
public: public:
KTimerEditor( bool newone, TQStringList &chanList, RecTimer t, TQWidget *tqparent ); KTimerEditor( bool newone, TQStringList &chanList, RecTimer t, TQWidget *parent );
~KTimerEditor(); ~KTimerEditor();
KPushButton *okBtn, *cancelBtn, *repeatBtn; KPushButton *okBtn, *cancelBtn, *repeatBtn;

@ -477,7 +477,7 @@ EventDesc *EventTable::getEventDesc( TQString src, int nid, int tsid, int sid, i
KaffeineEpgPlugin::KaffeineEpgPlugin( TQObject* tqparent, const char* name ) : KParts::Part( tqparent, name ) KaffeineEpgPlugin::KaffeineEpgPlugin( TQObject* parent, const char* name ) : KParts::Part( parent, name )
{ {
} }

@ -162,7 +162,7 @@ class KDE_EXPORT KaffeineEpgPlugin : public KParts::Part, public KaffeineDVBsec
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KaffeineEpgPlugin( TQObject* tqparent, const char* name ); KaffeineEpgPlugin( TQObject* parent, const char* name );
virtual ~KaffeineEpgPlugin(); virtual ~KaffeineEpgPlugin();
virtual bool go( TQString /*src*/, int /*freqKhz*/ ) { return false; } virtual bool go( TQString /*src*/, int /*freqKhz*/ ) { return false; }
virtual void stop() {} virtual void stop() {}

@ -21,7 +21,7 @@
#include "kaffeinedvbplugin.h" #include "kaffeinedvbplugin.h"
#include "kaffeinedvbplugin.moc" #include "kaffeinedvbplugin.moc"
KaffeineDvbPlugin::KaffeineDvbPlugin(TQObject* tqparent, const char* name) : KParts::Part( tqparent, name ) KaffeineDvbPlugin::KaffeineDvbPlugin(TQObject* parent, const char* name) : KParts::Part( parent, name )
{ {
} }

@ -36,7 +36,7 @@ class KDE_EXPORT KaffeineDvbPlugin : public KParts::Part
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KaffeineDvbPlugin(TQObject* tqparent, const char* name); KaffeineDvbPlugin(TQObject* parent, const char* name);
virtual ~KaffeineDvbPlugin(); virtual ~KaffeineDvbPlugin();
virtual TQString pluginName() { return TQString(); } virtual TQString pluginName() { return TQString(); }

@ -41,8 +41,8 @@
DListViewItem::DListViewItem( TQListView *tqparent, ChannelDesc *desc, TQString label1, TQString label2 ) DListViewItem::DListViewItem( TQListView *parent, ChannelDesc *desc, TQString label1, TQString label2 )
: TQListViewItem( tqparent, label1, label2 ) : TQListViewItem( parent, label1, label2 )
{ {
chan = desc; chan = desc;
} }

@ -41,7 +41,7 @@ class DListViewItem : public TQListViewItem
public: public:
DListViewItem( TQListView *tqparent, ChannelDesc *desc, TQString label1, TQString label2 ); DListViewItem( TQListView *parent, ChannelDesc *desc, TQString label1, TQString label2 );
ChannelDesc *chan; ChannelDesc *chan;
}; };

@ -31,7 +31,7 @@
SubEditor::SubEditor( ChannelDesc *chan, TQWidget *tqparent ) : SubEditorUI( tqparent ) SubEditor::SubEditor( ChannelDesc *chan, TQWidget *parent ) : SubEditorUI( parent )
{ {
TQString s, t; TQString s, t;
int i; int i;

@ -33,7 +33,7 @@ class SubEditor : public SubEditorUI
public: public:
SubEditor( ChannelDesc *chan, TQWidget *tqparent ); SubEditor( ChannelDesc *chan, TQWidget *parent );
~SubEditor(); ~SubEditor();
private slots: private slots:

@ -29,10 +29,10 @@
CdWidget::CdWidget( const TQString &ad, int port, int info, const TQString &tspath, TQWidget *tqparent, TQObject *objParent, const char *name ) CdWidget::CdWidget( const TQString &ad, int port, int info, const TQString &tspath, TQWidget *parent, TQObject *objParent, const char *name )
: KaffeineInput( objParent, name ) : KaffeineInput( objParent, name )
{ {
mainWidget = new TQVBox( tqparent ); mainWidget = new TQVBox( parent );
mainWidget->tqsetSizePolicy( TQSizePolicy (TQSizePolicy::Preferred, TQSizePolicy::Preferred) ); mainWidget->tqsetSizePolicy( TQSizePolicy (TQSizePolicy::Preferred, TQSizePolicy::Preferred) );
split = new TQSplitter( mainWidget ); split = new TQSplitter( mainWidget );
split->setOpaqueResize( true ); split->setOpaqueResize( true );

@ -43,7 +43,7 @@ class CdWidget : public KaffeineInput
public: public:
CdWidget( const TQString &ad, int port, int info, const TQString &tspath, TQWidget *tqparent, TQObject *objParent, const char *name ); CdWidget( const TQString &ad, int port, int info, const TQString &tspath, TQWidget *parent, TQObject *objParent, const char *name );
~CdWidget(); ~CdWidget();
void setParam( const TQString &ad, int port, int info, const TQString &tspath ); void setParam( const TQString &ad, int port, int info, const TQString &tspath );
void enableLive( bool b ); void enableLive( bool b );

@ -20,7 +20,7 @@
#include "kaffeineinput.h" #include "kaffeineinput.h"
KaffeineInput::KaffeineInput(TQObject* tqparent, const char* name) : TQObject( tqparent, name ) KaffeineInput::KaffeineInput(TQObject* parent, const char* name) : TQObject( parent, name )
{ {
} }

@ -33,7 +33,7 @@ class KaffeineInput : public TQObject, public KXMLGUIClient
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KaffeineInput(TQObject* tqparent, const char* name); KaffeineInput(TQObject* parent, const char* name);
virtual ~KaffeineInput(); virtual ~KaffeineInput();
// if you want the player window to be displayed on one of your widgets, return a pointer to that one. // if you want the player window to be displayed on one of your widgets, return a pointer to that one.

@ -52,10 +52,10 @@ InputPlugin::~InputPlugin()
InputManager::InputManager( Kaffeine *tqparent, TQWidgetStack *ws, KMultiTabBar *mt ) InputManager::InputManager( Kaffeine *parent, TQWidgetStack *ws, KMultiTabBar *mt )
: TQObject(tqparent) : TQObject(parent)
{ {
kaffeine = tqparent; kaffeine = parent;
stack = ws; stack = ws;
mtBar = mt; mtBar = mt;
plugs.setAutoDelete( true ); plugs.setAutoDelete( true );
@ -555,7 +555,7 @@ void InputManager::fullscreen( bool b )
/********/ /********/
PlayerContainer::PlayerContainer(TQWidget* tqparent, const char* name) : TQVBox(tqparent, name) PlayerContainer::PlayerContainer(TQWidget* parent, const char* name) : TQVBox(parent, name)
{ {
setAcceptDrops(true); setAcceptDrops(true);
setMouseTracking( true ); setMouseTracking( true );

@ -44,7 +44,7 @@ class PlayerContainer : public TQVBox
TQ_OBJECT TQ_OBJECT
public: public:
PlayerContainer(TQWidget* tqparent = 0, const char* name = 0); PlayerContainer(TQWidget* parent = 0, const char* name = 0);
virtual ~PlayerContainer() {} virtual ~PlayerContainer() {}
signals: signals:
@ -76,7 +76,7 @@ class InputManager : public TQObject
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
InputManager( Kaffeine *tqparent, TQWidgetStack *ws, KMultiTabBar *mt ); InputManager( Kaffeine *parent, TQWidgetStack *ws, KMultiTabBar *mt );
~InputManager(); ~InputManager();
void add( KaffeineInput *p, const TQPixmap &icon, const TQString &name ); void add( KaffeineInput *p, const TQPixmap &icon, const TQString &name );

@ -48,7 +48,7 @@ public:
}; };
KMultiTabBarInternal::KMultiTabBarInternal(TQWidget *tqparent, KMultiTabBar::KMultiTabBarMode bm):TQScrollView(tqparent) KMultiTabBarInternal::KMultiTabBarInternal(TQWidget *parent, KMultiTabBar::KMultiTabBarMode bm):TQScrollView(parent)
{ {
m_expandedTabSize=-1; m_expandedTabSize=-1;
m_showActiveTabTexts=false; m_showActiveTabTexts=false;
@ -384,8 +384,8 @@ void KMultiTabBarInternal::setPosition(enum KMultiTabBar::KMultiTabBarPosition p
KMultiTabBarButton::KMultiTabBarButton(const TQPixmap& pic,const TQString& text, TQPopupMenu *popup, KMultiTabBarButton::KMultiTabBarButton(const TQPixmap& pic,const TQString& text, TQPopupMenu *popup,
int id,TQWidget *tqparent,KMultiTabBar::KMultiTabBarPosition pos,KMultiTabBar::KMultiTabBarStyle style) int id,TQWidget *parent,KMultiTabBar::KMultiTabBarPosition pos,KMultiTabBar::KMultiTabBarStyle style)
:TQPushButton(TQIconSet(),text,tqparent),m_style(style) :TQPushButton(TQIconSet(),text,parent),m_style(style)
{ {
setIconSet(pic); setIconSet(pic);
setText(text); setText(text);
@ -400,8 +400,8 @@ KMultiTabBarButton::KMultiTabBarButton(const TQPixmap& pic,const TQString& text,
} }
KMultiTabBarButton::KMultiTabBarButton(const TQString& text, TQPopupMenu *popup, KMultiTabBarButton::KMultiTabBarButton(const TQString& text, TQPopupMenu *popup,
int id,TQWidget *tqparent,KMultiTabBar::KMultiTabBarPosition pos,KMultiTabBar::KMultiTabBarStyle style) int id,TQWidget *parent,KMultiTabBar::KMultiTabBarPosition pos,KMultiTabBar::KMultiTabBarStyle style)
:TQPushButton(TQIconSet(),text,tqparent),m_style(style) :TQPushButton(TQIconSet(),text,parent),m_style(style)
{ {
setText(text); setText(text);
m_position=pos; m_position=pos;
@ -499,9 +499,9 @@ TQSize KMultiTabBarButton::tqsizeHint() const
KMultiTabBarTab::KMultiTabBarTab(const TQPixmap& pic, const TQString& text, KMultiTabBarTab::KMultiTabBarTab(const TQPixmap& pic, const TQString& text,
int id,TQWidget *tqparent,KMultiTabBar::KMultiTabBarPosition pos, int id,TQWidget *parent,KMultiTabBar::KMultiTabBarPosition pos,
KMultiTabBar::KMultiTabBarStyle style) KMultiTabBar::KMultiTabBarStyle style)
:KMultiTabBarButton(text,0,id,tqparent,pos,style), :KMultiTabBarButton(text,0,id,parent,pos,style),
m_showActiveTabText(false) m_showActiveTabText(false)
{ {
down = false; down = false;
@ -836,7 +836,7 @@ void KMultiTabBarTab::drawButtonClassic(TQPainter *paint)
KMultiTabBar::KMultiTabBar(KMultiTabBarMode bm, TQWidget *tqparent,const char *name):TQWidget(tqparent,name) KMultiTabBar::KMultiTabBar(KMultiTabBarMode bm, TQWidget *parent,const char *name):TQWidget(parent,name)
{ {
m_buttons.setAutoDelete(false); m_buttons.setAutoDelete(false);
if (bm==Vertical) if (bm==Vertical)

@ -66,7 +66,7 @@ public:
*/ */
enum KMultiTabBarStyle{VSNET=0, KDEV3=1, KONTQSBC=2, KDEV3ICON=3,STYLELAST=0xffff}; enum KMultiTabBarStyle{VSNET=0, KDEV3=1, KONTQSBC=2, KDEV3ICON=3,STYLELAST=0xffff};
KMultiTabBar(KMultiTabBarMode bm,TQWidget *tqparent=0,const char *name=0); KMultiTabBar(KMultiTabBarMode bm,TQWidget *parent=0,const char *name=0);
virtual ~KMultiTabBar(); virtual ~KMultiTabBar();
/** /**
@ -159,9 +159,9 @@ class /*KUTILS_EXPORT*/ KMultiTabBarButton: public TQPushButton
TQ_OBJECT TQ_OBJECT
public: public:
KMultiTabBarButton(const TQPixmap& pic,const TQString&, TQPopupMenu *popup, KMultiTabBarButton(const TQPixmap& pic,const TQString&, TQPopupMenu *popup,
int id,TQWidget *tqparent, KMultiTabBar::KMultiTabBarPosition pos, KMultiTabBar::KMultiTabBarStyle style); int id,TQWidget *parent, KMultiTabBar::KMultiTabBarPosition pos, KMultiTabBar::KMultiTabBarStyle style);
KMultiTabBarButton(const TQString&, TQPopupMenu *popup, KMultiTabBarButton(const TQString&, TQPopupMenu *popup,
int id,TQWidget *tqparent, KMultiTabBar::KMultiTabBarPosition pos, KMultiTabBar::KMultiTabBarStyle style); int id,TQWidget *parent, KMultiTabBar::KMultiTabBarPosition pos, KMultiTabBar::KMultiTabBarStyle style);
virtual ~KMultiTabBarButton(); virtual ~KMultiTabBarButton();
int id() const; int id() const;
@ -211,7 +211,7 @@ class /*KUTILS_EXPORT*/ KMultiTabBarTab: public KMultiTabBarButton
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KMultiTabBarTab(const TQPixmap& pic,const TQString&,int id,TQWidget *tqparent, KMultiTabBarTab(const TQPixmap& pic,const TQString&,int id,TQWidget *parent,
KMultiTabBar::KMultiTabBarPosition pos,KMultiTabBar::KMultiTabBarStyle style); KMultiTabBar::KMultiTabBarPosition pos,KMultiTabBar::KMultiTabBarStyle style);
virtual ~KMultiTabBarTab(); virtual ~KMultiTabBarTab();
/** /**

@ -33,7 +33,7 @@ class KMultiTabBarInternal: public TQScrollView
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KMultiTabBarInternal(TQWidget *tqparent,KMultiTabBar::KMultiTabBarMode bm); KMultiTabBarInternal(TQWidget *parent,KMultiTabBar::KMultiTabBarMode bm);
int appendTab(const TQPixmap &,int=-1,const TQString& =TQString()); int appendTab(const TQPixmap &,int=-1,const TQString& =TQString());
KMultiTabBarTab *tab(int) const; KMultiTabBarTab *tab(int) const;
void removeTab(int); void removeTab(int);
@ -59,7 +59,7 @@ protected:
/** /**
* [contentsM|m]ousePressEvent are reimplemented from TQScrollView * [contentsM|m]ousePressEvent are reimplemented from TQScrollView
* in order to ignore all mouseEvents on the viewport, so that the * in order to ignore all mouseEvents on the viewport, so that the
* tqparent can handle them. * parent can handle them.
*/ */
virtual void contentsMousePressEvent(TQMouseEvent *); virtual void contentsMousePressEvent(TQMouseEvent *);
virtual void mousePressEvent(TQMouseEvent *); virtual void mousePressEvent(TQMouseEvent *);

@ -27,8 +27,8 @@ typedef KParts::GenericFactory<DummyPart> DummyPartFactory;
K_EXPORT_COMPONENT_FACTORY (libdummypart, DummyPartFactory); K_EXPORT_COMPONENT_FACTORY (libdummypart, DummyPartFactory);
DummyPart::DummyPart(TQWidget* parentWidget, const char* widgetName, TQObject* tqparent, const char* name, const TQStringList& /*args*/) DummyPart::DummyPart(TQWidget* parentWidget, const char* widgetName, TQObject* parent, const char* name, const TQStringList& /*args*/)
: KaffeinePart(tqparent, name ? name : "DummyPart") : KaffeinePart(parent, name ? name : "DummyPart")
{ {
// we need an instance // we need an instance
setInstance(DummyPartFactory::instance()); setInstance(DummyPartFactory::instance());

@ -53,9 +53,9 @@ typedef KParts::GenericFactory<GStreamerPart> GStreamerPartFactory;
K_EXPORT_COMPONENT_FACTORY (libgstreamerpart, GStreamerPartFactory); K_EXPORT_COMPONENT_FACTORY (libgstreamerpart, GStreamerPartFactory);
GStreamerPart::GStreamerPart( TQWidget* parentWidget, const char* /*widgetName*/, TQObject* tqparent, const char* name, GStreamerPart::GStreamerPart( TQWidget* parentWidget, const char* /*widgetName*/, TQObject* parent, const char* name,
const TQStringList& /*args*/ ) const TQStringList& /*args*/ )
: KaffeinePart( tqparent, name ? name : "GStreamerPart" ), : KaffeinePart( parent, name ? name : "GStreamerPart" ),
m_play(NULL), m_videosink(NULL), m_audiosink(NULL), m_visual(NULL), m_videoSettings(NULL), m_play(NULL), m_videosink(NULL), m_audiosink(NULL), m_visual(NULL), m_videoSettings(NULL),
m_gstConfig(NULL), m_mute(false), m_logoPath(TQString()), m_posToolbar(NULL) m_gstConfig(NULL), m_mute(false), m_logoPath(TQString()), m_posToolbar(NULL)
{ {

@ -42,8 +42,8 @@
VideoWindow::VideoWindow( TQWidget *tqparent, GstElement *_element ) VideoWindow::VideoWindow( TQWidget *parent, GstElement *_element )
: TQWidget (tqparent), m_width(0), m_height(0), m_aspectRatio(AUTO) : TQWidget (parent), m_width(0), m_height(0), m_aspectRatio(AUTO)
{ {
m_play = NULL; m_play = NULL;

@ -39,7 +39,7 @@ class VideoWindow : public TQWidget
TQ_OBJECT TQ_OBJECT
public: public:
VideoWindow( TQWidget *tqparent, GstElement *element ); VideoWindow( TQWidget *parent, GstElement *element );
~VideoWindow (); ~VideoWindow ();
enum AspectRatio { enum AspectRatio {

@ -29,8 +29,8 @@
#include "videosettings.moc" #include "videosettings.moc"
VideoSettings::VideoSettings(int hue, int sat, int contr, int bright, TQWidget *tqparent, const char *name) VideoSettings::VideoSettings(int hue, int sat, int contr, int bright, TQWidget *parent, const char *name)
: KDialogBase(KDialogBase::Plain, i18n("Video Settings"), KDialogBase::Default | KDialogBase::Close, KDialogBase::Close, tqparent, name, false) : KDialogBase(KDialogBase::Plain, i18n("Video Settings"), KDialogBase::Default | KDialogBase::Close, KDialogBase::Close, parent, name, false)
{ {
setInitialSize(TQSize(450,200), true); setInitialSize(TQSize(450,200), true);
TQWidget* page = plainPage(); TQWidget* page = plainPage();

@ -36,7 +36,7 @@ class VideoSettings : public KDialogBase
TQ_OBJECT TQ_OBJECT
public: public:
VideoSettings(int hue, int sat, int contr, int bright, TQWidget *tqparent=0, const char *name=0); VideoSettings(int hue, int sat, int contr, int bright, TQWidget *parent=0, const char *name=0);
~VideoSettings(); ~VideoSettings();
signals: signals:

@ -22,8 +22,8 @@
#include "kaffeinepart.moc" #include "kaffeinepart.moc"
KaffeinePart::KaffeinePart(TQObject* tqparent, const char* name) KaffeinePart::KaffeinePart(TQObject* parent, const char* name)
: KParts::ReadOnlyPart(tqparent, name) : KParts::ReadOnlyPart(parent, name)
{ {
} }

@ -29,7 +29,7 @@
* Base-Class for Kaffeine-Parts. Derive from this class if you want to develop a player part for Kaffeine. * Base-Class for Kaffeine-Parts. Derive from this class if you want to develop a player part for Kaffeine.
* At least you have to reimplement openURL(const MRL&) and to emit signalTrackFinished()! * At least you have to reimplement openURL(const MRL&) and to emit signalTrackFinished()!
* *
* IMPORTANT: Forward the double-click, middle-click and wheel mouse-events to the tqparent widget (don't use * IMPORTANT: Forward the double-click, middle-click and wheel mouse-events to the parent widget (don't use
* TQMouseEvent::accept())! * TQMouseEvent::accept())!
* *
* @author Jürgen Kofler * @author Jürgen Kofler
@ -40,7 +40,7 @@ class KDE_EXPORT KaffeinePart : public KParts::ReadOnlyPart
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KaffeinePart(TQObject* tqparent, const char* name); KaffeinePart(TQObject* parent, const char* name);
virtual ~KaffeinePart(); virtual ~KaffeinePart();
/* /*

@ -416,7 +416,7 @@ uint PlaylistImport::extractIndex( const TQString &str )
return ret; return ret;
} }
bool PlaylistImport::ram(const MRL& playlist, TQValueList<MRL>& mrls, TQWidget* tqparent) bool PlaylistImport::ram(const MRL& playlist, TQValueList<MRL>& mrls, TQWidget* parent)
{ {
TQ_ULONG result; TQ_ULONG result;
char buf[10]; char buf[10];
@ -449,12 +449,12 @@ bool PlaylistImport::ram(const MRL& playlist, TQValueList<MRL>& mrls, TQWidget*
kdDebug() << "PlaylistImport: Seems to be a ram playlist!" << endl; kdDebug() << "PlaylistImport: Seems to be a ram playlist!" << endl;
TQString localFile, url; TQString localFile, url;
if (KIO::NetAccess::mimetype(playlist.kurl(), tqparent) == "application/vnd.rn-realmedia") { if (KIO::NetAccess::mimetype(playlist.kurl(), parent) == "application/vnd.rn-realmedia") {
kdDebug() << "PlaylistImport: Seems to be a real media file" << endl; kdDebug() << "PlaylistImport: Seems to be a real media file" << endl;
return false; return false;
} }
if (KIO::NetAccess::download(playlist.kurl(), localFile, tqparent)) if (KIO::NetAccess::download(playlist.kurl(), localFile, parent))
{ {
TQFile plFile(localFile); TQFile plFile(localFile);
if (!plFile.open(IO_ReadOnly)) return false; if (!plFile.open(IO_ReadOnly)) return false;

@ -33,8 +33,8 @@
#include "deinterlacequality.moc" #include "deinterlacequality.moc"
DeinterlaceQuality::DeinterlaceQuality(TQWidget* filterDialog, TQWidget *tqparent, const char *name) DeinterlaceQuality::DeinterlaceQuality(TQWidget* filterDialog, TQWidget *parent, const char *name)
:KDialogBase(tqparent, name, true, i18n("Deinterlace Quality"), KDialogBase::Close) :KDialogBase(parent, name, true, i18n("Deinterlace Quality"), KDialogBase::Close)
{ {
m_configStrings << "tvtime:method=Greedy2Frame,enabled=1,pulldown=vektor,framerate_mode=full,judder_correction=1,use_progressive_frame_flag=1,chroma_filter=1,cheap_mode=0"; m_configStrings << "tvtime:method=Greedy2Frame,enabled=1,pulldown=vektor,framerate_mode=full,judder_correction=1,use_progressive_frame_flag=1,chroma_filter=1,cheap_mode=0";
m_configStrings << "tvtime:method=Greedy2Frame,enabled=1,pulldown=vektor,framerate_mode=full,judder_correction=0,use_progressive_frame_flag=1,chroma_filter=0,cheap_mode=0"; m_configStrings << "tvtime:method=Greedy2Frame,enabled=1,pulldown=vektor,framerate_mode=full,judder_correction=0,use_progressive_frame_flag=1,chroma_filter=0,cheap_mode=0";

@ -38,8 +38,8 @@ class DeinterlacerConfigDialog : public KDialogBase
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
DeinterlacerConfigDialog(TQWidget *tqparent=0, const char *name=0) DeinterlacerConfigDialog(TQWidget *parent=0, const char *name=0)
: KDialogBase( tqparent, name, true, i18n("Configure tvtime Deinterlace Plugin"), KDialogBase::Close ) : KDialogBase( parent, name, true, i18n("Configure tvtime Deinterlace Plugin"), KDialogBase::Close )
{ {
setInitialSize(TQSize(450,400), true); setInitialSize(TQSize(450,400), true);
@ -57,7 +57,7 @@ class DeinterlaceQuality : public KDialogBase {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
DeinterlaceQuality(TQWidget* filterDialog, TQWidget *tqparent=0, const char *name=0); DeinterlaceQuality(TQWidget* filterDialog, TQWidget *parent=0, const char *name=0);
~DeinterlaceQuality(); ~DeinterlaceQuality();
void setQuality(uint); void setQuality(uint);

@ -28,11 +28,11 @@
#include "equalizer.h" #include "equalizer.h"
#include "equalizer.moc" #include "equalizer.moc"
Equalizer::Equalizer(TQWidget *tqparent, const char *name) Equalizer::Equalizer(TQWidget *parent, const char *name)
: KDialogBase(KDialogBase::Plain, i18n("Equalizer Settings"), KDialogBase::Default | KDialogBase::Close, KDialogBase::Close, tqparent, name, false) : KDialogBase(KDialogBase::Plain, i18n("Equalizer Settings"), KDialogBase::Default | KDialogBase::Close, KDialogBase::Close, parent, name, false)
{ {
setInitialSize(TQSize(450,250), true); setInitialSize(TQSize(450,250), true);
reparent(tqparent, pos(), false); reparent(parent, pos(), false);
TQWidget* page = plainPage(); TQWidget* page = plainPage();
TQGridLayout* mainGrid = new TQGridLayout( page, 3, 1 ); TQGridLayout* mainGrid = new TQGridLayout( page, 3, 1 );

@ -37,7 +37,7 @@ class Equalizer : public KDialogBase {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
Equalizer(TQWidget *tqparent=0, const char *name=0); Equalizer(TQWidget *parent=0, const char *name=0);
~Equalizer(); ~Equalizer();
void ReadValues(KConfig* config); void ReadValues(KConfig* config);

@ -35,10 +35,10 @@
#include "filterdialog.moc" #include "filterdialog.moc"
FilterDialog::FilterDialog(const TQStringList& audioFilters, const TQStringList& videoFilters, TQWidget *tqparent, const char *name) : FilterDialog::FilterDialog(const TQStringList& audioFilters, const TQStringList& videoFilters, TQWidget *parent, const char *name) :
KDialogBase(KDialogBase::IconList, i18n("Effect Plugins"), KDialogBase::Ok, KDialogBase::Ok, tqparent, name, false) KDialogBase(KDialogBase::IconList, i18n("Effect Plugins"), KDialogBase::Ok, KDialogBase::Ok, parent, name, false)
{ {
reparent(tqparent, pos(), false); reparent(parent, pos(), false);
setInitialSize(TQSize(400,350), true); setInitialSize(TQSize(400,350), true);
/****** Audio Filters ******/ /****** Audio Filters ******/

@ -37,14 +37,14 @@ class FilterDialog : public KDialogBase
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
FilterDialog(const TQStringList& audiofilters, const TQStringList& videofilters, TQWidget *tqparent=0, const char *name=0); FilterDialog(const TQStringList& audiofilters, const TQStringList& videofilters, TQWidget *parent=0, const char *name=0);
~FilterDialog(); ~FilterDialog();
signals: signals:
void signalCreateAudioFilter(const TQString& name, TQWidget* tqparent); void signalCreateAudioFilter(const TQString& name, TQWidget* parent);
void signalRemoveAllAudioFilters(); void signalRemoveAllAudioFilters();
void signalUseAudioFilters(bool); void signalUseAudioFilters(bool);
void signalCreateVideoFilter(const TQString& name, TQWidget* tqparent); void signalCreateVideoFilter(const TQString& name, TQWidget* parent);
void signalRemoveAllVideoFilters(); void signalRemoveAllVideoFilters();
void signalUseVideoFilters(bool); void signalUseVideoFilters(bool);

@ -61,11 +61,11 @@
#define TIMER_EVENT_RESIZE_PARENT 300 #define TIMER_EVENT_RESIZE_PARENT 300
KXineWidget::KXineWidget(TQWidget* tqparent, const char* name, KXineWidget::KXineWidget(TQWidget* parent, const char* name,
const TQString& pathToConfigFile, const TQString& pathToLogoFile, const TQString& pathToConfigFile, const TQString& pathToLogoFile,
const TQString& audioDriver, const TQString& videoDriver, const TQString& audioDriver, const TQString& videoDriver,
bool startManual, bool verbose) bool startManual, bool verbose)
: TQWidget(tqparent,name), m_startXineManual(startManual), m_xineReady(false), : TQWidget(parent,name), m_startXineManual(startManual), m_xineReady(false),
m_logoFile(pathToLogoFile), m_preferedAudio(audioDriver), m_preferedVideo(videoDriver), m_xineVerbose(verbose), m_logoFile(pathToLogoFile), m_preferedAudio(audioDriver), m_preferedVideo(videoDriver), m_xineVerbose(verbose),
m_xineEngine(NULL), m_audioDriver(NULL), m_videoDriver(NULL), m_xineStream(NULL), connection(NULL), m_xineEngine(NULL), m_audioDriver(NULL), m_videoDriver(NULL), m_xineStream(NULL), connection(NULL),
m_eventQueue(NULL), m_osd(NULL), m_osdUnscaled(false), m_osdShow(false), m_osdSize(0), m_osdFont(NULL), m_eventQueue(NULL), m_osd(NULL), m_osdUnscaled(false), m_osdShow(false), m_osdSize(0), m_osdFont(NULL),
@ -337,7 +337,7 @@ void KXineWidget::frameOutputCallback(void* p, int video_width, int video_height
vw->m_videoAspect = video_aspect; vw->m_videoAspect = video_aspect;
TQApplication::postEvent(vw, new TQTimerEvent(TIMER_EVENT_FRAME_FORMAT_CHANGE)); TQApplication::postEvent(vw, new TQTimerEvent(TIMER_EVENT_FRAME_FORMAT_CHANGE));
/* auto-resize tqparent widget */ /* auto-resize parent widget */
if ((vw->m_autoresizeEnabled) && (vw->parentWidget()) && (vw->m_posTimer.isActive()) && (!vw->parentWidget()->isFullScreen()) if ((vw->m_autoresizeEnabled) && (vw->parentWidget()) && (vw->m_posTimer.isActive()) && (!vw->parentWidget()->isFullScreen())
&& (video_width > 0) && (video_height > 0)) && (video_width > 0) && (video_height > 0))
{ {
@ -2336,34 +2336,34 @@ TQStringList KXineWidget::getAudioFilterNames() const
} }
#endif #endif
void KXineWidget::slotCreateVideoFilter(const TQString& name, TQWidget* tqparent) void KXineWidget::slotCreateVideoFilter(const TQString& name, TQWidget* parent)
{ {
#ifndef USE_TQT_ONLY #ifndef USE_TQT_ONLY
unwireVideoFilters(); unwireVideoFilters();
PostFilter* filter = new PostFilter(name, m_xineEngine, m_audioDriver, m_videoDriver, tqparent); PostFilter* filter = new PostFilter(name, m_xineEngine, m_audioDriver, m_videoDriver, parent);
connect(filter, TQT_SIGNAL(signalDeleteMe(PostFilter*)), this, TQT_SLOT(slotDeleteVideoFilter(PostFilter*))); connect(filter, TQT_SIGNAL(signalDeleteMe(PostFilter*)), this, TQT_SLOT(slotDeleteVideoFilter(PostFilter*)));
m_videoFilterList.append(filter); m_videoFilterList.append(filter);
wireVideoFilters(); wireVideoFilters();
#else #else
tqparent = tqparent; parent = parent;
warningOut(TQString("Not implemented [CreateVideoFilter %1]").tqarg(name)); warningOut(TQString("Not implemented [CreateVideoFilter %1]").tqarg(name));
#endif #endif
} }
void KXineWidget::slotCreateAudioFilter(const TQString& name, TQWidget* tqparent) void KXineWidget::slotCreateAudioFilter(const TQString& name, TQWidget* parent)
{ {
#ifndef USE_TQT_ONLY #ifndef USE_TQT_ONLY
unwireAudioFilters(); unwireAudioFilters();
PostFilter* filter = new PostFilter(name, m_xineEngine, m_audioDriver, m_videoDriver, tqparent); PostFilter* filter = new PostFilter(name, m_xineEngine, m_audioDriver, m_videoDriver, parent);
connect(filter, TQT_SIGNAL(signalDeleteMe(PostFilter*)), this, TQT_SLOT(slotDeleteAudioFilter(PostFilter*))); connect(filter, TQT_SIGNAL(signalDeleteMe(PostFilter*)), this, TQT_SLOT(slotDeleteAudioFilter(PostFilter*)));
m_audioFilterList.append(filter); m_audioFilterList.append(filter);
wireAudioFilters(); wireAudioFilters();
#else #else
tqparent = tqparent; parent = parent;
warningOut(TQString("Not implemented [CreateAudioFilter %1]").tqarg(name)); warningOut(TQString("Not implemented [CreateAudioFilter %1]").tqarg(name));
#endif #endif
} }
@ -2804,7 +2804,7 @@ void KXineWidget::mousePressEvent(TQMouseEvent* mev)
input.x = rect.x; input.x = rect.x;
input.y = rect.y; input.y = rect.y;
xine_event_send (m_xineStream, &event); xine_event_send (m_xineStream, &event);
mev->accept(); /* don't send event to tqparent */ mev->accept(); /* don't send event to parent */
} }
} }
@ -3279,9 +3279,9 @@ void KXineWidget::slotEnableAutoresize(bool enable)
***************************************/ ***************************************/
#ifndef USE_TQT_ONLY #ifndef USE_TQT_ONLY
void KXineWidget::createDeinterlacePlugin(const TQString& config, TQWidget* tqparent) void KXineWidget::createDeinterlacePlugin(const TQString& config, TQWidget* parent)
{ {
m_deinterlaceFilter = new PostFilter(config.section(':',0,0), m_xineEngine, m_audioDriver, m_videoDriver, tqparent); m_deinterlaceFilter = new PostFilter(config.section(':',0,0), m_xineEngine, m_audioDriver, m_videoDriver, parent);
if( !m_deinterlaceFilter->getInput() || !m_deinterlaceFilter->getOutput() ) if( !m_deinterlaceFilter->getInput() || !m_deinterlaceFilter->getOutput() )
{ {
delete m_deinterlaceFilter; delete m_deinterlaceFilter;

@ -27,7 +27,7 @@
/* Usage: /* Usage:
* *
* KXineWidget m_xine = new KXineWidget(tqparent); * KXineWidget m_xine = new KXineWidget(parent);
* m_xine->appendToQueue("the_best_song_of_the_world.mp3"); * m_xine->appendToQueue("the_best_song_of_the_world.mp3");
* *
* You should at least connect to signalXineFatal(const TQString&)! * You should at least connect to signalXineFatal(const TQString&)!
@ -79,7 +79,7 @@ class KXineWidget : public TQWidget, public TQThread
TQ_OBJECT TQ_OBJECT
public: public:
KXineWidget(TQWidget *tqparent=0, const char *name=0, KXineWidget(TQWidget *parent=0, const char *name=0,
const TQString& pathToConfigFile = TQString(), const TQString& pathToLogoFile = TQString(), const TQString& pathToConfigFile = TQString(), const TQString& pathToLogoFile = TQString(),
const TQString& audioDriver = TQString(), const TQString& videoDriver = TQString(), const TQString& audioDriver = TQString(), const TQString& videoDriver = TQString(),
bool startManual = false, bool verbose = false); bool startManual = false, bool verbose = false);
@ -141,7 +141,7 @@ public:
TQStringList getVisualPlugins() const; TQStringList getVisualPlugins() const;
#ifndef USE_TQT_ONLY #ifndef USE_TQT_ONLY
void createDeinterlacePlugin(const TQString& configString, TQWidget* tqparent); void createDeinterlacePlugin(const TQString& configString, TQWidget* parent);
const TQString getDeinterlaceConfig() const; const TQString getDeinterlaceConfig() const;
TQStringList getVideoFilterNames() const; TQStringList getVideoFilterNames() const;
TQStringList getAudioFilterNames() const; TQStringList getAudioFilterNames() const;
@ -186,7 +186,7 @@ public:
void startMouseHideTimer(); void startMouseHideTimer();
void stopMouseHideTimer(); void stopMouseHideTimer();
void globalPosChanged(); /* call this if global pos of tqparent was changed */ void globalPosChanged(); /* call this if global pos of parent was changed */
signals: signals:
void signalXineFatal(const TQString& message); /** initXine() not successfull! **/ void signalXineFatal(const TQString& message); /** initXine() not successfull! **/
@ -293,8 +293,8 @@ public slots:
void slotDVDMenuSelect(); void slotDVDMenuSelect();
/***** postprocess filters ****/ /***** postprocess filters ****/
void slotCreateVideoFilter(const TQString& name, TQWidget* tqparent); void slotCreateVideoFilter(const TQString& name, TQWidget* parent);
void slotCreateAudioFilter(const TQString& name, TQWidget* tqparent); void slotCreateAudioFilter(const TQString& name, TQWidget* parent);
void slotDeleteVideoFilter(PostFilter* filter); void slotDeleteVideoFilter(PostFilter* filter);
void slotDeleteAudioFilter(PostFilter* filter); void slotDeleteAudioFilter(PostFilter* filter);
void slotRemoveAllVideoFilters(); void slotRemoveAllVideoFilters();

@ -26,8 +26,8 @@
#include "positionslider.moc" #include "positionslider.moc"
PositionSlider::PositionSlider(Qt::Orientation o, TQWidget *tqparent, const char* name) : PositionSlider::PositionSlider(Qt::Orientation o, TQWidget *parent, const char* name) :
TQSlider(o, tqparent, name), m_userChange(false) TQSlider(o, parent, name), m_userChange(false)
{ {
connect(this, TQT_SIGNAL(sliderPressed()), this ,TQT_SLOT(slotSliderPressed())); connect(this, TQT_SIGNAL(sliderPressed()), this ,TQT_SLOT(slotSliderPressed()));
connect(this, TQT_SIGNAL(sliderReleased()), this, TQT_SLOT(slotSliderReleased())); connect(this, TQT_SIGNAL(sliderReleased()), this, TQT_SLOT(slotSliderReleased()));

@ -31,7 +31,7 @@ class PositionSlider : public TQSlider
TQ_OBJECT TQ_OBJECT
public: public:
PositionSlider(Qt::Orientation, TQWidget * tqparent = 0, const char* name = 0); PositionSlider(Qt::Orientation, TQWidget * parent = 0, const char* name = 0);
virtual ~PositionSlider(); virtual ~PositionSlider();
void setPosition(int, bool); void setPosition(int, bool);

@ -37,7 +37,7 @@
#include "postfilter.h" #include "postfilter.h"
PostFilter::PostFilter(const TQString& name, xine_t* engine, xine_audio_port_t* audioDriver, PostFilter::PostFilter(const TQString& name, xine_t* engine, xine_audio_port_t* audioDriver,
xine_video_port_t* videoDriver, TQWidget *tqparent) : TQObject(tqparent), m_data(NULL), m_groupBox(NULL) xine_video_port_t* videoDriver, TQWidget *parent) : TQObject(parent), m_data(NULL), m_groupBox(NULL)
{ {
m_filterName = name; m_filterName = name;
kdDebug() << "PostFilter: Create Postprocessing Filter: " << m_filterName << endl; kdDebug() << "PostFilter: Create Postprocessing Filter: " << m_filterName << endl;
@ -49,7 +49,7 @@ PostFilter::PostFilter(const TQString& name, xine_t* engine, xine_audio_port_t*
{ {
xine_post_in_t* inputAPI = NULL; xine_post_in_t* inputAPI = NULL;
m_groupBox = new TQGroupBox(name, tqparent); m_groupBox = new TQGroupBox(name, parent);
m_groupBox->tqsetSizePolicy(TQSizePolicy (TQSizePolicy::Minimum, TQSizePolicy::Fixed)); m_groupBox->tqsetSizePolicy(TQSizePolicy (TQSizePolicy::Minimum, TQSizePolicy::Fixed));
TQGridLayout* grid = new TQGridLayout(m_groupBox, 2, 2); TQGridLayout* grid = new TQGridLayout(m_groupBox, 2, 2);
grid->setMargin( 20 ); grid->setMargin( 20 );
@ -169,7 +169,7 @@ PostFilter::PostFilter(const TQString& name, xine_t* engine, xine_audio_port_t*
grid->addWidget(helpButton, row, 1); grid->addWidget(helpButton, row, 1);
} }
if (tqparent) if (parent)
m_groupBox->show(); m_groupBox->show();
} }
} }
@ -329,35 +329,35 @@ void PostFilter::setConfig(const TQString &configString)
} }
} }
PostFilterParameterInt::PostFilterParameterInt(const TQString& name, int offset, int value, int min, int max, TQWidget* tqparent) PostFilterParameterInt::PostFilterParameterInt(const TQString& name, int offset, int value, int min, int max, TQWidget* parent)
: PostFilterParameter (name, offset, tqparent ) : PostFilterParameter (name, offset, parent )
{ {
m_numInput = new KIntNumInput(value, tqparent); m_numInput = new KIntNumInput(value, parent);
m_numInput->setRange( min, max, 1, false); m_numInput->setRange( min, max, 1, false);
connect(m_numInput, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotIntValue(int))); connect(m_numInput, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotIntValue(int)));
} }
PostFilterParameterDouble::PostFilterParameterDouble(const TQString& name, int offset, double value, double min, double max, TQWidget* tqparent) PostFilterParameterDouble::PostFilterParameterDouble(const TQString& name, int offset, double value, double min, double max, TQWidget* parent)
: PostFilterParameter (name, offset, tqparent ) : PostFilterParameter (name, offset, parent )
{ {
m_numInput = new KDoubleNumInput(tqparent); m_numInput = new KDoubleNumInput(parent);
m_numInput->setValue(value); m_numInput->setValue(value);
m_numInput->setRange(min, max, 0.01, false); m_numInput->setRange(min, max, 0.01, false);
connect(m_numInput, TQT_SIGNAL(valueChanged( double)), this, TQT_SLOT(slotDoubleValue( double))); connect(m_numInput, TQT_SIGNAL(valueChanged( double)), this, TQT_SLOT(slotDoubleValue( double)));
} }
PostFilterParameterChar::PostFilterParameterChar(const TQString& name, int offset, char *value, int size, TQWidget* tqparent) PostFilterParameterChar::PostFilterParameterChar(const TQString& name, int offset, char *value, int size, TQWidget* parent)
: PostFilterParameter (name, offset, tqparent ) : PostFilterParameter (name, offset, parent )
{ {
m_charInput = new KLineEdit(value, tqparent); m_charInput = new KLineEdit(value, parent);
m_charInput->setMaxLength(size); m_charInput->setMaxLength(size);
connect(m_charInput, TQT_SIGNAL(returnPressed(const TQString&)), this, TQT_SLOT(slotCharValue(const TQString&))); connect(m_charInput, TQT_SIGNAL(returnPressed(const TQString&)), this, TQT_SLOT(slotCharValue(const TQString&)));
} }
PostFilterParameterCombo::PostFilterParameterCombo(const TQString& name, int offset, int value, char **enums, TQWidget* tqparent) PostFilterParameterCombo::PostFilterParameterCombo(const TQString& name, int offset, int value, char **enums, TQWidget* parent)
: PostFilterParameter (name, offset, tqparent) : PostFilterParameter (name, offset, parent)
{ {
m_comboBox = new KComboBox(tqparent); m_comboBox = new KComboBox(parent);
for (int i = 0; enums[i]; i++) for (int i = 0; enums[i]; i++)
{ {
m_comboBox->insertItem(enums[i]); m_comboBox->insertItem(enums[i]);
@ -366,16 +366,16 @@ PostFilterParameterCombo::PostFilterParameterCombo(const TQString& name, int off
connect(m_comboBox, TQT_SIGNAL( activated(int)), this, TQT_SLOT( slotIntValue(int))); connect(m_comboBox, TQT_SIGNAL( activated(int)), this, TQT_SLOT( slotIntValue(int)));
} }
PostFilterParameterBool::PostFilterParameterBool(const TQString& name, int offset, bool value, TQWidget* tqparent) PostFilterParameterBool::PostFilterParameterBool(const TQString& name, int offset, bool value, TQWidget* parent)
: PostFilterParameter (name, offset, tqparent ) : PostFilterParameter (name, offset, parent )
{ {
m_checkBox = new TQCheckBox(tqparent); m_checkBox = new TQCheckBox(parent);
m_checkBox->setChecked(value); m_checkBox->setChecked(value);
connect(m_checkBox, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotBoolValue( bool))); connect(m_checkBox, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotBoolValue( bool)));
} }
PostFilterHelp::PostFilterHelp(TQWidget *tqparent, const char *name, const TQString& text) PostFilterHelp::PostFilterHelp(TQWidget *parent, const char *name, const TQString& text)
: KDialogBase( tqparent, name, true, TQString(name) + " - " + i18n("Help"), KDialogBase::Close ) : KDialogBase( parent, name, true, TQString(name) + " - " + i18n("Help"), KDialogBase::Close )
{ {
setInitialSize( TQSize(500,500) ); setInitialSize( TQSize(500,500) );

@ -45,8 +45,8 @@ class PostFilterParameter : public TQObject
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
PostFilterParameter(const TQString& name, int offset, TQWidget* tqparent) PostFilterParameter(const TQString& name, int offset, TQWidget* parent)
: TQObject(tqparent, name.ascii()), m_offset(offset) : TQObject(parent, name.ascii()), m_offset(offset)
{} {}
~PostFilterParameter() {}; ~PostFilterParameter() {};
@ -64,7 +64,7 @@ class PostFilterParameterInt : public PostFilterParameter
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
PostFilterParameterInt(const TQString& name, int offset, int value, int min, int max, TQWidget* tqparent); PostFilterParameterInt(const TQString& name, int offset, int value, int min, int max, TQWidget* parent);
~PostFilterParameterInt() {}; ~PostFilterParameterInt() {};
void setValue( const TQString &value ) void setValue( const TQString &value )
@ -89,7 +89,7 @@ class PostFilterParameterDouble : public PostFilterParameter
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
PostFilterParameterDouble(const TQString& name, int offset, double value, double min, double max, TQWidget* tqparent); PostFilterParameterDouble(const TQString& name, int offset, double value, double min, double max, TQWidget* parent);
~PostFilterParameterDouble() {}; ~PostFilterParameterDouble() {};
void setValue( const TQString &value ) void setValue( const TQString &value )
@ -114,7 +114,7 @@ class PostFilterParameterChar : public PostFilterParameter
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
PostFilterParameterChar(const TQString& name, int offset, char *value, int size, TQWidget* tqparent); PostFilterParameterChar(const TQString& name, int offset, char *value, int size, TQWidget* parent);
~PostFilterParameterChar() {}; ~PostFilterParameterChar() {};
void setValue(const TQString &value) void setValue(const TQString &value)
@ -138,7 +138,7 @@ class PostFilterParameterCombo : public PostFilterParameter
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
PostFilterParameterCombo(const TQString& name, int offset, int value, char **enums, TQWidget* tqparent); PostFilterParameterCombo(const TQString& name, int offset, int value, char **enums, TQWidget* parent);
~PostFilterParameterCombo() {}; ~PostFilterParameterCombo() {};
void setValue(const TQString &value) { m_comboBox->setCurrentItem(value); slotIntValue(m_comboBox->currentItem()); } void setValue(const TQString &value) { m_comboBox->setCurrentItem(value); slotIntValue(m_comboBox->currentItem()); }
@ -161,7 +161,7 @@ class PostFilterParameterBool : public PostFilterParameter
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
PostFilterParameterBool(const TQString& name, int offset, bool value, TQWidget* tqparent); PostFilterParameterBool(const TQString& name, int offset, bool value, TQWidget* parent);
~PostFilterParameterBool() {}; ~PostFilterParameterBool() {};
void setValue(const TQString &value) void setValue(const TQString &value)
@ -186,7 +186,7 @@ class PostFilterHelp : public KDialogBase
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
PostFilterHelp(TQWidget *tqparent=0, const char *name=0, const TQString& text = TQString()); PostFilterHelp(TQWidget *parent=0, const char *name=0, const TQString& text = TQString());
~PostFilterHelp(); ~PostFilterHelp();
private: private:
@ -200,7 +200,7 @@ class PostFilter : public TQObject
TQ_OBJECT TQ_OBJECT
public: public:
PostFilter(const TQString& name, xine_t* engine, xine_audio_port_t* audioDriver, PostFilter(const TQString& name, xine_t* engine, xine_audio_port_t* audioDriver,
xine_video_port_t* videoDriver, TQWidget *tqparent); xine_video_port_t* videoDriver, TQWidget *parent);
~PostFilter(); ~PostFilter();
xine_post_in_t* getInput() const; xine_post_in_t* getInput() const;

@ -28,8 +28,8 @@
#include "screenshotpreview.moc" #include "screenshotpreview.moc"
ScreenshotPreview::ScreenshotPreview(const TQImage& img, TQWidget *tqparent, const char *name ) ScreenshotPreview::ScreenshotPreview(const TQImage& img, TQWidget *parent, const char *name )
: KPreviewWidgetBase(tqparent,name) : KPreviewWidgetBase(parent,name)
{ {
setMinimumWidth(200); setMinimumWidth(200);
m_previewImg = img.copy(); /* deep copy */ m_previewImg = img.copy(); /* deep copy */

@ -35,7 +35,7 @@ class ScreenshotPreview : public KPreviewWidgetBase
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ScreenshotPreview(const TQImage& img, TQWidget *tqparent=0, const char *name=0); ScreenshotPreview(const TQImage& img, TQWidget *parent=0, const char *name=0);
~ScreenshotPreview(); ~ScreenshotPreview();
public slots: public slots:

@ -31,10 +31,10 @@
VideoSettings::VideoSettings(int hue, int sat, int contrast, int bright, VideoSettings::VideoSettings(int hue, int sat, int contrast, int bright,
int avOffset, int spuOffset, TQWidget *tqparent, const char *name) int avOffset, int spuOffset, TQWidget *parent, const char *name)
: KDialogBase(KDialogBase::Plain, i18n("Video Settings"), KDialogBase::Default | KDialogBase::Close, KDialogBase::Close, tqparent, name, false) : KDialogBase(KDialogBase::Plain, i18n("Video Settings"), KDialogBase::Default | KDialogBase::Close, KDialogBase::Close, parent, name, false)
{ {
reparent(tqparent, pos(), false); reparent(parent, pos(), false);
setInitialSize(TQSize(450,250), true); setInitialSize(TQSize(450,250), true);
TQWidget* page = plainPage(); TQWidget* page = plainPage();

@ -37,7 +37,7 @@ class VideoSettings : public KDialogBase
public: public:
VideoSettings(int hue, int sat, int contrast, int bright, int avOffset, VideoSettings(int hue, int sat, int contrast, int bright, int avOffset,
int spuOffset, TQWidget *tqparent=0, const char *name=0); int spuOffset, TQWidget *parent=0, const char *name=0);
~VideoSettings(); ~VideoSettings();
signals: signals:

@ -66,9 +66,9 @@ typedef KParts::GenericFactory<XinePart> XinePartFactory;
K_EXPORT_COMPONENT_FACTORY (libxinepart, XinePartFactory) K_EXPORT_COMPONENT_FACTORY (libxinepart, XinePartFactory)
XinePart::XinePart(TQWidget* parentWidget, const char* widgetName, TQObject* tqparent, const char* name, const TQStringList& args) XinePart::XinePart(TQWidget* parentWidget, const char* widgetName, TQObject* parent, const char* name, const TQStringList& args)
: DCOPObject("XinePartIface"), : DCOPObject("XinePartIface"),
KaffeinePart(tqparent, name ? name : "XinePart"), KaffeinePart(parent, name ? name : "XinePart"),
m_current(0), m_xine(NULL), m_pictureSettings(NULL), m_deinterlacerConfigWidget(NULL), m_current(0), m_xine(NULL), m_pictureSettings(NULL), m_deinterlacerConfigWidget(NULL),
m_filterDialog(NULL), m_embeddedContext(NULL) m_filterDialog(NULL), m_embeddedContext(NULL)
{ {

@ -51,7 +51,7 @@
#define NON_EXPERT_OPTIONS NON_EXPERT_OPTIONS_NEW NON_EXPERT_OPTIONS_DEPRECATED #define NON_EXPERT_OPTIONS NON_EXPERT_OPTIONS_NEW NON_EXPERT_OPTIONS_DEPRECATED
XineConfigEntry::XineConfigEntry(TQWidget* tqparent, TQGridLayout* grid, int row, xine_cfg_entry_t* entry) : XineConfigEntry::XineConfigEntry(TQWidget* parent, TQGridLayout* grid, int row, xine_cfg_entry_t* entry) :
m_valueChanged(false), m_key(TQString(entry->key)), m_numValue(entry->num_value), m_valueChanged(false), m_key(TQString(entry->key)), m_numValue(entry->num_value),
m_numDefault(entry->num_default), m_stringValue(entry->str_value), m_stringDefault(entry->str_default), m_numDefault(entry->num_default), m_stringValue(entry->str_value), m_stringDefault(entry->str_default),
m_stringEdit(NULL), m_enumEdit(NULL), m_numEdit(NULL), m_boolEdit(NULL) m_stringEdit(NULL), m_enumEdit(NULL), m_numEdit(NULL), m_boolEdit(NULL)
@ -62,7 +62,7 @@ XineConfigEntry::XineConfigEntry(TQWidget* tqparent, TQGridLayout* grid, int row
break; break;
case XINE_CONFIG_TYPE_STRING: case XINE_CONFIG_TYPE_STRING:
{ {
m_stringEdit = new KLineEdit(entry->str_value, tqparent); m_stringEdit = new KLineEdit(entry->str_value, parent);
if (!strcmp(entry->str_value,entry->str_default)) if (!strcmp(entry->str_value,entry->str_default))
m_stringEdit->setPaletteForegroundColor(TQColor(darkMagenta)); m_stringEdit->setPaletteForegroundColor(TQColor(darkMagenta));
else else
@ -73,7 +73,7 @@ XineConfigEntry::XineConfigEntry(TQWidget* tqparent, TQGridLayout* grid, int row
} }
case XINE_CONFIG_TYPE_ENUM: case XINE_CONFIG_TYPE_ENUM:
{ {
m_enumEdit = new KComboBox(tqparent); m_enumEdit = new KComboBox(parent);
int i = 0; int i = 0;
while (entry->enum_values[i]) while (entry->enum_values[i])
{ {
@ -91,7 +91,7 @@ XineConfigEntry::XineConfigEntry(TQWidget* tqparent, TQGridLayout* grid, int row
} }
case XINE_CONFIG_TYPE_NUM: case XINE_CONFIG_TYPE_NUM:
{ {
m_numEdit = new TQSpinBox(-999999, 999999, 1, tqparent); m_numEdit = new TQSpinBox(-999999, 999999, 1, parent);
m_numEdit->setValue(entry->num_value); m_numEdit->setValue(entry->num_value);
if (entry->num_value == entry->num_default) if (entry->num_value == entry->num_default)
m_numEdit->setPaletteForegroundColor(TQColor(darkMagenta)); m_numEdit->setPaletteForegroundColor(TQColor(darkMagenta));
@ -103,7 +103,7 @@ XineConfigEntry::XineConfigEntry(TQWidget* tqparent, TQGridLayout* grid, int row
} }
case XINE_CONFIG_TYPE_RANGE: case XINE_CONFIG_TYPE_RANGE:
{ {
m_numEdit = new TQSpinBox(tqparent); m_numEdit = new TQSpinBox(parent);
m_numEdit->setValue(entry->num_value); m_numEdit->setValue(entry->num_value);
m_numEdit->setRange(entry->range_min, entry->range_max); m_numEdit->setRange(entry->range_min, entry->range_max);
if (entry->num_value == entry->num_default) if (entry->num_value == entry->num_default)
@ -116,7 +116,7 @@ XineConfigEntry::XineConfigEntry(TQWidget* tqparent, TQGridLayout* grid, int row
} }
case XINE_CONFIG_TYPE_BOOL: case XINE_CONFIG_TYPE_BOOL:
{ {
m_boolEdit = new TQCheckBox(tqparent); m_boolEdit = new TQCheckBox(parent);
m_boolEdit->setChecked(entry->num_value); m_boolEdit->setChecked(entry->num_value);
if (entry->num_value == entry->num_default) if (entry->num_value == entry->num_default)
m_boolEdit->setPaletteForegroundColor(TQColor(darkMagenta)); m_boolEdit->setPaletteForegroundColor(TQColor(darkMagenta));
@ -131,11 +131,11 @@ XineConfigEntry::XineConfigEntry(TQWidget* tqparent, TQGridLayout* grid, int row
TQString m_keyName(entry->key); TQString m_keyName(entry->key);
m_keyName.remove( 0, m_keyName.find(".") + 1 ); m_keyName.remove( 0, m_keyName.find(".") + 1 );
TQLabel* description = new TQLabel(m_keyName + "\n" + TQString::fromLocal8Bit(entry->description), tqparent); TQLabel* description = new TQLabel(m_keyName + "\n" + TQString::fromLocal8Bit(entry->description), parent);
description->tqsetAlignment( TQLabel::WordBreak | TQLabel::AlignVCenter ); description->tqsetAlignment( TQLabel::WordBreak | TQLabel::AlignVCenter );
grid->addWidget(description, row, 1); grid->addWidget(description, row, 1);
KSeparator* separator = new KSeparator(Qt::Horizontal, tqparent); KSeparator* separator = new KSeparator(Qt::Horizontal, parent);
grid->addMultiCellWidget(separator, row+1, row+1, 0, 1); grid->addMultiCellWidget(separator, row+1, row+1, 0, 1);
} }
@ -298,16 +298,16 @@ XineConfig::~XineConfig()
kdDebug() << "XineConfig: destructed" << endl; kdDebug() << "XineConfig: destructed" << endl;
} }
void XineConfig::createPage(const TQString& cat, bool expert, TQWidget* tqparent) void XineConfig::createPage(const TQString& cat, bool expert, TQWidget* parent)
{ {
xine_cfg_entry_t* ent; xine_cfg_entry_t* ent;
TQScrollView* sv = new TQScrollView(tqparent); TQScrollView* sv = new TQScrollView(parent);
sv->setResizePolicy(TQScrollView::AutoOneFit); sv->setResizePolicy(TQScrollView::AutoOneFit);
tqparent = new TQWidget(sv->viewport()); parent = new TQWidget(sv->viewport());
sv->addChild(tqparent); sv->addChild(parent);
TQGridLayout* grid = new TQGridLayout(tqparent, 20 ,2); TQGridLayout* grid = new TQGridLayout(parent, 20 ,2);
grid->setColStretch(1,8); grid->setColStretch(1,8);
grid->setSpacing(10); grid->setSpacing(10);
grid->setMargin(10); grid->setMargin(10);
@ -328,7 +328,7 @@ void XineConfig::createPage(const TQString& cat, bool expert, TQWidget* tqparent
if (((!expert) && (TQString(NON_EXPERT_OPTIONS).contains(ent->key))) || if (((!expert) && (TQString(NON_EXPERT_OPTIONS).contains(ent->key))) ||
((expert) && (!TQString(NON_EXPERT_OPTIONS).contains(ent->key)))) ((expert) && (!TQString(NON_EXPERT_OPTIONS).contains(ent->key))))
{ {
m_entries.append(new XineConfigEntry(tqparent, grid, row, ent)); m_entries.append(new XineConfigEntry(parent, grid, row, ent));
delete ent; delete ent;
ent = new xine_cfg_entry_t; ent = new xine_cfg_entry_t;
row += 2; row += 2;

@ -42,7 +42,7 @@ class XineConfigEntry : public TQHBox
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
XineConfigEntry(TQWidget* tqparent, TQGridLayout* grid, int row, xine_cfg_entry_t* entry); XineConfigEntry(TQWidget* parent, TQGridLayout* grid, int row, xine_cfg_entry_t* entry);
~XineConfigEntry(); ~XineConfigEntry();
bool valueChanged() const; /* was the value changed by user? */ bool valueChanged() const; /* was the value changed by user? */
@ -87,7 +87,7 @@ private slots:
void slotApplyPressed(); void slotApplyPressed();
private: private:
void createPage(const TQString& cat, bool expert, TQWidget* tqparent); void createPage(const TQString& cat, bool expert, TQWidget* parent);
const TQStringList getCategories(); const TQStringList getCategories();
private: private:

@ -40,7 +40,7 @@
MToolButton::MToolButton( TQWidget *tqparent, const TQString& targ ) : TQToolButton( tqparent ) MToolButton::MToolButton( TQWidget *parent, const TQString& targ ) : TQToolButton( parent )
{ {
target = targ; target = targ;
connect( this, TQT_SIGNAL(clicked()), TQT_SLOT(mClicked()) ); connect( this, TQT_SIGNAL(clicked()), TQT_SLOT(mClicked()) );
@ -57,7 +57,7 @@ void MToolButton::mClicked()
SLabel::SLabel( TQWidget *tqparent ) : TQLabel( tqparent ) SLabel::SLabel( TQWidget *parent ) : TQLabel( parent )
{ {
} }
@ -77,7 +77,7 @@ void SLabel::paintEvent( TQPaintEvent *pe )
StartWindow::StartWindow(TQWidget* tqparent, const char* name) : TQWidget(tqparent, name) StartWindow::StartWindow(TQWidget* parent, const char* name) : TQWidget(parent, name)
{ {
TQVBoxLayout* mainLayout = new TQVBoxLayout(this); TQVBoxLayout* mainLayout = new TQVBoxLayout(this);
mainLayout->setAutoAdd(true); mainLayout->setAutoAdd(true);

@ -37,7 +37,7 @@ class MToolButton : public TQToolButton
TQ_OBJECT TQ_OBJECT
public: public:
MToolButton( TQWidget *tqparent, const TQString& targ ); MToolButton( TQWidget *parent, const TQString& targ );
~MToolButton(); ~MToolButton();
TQString target; TQString target;
@ -57,7 +57,7 @@ class SLabel : public TQLabel
TQ_OBJECT TQ_OBJECT
public: public:
SLabel( TQWidget *tqparent ); SLabel( TQWidget *parent );
~SLabel() {} ~SLabel() {}
protected: protected:
@ -72,7 +72,7 @@ class StartWindow : public TQWidget
TQ_OBJECT TQ_OBJECT
public: public:
StartWindow( TQWidget *tqparent = 0, const char *name = 0 ); StartWindow( TQWidget *parent = 0, const char *name = 0 );
virtual ~StartWindow(); virtual ~StartWindow();
void registerTarget( const TQString& uiName, const TQString& pixName, const TQString& targetName ); void registerTarget( const TQString& uiName, const TQString& pixName, const TQString& targetName );

@ -52,7 +52,7 @@ protected:
} }
}; };
SystemTray::SystemTray(TQWidget *tqparent, const char *name ) : KSystemTray(tqparent,name) SystemTray::SystemTray(TQWidget *parent, const char *name ) : KSystemTray(parent,name)
{ {
kdDebug() << "SystemTray: Create System Tray" << endl; kdDebug() << "SystemTray: Create System Tray" << endl;

@ -41,7 +41,7 @@ class SystemTray : public KSystemTray {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
SystemTray(TQWidget *tqparent = 0, const char *name = 0); SystemTray(TQWidget *parent = 0, const char *name = 0);
virtual ~SystemTray(); virtual ~SystemTray();
void showTitle(const TQString&, uint secs = 5); void showTitle(const TQString&, uint secs = 5);

Loading…
Cancel
Save