Initial TQt conversion

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 8 years ago
parent 172761c982
commit 77a8a8f9df

File diff suppressed because it is too large Load Diff

@ -35,7 +35,7 @@ class KPlayerWorkspace;
class KStatusBarLabel;
class KToggleAction;
class KURL;
class QMenuData;
class TQMenuData;
#define MAIN_TOOLBAR 0
#define PLAYLIST_TOOLBAR 1
@ -66,7 +66,7 @@ class KPlayer : public KMainWindow
public:
/** Constructor. Parameters are passed to KMainWindow constructor. */
KPlayer (QWidget* parent=0, const char *name=0);
KPlayer (TQWidget* parent=0, const char *name=0);
/** Destructor. */
virtual ~KPlayer() { }
@ -100,7 +100,7 @@ public:
/** Starts playing a new file. */
void start (void);
/** Logs a message if logging of KPlayer messages is enabled. */
void log (QString);
void log (TQString);
/** Shows or hides the menu bar according to the current settings and updates the user interface. */
void showMenubar (void);
@ -122,9 +122,9 @@ public:
void showMessageLog (bool);
/** Calculates the size hint for the main window. */
//virtual QSize sizeHint (void) const;
//virtual TQSize sizeHint (void) const;
/** Calculates the minimum size hint for the main window. */
virtual QSize minimumSizeHint (void) const;
virtual TQSize minimumSizeHint (void) const;
/** Sets the minimum size of the main widget. */
virtual void setMinimumSize (int, int);
@ -135,20 +135,20 @@ public:
/** Changes to normal screen size. */
void toNormalScreen (void);
/** Replacement for broken QWidget::isMaximized. */
/** Replacement for broken TQWidget::isMaximized. */
bool isMaximized (void) const;
/** Replacement for broken QWidget::showMaximized. */
/** Replacement for broken TQWidget::showMaximized. */
virtual void showMaximized (void);
/** Calls base class implementation. */
virtual void showNormal (void);
protected:
/** Returns the total available geometry. */
QRect availableGeometry (void) const;
TQRect availableGeometry (void) const;
/** Resizes the main window in response to a zoom request. */
void do_zoom (void);
/** Moves the main window if it does not fit the available screen space. */
void do_move (const QRect& frame);
void do_move (const TQRect& frame);
/** Sets up actions and connects signals to slots. */
void initActions (void);
/** Sets up the status bar. */
@ -178,9 +178,9 @@ protected:
//void checkBarActions (void);
/** Enables or disables submenus of the given menu with the given name. */
void enableSubmenu (QMenuData* data, const QString& name, bool enable);
void enableSubmenu (TQMenuData* data, const TQString& name, bool enable);
/** Returns the top level popup menu at the given position. */
QPopupMenu* popupMenu (int index);
TQPopupMenu* popupMenu (int index);
/** Enables a toolbar.
* @param index the toolbar number
@ -192,27 +192,27 @@ protected:
void disableToolbar (int index);
/** Changes the statusbar contents for the standard label permanently, used to indicate current actions. */
void setStatusText (const QString&);
void setStatusText (const TQString&);
/** Processes the widget events. Passes them on to KMainWindow. */
//virtual bool event (QEvent*);
//virtual bool event (TQEvent*);
/** Sets the window geometry on the initial show event. */
virtual void showEvent (QShowEvent*);
virtual void showEvent (TQShowEvent*);
virtual void windowActivationChange (bool);
virtual void focusInEvent (QFocusEvent*);
virtual void focusOutEvent (QFocusEvent*);
virtual void focusInEvent (TQFocusEvent*);
virtual void focusOutEvent (TQFocusEvent*);
/** Handles main window movement. */
virtual void moveEvent (QMoveEvent*);
virtual void moveEvent (TQMoveEvent*);
/** Handles main window resizing. */
virtual void resizeEvent (QResizeEvent*);
virtual void resizeEvent (TQResizeEvent*);
/** Displays the right click popup menu. */
virtual void contextMenuEvent (QContextMenuEvent*);
virtual void contextMenuEvent (TQContextMenuEvent*);
/** Handles the drag enter event. */
virtual void dragEnterEvent (QDragEnterEvent*);
virtual void dragEnterEvent (TQDragEnterEvent*);
/** Handles the drop event. */
virtual void dropEvent (QDropEvent*);
virtual void dropEvent (TQDropEvent*);
/** Saves options and stops KPlayer engine. */
virtual void closeEvent (QCloseEvent*);
virtual void closeEvent (TQCloseEvent*);
/** Retrieves an action from the actionCollection by name. */
KAction* action (const char* name) const
@ -223,7 +223,7 @@ protected:
/** Rearranges child windows and clears events. */
void activateLayout (void);
/** Syncronizes X Server and Qt events. */
/** Syncronizes X Server and TQt events. */
//void syncronizeEvents (void);
/** The log window object. */
@ -241,8 +241,8 @@ protected:
bool m_set_display_size, m_initial_show, m_error_detected, m_maximized;
bool m_full_screen, m_show_log, m_show_library;
Toolbar m_toolbar [KPLAYER_TOOLBARS];
QSize m_previous_size, m_video_size;
QRect m_normal_geometry;
TQSize m_previous_size, m_video_size;
TQRect m_normal_geometry;
KStatusBarLabel *m_status_label, *m_state_label, *m_progress_label;
public slots:
@ -258,7 +258,7 @@ public slots:
void initialSize (void);
/** Enables or disables submenus with the given name. */
void enableSubmenu (const QString& name, bool enable);
void enableSubmenu (const TQString& name, bool enable);
/** Shows the message log if there have been errors. */
void statusPressed (void);
@ -314,14 +314,14 @@ public slots:
void helpReportBug (void);
/** Changes the statusbar test temporarily, used to display a hint on the currently highlighted action. */
void setStatusMessage (const QString&);
void setStatusMessage (const TQString&);
/** Clears the temporary statusbar text when the action is no longer highlighted. */
void clearStatusMessage (void);
/** Handles bar orientation change event. */
//void barOrientationChanged (Orientation);
/** Handles bar place change event. */
//void barPlaceChanged (QDockWindow::Place);
//void barPlaceChanged (TQDockWindow::Place);
/** Handles bar visibility change event. */
//void barVisibilityChanged (bool);
@ -335,7 +335,7 @@ protected slots:
/** Receives the sizeAvailable signal from KPlayerProcess. */
void playerSizeAvailable (void);
/** Receives the messageReceived signal from KPlayerProcess. */
void playerMessageReceived (QString);
void playerMessageReceived (TQString);
/** Receives the errorDetected signal from KPlayerProcess. */
void playerErrorDetected (void);
/** Receives the windowHidden signal from KPlayerLogWindow. Updates the menu item. */
@ -359,7 +359,7 @@ protected slots:
void libraryActionListUpdated (KPlayerActionList* list);
/** Displays the right click popup menu at the given position. */
void contextMenu (const QPoint& global_position);
void contextMenu (const TQPoint& global_position);
};
/** The KPlayer application class.
@ -379,9 +379,9 @@ public:
virtual int newInstance (void);
/** Remembers the shift key state. */
virtual bool notify (QObject*, QEvent*);
virtual bool notify (TQObject*, TQEvent*);
//int x11ClientMessage (QWidget* widget, XEvent* event, bool passive_only);
//int x11ClientMessage (TQWidget* widget, XEvent* event, bool passive_only);
};
#endif

@ -15,8 +15,8 @@
#include <kaction.h>
#include <klocale.h>
#include <qpopupmenu.h>
#include <qregexp.h>
#include <tqpopupmenu.h>
#include <tqregexp.h>
#ifdef DEBUG
#include <kdebug.h>
@ -28,9 +28,9 @@ kdbgstream kdDebugTime (void);
#include "kplayeractionlist.moc"
#include "kplayerproperties.h"
KPlayerActionList::KPlayerActionList (const QString& text, const QString& status,
const QString& whatsthis, QObject* parent, const char* name)
: QObject (parent, name), m_text (text), m_status (status), m_whatsthis (whatsthis)
KPlayerActionList::KPlayerActionList (const TQString& text, const TQString& status,
const TQString& whatsthis, TQObject* parent, const char* name)
: TQObject (parent, name), m_text (text), m_status (status), m_whatsthis (whatsthis)
{
#ifdef DEBUG_KPLAYER_ACTIONLIST
kdDebugTime() << "Creating action list\n";
@ -65,20 +65,20 @@ void KPlayerActionList::plug (void)
#endif
for ( i = 0; i < count; i ++ )
{
QWidget* container = action -> container (i);
TQWidget* container = action -> container (i);
#ifdef DEBUG_KPLAYER_ACTIONLIST
kdDebugTime() << " Container " << container -> className() << " " << container -> name ("<unnamed>") << "\n";
#endif
if ( container -> inherits ("QPopupMenu") )
if ( container -> inherits ("TQPopupMenu") )
{
QPopupMenu* menu = (QPopupMenu*) container;
TQPopupMenu* menu = (TQPopupMenu*) container;
int index = menu -> indexOf (action -> itemId (i));
#ifdef DEBUG_KPLAYER_ACTIONLIST
kdDebugTime() << " Index " << index << "\n";
#endif
if ( index > 0 )
{
QMenuItem* item = menu -> findItem (menu -> idAt (index - 1));
TQMenuItem* item = menu -> findItem (menu -> idAt (index - 1));
if ( ! item || ! item -> isSeparator() )
menu -> insertSeparator (index);
}
@ -91,20 +91,20 @@ void KPlayerActionList::plug (void)
#endif
for ( i = 0; i < count; i ++ )
{
QWidget* container = action -> container (i);
TQWidget* container = action -> container (i);
#ifdef DEBUG_KPLAYER_ACTIONLIST
kdDebugTime() << " Container " << container -> className() << " " << container -> name ("<unnamed>") << "\n";
#endif
if ( container -> inherits ("QPopupMenu") )
if ( container -> inherits ("TQPopupMenu") )
{
QPopupMenu* menu = (QPopupMenu*) container;
TQPopupMenu* menu = (TQPopupMenu*) container;
int index = menu -> indexOf (action -> itemId (i)) + 1;
#ifdef DEBUG_KPLAYER_ACTIONLIST
kdDebugTime() << " Index " << index << "\n";
#endif
if ( index > 0 && index < int (menu -> count()) )
{
QMenuItem* item = menu -> findItem (menu -> idAt (index));
TQMenuItem* item = menu -> findItem (menu -> idAt (index));
if ( ! item || ! item -> isSeparator() )
menu -> insertSeparator (index);
}
@ -131,20 +131,20 @@ void KPlayerActionList::unplug (void)
#endif
for ( i = 0; i < count; i ++ )
{
QWidget* container = action -> container (i);
TQWidget* container = action -> container (i);
#ifdef DEBUG_KPLAYER_ACTIONLIST
kdDebugTime() << " Container " << container -> className() << " " << container -> name ("<unnamed>") << "\n";
#endif
if ( container -> inherits ("QPopupMenu") )
if ( container -> inherits ("TQPopupMenu") )
{
QPopupMenu* menu = (QPopupMenu*) container;
TQPopupMenu* menu = (TQPopupMenu*) container;
int index = menu -> indexOf (action -> itemId (i));
#ifdef DEBUG_KPLAYER_ACTIONLIST
kdDebugTime() << " Index " << index << "\n";
#endif
if ( index > 0 )
{
QMenuItem* item = menu -> findItem (menu -> idAt (index - 1));
TQMenuItem* item = menu -> findItem (menu -> idAt (index - 1));
if ( ! item || item -> isSeparator() )
menu -> removeItemAt (index - 1);
}
@ -157,20 +157,20 @@ void KPlayerActionList::unplug (void)
#endif
for ( i = 0; i < count; i ++ )
{
QWidget* container = action -> container (i);
TQWidget* container = action -> container (i);
#ifdef DEBUG_KPLAYER_ACTIONLIST
kdDebugTime() << " Container " << container -> className() << " " << container -> name ("<unnamed>") << "\n";
#endif
if ( container -> inherits ("QPopupMenu") )
if ( container -> inherits ("TQPopupMenu") )
{
QPopupMenu* menu = (QPopupMenu*) container;
TQPopupMenu* menu = (TQPopupMenu*) container;
int index = menu -> indexOf (action -> itemId (i)) + 1;
#ifdef DEBUG_KPLAYER_ACTIONLIST
kdDebugTime() << " Index " << index << "\n";
#endif
if ( index > 0 && index < int (menu -> count()) )
{
QMenuItem* item = menu -> findItem (menu -> idAt (index));
TQMenuItem* item = menu -> findItem (menu -> idAt (index));
if ( ! item || item -> isSeparator() )
menu -> removeItemAt (index);
}
@ -183,7 +183,7 @@ void KPlayerActionList::unplug (void)
void KPlayerActionList::updateAction (KAction* action)
{
QString text (action -> text());
TQString text (action -> text());
action -> setStatusText (m_status.arg (text));
action -> setWhatsThis (m_whatsthis.arg (text));
text = m_text.arg (text);
@ -203,7 +203,7 @@ void KPlayerActionList::actionActivated (void)
kdDebugTime() << " Name " << action -> text() << "\n";
#endif
int index = 0;
QPtrListIterator<KAction> iterator (actions());
TQPtrListIterator<KAction> iterator (actions());
while ( iterator.current() )
{
if ( iterator.current() == action )
@ -226,8 +226,8 @@ void KPlayerActionList::actionActivated (KAction*, int index)
emit activated (index);
}
KPlayerSimpleActionList::KPlayerSimpleActionList (const QStringList& names, const QString& text,
const QString& status, const QString& whatsthis, QObject* parent, const char* name)
KPlayerSimpleActionList::KPlayerSimpleActionList (const TQStringList& names, const TQString& text,
const TQString& status, const TQString& whatsthis, TQObject* parent, const char* name)
: KPlayerActionList (text, status, whatsthis, parent, name), m_names (names)
{
#ifdef DEBUG_KPLAYER_ACTIONLIST
@ -248,7 +248,7 @@ void KPlayerSimpleActionList::update (void)
kdDebugTime() << "KPlayerSimpleActionList::update\n";
#endif
unplug();
QStringList::ConstIterator iterator (m_names.constBegin());
TQStringList::ConstIterator iterator (m_names.constBegin());
while ( iterator != m_names.constEnd() )
{
KAction* action = new KAction (*iterator, 0, this, SLOT(actionActivated()), this);
@ -261,9 +261,9 @@ void KPlayerSimpleActionList::update (void)
void KPlayerSimpleActionList::updateAction (KAction* action)
{
QString text (action -> text());
TQString text (action -> text());
KPlayerPropertyInfo* info = KPlayerMedia::info (text);
QString caption (info -> caption());
TQString caption (info -> caption());
if ( caption.isEmpty() )
caption = i18n(text.utf8());
action -> setStatusText (m_status.arg (caption));
@ -273,9 +273,9 @@ void KPlayerSimpleActionList::updateAction (KAction* action)
action -> setText (caption);
}
KPlayerToggleActionList::KPlayerToggleActionList (const QStringList& names, const QMap<QString, bool>& states,
const QString& ontext, const QString& offtext, const QString& onstatus, const QString& offstatus,
const QString& onwhatsthis, const QString& offwhatsthis, QObject* parent, const char* name)
KPlayerToggleActionList::KPlayerToggleActionList (const TQStringList& names, const TQMap<TQString, bool>& states,
const TQString& ontext, const TQString& offtext, const TQString& onstatus, const TQString& offstatus,
const TQString& onwhatsthis, const TQString& offwhatsthis, TQObject* parent, const char* name)
: KPlayerSimpleActionList (names, offtext, offstatus, offwhatsthis, parent, name),
m_states (states), m_on_text (ontext), m_on_status (onstatus), m_on_whatsthis (onwhatsthis)
{
@ -293,9 +293,9 @@ KPlayerToggleActionList::~KPlayerToggleActionList()
void KPlayerToggleActionList::updateAction (KAction* action)
{
QString text (action -> text());
TQString text (action -> text());
KPlayerPropertyInfo* info = KPlayerMedia::info (text);
QString caption (info -> caption());
TQString caption (info -> caption());
if ( caption.isEmpty() )
caption = i18n(text.utf8());
bool on = m_states [text];
@ -317,15 +317,15 @@ void KPlayerToggleActionList::actionActivated (KAction* action, int index)
updateAction (action);
}
QString languageName (int id, QString language)
TQString languageName (int id, TQString language)
{
static const QString middle ("|ave|bam|ben|bih|bos|ces|che|chu|chv|div|epo|est|ewe|fao|fij|fry|glv|grn|hat|hmo|ido|iku|ile|ina|ind|ipk|jav|kal|kan|kas|khm|lao|lav|lin|lit|lug|mah|mal|mri|mar|mlg|mlt|mon|mri|nav|nob|orm|pli|pol|pus|run|sag|slk|sme|snd|sot|tat|tgl|tsn|tuk|tur|uig|zha|");
static const QString right ("|aar|abk|afr|aka|amh|ara|asm|ava|aym|aze|bak|bel|bis|bod|bre|cat|cha|cos|cre|cym|dan|deu|dzo|ell|eng|eus|fas|fin|fra|fre|glg|guj|hau|heb|hin|hrv|hun|hye|iii|isl|ita|kat|kik|kor|kur|lat|lim|lub|mkd|mol|msa|mya|nau|nde|nep|nld|nno|nor|nya|oci|oji|ori|oss|pan|que|ron|rus|san|srp|sin|slv|smo|sna|som|sqi|srp|ssw|sun|swa|tam|tel|tgk|tha|tir|ton|tso|twi|ukr|urd|uzb|ven|vie|vol|wol|xho|yid|yor|zho|zul|");
static const QString other ("|alb|sq|arg|an|arm|hy|baq|eu|bul|bg|bur|my|cze|cs|chi|zh|cor|kw|wel|cy|ger|de|dut|nl|gre|el|per|fa|ful|ff|geo|ka|gla|gd|gle|ga|her|hz|scr|hr|ibo|ig|ice|is|jpn|ja|kau|kr|kaz|kk|kin|rw|kir|ky|kom|kv|kon|kg|kua|kj|ltz|lb|mac|mk|mao|mi|may|ms|nbl|nr|ndo|ng|por|pt|roh|rm|rum|ro|scc|sr|slo|sk|spa|es|srd|sc|swe|sv|tah|ty|tib|bo|wln|wa");
static QRegExp re_lang_code ("^([^\\[]+)\\[([^\\]]+)\\]");
static const TQString middle ("|ave|bam|ben|bih|bos|ces|che|chu|chv|div|epo|est|ewe|fao|fij|fry|glv|grn|hat|hmo|ido|iku|ile|ina|ind|ipk|jav|kal|kan|kas|khm|lao|lav|lin|lit|lug|mah|mal|mri|mar|mlg|mlt|mon|mri|nav|nob|orm|pli|pol|pus|run|sag|slk|sme|snd|sot|tat|tgl|tsn|tuk|tur|uig|zha|");
static const TQString right ("|aar|abk|afr|aka|amh|ara|asm|ava|aym|aze|bak|bel|bis|bod|bre|cat|cha|cos|cre|cym|dan|deu|dzo|ell|eng|eus|fas|fin|fra|fre|glg|guj|hau|heb|hin|hrv|hun|hye|iii|isl|ita|kat|kik|kor|kur|lat|lim|lub|mkd|mol|msa|mya|nau|nde|nep|nld|nno|nor|nya|oci|oji|ori|oss|pan|que|ron|rus|san|srp|sin|slv|smo|sna|som|sqi|srp|ssw|sun|swa|tam|tel|tgk|tha|tir|ton|tso|twi|ukr|urd|uzb|ven|vie|vol|wol|xho|yid|yor|zho|zul|");
static const TQString other ("|alb|sq|arg|an|arm|hy|baq|eu|bul|bg|bur|my|cze|cs|chi|zh|cor|kw|wel|cy|ger|de|dut|nl|gre|el|per|fa|ful|ff|geo|ka|gla|gd|gle|ga|her|hz|scr|hr|ibo|ig|ice|is|jpn|ja|kau|kr|kaz|kk|kin|rw|kir|ky|kom|kv|kon|kg|kua|kj|ltz|lb|mac|mk|mao|mi|may|ms|nbl|nr|ndo|ng|por|pt|roh|rm|rum|ro|scc|sr|slo|sk|spa|es|srd|sc|swe|sv|tah|ty|tib|bo|wln|wa");
static TQRegExp re_lang_code ("^([^\\[]+)\\[([^\\]]+)\\]");
if ( language.length() < 2 )
return i18n("Track %1").arg (id);
QString name;
TQString name;
if ( re_lang_code.search (language) >= 0 )
{
name = re_lang_code.cap(2).simplifyWhiteSpace();
@ -335,7 +335,7 @@ QString languageName (int id, QString language)
}
if ( language.length() == 3 )
{
QString code ('|' + language + '|');
TQString code ('|' + language + '|');
if ( middle.find (code, 0, false) >= 0 )
language.remove (1, 1);
else if ( right.find (code, 0, false) >= 0 )
@ -347,7 +347,7 @@ QString languageName (int id, QString language)
language = other.mid (index + 5, 2);
}
}
QString locname (KGlobal::locale() -> twoAlphaToLanguageName (language));
TQString locname (KGlobal::locale() -> twoAlphaToLanguageName (language));
if ( locname.isEmpty() )
{
if ( language == "no" )
@ -359,8 +359,8 @@ QString languageName (int id, QString language)
return locname;
}
KPlayerTrackActionList::KPlayerTrackActionList (const QString& text, const QString& status,
const QString& whatsthis, QObject* parent, const char* name)
KPlayerTrackActionList::KPlayerTrackActionList (const TQString& text, const TQString& status,
const TQString& whatsthis, TQObject* parent, const char* name)
: KPlayerActionList (text, status, whatsthis, parent, name)
{
#ifdef DEBUG_KPLAYER_ACTIONLIST
@ -375,12 +375,12 @@ KPlayerTrackActionList::~KPlayerTrackActionList()
#endif
}
void KPlayerTrackActionList::addActions (const QMap<int, QString>& ids, int id)
void KPlayerTrackActionList::addActions (const TQMap<int, TQString>& ids, int id)
{
QMap<int, QString>::ConstIterator iterator (ids.constBegin()), end (ids.constEnd());
TQMap<int, TQString>::ConstIterator iterator (ids.constBegin()), end (ids.constEnd());
while ( iterator != end )
{
QString text (languageName (iterator.key(), iterator.data()));
TQString text (languageName (iterator.key(), iterator.data()));
#ifdef DEBUG_KPLAYER_ACTIONLIST
kdDebugTime() << " Stream " << iterator.key() << " " << iterator.data() << " " << text << "\n";
#endif
@ -394,7 +394,7 @@ void KPlayerTrackActionList::addActions (const QMap<int, QString>& ids, int id)
}
}
void KPlayerTrackActionList::update (const QMap<int, QString>& ids, int id)
void KPlayerTrackActionList::update (const TQMap<int, TQString>& ids, int id)
{
unplug();
if ( ids.count() > 1 )
@ -411,8 +411,8 @@ void KPlayerTrackActionList::actionActivated (KAction* action, int index)
KPlayerActionList::actionActivated (action, ((KToggleAction*) action) -> isChecked() ? index : -1);
}
KPlayerSubtitleTrackActionList::KPlayerSubtitleTrackActionList (const QString& text, const QString& status,
const QString& whatsthis, QObject* parent, const char* name)
KPlayerSubtitleTrackActionList::KPlayerSubtitleTrackActionList (const TQString& text, const TQString& status,
const TQString& whatsthis, TQObject* parent, const char* name)
: KPlayerTrackActionList (text, status, whatsthis, parent, name)
{
#ifdef DEBUG_KPLAYER_ACTIONLIST
@ -427,8 +427,8 @@ KPlayerSubtitleTrackActionList::~KPlayerSubtitleTrackActionList()
#endif
}
void KPlayerSubtitleTrackActionList::update (bool show, const QMap<int, QString>& sids, int sid,
const QMap<int, QString>& vsids, int vsid, QStringList files, const QString& vobsub, const QString& current)
void KPlayerSubtitleTrackActionList::update (bool show, const TQMap<int, TQString>& sids, int sid,
const TQMap<int, TQString>& vsids, int vsid, TQStringList files, const TQString& vobsub, const TQString& current)
{
unplug();
if ( sids.count() > 0 || vsids.count() > 0 || files.count() > 0 )
@ -444,10 +444,10 @@ void KPlayerSubtitleTrackActionList::update (bool show, const QMap<int, QString>
addActions (vsids, vsid);
if ( vsids.isEmpty() )
files << vobsub;
QStringList::ConstIterator iterator (files.constBegin()), end (files.constEnd());
TQStringList::ConstIterator iterator (files.constBegin()), end (files.constEnd());
while ( iterator != end )
{
QString text ((*iterator).section ('/', -1, -1));
TQString text ((*iterator).section ('/', -1, -1));
#ifdef DEBUG_KPLAYER_ACTIONLIST
kdDebugTime() << " Subtitle file '" << text << "' " << *iterator << "\n";
#endif

@ -16,27 +16,27 @@
#ifndef KPLAYERACTIONLIST_H
#define KPLAYERACTIONLIST_H
#include <qobject.h>
#include <qptrlist.h>
#include <tqobject.h>
#include <tqptrlist.h>
class KAction;
/**Action list.
*@author kiriuja
*/
class KPlayerActionList : public QObject
class KPlayerActionList : public TQObject
{
Q_OBJECT
public:
/** Constructor. */
KPlayerActionList (const QString& text, const QString& status,
const QString& whatsthis, QObject* parent, const char* name);
KPlayerActionList (const TQString& text, const TQString& status,
const TQString& whatsthis, TQObject* parent, const char* name);
/** Destructor. */
virtual ~KPlayerActionList();
/** Returns the list of actions. */
const QPtrList<KAction>& actions (void) const
const TQPtrList<KAction>& actions (void) const
{ return m_actions; }
/** Returns the number of actions on the list. */
int count (void) const
@ -68,13 +68,13 @@ protected:
virtual void actionActivated (KAction* action, int index);
/** Action text template. */
QString m_text;
TQString m_text;
/** Action status text template. */
QString m_status;
TQString m_status;
/** Action whats this text template. */
QString m_whatsthis;
TQString m_whatsthis;
/** Action list. */
QPtrList<KAction> m_actions;
TQPtrList<KAction> m_actions;
};
/**Simple action list.
@ -86,8 +86,8 @@ class KPlayerSimpleActionList : public KPlayerActionList
public:
/** Constructor. */
KPlayerSimpleActionList (const QStringList& names, const QString& text, const QString& status,
const QString& whatsthis, QObject* parent, const char* name);
KPlayerSimpleActionList (const TQStringList& names, const TQString& text, const TQString& status,
const TQString& whatsthis, TQObject* parent, const char* name);
/** Destructor. */
virtual ~KPlayerSimpleActionList();
@ -99,7 +99,7 @@ protected:
virtual void updateAction (KAction* action);
/** Action names. */
const QStringList& m_names;
const TQStringList& m_names;
};
/**Toggle action list.
@ -111,9 +111,9 @@ class KPlayerToggleActionList : public KPlayerSimpleActionList
public:
/** Constructor. */
KPlayerToggleActionList (const QStringList& names, const QMap<QString, bool>& states,
const QString& ontext, const QString& offtext, const QString& onstatus, const QString& offstatus,
const QString& onwhatsthis, const QString& offwhatsthis, QObject* parent, const char* name);
KPlayerToggleActionList (const TQStringList& names, const TQMap<TQString, bool>& states,
const TQString& ontext, const TQString& offtext, const TQString& onstatus, const TQString& offstatus,
const TQString& onwhatsthis, const TQString& offwhatsthis, TQObject* parent, const char* name);
/** Destructor. */
virtual ~KPlayerToggleActionList();
@ -124,13 +124,13 @@ protected:
virtual void actionActivated (KAction* action, int index);
/** Action states. */
const QMap<QString, bool>& m_states;
const TQMap<TQString, bool>& m_states;
/** Action on text template. */
QString m_on_text;
TQString m_on_text;
/** Action on status text template. */
QString m_on_status;
TQString m_on_status;
/** Action on whats this text template. */
QString m_on_whatsthis;
TQString m_on_whatsthis;
};
/**Track action list.
@ -142,17 +142,17 @@ class KPlayerTrackActionList : public KPlayerActionList
public:
/** Constructor. */
KPlayerTrackActionList (const QString& text, const QString& status,
const QString& whatsthis, QObject* parent, const char* name);
KPlayerTrackActionList (const TQString& text, const TQString& status,
const TQString& whatsthis, TQObject* parent, const char* name);
/** Destructor. */
virtual ~KPlayerTrackActionList();
/** Updates the track action list. */
void update (const QMap<int, QString>& ids, int id);
void update (const TQMap<int, TQString>& ids, int id);
protected:
/** Adds actions for the given IDs to the list. */
void addActions (const QMap<int, QString>& ids, int id);
void addActions (const TQMap<int, TQString>& ids, int id);
/** Selects the track with the given index by emitting the activated signal. */
virtual void actionActivated (KAction* action, int index);
@ -167,14 +167,14 @@ class KPlayerSubtitleTrackActionList : public KPlayerTrackActionList
public:
/** Constructor. */
KPlayerSubtitleTrackActionList (const QString& text, const QString& status,
const QString& whatsthis, QObject* parent, const char* name);
KPlayerSubtitleTrackActionList (const TQString& text, const TQString& status,
const TQString& whatsthis, TQObject* parent, const char* name);
/** Destructor. */
virtual ~KPlayerSubtitleTrackActionList();
/** Updates the track action list. */
void update (bool show, const QMap<int, QString>& sids, int sid, const QMap<int, QString>& vsids,
int vsid, QStringList files, const QString& vobsub, const QString& current);
void update (bool show, const TQMap<int, TQString>& sids, int sid, const TQMap<int, TQString>& vsids,
int vsid, TQStringList files, const TQString& vobsub, const TQString& current);
protected:
/** Selects the track with the given index by emitting the activated signal. */

@ -21,9 +21,9 @@
#include <krecentdocument.h>
#include <kurlrequester.h>
#include <kurlrequesterdlg.h>
#include <qdatetime.h>
#include <qpopupmenu.h>
#include <qregexp.h>
#include <tqdatetime.h>
#include <tqpopupmenu.h>
#include <tqregexp.h>
#ifdef DEBUG
#define DEBUG_KPLAYER_ENGINE
@ -39,30 +39,30 @@
KPlayerEngine* KPlayerEngine::m_engine = 0;
static QRegExp re_extension ("\\.[^/.]+$");
static QRegExp re_driver ("^\\s+([A-Za-z0-9]+)\\s+(\\S.*)");
static QRegExp re_codec ("^([A-Za-z0-9]+)\\s+\\S+\\s+\\S+\\s+(\\S.*)");
static QRegExp re_demuxer ("^\\s*([A-Za-z0-9]+)\\s+\\d+\\s+(\\S.*)");
static QRegExp re_multiple ("\\s+"), re_trailing (" $");
static QRegExp re_brackets (" ?\\[.*\\]"), re_parentheses (" ?\\((?:..+|\\?)\\)");
static QRegExp re_audio ("[- ](?:audio[- ])?(?:decoder|codec|output|out)s?", false);
static QRegExp re_video ("[- ](?:video[- ])?(?:decoder|codec|output|out)s?", false);
static QRegExp re_s ("'s", false), re_layer ("layer-", false);
static QRegExp re_dash (" - ", false);
static QRegExp re_writer (" writer", false);
static QRegExp re_demux (" demuxer", false);
static QRegExp re_sega (" for Sega Saturn CD-ROM games", false);
static QRegExp re_smjpeg ("smjpeg", false);
static QRegExp re_tv_card ("Tv card", false);
static QRegExp re_lmlm (" Compression Card stream", false);
static QRegExp re_xv ("/XV$", false), re_vidix (" \\(VIDIX\\)", false);
static QRegExp re_xover ("General X11 driver for overlay capable video output drivers", false);
static QRegExp re_opengl ("\\(OpenGL\\)", false);
static QRegExp re_matrox ("Matrox .* overlay in", false);
static QRegExp re_matroxg (" G200/G400/G450/G550", false);
static QRegExp re_macintosh ("Macintosh Audio Compression and Expansion", false);
static QRegExp re_amu ("Avid Meridien Uncompressed", false);
static QRegExp re_speech ("Windows Media Audio 9 Speech", false);
static TQRegExp re_extension ("\\.[^/.]+$");
static TQRegExp re_driver ("^\\s+([A-Za-z0-9]+)\\s+(\\S.*)");
static TQRegExp re_codec ("^([A-Za-z0-9]+)\\s+\\S+\\s+\\S+\\s+(\\S.*)");
static TQRegExp re_demuxer ("^\\s*([A-Za-z0-9]+)\\s+\\d+\\s+(\\S.*)");
static TQRegExp re_multiple ("\\s+"), re_trailing (" $");
static TQRegExp re_brackets (" ?\\[.*\\]"), re_parentheses (" ?\\((?:..+|\\?)\\)");
static TQRegExp re_audio ("[- ](?:audio[- ])?(?:decoder|codec|output|out)s?", false);
static TQRegExp re_video ("[- ](?:video[- ])?(?:decoder|codec|output|out)s?", false);
static TQRegExp re_s ("'s", false), re_layer ("layer-", false);
static TQRegExp re_dash (" - ", false);
static TQRegExp re_writer (" writer", false);
static TQRegExp re_demux (" demuxer", false);
static TQRegExp re_sega (" for Sega Saturn CD-ROM games", false);
static TQRegExp re_smjpeg ("smjpeg", false);
static TQRegExp re_tv_card ("Tv card", false);
static TQRegExp re_lmlm (" Compression Card stream", false);
static TQRegExp re_xv ("/XV$", false), re_vidix (" \\(VIDIX\\)", false);
static TQRegExp re_xover ("General X11 driver for overlay capable video output drivers", false);
static TQRegExp re_opengl ("\\(OpenGL\\)", false);
static TQRegExp re_matrox ("Matrox .* overlay in", false);
static TQRegExp re_matroxg (" G200/G400/G450/G550", false);
static TQRegExp re_macintosh ("Macintosh Audio Compression and Expansion", false);
static TQRegExp re_amu ("Avid Meridien Uncompressed", false);
static TQRegExp re_speech ("Windows Media Audio 9 Speech", false);
void KPlayerWindowStateChanged (uint wid)
{
@ -70,11 +70,11 @@ void KPlayerWindowStateChanged (uint wid)
kPlayerEngine() -> emitWindowStateChanged (wid);
}
int listIndex (const QStringList& sl, const QString& str)
int listIndex (const TQStringList& sl, const TQString& str)
{
QString entry, stru (str.upper()), strusc (stru + ":");
TQString entry, stru (str.upper()), strusc (stru + ":");
int index = 0;
for ( QStringList::ConstIterator sli = sl.begin(); sli != sl.end(); ++ sli )
for ( TQStringList::ConstIterator sli = sl.begin(); sli != sl.end(); ++ sli )
{
entry = (*sli).upper();
if ( entry == stru || entry.startsWith (strusc) )
@ -84,13 +84,13 @@ int listIndex (const QStringList& sl, const QString& str)
return -1;
}
KPlayerFileDialog::KPlayerFileDialog (const QString& dir, const QString& filter, QWidget* parent, const char* name)
KPlayerFileDialog::KPlayerFileDialog (const TQString& dir, const TQString& filter, TQWidget* parent, const char* name)
: KFileDialog (dir, filter, parent ? parent : kPlayerWidget(), name, true)
{
ops -> clearHistory();
}
KPlayerEngine::KPlayerEngine (KActionCollection* ac, QWidget* parent, const char* name, KConfig* config)
KPlayerEngine::KPlayerEngine (KActionCollection* ac, TQWidget* parent, const char* name, KConfig* config)
{
#ifdef DEBUG_KPLAYER_ENGINE
kdDebugTime() << "Creating engine\n";
@ -131,8 +131,8 @@ KPlayerEngine::KPlayerEngine (KActionCollection* ac, QWidget* parent, const char
m_audio_codecs
<< "wma9dmo: Windows Media Audio 9 DMO"
<< "wmadmo: Windows Media Audio DMO"
<< "qdmc: Quicktime QDMC/QDM2"
<< "qclp: Quicktime QCLP"
<< "qdmc: Quicktime TQDMC/TQDM2"
<< "qclp: Quicktime TQCLP"
<< "qtmace3: Quicktime MACE3"
<< "qtmace6: Quicktime MACE6"
<< "racook: RealAudio COOK"
@ -327,7 +327,7 @@ KPlayerEngine::KPlayerEngine (KActionCollection* ac, QWidget* parent, const char
<< "alaris: Alaris VideoGramPiX"
<< "vcr1: ATI VCR-1"
<< "pim1: Pinnacle Hardware MPEG1"
<< "qpeg: Q-Team QPEG"
<< "qpeg: Q-Team TQPEG"
<< "rricm: rricm"
<< "camtasia: TechSmith Camtasia Screen"
<< "rawrgb32: RAW RGB32"
@ -402,23 +402,23 @@ KPlayerEngine::~KPlayerEngine()
delete process();
if ( meta() )
{
QStringList groups (meta() -> groupList());
TQStringList groups (meta() -> groupList());
#ifdef DEBUG_KPLAYER_ENGINE
kdDebugTime() << "Cache has " << groups.count() << " entries\n";
#endif
if ( int (groups.count()) > configuration() -> cacheSizeLimit() )
{
QMap<QString,QString> map;
TQMap<TQString,TQString> map;
int i = 0;
for ( QStringList::Iterator it = groups.begin(); it != groups.end(); ++ it )
for ( TQStringList::Iterator it = groups.begin(); it != groups.end(); ++ it )
{
meta() -> setGroup (*it);
QDateTime dt (meta() -> readDateTimeEntry ("Date"));
TQDateTime dt (meta() -> readDateTimeEntry ("Date"));
if ( ! dt.isNull() )
map.insert (dt.toString (Qt::ISODate) + QString().sprintf ("-%04u", i ++), *it);
map.insert (dt.toString (TQt::ISODate) + TQString().sprintf ("-%04u", i ++), *it);
}
i = groups.count() - configuration() -> cacheSizeLimit();
for ( QMap<QString,QString>::Iterator mapit = map.begin(); i && mapit != map.end(); ++ mapit )
for ( TQMap<TQString,TQString>::Iterator mapit = map.begin(); i && mapit != map.end(); ++ mapit )
{
#ifdef DEBUG_KPLAYER_ENGINE
kdDebugTime() << "Deleting entry for " << mapit.data() << " from " << mapit.key() << "\n";
@ -447,7 +447,7 @@ KPlayerEngine::~KPlayerEngine()
delete meta();
}
void KPlayerEngine::initialize (KActionCollection* ac, QWidget* parent, const char* name, KConfig* config)
void KPlayerEngine::initialize (KActionCollection* ac, TQWidget* parent, const char* name, KConfig* config)
{
if ( ! engine() )
{
@ -862,9 +862,9 @@ void KPlayerEngine::refreshAspect (void)
return;
if ( settings() -> isAspect (properties() -> originalSize()) )
toggleAction ("view_original_aspect") -> setChecked (true);
else if ( settings() -> isAspect (QSize (4, 3)) )
else if ( settings() -> isAspect (TQSize (4, 3)) )
toggleAction ("view_aspect_4_3") -> setChecked (true);
else if ( settings() -> isAspect (QSize (16, 9)) )
else if ( settings() -> isAspect (TQSize (16, 9)) )
toggleAction ("view_aspect_16_9") -> setChecked (true);
else
toggleAction ("view_current_aspect") -> setChecked (true);
@ -900,7 +900,7 @@ void KPlayerEngine::playerStateChanged (KPlayerProcess::State state, KPlayerProc
if ( state < KPlayerProcess::Playing && previous >= KPlayerProcess::Playing
&& ! properties() -> temporaryName().isEmpty() )
{
properties() -> setTemporaryName (QString::null);
properties() -> setTemporaryName (TQString::null);
properties() -> commit();
}
}
@ -932,7 +932,7 @@ void KPlayerEngine::playerInfoAvailable (void)
kdDebugTime() << "Engine: Info available. Detected length: " << properties() -> length() << "\n";
#endif
m_updating = true;
// QRangeControl breaks if its range is more than 524287
// TQRangeControl breaks if its range is more than 524287
if ( properties() -> length() > 50000 )
m_progress_factor = 1;
else if ( properties() -> length() > 5000 )
@ -998,12 +998,12 @@ void KPlayerEngine::enablePlayerActions (void)
busy = busy && properties() -> hasLength();
if ( ! busy )
{
QMouseEvent me1 (QEvent::MouseButtonRelease, QPoint (0, 0), QPoint (0, 0), Qt::LeftButton,
settings() -> shift() ? Qt::ShiftButton | Qt::LeftButton : Qt::LeftButton);
QApplication::sendEvent (sliderAction ("player_progress") -> slider(), &me1);
QMouseEvent me2 (QEvent::MouseButtonRelease, QPoint (0, 0), QPoint (0, 0), Qt::MidButton,
settings() -> shift() ? Qt::ShiftButton | Qt::MidButton : Qt::MidButton);
QApplication::sendEvent (sliderAction ("player_progress") -> slider(), &me2);
TQMouseEvent me1 (TQEvent::MouseButtonRelease, TQPoint (0, 0), TQPoint (0, 0), TQt::LeftButton,
settings() -> shift() ? TQt::ShiftButton | TQt::LeftButton : TQt::LeftButton);
TQApplication::sendEvent (sliderAction ("player_progress") -> slider(), &me1);
TQMouseEvent me2 (TQEvent::MouseButtonRelease, TQPoint (0, 0), TQPoint (0, 0), TQt::MidButton,
settings() -> shift() ? TQt::ShiftButton | TQt::MidButton : TQt::MidButton);
TQApplication::sendEvent (sliderAction ("player_progress") -> slider(), &me2);
}
sliderAction ("player_progress") -> slider() -> setEnabled (busy);
m_updating = false;
@ -1111,8 +1111,8 @@ void KPlayerEngine::disableScreenSaver (void)
{
if ( ! properties() -> hasVideo() )
return;
QByteArray data, reply;
QCString type;
TQByteArray data, reply;
TQCString type;
if ( ! kapp -> dcopClient() -> call ("kdesktop", "KScreensaverIface", "isEnabled()", data, type, reply)
|| type != "bool" )
{
@ -1121,7 +1121,7 @@ void KPlayerEngine::disableScreenSaver (void)
#endif
return;
}
QDataStream replyStream (reply, IO_ReadOnly);
TQDataStream replyStream (reply, IO_ReadOnly);
bool enabled = false;
replyStream >> enabled;
if ( ! enabled )
@ -1131,7 +1131,7 @@ void KPlayerEngine::disableScreenSaver (void)
#endif
return;
}
QDataStream argStream (data, IO_WriteOnly);
TQDataStream argStream (data, IO_WriteOnly);
argStream << false;
#ifdef DEBUG_KPLAYER_ENGINE
if ( kapp -> dcopClient() -> send ("kdesktop", "KScreensaverIface", "enable(bool)", data) )
@ -1148,8 +1148,8 @@ void KPlayerEngine::enableScreenSaver (void)
{
if ( ! m_enable_screen_saver )
return;
QByteArray data;
QDataStream argStream (data, IO_WriteOnly);
TQByteArray data;
TQDataStream argStream (data, IO_WriteOnly);
argStream << true;
#ifdef DEBUG_KPLAYER_ENGINE
if ( kapp -> dcopClient() -> send ("kdesktop", "KScreensaverIface", "enable(bool)", data) )
@ -1162,9 +1162,9 @@ void KPlayerEngine::enableScreenSaver (void)
m_enable_screen_saver = false;
}
bool isReadableFile (const QString& path)
bool isReadableFile (const TQString& path)
{
QFileInfo info (path);
TQFileInfo info (path);
return info.exists() && info.isReadable() && ! info.isDir();
}
@ -1244,29 +1244,29 @@ void KPlayerEngine::autoloadSubtitles (void)
#endif
if ( ! properties() -> url().isLocalFile() )
return;
QString urls (properties() -> subtitleUrlString());
QStringList exts (configuration() -> subtitleExtensions());
QString filename (properties() -> url().fileName());
QString basename (filename.section ('.', 0, -2));
QDir dir (properties() -> url().directory(), QString::null, QDir::Name | QDir::IgnoreCase, QDir::Files);
TQString urls (properties() -> subtitleUrlString());
TQStringList exts (configuration() -> subtitleExtensions());
TQString filename (properties() -> url().fileName());
TQString basename (filename.section ('.', 0, -2));
TQDir dir (properties() -> url().directory(), TQString::null, TQDir::Name | TQDir::IgnoreCase, TQDir::Files);
#ifdef DEBUG_KPLAYER_ENGINE
kdDebugTime() << " File name " << filename << "\n";
kdDebugTime() << " Base name " << basename << "\n";
#endif
const QFileInfoList* list = dir.entryInfoList();
const TQFileInfoList* list = dir.entryInfoList();
if ( list )
{
#ifdef DEBUG_KPLAYER_ENGINE
kdDebugTime() << " Directory " << dir.path() << "\n";
#endif
QFileInfoListIterator fileinfoiterator (*list);
while ( QFileInfo* info = fileinfoiterator.current() )
TQFileInfoListIterator fileinfoiterator (*list);
while ( TQFileInfo* info = fileinfoiterator.current() )
{
QString name (info -> fileName());
TQString name (info -> fileName());
if ( name != filename && info -> filePath() != urls && name.startsWith (basename, false)
&& info -> exists() && info -> isReadable() && ! info -> isDir() )
{
QStringList::ConstIterator extiterator (exts.constBegin());
TQStringList::ConstIterator extiterator (exts.constBegin());
while ( extiterator != exts.constEnd() )
{
if ( name.endsWith (*extiterator, false) )
@ -1325,22 +1325,22 @@ bool KPlayerEngine::loadSubtitles (const KURL::List& urls, bool checkExtensions)
#endif
if ( urls.isEmpty() || properties() -> url().isEmpty() )
return false;
QStringList exts (configuration() -> subtitleExtensions());
TQStringList exts (configuration() -> subtitleExtensions());
KURL::List::ConstIterator urliterator (urls.begin());
while ( urliterator != urls.end() )
{
const KURL& url (*urliterator);
if ( ! url.isLocalFile() )
return false;
QString path (url.path());
TQString path (url.path());
if ( path.isEmpty() )
return false;
QFileInfo info (path);
TQFileInfo info (path);
if ( ! info.exists() || ! info.isReadable() || info.isDir() )
return false;
if ( checkExtensions )
{
QStringList::ConstIterator extiterator (exts.constBegin());
TQStringList::ConstIterator extiterator (exts.constBegin());
while ( extiterator != exts.constEnd() )
{
if ( path.endsWith (*extiterator, false) )
@ -1465,7 +1465,7 @@ void KPlayerEngine::wheel (int delta, int state)
settings() -> setDisplaySize (settings() -> displaySize() + properties() -> currentSize() * delta / 1200);
setDisplaySize (true);
}
else if ( (state & Qt::ControlButton) == Qt::ControlButton )
else if ( (state & TQt::ControlButton) == TQt::ControlButton )
{
if ( delta >= 0 )
fastForward();
@ -1520,14 +1520,14 @@ void KPlayerEngine::maintainCurrentAspect (void)
void KPlayerEngine::aspect43 (void)
{
maintainAspect (toggleAction ("view_aspect_4_3") -> isChecked(), QSize (4, 3));
maintainAspect (toggleAction ("view_aspect_4_3") -> isChecked(), TQSize (4, 3));
if ( settings() -> maintainAspect() )
toggleAction ("view_aspect_4_3") -> setChecked (true);
}
void KPlayerEngine::aspect169 (void)
{
maintainAspect (toggleAction ("view_aspect_16_9") -> isChecked(), QSize (16, 9));
maintainAspect (toggleAction ("view_aspect_16_9") -> isChecked(), TQSize (16, 9));
if ( settings() -> maintainAspect() )
toggleAction ("view_aspect_16_9") -> setChecked (true);
}
@ -1862,13 +1862,13 @@ void KPlayerEngine::saturationDecrease (void)
setSaturation();
}
KURL::List KPlayerEngine::openFiles (const QString& title, QWidget* parent)
KURL::List KPlayerEngine::openFiles (const TQString& title, TQWidget* parent)
{
static QString filter = i18n("*|All files\n*.avi *.AVI|AVI files\n*.mpg *.mpeg *.MPG *.MPEG|MPEG files\n*.ogg *.OGG|OGG files\n*.mp3 *.MP3|MP3 files");
static TQString filter = i18n("*|All files\n*.avi *.AVI|AVI files\n*.mpg *.mpeg *.MPG *.MPEG|MPEG files\n*.ogg *.OGG|OGG files\n*.mp3 *.MP3|MP3 files");
KConfig* config = kPlayerConfig();
config -> setGroup ("Dialog Options");
QString dir = config -> readPathEntry ("Open File Directory");
//Saving dialog position did not work: dlg.pos() returns wrong position in Qt 3.1.1
TQString dir = config -> readPathEntry ("Open File Directory");
//Saving dialog position did not work: dlg.pos() returns wrong position in TQt 3.1.1
//int x = config -> readNumEntry ("Open File Left");
//int y = config -> readNumEntry ("Open File Top");
int width = config -> readNumEntry ("Open File Width");
@ -1899,12 +1899,12 @@ KURL::List KPlayerEngine::openFiles (const QString& title, QWidget* parent)
return dlg.selectedURLs();
}
KURL::List KPlayerEngine::openUrl (const QString& title, QWidget* parent)
KURL::List KPlayerEngine::openUrl (const TQString& title, TQWidget* parent)
{
KURL::List list;
KConfig* config = kPlayerConfig();
config -> setGroup ("Dialog Options");
QString dir = config -> readEntry ("Open URL");
TQString dir = config -> readEntry ("Open URL");
//int x = config -> readNumEntry ("Open URL Left");
//int y = config -> readNumEntry ("Open URL Top");
int width = config -> readNumEntry ("Open URL Width");
@ -1921,7 +1921,7 @@ KURL::List KPlayerEngine::openUrl (const QString& title, QWidget* parent)
list.append (url);
KRecentDocument::add (url);
}
if ( dlg.result() == QDialog::Accepted )
if ( dlg.result() == TQDialog::Accepted )
config -> writeEntry ("Open URL", url.isLocalFile() ? url.path() : url.url());
//config -> writeEntry ("Open URL Left", dlg.x());
//config -> writeEntry ("Open URL Top", dlg.y());
@ -1930,12 +1930,12 @@ KURL::List KPlayerEngine::openUrl (const QString& title, QWidget* parent)
return list;
}
KURL::List KPlayerEngine::openSubtitles (QWidget* parent)
KURL::List KPlayerEngine::openSubtitles (TQWidget* parent)
{
static QString filter = i18n("*|All files\n*.aqt *.AQT *.ass *.ASS *.js *.JS *.jss *.JSS *.rt *.RT *.smi *.SMI *.srt *.SRT *.ssa *.SSA *.sub *.SUB *.txt *.TXT *.utf *.UTF *.idx *.IDX *.ifo *.IFO|All subtitle files\n*.aqt *.AQT|AQT files\n*.ass *.ASS|ASS files\n*.js *.JS|JS files\n*.jss *.JSS|JSS files\n*.rt *.RT|RT files\n*.smi *.SMI|SMI files\n*.srt *.SRT|SRT files\n*.ssa *.SSA|SSA files\n*.sub *.SUB|SUB files\n*.txt *.TXT|TXT files\n*.utf *.UTF *.utf8 *.UTF8 *.utf-8 *.UTF-8|UTF files\n*.idx *.IDX *.ifo *.IFO|VobSub files");
static TQString filter = i18n("*|All files\n*.aqt *.AQT *.ass *.ASS *.js *.JS *.jss *.JSS *.rt *.RT *.smi *.SMI *.srt *.SRT *.ssa *.SSA *.sub *.SUB *.txt *.TXT *.utf *.UTF *.idx *.IDX *.ifo *.IFO|All subtitle files\n*.aqt *.AQT|AQT files\n*.ass *.ASS|ASS files\n*.js *.JS|JS files\n*.jss *.JSS|JSS files\n*.rt *.RT|RT files\n*.smi *.SMI|SMI files\n*.srt *.SRT|SRT files\n*.ssa *.SSA|SSA files\n*.sub *.SUB|SUB files\n*.txt *.TXT|TXT files\n*.utf *.UTF *.utf8 *.UTF8 *.utf-8 *.UTF-8|UTF files\n*.idx *.IDX *.ifo *.IFO|VobSub files");
KConfig* config = kPlayerConfig();
config -> setGroup ("Dialog Options");
QString dir = config -> readEntry ("Open Subtitle Directory");
TQString dir = config -> readEntry ("Open Subtitle Directory");
//int x = config -> readNumEntry ("Open Subtitle Left");
//int y = config -> readNumEntry ("Open Subtitle Top");
int width = config -> readNumEntry ("Open Subtitle Width");
@ -1956,11 +1956,11 @@ KURL::List KPlayerEngine::openSubtitles (QWidget* parent)
return dlg.selectedURLs();
}
/*KURL KPlayerEngine::openSubtitleUrl (QWidget* parent)
/*KURL KPlayerEngine::openSubtitleUrl (TQWidget* parent)
{
KConfig* config = kPlayerConfig();
config -> setGroup ("Dialog Options");
QString dir = config -> readEntry ("Open Subtitle URL");
TQString dir = config -> readEntry ("Open Subtitle URL");
//int x = config -> readNumEntry ("Open Subtitle URL Left");
//int y = config -> readNumEntry ("Open Subtitle URL Top");
int width = config -> readNumEntry ("Open Subtitle URL Width");
@ -1974,7 +1974,7 @@ KURL::List KPlayerEngine::openSubtitles (QWidget* parent)
KURL url (dlg.selectedURL());
if ( ! url.isEmpty() && url.isValid() )
KRecentDocument::add (url);
if ( dlg.result() == QDialog::Accepted )
if ( dlg.result() == TQDialog::Accepted )
config -> writeEntry ("Open Subtitle URL", url.isLocalFile() ? url.path() : url.url());
//config -> writeEntry ("Open Subtitle URL Left", dlg.x());
//config -> writeEntry ("Open Subtitle URL Top", dlg.y());
@ -1983,7 +1983,7 @@ KURL::List KPlayerEngine::openSubtitles (QWidget* parent)
return url;
}*/
void KPlayerEngine::getLists (QString path)
void KPlayerEngine::getLists (TQString path)
{
if ( path.isEmpty() )
path = properties() -> executablePath();
@ -2040,7 +2040,7 @@ void KPlayerEngine::receivedOutput (KPlayerLineOutputProcess*, char* str, int)
#ifdef DEBUG_KPLAYER_ENGINE
kdDebug() << str << "\n";
#endif
QString desc (re_codec.cap(2));
TQString desc (re_codec.cap(2));
desc.replace (re_multiple, " ");
desc.replace (re_trailing, "");
desc.replace (re_brackets, "");
@ -2057,7 +2057,7 @@ void KPlayerEngine::receivedOutput (KPlayerLineOutputProcess*, char* str, int)
#ifdef DEBUG_KPLAYER_ENGINE
kdDebug() << str << "\n";
#endif
QString desc (re_driver.cap(2));
TQString desc (re_driver.cap(2));
desc.replace (re_multiple, " ");
desc.replace (re_trailing, "");
desc.replace (re_brackets, "");
@ -2073,7 +2073,7 @@ void KPlayerEngine::receivedOutput (KPlayerLineOutputProcess*, char* str, int)
#ifdef DEBUG_KPLAYER_ENGINE
kdDebug() << str << "\n";
#endif
QString desc (re_codec.cap(2));
TQString desc (re_codec.cap(2));
desc.replace (re_multiple, " ");
desc.replace (re_trailing, "");
desc.replace (re_brackets, "");
@ -2089,7 +2089,7 @@ void KPlayerEngine::receivedOutput (KPlayerLineOutputProcess*, char* str, int)
#ifdef DEBUG_KPLAYER_ENGINE
kdDebug() << str << "\n";
#endif
QString desc (re_driver.cap(2));
TQString desc (re_driver.cap(2));
desc.replace (re_multiple, " ");
desc.replace (re_trailing, "");
desc.replace (re_xv, "/XVideo");
@ -2111,7 +2111,7 @@ void KPlayerEngine::receivedOutput (KPlayerLineOutputProcess*, char* str, int)
#ifdef DEBUG_KPLAYER_ENGINE
kdDebug() << str << "\n";
#endif
QString desc (re_demuxer.cap(2));
TQString desc (re_demuxer.cap(2));
desc.replace (re_parentheses, "");
desc.replace (re_demux, "");
desc.replace (re_sega, "");
@ -2136,7 +2136,7 @@ void KPlayerEngine::processExited (KProcess* proc)
emit updated();
}
void KPlayerEngine::maintainAspect (bool maintain, QSize aspect)
void KPlayerEngine::maintainAspect (bool maintain, TQSize aspect)
{
#ifdef DEBUG_KPLAYER_ENGINE
kdDebugTime() << "Engine::maintainAspect (" << maintain << ", " << aspect.width() << "x" << aspect.height() << ")\n";
@ -2159,7 +2159,7 @@ void KPlayerEngine::setDisplaySize (bool user_zoom, bool user_resize)
m_zooming = true;
emit syncronize (user_resize);
m_zooming = false;
QSize size (settings() -> adjustDisplaySize (user_zoom, user_resize));
TQSize size (settings() -> adjustDisplaySize (user_zoom, user_resize));
if ( user_zoom || ! settings() -> constrainedSize() )
{
m_zooming = true;
@ -2173,8 +2173,8 @@ void KPlayerEngine::setDisplaySize (bool user_zoom, bool user_resize)
void KPlayerEngine::workspaceResize (bool user)
{
static QTime lasttime;
int msecs = lasttime.msecsTo (QTime::currentTime());
static TQTime lasttime;
int msecs = lasttime.msecsTo (TQTime::currentTime());
#ifdef DEBUG_KPLAYER_ENGINE
kdDebugTime() << "KPlayerEngine::workspaceResize " << user << " " << m_zooming << " " << msecs << "\n";
#endif
@ -2184,7 +2184,7 @@ void KPlayerEngine::workspaceResize (bool user)
emit correctSize();
m_zooming = false;
setDisplaySize (false, user);
lasttime = QTime::currentTime();
lasttime = TQTime::currentTime();
}
void KPlayerEngine::workspaceResized (void)
@ -2203,7 +2203,7 @@ void KPlayerEngine::workspaceUserResize (void)
workspaceResize (! light());
}
void KPlayerEngine::clearStoreSections (const QString& section)
void KPlayerEngine::clearStoreSections (const TQString& section)
{
#ifdef DEBUG_KPLAYER_ENGINE
kdDebugTime() << "Clearing store section " << section << "\n";
@ -2213,7 +2213,7 @@ void KPlayerEngine::clearStoreSections (const QString& section)
for ( int i = 0; i < children; ++ i )
{
store() -> setGroup (section);
QString entry (store() -> readEntry ("Child" + QString::number (i)));
TQString entry (store() -> readEntry ("Child" + TQString::number (i)));
if ( entry.find ('/') < 0 )
{
KURL url (section);
@ -2237,7 +2237,7 @@ void KPlayerEngine::getAlsaVolume (void)
runAmixer ("get");
}
void KPlayerEngine::runAmixer (const QString& command, const QString& parameter)
void KPlayerEngine::runAmixer (const TQString& command, const TQString& parameter)
{
#ifdef DEBUG_KPLAYER_ENGINE
kdDebugTime() << "KPlayerEngine::runAmixer\n";
@ -2246,7 +2246,7 @@ void KPlayerEngine::runAmixer (const QString& command, const QString& parameter)
m_amixer_volume_first = m_amixer_volume_second = -1;
KPlayerLineOutputProcess* amixer = new KPlayerLineOutputProcess;
*amixer << "amixer";
QString mixer = properties() -> mixerDevice();
TQString mixer = properties() -> mixerDevice();
if ( ! mixer.isEmpty() )
{
*amixer << "-D" << mixer;
@ -2280,14 +2280,14 @@ void KPlayerEngine::amixerOutput (KPlayerLineOutputProcess*, char* str, int)
#ifdef DEBUG_KPLAYER_ENGINE
kdDebugTime() << " amixer: " << str << "\n";
#endif
static QRegExp re_control ("^Simple mixer control '(.*)'");
static QRegExp re_volume ("^ +[^:]+: Playback \\d+ \\[(\\d+)%\\]");
static TQRegExp re_control ("^Simple mixer control '(.*)'");
static TQRegExp re_volume ("^ +[^:]+: Playback \\d+ \\[(\\d+)%\\]");
if ( re_control.search (str) >= 0 )
{
#ifdef DEBUG_KPLAYER_ENGINE
kdDebugTime() << " Control " << re_control.cap(1) << "\n";
#endif
QString mixer = properties() -> mixerChannel();
TQString mixer = properties() -> mixerChannel();
if ( mixer.isEmpty() )
mixer = "PCM";
m_amixer_found_control = re_control.cap(1) == mixer;
@ -2330,14 +2330,14 @@ void KPlayerEngine::amixerExited (KProcess* proc)
#endif
if ( volume != m_amixer_volume && set_volume )
{
QString parameter;
TQString parameter;
if ( m_amixer_volume_second < 0 )
parameter = QString::number (volume) + "%";
parameter = TQString::number (volume) + "%";
else
{
volume = volume - m_amixer_volume >> 1;
parameter = QString::number (m_amixer_volume_first + volume) + "%,"
+ QString::number (m_amixer_volume_first + volume) + "%";
parameter = TQString::number (m_amixer_volume_first + volume) + "%,"
+ TQString::number (m_amixer_volume_first + volume) + "%";
}
runAmixer ("set", parameter);
}

@ -32,7 +32,7 @@ class KPlayerTrackProperties;
class KPlayerWidget;
class KPlayerWorkspace;
int listIndex (const QStringList&, const QString&);
int listIndex (const TQStringList&, const TQString&);
/** The KPlayer file dialog.
*@author kiriuja
@ -43,22 +43,22 @@ class KPlayerFileDialog : public KFileDialog
public:
/** Constructor. Parameters are passed to the KFileDialog constructor. */
KPlayerFileDialog (const QString& dir, const QString& filter, QWidget* parent, const char* name);
KPlayerFileDialog (const TQString& dir, const TQString& filter, TQWidget* parent, const char* name);
/** Returns the last used directory. */
QString directory (void)
TQString directory (void)
{ return ops -> url().path (-1); }
};
/** The KPlayer engine.
*@author kiriuja
*/
class KPlayerEngine : public QObject
class KPlayerEngine : public TQObject
{
Q_OBJECT
public:
KPlayerEngine (KActionCollection* ac, QWidget* parent, const char* name, KConfig*);
KPlayerEngine (KActionCollection* ac, TQWidget* parent, const char* name, KConfig*);
virtual ~KPlayerEngine();
/** Returns whether the engine is running in the KPart mode. */
@ -74,7 +74,7 @@ public:
/** Starts loading of all mplayer drivers and codecs.
* The updated signal is emitted when loading finishes. */
void getLists (QString = QString::null);
void getLists (TQString = TQString::null);
/** Starts amixer process to get the current ALSA volume. */
void getAlsaVolume (void);
@ -99,16 +99,16 @@ public:
/** Displays the open file dialog and lets the user choose a file or files.
Returns the list of chosen URLs or an empty list if the user did not choose any. */
KURL::List openFiles (const QString& title, QWidget* = 0);
KURL::List openFiles (const TQString& title, TQWidget* = 0);
/** Displays the URL requester dialog and lets the user enter a URL.
Returns the entered URL or an empty URL if the user did not enter any. */
KURL::List openUrl (const QString& title, QWidget* = 0);
KURL::List openUrl (const TQString& title, TQWidget* = 0);
/** Displays the open file dialog and lets the user choose a subtitle file.
Returns the chosen URL or an empty URL if the user did not choose any. */
KURL::List openSubtitles (QWidget* = 0);
KURL::List openSubtitles (TQWidget* = 0);
/** Displays the URL requester dialog and lets the user enter a subtitle URL.
Returns the entered URL or an empty URL if the user did not enter any. */
//KURL openSubtitleUrl (QWidget* = 0);
//KURL openSubtitleUrl (TQWidget* = 0);
/** Retrieves an action from the actionCollection by name. */
KAction* action (const char* name) const
@ -145,10 +145,10 @@ public:
void setSaturation (void);
/** Clear the given store section and all subsections. */
void clearStoreSections (const QString& section);
void clearStoreSections (const TQString& section);
/** Initializes the engine. */
static void initialize (KActionCollection* ac, QWidget* parent, const char* name = 0, KConfig* = 0);
static void initialize (KActionCollection* ac, TQWidget* parent, const char* name = 0, KConfig* = 0);
/** Terminates the engine. */
static void terminate (void);
@ -189,13 +189,13 @@ public:
KConfig* meta (void)
{ return m_meta; }
/** Returns the meta information storage set to the given group. */
KConfig* meta (const QString& group)
KConfig* meta (const TQString& group)
{
meta() -> setGroup (group);
return meta();
}
/** Returns the value of the given key with the given default. */
QString meta (const QString& group, const QString& key, const QString& value = QString::null)
TQString meta (const TQString& group, const TQString& key, const TQString& value = TQString::null)
{ return meta (group) -> readEntry (key, value); }
KActionCollection* actionCollection (void) const
@ -205,7 +205,7 @@ public:
void setDisplaySize (bool zoom = false, bool resize = false);
void maintainAspect (bool maintain, QSize aspect);
void maintainAspect (bool maintain, TQSize aspect);
void refreshAspect (void);
/** Resets full screen and maximized states. */
@ -227,37 +227,37 @@ public:
int demuxerCount (void) const
{ return m_demuxers.count(); }
const QString& demuxerName (int index) const
const TQString& demuxerName (int index) const
{ return m_demuxers [index]; }
int demuxerIndex (const QString& codec) const
int demuxerIndex (const TQString& codec) const
{ return listIndex (m_demuxers, codec); }
int audioCodecCount (void) const
{ return m_audio_codecs.count(); }
const QString& audioCodecName (int index) const
const TQString& audioCodecName (int index) const
{ return m_audio_codecs[index]; }
int audioCodecIndex (const QString& codec) const
int audioCodecIndex (const TQString& codec) const
{ return listIndex (m_audio_codecs, codec); }
int audioDriverCount (void) const
{ return m_audio_drivers.count(); }
const QString& audioDriverName (int index) const
const TQString& audioDriverName (int index) const
{ return m_audio_drivers[index]; }
int audioDriverIndex (const QString& driver) const
int audioDriverIndex (const TQString& driver) const
{ return listIndex (m_audio_drivers, driver); }
int videoCodecCount (void) const
{ return m_video_codecs.count(); }
const QString& videoCodecName (int index) const
const TQString& videoCodecName (int index) const
{ return m_video_codecs[index]; }
int videoCodecIndex (const QString& codec) const
int videoCodecIndex (const TQString& codec) const
{ return listIndex (m_video_codecs, codec); }
int videoDriverCount (void) const
{ return m_video_drivers.count(); }
const QString& videoDriverName (int index) const
const TQString& videoDriverName (int index) const
{ return m_video_drivers[index]; }
int videoDriverIndex (const QString& driver) const
int videoDriverIndex (const TQString& driver) const
{ return listIndex (m_video_drivers, driver); }
public slots:
@ -403,7 +403,7 @@ protected:
/** Handles workspace resize based on the user flag. */
void workspaceResize (bool user);
/** Runs amixer with the given command and parameter. */
void runAmixer (const QString& command, const QString& parameter = QString::null);
void runAmixer (const TQString& command, const TQString& parameter = TQString::null);
/** Sets up the progress slider. */
void setupProgressSlider (int maximum);
@ -414,7 +414,7 @@ protected:
/** Autoexpands video and updates settings. */
void autoexpand (void);
QString m_path;
TQString m_path;
/** Video track action list. */
KPlayerTrackActionList* m_video_action_list;
@ -430,15 +430,15 @@ protected:
bool m_demuxers_ready;
/** List of available audio codecs. */
QStringList m_audio_codecs;
TQStringList m_audio_codecs;
/** List of available audio drivers. */
QStringList m_audio_drivers;
TQStringList m_audio_drivers;
/** List of available video codecs. */
QStringList m_video_codecs;
TQStringList m_video_codecs;
/** List of available video drivers. */
QStringList m_video_drivers;
TQStringList m_video_drivers;
/** List of available demuxers. */
QStringList m_demuxers;
TQStringList m_demuxers;
bool m_amixer_running, m_amixer_found_control;
int m_last_volume, m_amixer_volume, m_amixer_volume_first, m_amixer_volume_second;
@ -473,7 +473,7 @@ protected:
bool m_updating;
/** Recursion prevention. */
bool m_zooming;
/** Work around QRangeControl bug. */
/** Work around TQRangeControl bug. */
int m_progress_factor;
/** Do not play any more URLs. */
bool m_stop;

@ -14,8 +14,8 @@
***************************************************************************/
#include <klocale.h>
#include <qlayout.h>
#include <qpopupmenu.h>
#include <tqlayout.h>
#include <tqpopupmenu.h>
#ifdef DEBUG
#define DEBUG_KPLAYER_LOG
@ -26,17 +26,17 @@
#include "kplayerengine.h"
#include "kplayersettings.h"
KPlayerLogWindow::KPlayerLogWindow (KActionCollection* ac, QWidget* parent, const char* name)
: QDockWindow (parent, name)
KPlayerLogWindow::KPlayerLogWindow (KActionCollection* ac, TQWidget* parent, const char* name)
: TQDockWindow (parent, name)
{
setWidget (new KPlayerLogWidget (ac, this));
setResizeEnabled (true);
setCloseMode (QDockWindow::Always);
setCloseMode (TQDockWindow::Always);
setNewLine (true);
setCaption (i18n("Messages"));
}
void KPlayerLogWindow::initialize (QPopupMenu* menu)
void KPlayerLogWindow::initialize (TQPopupMenu* menu)
{
#ifdef DEBUG_KPLAYER_PLAYLIST
kdDebugTime() << "Initializing log window\n";
@ -60,21 +60,21 @@ void KPlayerLogWindow::setError (bool flag)
logWidget() -> setError (flag);
}
void KPlayerLogWindow::hideEvent (QHideEvent* event)
void KPlayerLogWindow::hideEvent (TQHideEvent* event)
{
#ifdef DEBUG_KPLAYER_LOG
kdDebugTime() << "Log::hideEvent\n";
#endif
QDockWindow::hideEvent (event);
TQDockWindow::hideEvent (event);
if ( isHidden() ) // || ! event -> spontaneous() )
emit windowHidden();
}
KPlayerLogWidget::KPlayerLogWidget (KActionCollection* ac, QWidget* parent, const char* name)
KPlayerLogWidget::KPlayerLogWidget (KActionCollection* ac, TQWidget* parent, const char* name)
: KTextEdit (parent, name)
{
m_ac = ac;
setTextFormat (Qt::PlainText);
setTextFormat (TQt::PlainText);
setReadOnly (true);
setError (false);
KAction* action = new KAction (i18n("&Select All"), 0, 0, this, SLOT (selectAll()), m_ac, "log_select_all");
@ -132,7 +132,7 @@ void KPlayerLogWidget::setError (bool flag)
m_error = flag;
}
void KPlayerLogWidget::showEvent (QShowEvent* event)
void KPlayerLogWidget::showEvent (TQShowEvent* event)
{
KTextEdit::showEvent (event);
#ifdef DEBUG_KPLAYER_LOG
@ -153,7 +153,7 @@ void KPlayerLogWidget::showEvent (QShowEvent* event)
}
}
void KPlayerLogWidget::resizeEvent (QResizeEvent* event)
void KPlayerLogWidget::resizeEvent (TQResizeEvent* event)
{
bool at_bottom = contentsHeight() == contentsY() + visibleHeight();
#ifdef DEBUG_KPLAYER_LOG
@ -175,7 +175,7 @@ void KPlayerLogWidget::resizeEvent (QResizeEvent* event)
}
}
void KPlayerLogWidget::contextMenuEvent (QContextMenuEvent* event)
void KPlayerLogWidget::contextMenuEvent (TQContextMenuEvent* event)
{
#ifdef DEBUG_KPLAYER_WINDOW
kdDebugTime() << "KPlayerLogWidget::contextMenuEvent\n";

@ -18,7 +18,7 @@
#include <kaction.h>
#include <ktextedit.h>
#include <qdockwindow.h>
#include <tqdockwindow.h>
/**The KPlayer log widget.
*@author kiriuja
@ -28,7 +28,7 @@ class KPlayerLogWidget : public KTextEdit
Q_OBJECT
public:
KPlayerLogWidget (KActionCollection* ac, QWidget* parent = 0, const char* name = 0);
KPlayerLogWidget (KActionCollection* ac, TQWidget* parent = 0, const char* name = 0);
/** Returns whether there is an error in the log. */
bool hasError (void)
@ -37,10 +37,10 @@ public:
void setError (bool);
/** Returns the popup menu. */
QPopupMenu* popupMenu (void) const
TQPopupMenu* popupMenu (void) const
{ return m_popup; }
/** Sets the popup menu. */
void setPopupMenu (QPopupMenu* menu)
void setPopupMenu (TQPopupMenu* menu)
{ m_popup = menu; }
/** Retrieves an action from the action collection by name. */
@ -55,15 +55,15 @@ protected slots:
void updateActions (void);
protected:
virtual void showEvent (QShowEvent*);
virtual void resizeEvent (QResizeEvent*);
virtual void showEvent (TQShowEvent*);
virtual void resizeEvent (TQResizeEvent*);
/** Displays the right click popup menu. */
virtual void contextMenuEvent (QContextMenuEvent*);
virtual void contextMenuEvent (TQContextMenuEvent*);
/** Action collection. */
KActionCollection* m_ac;
/** Popup menu. */
QPopupMenu* m_popup;
TQPopupMenu* m_popup;
/** Error condition flag. */
bool m_error;
/** Error location. */
@ -73,19 +73,19 @@ protected:
/**The KPlayer log window.
*@author kiriuja
*/
class KPlayerLogWindow : public QDockWindow
class KPlayerLogWindow : public TQDockWindow
{
Q_OBJECT
public:
KPlayerLogWindow (KActionCollection* ac, QWidget* parent = 0, const char* name = 0);
KPlayerLogWindow (KActionCollection* ac, TQWidget* parent = 0, const char* name = 0);
void initialize (QPopupMenu* menu);
void initialize (TQPopupMenu* menu);
KPlayerLogWidget* logWidget (void)
{ return (KPlayerLogWidget*) widget(); }
void addLine (const QString& line)
void addLine (const TQString& line)
{ ((KPlayerLogWidget*) widget()) -> append (line); }
bool isEmpty (void)
{ return ((KPlayerLogWidget*) widget()) -> text().isEmpty(); }
@ -97,7 +97,7 @@ public:
void setError (bool);
protected:
virtual void hideEvent (QHideEvent*);
virtual void hideEvent (TQHideEvent*);
signals:
void windowHidden (void);

File diff suppressed because it is too large Load Diff

@ -25,22 +25,22 @@ class KPlayerRootNode;
/**Node list iterator.
* @author kiriuja
*/
typedef QPtrListIterator<KPlayerNode> KPlayerNodeListIterator;
typedef TQPtrListIterator<KPlayerNode> KPlayerNodeListIterator;
/**Node map by ID.
* @author kiriuja
*/
typedef QMap<QString, KPlayerNode*> KPlayerNodeMap;
typedef TQMap<TQString, KPlayerNode*> KPlayerNodeMap;
/**Container node map by ID.
* @author kiriuja
*/
typedef QMap<QString, KPlayerContainerNode*> KPlayerContainerNodeMap;
typedef TQMap<TQString, KPlayerContainerNode*> KPlayerContainerNodeMap;
/**Node list.
*@author kiriuja
*/
class KPlayerNodeList : public QPtrList<KPlayerNode>
class KPlayerNodeList : public TQPtrList<KPlayerNode>
{
public:
/** Constructor. */
@ -49,7 +49,7 @@ public:
virtual ~KPlayerNodeList();
/** Compares the two given nodes. */
virtual int compareItems (QPtrCollection::Item item1, QPtrCollection::Item item2);
virtual int compareItems (TQPtrCollection::Item item1, TQPtrCollection::Item item2);
/** Releases all nodes on the list. */
void releaseAll (void) const;
@ -70,7 +70,7 @@ public:
virtual ~KPlayerNodeListByName();
/** Compares the two given nodes. */
virtual int compareItems (QPtrCollection::Item item1, QPtrCollection::Item item2);
virtual int compareItems (TQPtrCollection::Item item1, TQPtrCollection::Item item2);
};
/**Playlist node list.
@ -85,13 +85,13 @@ public:
virtual ~KPlayerPlaylistNodeList();
/** Compares the two given nodes. */
virtual int compareItems (QPtrCollection::Item item1, QPtrCollection::Item item2);
virtual int compareItems (TQPtrCollection::Item item1, TQPtrCollection::Item item2);
};
/**Node in the hierarchy.
*@author kiriuja
*/
class KPlayerNode : public QObject
class KPlayerNode : public TQObject
{
Q_OBJECT
@ -102,26 +102,26 @@ public:
virtual ~KPlayerNode();
/** Initializes the node. */
void setup (KPlayerContainerNode* parent, const QString& id, KPlayerContainerNode* origin = 0);
void setup (KPlayerContainerNode* parent, const TQString& id, KPlayerContainerNode* origin = 0);
/** Unique identifier of the node within its parent node. */
const QString& id (void) const
const TQString& id (void) const
{ return m_id; }
/** Suggested identifier for a copy of this node. */
virtual QString suggestId (void) const;
virtual TQString suggestId (void) const;
/** Node name. */
QString name (void) const
TQString name (void) const
{ return media() -> name(); }
/** Node URL. Gives node location in the hierarchy. */
virtual KURL url (void) const;
/** The URL of a subnode with the given ID. */
KURL url (const QString& id) const;
KURL url (const TQString& id) const;
/** Media URL. Refers to the meta information storage of the node. */
virtual KURL metaurl (void) const;
/** Media URL of a subnode with the given ID. */
KURL metaurl (const QString& id) const;
KURL metaurl (const TQString& id) const;
/** Parent node. Null for root node. */
KPlayerContainerNode* parent (void) const
@ -135,7 +135,7 @@ public:
{ return m_media; }
/** Returns icon name. */
virtual QString icon (void) const;
virtual TQString icon (void) const;
/** Configuration. */
KPlayerConfiguration* configuration (void) const
@ -190,12 +190,12 @@ public:
static void terminate (void);
/** Sets the sorting key and ascending order. */
static void setSorting (const QString& key, bool ascending);
static void setSorting (const TQString& key, bool ascending);
/** Returns whether nodes are being sorted by name. */
static bool sortByName (void)
{ return m_sort_by_name; }
/** Returns the sort key. */
static const QString& sortKey (void)
static const TQString& sortKey (void)
{ return m_sort_key; }
/** Returns whether to sort in ascending order. */
static bool sortAscending (void)
@ -212,7 +212,7 @@ protected:
virtual void setupChildren (KPlayerContainerNode* origin);
/** Unique identifier of the node within its parent node. */
QString m_id;
TQString m_id;
/** Parent node. Null for root node. */
KPlayerContainerNode* m_parent;
/** Reference count of the node. */
@ -227,7 +227,7 @@ protected:
/** Flag indicating whether the list is being sorted by name. */
static bool m_sort_by_name;
/** Sort key. */
static QString m_sort_key;
static TQString m_sort_key;
/** Sort in ascending order. */
static bool m_sort_ascending;
};
@ -392,12 +392,12 @@ public:
virtual bool ready (void) const;
/** Returns icon name. */
virtual QString icon (void) const;
virtual TQString icon (void) const;
/** Returns open icon name. */
virtual QString openIcon (void) const;
virtual TQString openIcon (void) const;
/** Suggested identifier for a copy of this node. */
virtual QString suggestId (void) const;
virtual TQString suggestId (void) const;
/** Returns whether the node is a container. */
virtual bool isContainer (void) const;
@ -473,11 +473,11 @@ public:
bool preferMove (KPlayerNode* node) const;
/** Returns a node for the given ID from the node list. */
KPlayerNode* nodeById (const QString& id) const;
KPlayerNode* nodeById (const TQString& id) const;
/** Returns a node for the given ID if it exists. */
KPlayerContainerNode* getNodeById (const QString& id);
KPlayerContainerNode* getNodeById (const TQString& id);
/** Returns a node at the given path if it exists. */
virtual KPlayerContainerNode* getNodeByPath (const QString& path);
virtual KPlayerContainerNode* getNodeByPath (const TQString& path);
/** Returns the next node after the given one. */
KPlayerNode* nextNode (KPlayerNode*);
@ -509,12 +509,12 @@ public:
void save (void);
/** Adds a new branch node with the given name. */
void addBranch (const QString& name, KPlayerNode* after = 0);
void addBranch (const TQString& name, KPlayerNode* after = 0);
/** Adds a new branch node with the given name at the top of the node list. */
void prependBranch (const QString& name)
void prependBranch (const TQString& name)
{ addBranch (name, this); }
/** Adds a new branch node with the given name at the end of the node list. */
void appendBranch (const QString& name);
void appendBranch (const TQString& name);
/** Adds the given nodes to this node, optionally linking to the origin. */
void add (const KPlayerNodeList& nodes, bool link = true, KPlayerNode* after = 0);
@ -557,11 +557,11 @@ public:
/** Adds all subnodes of the given node to the list of nodes, optionally linking to the origin. */
void added (KPlayerContainerNode* node, bool link);
/** Adds the given files to the list of nodes. */
void added (const QFileInfoList& list);
void added (const TQFileInfoList& list);
/** Adds the given branches to the list of nodes. */
void addedBranches (const QStringList& list);
void addedBranches (const TQStringList& list);
/** Adds the given leaves to the list of nodes. */
void addedLeaves (const QStringList& list);
void addedLeaves (const TQStringList& list);
/** Moves the given nodes after the given node. */
KPlayerNode* moved (const KPlayerNodeList& nodes, KPlayerNode* after);
@ -571,7 +571,7 @@ public:
/** Removes the node and all subnodes. */
virtual void removed (void);
/** Removes nodes with the given IDs from the list of nodes. */
void removed (const QStringList& ids);
void removed (const TQStringList& ids);
/** Finishes removing the given nodes and counts and emits the removed signal. */
void removed (const KPlayerNodeList& nodes, const KPlayerPropertyCounts& counts);
@ -644,9 +644,9 @@ protected:
virtual void setupSource (void);
/** Creates a new leaf node with the given id. */
virtual KPlayerNode* createLeaf (const QString& id);
virtual KPlayerNode* createLeaf (const TQString& id);
/** Creates a new branch node with the given id and origin. */
virtual KPlayerContainerNode* createBranch (const QString& id, KPlayerContainerNode* origin = 0);
virtual KPlayerContainerNode* createBranch (const TQString& id, KPlayerContainerNode* origin = 0);
/** Inserts the given node and adds a reference if necessary. */
void insert (KPlayerNode* node, KPlayerNode* after);
@ -654,9 +654,9 @@ protected:
void append (KPlayerNode* node);
/** Inserts a new leaf subnode and adds a reference if necessary. */
KPlayerNode* insertLeaf (const QString& id, KPlayerNode* after = 0);
KPlayerNode* insertLeaf (const TQString& id, KPlayerNode* after = 0);
/** Inserts a new branch subnode and adds references as necessary. */
KPlayerContainerNode* insertBranch (const QString& id, KPlayerNode* after = 0, KPlayerContainerNode* origin = 0);
KPlayerContainerNode* insertBranch (const TQString& id, KPlayerNode* after = 0, KPlayerContainerNode* origin = 0);
/** Populates the list of all subnodes. */
void doPopulate (void);
@ -701,7 +701,7 @@ public:
virtual ~KPlayerTemporaryNode();
/** Creates and returns a temporary item node. */
KPlayerNode* temporaryItem (const QString& id);
KPlayerNode* temporaryItem (const TQString& id);
};
/**Root node.
@ -725,7 +725,7 @@ public:
{ return m_temp; }
/** Returns the list of default IDs. */
const QStringList& defaultIds (void)
const TQStringList& defaultIds (void)
{ return m_default_ids; }
/** Returns a node from the hierarchy given a URL. */
@ -736,10 +736,10 @@ protected:
virtual void setupSource (void);
/** Creates a new branch node with the given id and origin. */
virtual KPlayerContainerNode* createBranch (const QString& id, KPlayerContainerNode* origin = 0);
virtual KPlayerContainerNode* createBranch (const TQString& id, KPlayerContainerNode* origin = 0);
/** List of default IDs. */
QStringList m_default_ids;
TQStringList m_default_ids;
/** Map of standard nodes. */
KPlayerContainerNodeMap m_defaults;
/** External node map. */
@ -775,9 +775,9 @@ protected:
virtual void setupSource (void);
/** Creates a new leaf node with the given id. */
virtual KPlayerNode* createLeaf (const QString& id);
virtual KPlayerNode* createLeaf (const TQString& id);
/** Creates a new branch node with the given id and origin. */
virtual KPlayerContainerNode* createBranch (const QString& id, KPlayerContainerNode* origin = 0);
virtual KPlayerContainerNode* createBranch (const TQString& id, KPlayerContainerNode* origin = 0);
};
/**External node.
@ -811,9 +811,9 @@ public:
virtual ~KPlayerGroupNode();
/** Returns icon name. */
virtual QString icon (void) const;
virtual TQString icon (void) const;
/** Returns open icon name. */
virtual QString openIcon (void) const;
virtual TQString openIcon (void) const;
/** Returns whether the node is a group. */
virtual bool isGroup (void) const;
@ -850,24 +850,24 @@ public:
#if 0
/** The key that is used to create group nodes. */
const QString& groupingKey (void) const
const TQString& groupingKey (void) const
{ return media() -> groupingKey(); }
/** Returns whether the node is grouped. */
bool isGrouped (void) const
{ return (! origin() || ! origin() -> canGroup()) && ! groupingKey().isEmpty(); }
/** Parent's grouping key. */
const QString& parentKey (void) const
{ return parent() -> canGroup() ? ((KPlayerCollectionNode*) parent()) -> groupingKey() : QString::null; }
const TQString& parentKey (void) const
{ return parent() -> canGroup() ? ((KPlayerCollectionNode*) parent()) -> groupingKey() : TQString::null; }
/** Returns whether the node is grouped. */
bool isParentGrouped (void) const
{ return parent() -> canGroup() && ((KPlayerCollectionNode*) parent()) -> isGrouped(); }
/** Groups the subnodes by key. */
void group (const QString& key);
void group (const TQString& key);
/** Groups the subnodes by folder. */
void ungroup (void)
{ group (QString::null); }
{ group (TQString::null); }
/** Flattens the subnode hierarchy. */
void flatten (void)
{ group (""); }
@ -878,7 +878,7 @@ protected:
virtual void setupOrigin (void);
/** Creates a new branch node with the given id and origin. */
virtual KPlayerContainerNode* createBranch (const QString& id, KPlayerContainerNode* origin = 0);
virtual KPlayerContainerNode* createBranch (const TQString& id, KPlayerContainerNode* origin = 0);
};
/**Playlist node.
@ -895,9 +895,9 @@ public:
virtual ~KPlayerPlaylistNode();
/** Returns icon name. */
virtual QString icon (void) const;
virtual TQString icon (void) const;
/** Returns open icon name. */
virtual QString openIcon (void) const;
virtual TQString openIcon (void) const;
/** Returns whether the given node can be linked into this container. */
virtual bool canLink (KPlayerContainerNode* node) const;
@ -925,7 +925,7 @@ protected:
virtual void setupSource (void);
/** Creates a new branch node with the given id and origin. */
virtual KPlayerContainerNode* createBranch (const QString& id, KPlayerContainerNode* origin = 0);
virtual KPlayerContainerNode* createBranch (const TQString& id, KPlayerContainerNode* origin = 0);
/** Duplicate indicator. */
bool m_duplicates;
@ -945,9 +945,9 @@ public:
virtual ~KPlayerNowPlayingNode();
/** Returns icon name. */
virtual QString icon (void) const;
virtual TQString icon (void) const;
/** Returns open icon name. */
virtual QString openIcon (void) const;
virtual TQString openIcon (void) const;
/** Returns whether the node is a now playing group. */
virtual bool isNowPlaying (void) const;
@ -964,7 +964,7 @@ protected:
virtual void setupOrigin (void);
/** Creates a new branch node with the given id and origin. */
virtual KPlayerContainerNode* createBranch (const QString& id, KPlayerContainerNode* origin = 0);
virtual KPlayerContainerNode* createBranch (const TQString& id, KPlayerContainerNode* origin = 0);
};
/**Recent node.
@ -981,9 +981,9 @@ public:
virtual ~KPlayerRecentNode();
/** Returns icon name. */
virtual QString icon (void) const;
virtual TQString icon (void) const;
/** Returns open icon name. */
virtual QString openIcon (void) const;
virtual TQString openIcon (void) const;
/** Indicates whether the node is a recent node. */
virtual bool isRecent (void) const;
@ -993,7 +993,7 @@ public:
protected:
/** Creates a new branch node with the given id. */
virtual KPlayerContainerNode* createBranch (const QString& id, KPlayerContainerNode* origin = 0);
virtual KPlayerContainerNode* createBranch (const TQString& id, KPlayerContainerNode* origin = 0);
};
/**Recents node.
@ -1034,9 +1034,9 @@ public:
virtual ~KPlayerDevicesNode();
/** Returns icon name. */
virtual QString icon (void) const;
virtual TQString icon (void) const;
/** Returns open icon name. */
virtual QString openIcon (void) const;
virtual TQString openIcon (void) const;
/** Indicates whether the node is the device list. */
virtual bool isDevices (void) const;
@ -1050,29 +1050,29 @@ public:
{ return m_complete; }
/** Returns a node for the given ID from the node list. */
KPlayerDeviceNode* nodeById (const QString& id)
KPlayerDeviceNode* nodeById (const TQString& id)
{ return (KPlayerDeviceNode*) KPlayerContainerNode::nodeById (id); }
/** Returns a node at the given path if it exists. */
virtual KPlayerContainerNode* getNodeByPath (const QString& path);
virtual KPlayerContainerNode* getNodeByPath (const TQString& path);
/** Source of subnodes. */
KPlayerDevicesSource* source (void) const
{ return (KPlayerDevicesSource*) m_source; }
/** Returns the list of device paths. */
const QStringList& devices (void)
const TQStringList& devices (void)
{ return m_devices; }
/** Returns the type of the given device. */
const QString& deviceType (const QString& id)
const TQString& deviceType (const TQString& id)
{ return m_type_map [id]; }
/** Returns the suggested name of the given device. */
const QString& deviceName (const QString& id)
const TQString& deviceName (const TQString& id)
{ return m_name_map [id]; }
/** Returns the disk type in the given device. */
const QString& diskType (const QString& id)
const TQString& diskType (const TQString& id)
{ return m_disk_types [id]; }
/** Updates the list of devices. */
@ -1094,31 +1094,31 @@ protected slots:
/** Removes the given item. */
void removed (KFileItem *fileItem);
/** Receives dirty signal from directory watch. */
void dirty (const QString& path);
void dirty (const TQString& path);
protected:
/** Initializes the node source. */
virtual void setupSource (void);
/** Creates a new branch node with the given id and origin. */
virtual KPlayerContainerNode* createBranch (const QString& id, KPlayerContainerNode* origin = 0);
virtual KPlayerContainerNode* createBranch (const TQString& id, KPlayerContainerNode* origin = 0);
/** Updates the list of devices. */
void update (QStringList& current, QStringList& previous);
void update (TQStringList& current, TQStringList& previous);
/** Adds device names based on the given numeric map. */
void addToNameMap (QMap<QString, int>& map, const QString& device, const QString& deviceno);
void addToNameMap (TQMap<TQString, int>& map, const TQString& device, const TQString& deviceno);
/** Device paths. */
QStringList m_devices;
TQStringList m_devices;
/** Device types. */
QMap<QString, QString> m_type_map;
TQMap<TQString, TQString> m_type_map;
/** Device names. */
QMap<QString, QString> m_name_map;
TQMap<TQString, TQString> m_name_map;
/** Disk types. */
QMap<QString, QString> m_disk_types;
TQMap<TQString, TQString> m_disk_types;
/** Directory. */
QDir m_directory;
TQDir m_directory;
/** Directory watch. */
KDirWatch m_watch;
/** Media directory lister. */
@ -1151,9 +1151,9 @@ public:
{ return (KPlayerDeviceProperties*) m_media; }
/** Returns icon name. */
virtual QString icon (void) const;
virtual TQString icon (void) const;
/** Returns open icon name. */
virtual QString openIcon (void) const;
virtual TQString openIcon (void) const;
/** Returns whether the node has media properties. */
virtual bool hasProperties (void) const;
@ -1185,7 +1185,7 @@ public:
virtual bool ready (void) const;
/** Suggested identifier for a copy of this node. */
virtual QString suggestId (void) const;
virtual TQString suggestId (void) const;
/** Source of subnodes. */
KPlayerDiskSource* source (void) const
@ -1199,7 +1199,7 @@ public:
{ return m_disk; }
/** Returns icon name. */
virtual QString icon (void) const;
virtual TQString icon (void) const;
/** Returns the number of tracks and starts autodetection if needed. */
int tracks (void);
@ -1207,7 +1207,7 @@ public:
void loadDisk (void);
/** Returns the local path if known. */
const QString& localPath (void) const
const TQString& localPath (void) const
{ return m_local_path; }
/** Returns whether the local path is known. */
bool hasLocalPath (void) const
@ -1216,7 +1216,7 @@ public:
void getLocalPath (void);
/** Updates the node with the disk properties. */
void diskInserted (const QString& path = QString::null);
void diskInserted (const TQString& path = TQString::null);
/** Updates the node with the device properties. */
void diskRemoved (void);
@ -1254,7 +1254,7 @@ protected:
virtual void setupSource (void);
/** Creates a new leaf node with the given id. */
virtual KPlayerNode* createLeaf (const QString& id);
virtual KPlayerNode* createLeaf (const TQString& id);
/** Starts disk autodetection. */
void autodetect (void);
@ -1266,39 +1266,39 @@ protected:
/** Identifies the disk and returns its properties. */
bool accessDisk (void);
/** Updates the node with the disk properties. */
void diskDetected (const QString& diskid);
void diskDetected (const TQString& diskid);
/** Sets the disk type and updates the default name. */
void setDiskType (const QString& type);
void setDiskType (const TQString& type);
/** Disk properties. */
KPlayerDeviceProperties* m_device;
/** Disk properties. */
KPlayerDiskProperties* m_disk;
/** Track lengths. */
QValueList<float> m_track_lengths;
TQValueList<float> m_track_lengths;
/** URL currently being autodetected. */
QString m_url;
TQString m_url;
/** Audio CD disk ID. */
QString m_disk_id;
TQString m_disk_id;
/** Audio CD disk ID for matching against the one above. */
QString m_cddb_id;
TQString m_cddb_id;
/** Number of detected tracks. */
uint m_detected_tracks;
/** Indicates autodetection success. */
bool m_autodetected;
/** Artist. */
QString m_artist;
TQString m_artist;
/** Album. */
QString m_album;
TQString m_album;
/** Year. */
int m_year;
/** Genre. */
QString m_genre;
TQString m_genre;
/** Fast autodetect when type is known from media slave. */
bool m_fast_autodetect;
/** Local path. */
QString m_local_path;
TQString m_local_path;
};
/**Tuner node.
@ -1330,10 +1330,10 @@ protected:
virtual void setupSource (void);
/** Creates a new leaf node with the given id. */
virtual KPlayerNode* createLeaf (const QString& id);
virtual KPlayerNode* createLeaf (const TQString& id);
/** Current channel list. */
QString m_channel_list;
TQString m_channel_list;
};
/**TV node.
@ -1399,7 +1399,7 @@ public:
protected:
/** Creates a new branch node with the given id and origin. */
virtual KPlayerContainerNode* createBranch (const QString& id, KPlayerContainerNode* origin = 0);
virtual KPlayerContainerNode* createBranch (const TQString& id, KPlayerContainerNode* origin = 0);
};
/**Search node.
@ -1423,7 +1423,7 @@ protected:
virtual void setupSource (void);
/** Creates a new leaf node with the given id. */
virtual KPlayerNode* createLeaf (const QString& id);
virtual KPlayerNode* createLeaf (const TQString& id);
};
#endif

@ -23,8 +23,8 @@
#include "kplayernodeaction.moc"
#include "kplayernode.h"
KPlayerNodeActionList::KPlayerNodeActionList (const QString& text, const QString& status,
const QString& whatsthis, QObject* parent, const char* name)
KPlayerNodeActionList::KPlayerNodeActionList (const TQString& text, const TQString& status,
const TQString& whatsthis, TQObject* parent, const char* name)
: KPlayerActionList (text, status, whatsthis, parent, name)
{
#ifdef DEBUG_KPLAYER_NODEACTION
@ -115,12 +115,12 @@ void KPlayerNodeActionList::updated (KPlayerContainerNode*, KPlayerNode* node)
kdDebugTime() << "KPlayerNodeActionList::updated\n";
kdDebugTime() << " Node " << node -> url().url() << "\n";
#endif
QPtrListIterator<KAction> actit (actions());
TQPtrListIterator<KAction> actit (actions());
while ( KAction* action = actit.current() )
{
if ( action -> parent() == node )
{
QString name (node -> name());
TQString name (node -> name());
if ( action -> text() != name )
{
#ifdef DEBUG_KPLAYER_NODEACTION
@ -141,7 +141,7 @@ KAction* KPlayerNodeActionList::createAction (KPlayerNode* node)
kdDebugTime() << "KPlayerNodeActionList::createAction\n";
kdDebugTime() << " Node " << node -> url().url() << "\n";
#endif
QString name (node -> name());
TQString name (node -> name());
#ifdef DEBUG_KPLAYER_NODEACTION
kdDebugTime() << " Name " << name << "\n";
#endif
@ -161,7 +161,7 @@ void KPlayerNodeActionList::updateActions (void)
kdDebugTime() << "KPlayerNodeActionList::updateActions\n";
kdDebugTime() << " Name " << name() << "\n";
#endif
QPtrList<KAction> actions (m_actions);
TQPtrList<KAction> actions (m_actions);
unplug();
int count = 0;
KPlayerNodeListByName nodes ((const KPlayerNodeListByName&) node() -> nodes());
@ -176,7 +176,7 @@ void KPlayerNodeActionList::updateActions (void)
#ifdef DEBUG_KPLAYER_NODEACTION
kdDebugTime() << " Node " << node -> url().url() << "\n";
#endif
QPtrListIterator<KAction> actit (actions);
TQPtrListIterator<KAction> actit (actions);
KAction* action;
while ( (action = actit.current()) )
{
@ -215,8 +215,8 @@ void KPlayerNodeActionList::actionActivated (void)
emit activated ((KPlayerNode*) sender() -> parent());
}
KPlayerContainerActionList::KPlayerContainerActionList (const QString& text, const QString& status,
const QString& whatsthis, QObject* parent, const char* name)
KPlayerContainerActionList::KPlayerContainerActionList (const TQString& text, const TQString& status,
const TQString& whatsthis, TQObject* parent, const char* name)
: KPlayerNodeActionList (text, status, whatsthis, parent, name)
{
#ifdef DEBUG_KPLAYER_NODEACTION
@ -252,8 +252,8 @@ bool KPlayerContainerActionList::canInclude (KPlayerNode* node) const
return node -> isContainer();
}
KPlayerDevicesActionList::KPlayerDevicesActionList (const QString& text, const QString& status,
const QString& whatsthis, QObject* parent, const char* name)
KPlayerDevicesActionList::KPlayerDevicesActionList (const TQString& text, const TQString& status,
const TQString& whatsthis, TQObject* parent, const char* name)
: KPlayerContainerActionList (text, status, whatsthis, parent, name)
{
#ifdef DEBUG_KPLAYER_NODEACTION
@ -276,7 +276,7 @@ KAction* KPlayerDevicesActionList::createAction (KPlayerNode* node)
kdDebugTime() << " Name " << node -> name() << "\n";
#endif
KPlayerDeviceNode* device = (KPlayerDeviceNode*) node;
const QString& type = device -> media() -> type();
const TQString& type = device -> media() -> type();
#ifdef DEBUG_KPLAYER_NODEACTION
kdDebugTime() << " Type " << type << "\n";
#endif
@ -346,9 +346,9 @@ void KPlayerDeviceActionMenu::updateActions (void)
#ifdef DEBUG_KPLAYER_NODEACTION
kdDebugTime() << "KPlayerDeviceActionMenu::updateActions\n";
#endif
QPtrList<KAction> actions (m_actions);
TQPtrList<KAction> actions (m_actions);
m_actions.clear();
QPtrListIterator<KAction> actlit (actions);
TQPtrListIterator<KAction> actlit (actions);
KAction* action;
while ( (action = actlit.current()) )
{
@ -361,7 +361,7 @@ void KPlayerDeviceActionMenu::updateActions (void)
#ifdef DEBUG_KPLAYER_NODEACTION
kdDebugTime() << " Track " << node -> url().url() << "\n";
#endif
QPtrListIterator<KAction> actit (actions);
TQPtrListIterator<KAction> actit (actions);
while ( (action = actit.current()) )
{
if ( action -> parent() == node )
@ -376,7 +376,7 @@ void KPlayerDeviceActionMenu::updateActions (void)
m_actions.append (action);
++ iterator;
}
QPtrListIterator<KAction> actmit (m_actions);
TQPtrListIterator<KAction> actmit (m_actions);
while ( (action = actmit.current()) )
{
insert (action);
@ -412,12 +412,12 @@ void KPlayerDeviceActionMenu::updated (KPlayerContainerNode*, KPlayerNode* node)
kdDebugTime() << "KPlayerDeviceActionMenu::updated\n";
kdDebugTime() << " URL " << node -> url().url() << "\n";
#endif
QPtrListIterator<KAction> actit (m_actions);
TQPtrListIterator<KAction> actit (m_actions);
while ( KAction* action = actit.current() )
{
if ( action -> parent() == node )
{
QString name (i18n("Play %1").arg (node -> name()));
TQString name (i18n("Play %1").arg (node -> name()));
name.replace ("&", "&&");
if ( action -> text() != name )
action -> setText (name);
@ -456,7 +456,7 @@ void KPlayerDiskActionMenu::setup (void)
updateActions();
}
void KPlayerDiskActionMenu::setText (const QString& text)
void KPlayerDiskActionMenu::setText (const TQString& text)
{
#ifdef DEBUG_KPLAYER_NODEACTION
kdDebugTime() << "KPlayerDiskActionMenu::setText\n";
@ -519,7 +519,7 @@ void KPlayerDiskActionMenu::updateActions (void)
}
remove (m_load_action);
remove (m_play_action);
QString name (device() -> name());
TQString name (device() -> name());
insert (m_play_action);
KPlayerDeviceActionMenu::updateActions();
insert (m_load_action);

@ -35,8 +35,8 @@ class KPlayerNodeActionList : public KPlayerActionList
public:
/** Constructor. */
KPlayerNodeActionList (const QString& text, const QString& status,
const QString& whatsthis, QObject* parent, const char* name);
KPlayerNodeActionList (const TQString& text, const TQString& status,
const TQString& whatsthis, TQObject* parent, const char* name);
/** Destructor. */
virtual ~KPlayerNodeActionList();
@ -100,8 +100,8 @@ class KPlayerContainerActionList : public KPlayerNodeActionList
public:
/** Constructor. */
KPlayerContainerActionList (const QString& text, const QString& status,
const QString& whatsthis, QObject* parent, const char* name);
KPlayerContainerActionList (const TQString& text, const TQString& status,
const TQString& whatsthis, TQObject* parent, const char* name);
/** Destructor. */
virtual ~KPlayerContainerActionList();
@ -123,8 +123,8 @@ class KPlayerDevicesActionList : public KPlayerContainerActionList
public:
/** Constructor. */
KPlayerDevicesActionList (const QString& text, const QString& status,
const QString& whatsthis, QObject* parent, const char* name);
KPlayerDevicesActionList (const TQString& text, const TQString& status,
const TQString& whatsthis, TQObject* parent, const char* name);
/** Destructor. */
virtual ~KPlayerDevicesActionList();
@ -169,7 +169,7 @@ protected:
virtual void updateActions (void);
/** Device actions. */
QPtrList<KAction> m_actions;
TQPtrList<KAction> m_actions;
/** Indicates whether the device node was populated. */
bool m_populated;
@ -199,7 +199,7 @@ public:
{ return (KPlayerDiskNode*) parent(); }
/** Sets the action text. */
virtual void setText (const QString& text);
virtual void setText (const TQString& text);
protected slots:
/** Loads the disk. */

File diff suppressed because it is too large Load Diff

@ -18,8 +18,8 @@
#include <kdialogbase.h>
#include <klistview.h>
#include <qdockwindow.h>
#include <qvalidator.h>
#include <tqdockwindow.h>
#include <tqvalidator.h>
#include "kplayeractionlist.h"
#include "kplayernode.h"
@ -36,16 +36,16 @@ class KPlayerPlaylist;
/**Node name validator.
*@author kiriuja
*/
class KPlayerNodeNameValidator : public QValidator
class KPlayerNodeNameValidator : public TQValidator
{
public:
/** Constructor. References and stores the given container node. */
KPlayerNodeNameValidator (KPlayerContainerNode* node, QObject* parent = 0, const char* name = 0);
KPlayerNodeNameValidator (KPlayerContainerNode* node, TQObject* parent = 0, const char* name = 0);
/** Destructor. Releases the container node. */
virtual ~KPlayerNodeNameValidator();
/** Validates node name. */
virtual QValidator::State validate (QString& input, int& position) const;
virtual TQValidator::State validate (TQString& input, int& position) const;
protected:
/** Container node. */
@ -61,7 +61,7 @@ class KPlayerPropertiesDevice : public KPlayerPropertiesDevicePage
public:
/** Constructor. */
KPlayerPropertiesDevice (QWidget* parent = 0, const char* name = 0);
KPlayerPropertiesDevice (TQWidget* parent = 0, const char* name = 0);
/** Destructor. */
virtual ~KPlayerPropertiesDevice();
@ -74,7 +74,7 @@ public:
protected:
/** Enables or disables the OK button. */
virtual void pathChanged (const QString&);
virtual void pathChanged (const TQString&);
/** Shows or hides channel list and file options. */
virtual void typeChanged (int);
@ -91,7 +91,7 @@ class KPlayerDeviceDialog : public KDialogBase
public:
/** Constructor. */
KPlayerDeviceDialog (QWidget* parent = 0, const char* name = 0);
KPlayerDeviceDialog (TQWidget* parent = 0, const char* name = 0);
/** Destructor. */
virtual ~KPlayerDeviceDialog();
@ -128,7 +128,7 @@ public:
{ return m_node; }
/** Returns the node of the given item. */
KPlayerNode* nodeForItem (QListViewItem* item) const
KPlayerNode* nodeForItem (TQListViewItem* item) const
{ return ((KPlayerListViewItem*) item) -> node(); }
/** Returns the node view. */
@ -136,7 +136,7 @@ public:
{ return (KPlayerNodeView*) KListViewItem::listView(); }
/** Returns icon name. */
virtual QString icon (void) const;
virtual TQString icon (void) const;
/** Returns whether the node has children. */
virtual bool hasChildren (void);
@ -148,11 +148,11 @@ public:
void update (void);
/** Updates the given field of the item. */
void update (const QString& name);
void update (const TQString& name);
protected:
/** Compares two list items. */
virtual int compare (QListViewItem* item, int column, bool ascending) const;
virtual int compare (TQListViewItem* item, int column, bool ascending) const;
/** Finds the item corresponding to the given node. */
KPlayerListViewItem* itemForNode (KPlayerNode* node);
@ -215,7 +215,7 @@ public:
virtual void terminate (void);
/** Returns icon name. */
virtual QString icon (void) const;
virtual TQString icon (void) const;
/** Returns whether the node has children. */
virtual bool hasChildren (void);
@ -280,7 +280,7 @@ public:
protected:
/** Compares two list items. */
virtual int compare (QListViewItem* item, int column, bool ascending) const;
virtual int compare (TQListViewItem* item, int column, bool ascending) const;
/** Creates a new child item for the given node and inserts it after the given item. */
virtual KPlayerListViewItem* createChild (KPlayerListViewItem* after, KPlayerNode* node);
@ -308,25 +308,25 @@ public:
/** Entry URL. */
KURL m_url;
/** Entry name. */
QString m_name;
TQString m_name;
/** List of expanded items. */
KURL::List m_expanded;
/** List of selected item containers. */
KURL::List m_selected;
/** List of selected item IDs. */
QStringList m_selected_ids;
TQStringList m_selected_ids;
/** Current item container. */
KURL m_current;
/** Current item ID. */
QString m_current_id;
TQString m_current_id;
/** Scrolling position. */
QPoint m_position;
TQPoint m_position;
};
/** History.
* @author kiriuja
*/
typedef QValueList<KPlayerHistoryEntry> KPlayerHistory;
typedef TQValueList<KPlayerHistoryEntry> KPlayerHistory;
/**History action list.
*@author kiriuja
@ -338,7 +338,7 @@ class KPlayerHistoryActionList : public KPlayerActionList
public:
/** Constructor. */
KPlayerHistoryActionList (KPlayerHistory& history, const KPlayerHistory::Iterator& current,
const QString& text, const QString& status, const QString& whatsthis, QObject* parent, const char* name);
const TQString& text, const TQString& status, const TQString& whatsthis, TQObject* parent, const char* name);
/** Destructor. */
virtual ~KPlayerHistoryActionList();
@ -368,7 +368,7 @@ class KPlayerNodeView : public KListView
public:
/** Sets up the node view widget. */
KPlayerNodeView (QWidget* parent = 0, const char* name = 0);
KPlayerNodeView (TQWidget* parent = 0, const char* name = 0);
/** Frees up resources. */
virtual ~KPlayerNodeView();
@ -389,7 +389,7 @@ public:
int attributeCount (void) const
{ return m_attribute_names.count(); }
/** Returns the list of attribute names. */
const QStringList& attributeNames (void) const
const TQStringList& attributeNames (void) const
{ return m_attribute_names; }
/** Returns the library widget. */
@ -419,7 +419,7 @@ public:
void setRootNode (KPlayerContainerNode* node);
/** Returns the node of the given item. */
KPlayerNode* nodeForItem (QListViewItem* item) const
KPlayerNode* nodeForItem (TQListViewItem* item) const
{ return ((KPlayerListViewItem*) item) -> node(); }
/** Returns the active node. */
@ -436,9 +436,9 @@ public:
{ return m_moving; }
/** Stops editing an item that is going to be removed. */
void itemTerminating (QListViewItem* item);
void itemTerminating (TQListViewItem* item);
/** Changes the current item if the current one is among the children of item. */
void keepUpCurrentItem (QListViewItem* current, QListViewItem* item);
void keepUpCurrentItem (TQListViewItem* current, TQListViewItem* item);
/** Returns the playlist object. */
KPlayerPlaylist* playlist (void);
@ -447,7 +447,7 @@ public:
KAction* action (const char* name) const;
/** Checks whether the current item is being hidden and sets a new one. */
virtual void setOpen (QListViewItem* item, bool open);
virtual void setOpen (TQListViewItem* item, bool open);
/** Sets column width and moves the edit box if any. */
virtual void setColumnWidth (int column, int width);
@ -459,7 +459,7 @@ public:
virtual void updateActions (void) = 0;
/** Start editing the given column of the given item. */
void startEditing (QListViewItem* item, int column);
void startEditing (TQListViewItem* item, int column);
/** Terminates editing the current item. */
void stopEditing (bool save = true, int state = 0);
@ -479,12 +479,12 @@ protected slots:
void updated (KPlayerContainerNode* parent, KPlayerNode* node);
/** Expands, collapses or drills down a group node. */
void itemExecuted (QListViewItem* item);
void itemExecuted (TQListViewItem* item);
/** Shows the context menu. */
void showContextMenu (KListView*, QListViewItem*, const QPoint&);
void showContextMenu (KListView*, TQListViewItem*, const TQPoint&);
/** Updates the edited field of the current item. */
void edited (QListViewItem* item, const QString& value, int column);
void edited (TQListViewItem* item, const TQString& value, int column);
/** Moves line edit according to the new column size. */
void moveLineEdit (int section, int from, int to);
/** Arranges for the line edit to be moved according to the new content position. */
@ -558,42 +558,42 @@ protected:
virtual void activeItemChanged (void);
/** Finds the place where the drop would occur. */
void findDropTarget (const QPoint& pos, QListViewItem*& parent, QListViewItem*& after);
void findDropTarget (const TQPoint& pos, TQListViewItem*& parent, TQListViewItem*& after);
/** Finds the place where the drop would occur. */
virtual void findDrop (const QPoint& pos, QListViewItem*& parent, QListViewItem*& after);
virtual void findDrop (const TQPoint& pos, TQListViewItem*& parent, TQListViewItem*& after);
/** Accepts node and URL drags. */
virtual bool acceptDrag (QDropEvent*) const;
virtual bool acceptDrag (TQDropEvent*) const;
/** Sets custom node order if necessary. */
virtual void setNodeOrder (KPlayerContainerNode* node);
/** Handles the drop event. */
virtual void contentsDropEvent (QDropEvent*);
virtual void contentsDropEvent (TQDropEvent*);
/** Handles the drag move event. */
virtual void contentsDragMoveEvent (QDragMoveEvent*);
virtual void contentsDragMoveEvent (TQDragMoveEvent*);
/** Handles the drag enter event. */
virtual void contentsDragEnterEvent (QDragEnterEvent*);
virtual void contentsDragEnterEvent (TQDragEnterEvent*);
/** Handles the drag leave event. */
virtual void contentsDragLeaveEvent (QDragLeaveEvent*);
virtual void contentsDragLeaveEvent (TQDragLeaveEvent*);
/** Handles accel overrides. */
virtual bool event (QEvent*);
virtual bool event (TQEvent*);
/** Handles the return key. */
virtual void keyPressEvent (QKeyEvent*);
virtual void keyPressEvent (TQKeyEvent*);
/** Updates actions and connections when the view gets the focus. */
virtual void focusInEvent (QFocusEvent* event);
virtual void focusInEvent (TQFocusEvent* event);
/** Updates actions and connections when the view loses the focus. */
virtual void focusOutEvent (QFocusEvent* event);
virtual void focusOutEvent (TQFocusEvent* event);
/** Stores indicator of right mouse button press. */
virtual void contentsMousePressEvent (QMouseEvent* e);
virtual void contentsMousePressEvent (TQMouseEvent* e);
/** Stores the last active item. */
virtual void contentsMouseReleaseEvent (QMouseEvent* e);
virtual void contentsMouseReleaseEvent (TQMouseEvent* e);
/** Processes keyboard events for rename edit box. */
virtual bool eventFilter (QObject* object, QEvent* event);
virtual bool eventFilter (TQObject* object, TQEvent* event);
/** Adds the given nodes to a new playlist. */
KPlayerContainerNode* addToNewPlaylist (const KPlayerNodeList& list);
@ -616,7 +616,7 @@ protected:
/** Last current node. */
KPlayerNode* m_last_node;
/** Names of visible node attributes. */
QStringList m_attribute_names;
TQStringList m_attribute_names;
/** Indicates whether items are being moved within the view. */
bool m_moving;
/** Indicates whether the view has focus. */
@ -646,7 +646,7 @@ class KPlayerListView : public KPlayerNodeView
public:
/** Sets up the list view widget. */
KPlayerListView (QWidget* parent = 0, const char* name = 0);
KPlayerListView (TQWidget* parent = 0, const char* name = 0);
/** Frees up resources. */
virtual ~KPlayerListView();
@ -659,19 +659,19 @@ public:
virtual KPlayerNodeView* sibling (void) const;
/** Returns the list of available attribute names. */
const QStringList& availableAttributes (void) const
const TQStringList& availableAttributes (void) const
{ return m_available_attributes; }
/** Returns the list of editable attribute names. */
const QStringList& editableAttributes (void) const
const TQStringList& editableAttributes (void) const
{ return m_editable_attributes; }
/** Returns the list of all possible attributes. */
const QStringList& attributeOrder (void) const
const TQStringList& attributeOrder (void) const
{ return m_attribute_order; }
/** Returns the attribute states. */
const QMap<QString, bool>& attributeStates (void) const
const TQMap<TQString, bool>& attributeStates (void) const
{ return m_attribute_states; }
/** Returns the attribute counts. */
@ -681,7 +681,7 @@ public:
/** Fills the given list with selected nodes. */
virtual KPlayerNodeList getSelectedNodes (void) const;
/** Fills the given list with selected nodes under the given item. */
void getSelectedNodes (QListViewItem* item, KPlayerNodeList& list) const;
void getSelectedNodes (TQListViewItem* item, KPlayerNodeList& list) const;
/** Sets the sorting order. */
virtual void setSorting (int column, bool ascending = true);
@ -734,24 +734,24 @@ protected:
virtual void disconnectNode (void);
/** Inserts an attribute into the list according to the order. */
void insertAttribute (QStringList& list, const QString& name);
void insertAttribute (TQStringList& list, const TQString& name);
/** Adds and sets up the column with the given name. */
int setupColumn (const QString& name);
int setupColumn (const TQString& name);
/** Loads and applies column the given column width. */
void loadColumnWidth (int index);
/** Adjusts the last column width. */
//void adjustLastColumn (void);
/** Removes and cleans up the column with the given name. */
void cleanupColumn (const QString& name);
void cleanupColumn (const TQString& name);
/** Returns whether the column with the given name has to be shown. */
bool showColumn (const QString& name) const
bool showColumn (const TQString& name) const
{ return m_column_states.contains (name) && m_column_states [name]; }
/** Adjusts the last column when contents are resized. */
//virtual void resizeContents (int width, int height);
/** Adjusts the last column when viewport is resized. */
//virtual void viewportResizeEvent (QResizeEvent*);
//virtual void viewportResizeEvent (TQResizeEvent*);
/** Updates the given item as necessary. */
virtual void update (KPlayerListViewItem* item);
@ -759,15 +759,15 @@ protected:
/** Counts of visible node attributes. */
KPlayerPropertyCounts m_attribute_counts;
/** Names of available node attributes. */
QStringList m_available_attributes;
TQStringList m_available_attributes;
/** Names of editable node attributes. */
QStringList m_editable_attributes;
TQStringList m_editable_attributes;
/** Names of all possible node attributes. */
QStringList m_attribute_order;
TQStringList m_attribute_order;
/** Attribute states. */
QMap<QString, bool> m_attribute_states;
TQMap<TQString, bool> m_attribute_states;
/** Column states. */
QMap<QString, bool> m_column_states;
TQMap<TQString, bool> m_column_states;
/** Home media. */
KPlayerGenericProperties* m_home_media;
};
@ -781,7 +781,7 @@ class KPlayerTreeView : public KPlayerNodeView
public:
/** Sets up the tree view widget. */
KPlayerTreeView (QWidget* parent = 0, const char* name = 0);
KPlayerTreeView (TQWidget* parent = 0, const char* name = 0);
/** Frees up resources. */
virtual ~KPlayerTreeView();
@ -810,7 +810,7 @@ public:
{ return m_current; }
/** Adjusts column width. */
virtual void setOpen (QListViewItem* item, bool open);
virtual void setOpen (TQListViewItem* item, bool open);
/** Updates actions according to the current tree view selection. */
virtual void updateActions (void);
@ -856,7 +856,7 @@ protected:
virtual KPlayerNodeList getSelectedNodes (void) const;
/** Prevents KListView from resetting the alternate background. */
virtual bool event (QEvent*);
virtual bool event (TQEvent*);
/** Sets custom node order by name. */
virtual void setNodeOrder (KPlayerContainerNode* node);
@ -872,18 +872,18 @@ protected:
/**The library splitter widget.
*@author kiriuja
*/
class KPlayerLibrary : public QSplitter
class KPlayerLibrary : public TQSplitter
{
Q_OBJECT
public:
/** Sets up the view widget. Adds tree and list children. */
KPlayerLibrary (KActionCollection* ac, QWidget* parent = 0, const char* name = 0);
KPlayerLibrary (KActionCollection* ac, TQWidget* parent = 0, const char* name = 0);
/** Frees up resources. */
virtual ~KPlayerLibrary();
/** Initializes library. */
void initialize (QPopupMenu* menu);
void initialize (TQPopupMenu* menu);
/** Frees up resources. */
void terminate (void);
@ -895,7 +895,7 @@ public:
{ return m_list; }
/** Returns the popup menu. */
QPopupMenu* popupMenu (void) const
TQPopupMenu* popupMenu (void) const
{ return m_popup; }
/** Configuration. */
@ -941,14 +941,14 @@ public:
void disconnectActions (void);
/** Emits the enableActionGroup signal. */
void emitEnableActionGroup (const QString& name, bool enable)
void emitEnableActionGroup (const TQString& name, bool enable)
{ emit enableActionGroup (name, enable); }
signals:
/** Emitted when the library needs to be shown. */
void makeVisible (void);
/** Emitted when an action group is enabled or disabled. */
void enableActionGroup (const QString& name, bool enable);
void enableActionGroup (const TQString& name, bool enable);
public slots:
/** Shows library and opens the given node. */
@ -960,7 +960,7 @@ protected:
/** Action collection. */
KActionCollection* m_ac;
/** Popup menu. */
QPopupMenu* m_popup;
TQPopupMenu* m_popup;
/** Tree view. */
KPlayerTreeView* m_tree;
/** List view. */
@ -982,13 +982,13 @@ protected:
/**The library window.
*@author kiriuja
*/
class KPlayerLibraryWindow : public QDockWindow
class KPlayerLibraryWindow : public TQDockWindow
{
Q_OBJECT
public:
/** Constructor. */
KPlayerLibraryWindow (KActionCollection* ac, QWidget* parent, const char* name = 0);
KPlayerLibraryWindow (KActionCollection* ac, TQWidget* parent, const char* name = 0);
/** Returns the library. */
KPlayerLibrary* library (void)
@ -999,7 +999,7 @@ public:
protected:
/** Emits the windowHidden signal. */
virtual void hideEvent (QHideEvent*);
virtual void hideEvent (TQHideEvent*);
signals:
/** Emitted when the library window is hidden. */

@ -17,7 +17,7 @@
#include <ktoolbar.h>
#include <kxmlguifactory.h>
#include <kparts/genericfactory.h>
#include <qpopupmenu.h>
#include <tqpopupmenu.h>
#include <dcopclient.h>
#ifdef DEBUG
@ -45,7 +45,7 @@ KPlayerBrowserExtension::~KPlayerBrowserExtension()
{
}*/
KPlayerPart::KPlayerPart (QWidget* wparent, const char* wname, QObject* parent, const char* name, const QStringList&)
KPlayerPart::KPlayerPart (TQWidget* wparent, const char* wname, TQObject* parent, const char* name, const TQStringList&)
: KParts::ReadOnlyPart (parent, name ? name : "kplayerpart")
{
#ifdef DEBUG_KPLAYER_KPART
@ -60,7 +60,7 @@ KPlayerPart::KPlayerPart (QWidget* wparent, const char* wname, QObject* parent,
setInstance (KPlayerPartFactory::instance());
//connect (kPlayerProcess(), SIGNAL (stateChanged(KPlayerProcess::State)), this, SLOT (playerStateChanged(KPlayerProcess::State)));
//connect (kPlayerProcess(), SIGNAL (infoAvailable()), this, SLOT (playerInfoAvailable()));
connect (kPlayerWorkspace(), SIGNAL (contextMenu(const QPoint&)), this, SLOT (widgetContextMenu(const QPoint&)));
connect (kPlayerWorkspace(), SIGNAL (contextMenu(const TQPoint&)), this, SLOT (widgetContextMenu(const TQPoint&)));
setWidget (kPlayerWorkspace());
initActions();
setXMLFile ("kplayerpartui.rc");
@ -69,7 +69,7 @@ KPlayerPart::KPlayerPart (QWidget* wparent, const char* wname, QObject* parent,
//m_extension = new KPlayerBrowserExtension (this);
kdDebugTime() << "KPlayerPart: creating popup menu\n";
#endif
m_popup_menu = new QPopupMenu (wparent);
m_popup_menu = new TQPopupMenu (wparent);
action ("player_launch") -> plug (m_popup_menu);
m_popup_menu -> insertSeparator();
action ("player_play") -> plug (m_popup_menu);
@ -117,7 +117,7 @@ KPlayerPart::~KPlayerPart()
#endif
}
QString resourcePath (const QString& filename);
TQString resourcePath (const TQString& filename);
KAboutData* KPlayerPart::createAboutData (void)
{
@ -152,7 +152,7 @@ bool KPlayerPart::closeURL (void)
//KToolBar* KPlayerPart::toolBar (int index)
//{
//index -= PROGRESS_TOOLBAR;
/*QObject* toolbar = sliderAction (m_toolbar_actions [index]) -> slider() -> parent();
/*TQObject* toolbar = sliderAction (m_toolbar_actions [index]) -> slider() -> parent();
#ifdef DEBUG_KPLAYER_KPART
kdDebugTime() << "Name: '" << toolbar -> name() << "'\n";
if ( toolbar && toolbar -> inherits ("KToolBar") )
@ -163,20 +163,20 @@ bool KPlayerPart::closeURL (void)
if ( toolbar && toolbar -> inherits ("KToolBar") )
return (KToolBar*) toolbar;*/
#ifdef DEBUG_KPLAYER_KPART
/*if ( qApp )
/*if ( tqApp )
kdDebugTime() << "App OK\n";
if ( qApp && qApp -> mainWidget() )
if ( tqApp && tqApp -> mainWidget() )
kdDebugTime() << "Main widget OK\n";*/
#endif
//if ( ! qApp || ! qApp -> mainWidget() )
//if ( ! tqApp || ! tqApp -> mainWidget() )
// return 0;
#ifdef DEBUG_KPLAYER_KPART
/*if ( qApp -> mainWidget() -> child (m_toolbar_names [index]) )
/*if ( tqApp -> mainWidget() -> child (m_toolbar_names [index]) )
kdDebugTime() << "Child OK\n";
if ( qApp -> mainWidget() -> child (m_toolbar_names [index], "KToolBar") )
if ( tqApp -> mainWidget() -> child (m_toolbar_names [index], "KToolBar") )
kdDebugTime() << "KToolBar OK\n";*/
#endif
//return (KToolBar*) qApp -> mainWidget() -> child (m_toolbar_names [index], "KToolBar");
//return (KToolBar*) tqApp -> mainWidget() -> child (m_toolbar_names [index], "KToolBar");
//}
void KPlayerPart::initActions (void)
@ -196,8 +196,8 @@ void KPlayerPart::saveOptions (void)
#endif
KConfig* config = kPlayerConfig();
config -> setGroup ("Part Options");
config -> writeEntry (QString (m_toolbar_names [0]) + " Part Visible", m_toolbar_visible [0]);
config -> writeEntry (QString (m_toolbar_names [1]) + " Part Visible", m_toolbar_visible [1]);
config -> writeEntry (TQString (m_toolbar_names [0]) + " Part Visible", m_toolbar_visible [0]);
config -> writeEntry (TQString (m_toolbar_names [1]) + " Part Visible", m_toolbar_visible [1]);
}
void KPlayerPart::readOptions (void)
@ -208,7 +208,7 @@ void KPlayerPart::readOptions (void)
KPlayerSettings* settings = kPlayerSettings();
KConfig* config = kPlayerConfig();
config -> setGroup ("Part Options");
m_toolbar_visible[0] = config -> readBoolEntry (QString (m_toolbar_names[0]) + " Part Visible", m_toolbar_visible[0]);
m_toolbar_visible[0] = config -> readBoolEntry (TQString (m_toolbar_names[0]) + " Part Visible", m_toolbar_visible[0]);
toggleAction (m_toolbar_actions [0]) -> setChecked (m_toolbar_visible [0]);
#ifdef DEBUG_KPLAYER_KPART
if ( toolBar (PROGRESS_TOOLBAR) )
@ -222,7 +222,7 @@ void KPlayerPart::readOptions (void)
else
toolbar -> hide();
}
m_toolbar_visible[1] = config -> readBoolEntry (QString (m_toolbar_names[1]) + " Part Visible", m_toolbar_visible[1]);
m_toolbar_visible[1] = config -> readBoolEntry (TQString (m_toolbar_names[1]) + " Part Visible", m_toolbar_visible[1]);
toggleAction (m_toolbar_actions[1]) -> setChecked (m_toolbar_visible[1]);
toolbar = toolBar (VOLUME_TOOLBAR);
if ( toolbar )
@ -283,14 +283,14 @@ void KPlayerPart::launchKPlayer (void)
process.detach();
}
void KPlayerPart::widgetContextMenu (const QPoint& global_position)
void KPlayerPart::widgetContextMenu (const TQPoint& global_position)
{
#ifdef DEBUG_KPLAYER_KPART
kdDebugTime() << "KPlayerPart context menu\n";
#endif
QPopupMenu* popup = 0;
TQPopupMenu* popup = 0;
if ( factory() )
popup = (QPopupMenu*) factory() -> container ("player_popup", this);
popup = (TQPopupMenu*) factory() -> container ("player_popup", this);
if ( ! popup )
popup = m_popup_menu;
if ( popup )

@ -28,7 +28,7 @@
class KPlayerPart;
class KPlayerPopupSliderAction;
class KPlayerSliderAction;
class QPopupMenu;
class TQPopupMenu;
#define PROGRESS_TOOLBAR 1
#define VOLUME_TOOLBAR 2
@ -53,7 +53,7 @@ class KPlayerPart : public KParts::ReadOnlyPart
Q_OBJECT
public:
KPlayerPart (QWidget*, const char*, QObject*, const char*, const QStringList&);
KPlayerPart (TQWidget*, const char*, TQObject*, const char*, const TQStringList&);
virtual ~KPlayerPart();
/** Returns the data for the About dialog. **/
@ -93,7 +93,7 @@ public slots:
/** Receives the infoAvailable signal from KPlayerProcess. */
//void playerInfoAvailable (void);
/** Displays the right click popup menu at the given position. */
void widgetContextMenu (const QPoint& global_position);
void widgetContextMenu (const TQPoint& global_position);
protected:
/** Initializes the KActions of the KPart. */
@ -110,11 +110,11 @@ protected:
/** The browser extension. */
//KPlayerBrowserExtension* m_extension;
QPopupMenu* m_popup_menu;
TQPopupMenu* m_popup_menu;
// Following should really be private
//QStringList m_toolbar_names;
//QStringList m_toolbar_actions;
//TQStringList m_toolbar_names;
//TQStringList m_toolbar_actions;
//bool m_toolbar_visible [2];
};

@ -19,10 +19,10 @@
#include <krandomsequence.h>
#include <kurl.h>
#include <kurldrag.h>
#include <qdockarea.h>
#include <qfileinfo.h>
#include <qpopupmenu.h>
#include <qtooltip.h>
#include <tqdockarea.h>
#include <tqfileinfo.h>
#include <tqpopupmenu.h>
#include <tqtooltip.h>
#ifdef DEBUG
#define DEBUG_KPLAYER_PLAYLIST
@ -36,8 +36,8 @@
#include "kplayerpropertiesdialog.h"
#include "kplayersettings.h"
KPlayerPlaylist::KPlayerPlaylist (KActionCollection* ac, QObject* parent, const char* name)
: QObject (parent, name)
KPlayerPlaylist::KPlayerPlaylist (KActionCollection* ac, TQObject* parent, const char* name)
: TQObject (parent, name)
{
#ifdef DEBUG_KPLAYER_PLAYLIST
kdDebugTime() << "Creating playlist\n";
@ -73,7 +73,7 @@ KPlayerPlaylist::KPlayerPlaylist (KActionCollection* ac, QObject* parent, const
widget -> setStatusText (i18n("Shows playlist items and allows you to select an item to play"));
widget -> setWhatsThis (i18n("Playlist combo box in the closed state displays the current playlist item. You can drop down the combo box to see the entire list and select a different item to load and play."));
connect (playlist(), SIGNAL (activated(int)), SLOT (play(int)));
QToolTip::add (playlist(), i18n("Playlist"));
TQToolTip::add (playlist(), i18n("Playlist"));
KToggleAction* toggle = new KToggleAction (i18n("&Loop"), "loop", 0, this, SLOT (loop()), m_ac, "player_loop");
toggle -> setStatusText (i18n("Turns the option to loop through the list on/off"));
toggle -> setWhatsThis (i18n("Loop command toggles the option to start playing items from the beginning of the playlist after playing the last item on the playlist."));
@ -113,7 +113,7 @@ KPlayerPlaylist::~KPlayerPlaylist()
#endif
}
void KPlayerPlaylist::initialize (QPopupMenu* menu)
void KPlayerPlaylist::initialize (TQPopupMenu* menu)
{
#ifdef DEBUG_KPLAYER_PLAYLIST
kdDebugTime() << "Initializing playlist\n";
@ -699,8 +699,8 @@ void KPlayerPlaylist::addToPlaylists (void)
{
KPlayerContainerNode* container = KPlayerNode::root() -> getNodeByUrl ("kplayer:/playlists");
KPlayerNodeNameValidator validator (container);
QString name = KInputDialog::text (i18n("Add to playlists"), i18n("Playlist name"),
QString::null, 0, 0, 0, &validator, QString::null,
TQString name = KInputDialog::text (i18n("Add to playlists"), i18n("Playlist name"),
TQString::null, 0, 0, 0, &validator, TQString::null,
i18n("Playlist name field allows you to enter a name for a new playlist. OK button will be enabled when you enter a unique and valid name."));
if ( ! name.isNull() )
{
@ -731,8 +731,8 @@ void KPlayerPlaylist::addToCollection (void)
{
KPlayerContainerNode* container = KPlayerNode::root() -> getNodeByUrl ("kplayer:/collection");
KPlayerNodeNameValidator validator (container);
QString name = KInputDialog::text (i18n("Add to collection"), i18n("Folder name"),
QString::null, 0, 0, 0, &validator, QString::null,
TQString name = KInputDialog::text (i18n("Add to collection"), i18n("Folder name"),
TQString::null, 0, 0, 0, &validator, TQString::null,
i18n("Folder name field allows you to enter a name for a new folder. OK button will be enabled when you enter a unique and valid name."));
if ( ! name.isNull() )
{
@ -858,34 +858,34 @@ void KPlayerPlaylist::addNextNodes (const KPlayerNodeList& nodes)
}
}
KPlayerPlaylistCombobox::KPlayerPlaylistCombobox (QWidget* parent, const char* name)
: QComboBox (parent, name)
KPlayerPlaylistCombobox::KPlayerPlaylistCombobox (TQWidget* parent, const char* name)
: TQComboBox (parent, name)
{
#ifdef DEBUG_KPLAYER_PLAYLIST
kdDebugTime() << "Creating playlist combobox\n";
#endif
}
QSize KPlayerPlaylistCombobox::sizeHint() const
TQSize KPlayerPlaylistCombobox::sizeHint() const
{
QSize hint = QComboBox::sizeHint();
TQSize hint = TQComboBox::sizeHint();
hint.setWidth (configuration() -> preferredSliderLength());
return hint;
}
QSize KPlayerPlaylistCombobox::minimumSizeHint() const
TQSize KPlayerPlaylistCombobox::minimumSizeHint() const
{
QSize hint = QComboBox::minimumSizeHint();
TQSize hint = TQComboBox::minimumSizeHint();
hint.setWidth (configuration() -> minimumSliderLength());
return hint;
}
void KPlayerPlaylistCombobox::contextMenuEvent (QContextMenuEvent* event)
void KPlayerPlaylistCombobox::contextMenuEvent (TQContextMenuEvent* event)
{
#ifdef DEBUG_KPLAYER_PLAYLIST
kdDebugTime() << "KPlayerPlaylistCombobox::contextMenuEvent\n";
#endif
QComboBox::contextMenuEvent (event);
TQComboBox::contextMenuEvent (event);
m_popup -> popup (event -> globalPos());
event -> accept();
}

@ -26,53 +26,53 @@
/**The playlist combobox widget.
*@author kiriuja
*/
class KPlayerPlaylistCombobox : public QComboBox
class KPlayerPlaylistCombobox : public TQComboBox
{
Q_OBJECT
public:
/** The KPlayerPlaylistCombobox constructor. */
KPlayerPlaylistCombobox (QWidget* parent = 0, const char* name = 0);
KPlayerPlaylistCombobox (TQWidget* parent = 0, const char* name = 0);
/** Configuration. */
KPlayerConfiguration* configuration (void) const
{ return KPlayerEngine::engine() -> configuration(); }
/** Returns the popup menu. */
QPopupMenu* popupMenu (void) const
TQPopupMenu* popupMenu (void) const
{ return m_popup; }
/** Sets the popup menu. */
void setPopupMenu (QPopupMenu* menu)
void setPopupMenu (TQPopupMenu* menu)
{ m_popup = menu; }
/** The size hint. */
virtual QSize sizeHint() const;
virtual TQSize sizeHint() const;
/** The minimum size hint. */
virtual QSize minimumSizeHint() const;
virtual TQSize minimumSizeHint() const;
protected:
/** Displays the right click popup menu. */
virtual void contextMenuEvent (QContextMenuEvent*);
virtual void contextMenuEvent (TQContextMenuEvent*);
/** Popup menu. */
QPopupMenu* m_popup;
TQPopupMenu* m_popup;
};
/**Playlist class, contains the list of playlist items.
*@author kiriuja
*/
class KPlayerPlaylist : public QObject
class KPlayerPlaylist : public TQObject
{
Q_OBJECT
public:
/** The KPlayerPlaylist constructor. Creates an empty playlist. */
KPlayerPlaylist (KActionCollection* ac, QObject* parent = 0, const char* name = 0);
KPlayerPlaylist (KActionCollection* ac, TQObject* parent = 0, const char* name = 0);
/** The KPlayerPlaylist destructor. */
virtual ~KPlayerPlaylist();
/** Initializes playlist. */
void initialize (QPopupMenu* menu);
void initialize (TQPopupMenu* menu);
/** Releases referenced nodes. */
void terminate (void);
@ -182,7 +182,7 @@ signals:
void stopped (void);
/** Emitted when an action group is enabled or disabled. */
void enableActionGroup (const QString& name, bool enable);
void enableActionGroup (const TQString& name, bool enable);
public slots:
/** Plays the given node. */

@ -22,11 +22,11 @@
#include <kprocctrl.h>
#include <kstandarddirs.h>
#include <ktempfile.h>
#include <qdir.h>
#include <qfileinfo.h>
#include <qregexp.h>
#include <qsocketnotifier.h>
#include <qtimer.h>
#include <tqdir.h>
#include <tqfileinfo.h>
#include <tqregexp.h>
#include <tqsocketnotifier.h>
#include <tqtimer.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
@ -50,32 +50,32 @@
#define NO_SEEK_ORIGIN -5
#ifdef DEBUG_KPLAYER_DUMP
static QFile s_dump (QDir::homeDirPath() + "/kioslave.dump");
#endif
static QRegExp re_ext ("^[A-Za-z0-9]+$");
static QRegExp re_a_or_v ("^[AV]: *([0-9,:.-]+)");
static QRegExp re_a_and_v ("^A: *([0-9,:.-]+) +V: *([0-9,:.-]+)");
static QRegExp re_start ("^(?:Start playing|Starting playback|Za桧n醡 p鴈hr醰at|Starte Wiedergabe|P錬egynder afspilning|抨赀礴箸 犴狃狁徙<E78B81>掾|Empezando reproducci髇|D閙arre la lecture|Lej醫sz醩 ind韙醩a|Inizio la riproduzione|浩栏倡幌|鞛<>儩鞚<E584A9> 鞁滌瀾頃╇媹雼<E5AAB9>袩芯褔薪褍胁邪 锌谢械褬斜械泻芯褌|Start afspelen|Starter avspilling|Zaczynam odtwarzanie|In韈iando reprodu玢o|Rulez|盍蘖滔 紫c幸仙谧拍盼裳|Za桧nam prehr醰a粅莂lmaya ba<62>an齳or|鹣蘖韵<E89896> 幸锨伊琢挝褆开始播放|禱\}<EFB98D>)\\.\\.\\.", false);
//static QRegExp re_playing ("(?:^(?:Playing|P鴈hr醰醡|Spiele|Afspiller|另狃狁徙<E78B81><E5BE99> 麸鮸Reproduciendo|Joue|In riproduzione|袩褍褕褌械薪芯|Bezig met het afspelen van|Spiller|Odtwarzam|Reproduzindo|Rulez|鹨仙且僮廖膳|Prehr醰am|鹨锨伊琢挝褆播放|タ<><EFBFBD>) | (?:lej醫sz醩a|を浩栏面|鞛<>儩 欷憒莂l齨齳or)\\.*$)", false);
static QRegExp re_exiting ("^(?:Exiting|如腓玎靯Kon桧m|Beende| ?Afslutter| ?割镤矧|Saliendo|Sortie|Kil閜ek|In uscita|姜位しています|膦呺<E886A6>頃╇媹雼<E5AAB9>.|袠蟹谢械谐褍衸Bezig met afsluiten|Avslutter|Wychodz陓Saindo|Ie篿re|髻认纳蛗Kon桧m|驱k齦齳or|魃认纳拖|正在退出|タ<><EFBFBD>)", false);
static QRegExp re_quit ("^(?:Exiting|如腓玎靯Kon桧m|Beende| ?Afslutter| ?割镤矧|Saliendo|Sortie|Kil閜ek|In uscita|姜位しています|膦呺<E886A6>頃╇媹雼<E5AAB9>.|袠蟹谢械谐褍衸Bezig met afsluiten|Avslutter|Wychodz陓Saindo|Ie篿re|髻认纳蛗Kon桧m|驱k齦齳or|魃认纳拖|正在退出|タ<><EFBFBD>)\\.\\.\\. \\((?:Quit||Konec|Ende|Afslut||Salida\\.?|Fin|Kil|Uscita||<EFBFBD>||Stop|Avslutt|Wyjie|Sair|Ie篿re|Koniec|k<EFBFBD>|退|\})\\)", false);
static QRegExp re_success ("^(?:Exiting|如腓玎靯Kon桧m|Beende| ?Afslutter| ?割镤矧|Saliendo|Sortie|Kil閜ek|In uscita|姜位しています|辆丰钦聪促|行沸恍敌逞胁邪|Bezig met afsluiten|Avslutter|Wychodz陓Saindo|Ie篿re|髻认纳蛗Kon桧m|驱k齦齳or|魃认纳拖|正在退出|タ<><EFBFBD>)\\.\\.\\. \\((?:End of file| 羿Konec souboru|Ende der Datei|Slut p<EFBFBD> filen|<EFBFBD> <EFBFBD> Fin del archivo\\.?|Fin du fichier|Ve a file-nak|Fine del file||<EFBFBD> |Einde van bestand|Slutt p<EFBFBD> filen|Koniec pliku|Fim do arquivo|Sf篿t fi篿er|<EFBFBD> Koniec soru|Dosyan Sonu| |<EFBFBD>)\\)", false);
static QRegExp re_cache_fill ("^Cache fill: *([0-9]+[.,]?[0-9]*) *%", false);
static QRegExp re_generating_index ("^Generating Index: *([0-9]+[.,]?[0-9]*) *%", false);
static QRegExp re_mpeg12 ("mpeg[12]", false);
static QRegExp re_version ("^MPlayer *0\\.9.* \\(C\\) ");
static QRegExp re_crash ("^ID_SIGNAL=([0-9]+)$");
static QRegExp re_paused ("^ID_PAUSED$");
static QCString command_quit ("quit\n");
static QCString command_pause ("pause\n");
static QCString command_visibility ("sub_visibility\n");
static QCString command_seek_100 ("seek 100 1\n");
static QCString command_seek_99 ("seek 99 1\n");
static QCString command_seek_95 ("seek 95 1\n");
static QCString command_seek_90 ("seek 90 1\n");
static QCString command_seek_50 ("seek 50 1\n");
static TQFile s_dump (TQDir::homeDirPath() + "/kioslave.dump");
#endif
static TQRegExp re_ext ("^[A-Za-z0-9]+$");
static TQRegExp re_a_or_v ("^[AV]: *([0-9,:.-]+)");
static TQRegExp re_a_and_v ("^A: *([0-9,:.-]+) +V: *([0-9,:.-]+)");
static TQRegExp re_start ("^(?:Start playing|Starting playback|Za桧n醡 p鴈hr醰at|Starte Wiedergabe|P錬egynder afspilning|抨赀礴箸 犴狃狁徙<E78B81>掾|Empezando reproducci髇|D閙arre la lecture|Lej醫sz醩 ind韙醩a|Inizio la riproduzione|浩栏倡幌|鞛<>儩鞚<E584A9> 鞁滌瀾頃╇媹雼<E5AAB9>袩芯褔薪褍胁邪 锌谢械褬斜械泻芯褌|Start afspelen|Starter avspilling|Zaczynam odtwarzanie|In韈iando reprodu玢o|Rulez|盍蘖滔 紫c幸仙谧拍盼裳|Za桧nam prehr醰a粅莂lmaya ba<62>an齳or|鹣蘖韵<E89896> 幸锨伊琢挝褆开始播放|禱\}<EFB98D>)\\.\\.\\.", false);
//static TQRegExp re_playing ("(?:^(?:Playing|P鴈hr醰醡|Spiele|Afspiller|另狃狁徙<E78B81><E5BE99> 麸鮸Reproduciendo|Joue|In riproduzione|袩褍褕褌械薪芯|Bezig met het afspelen van|Spiller|Odtwarzam|Reproduzindo|Rulez|鹨仙且僮廖膳|Prehr醰am|鹨锨伊琢挝褆播放|タ<><EFBFBD>) | (?:lej醫sz醩a|を浩栏面|鞛<>儩 欷憒莂l齨齳or)\\.*$)", false);
static TQRegExp re_exiting ("^(?:Exiting|如腓玎靯Kon桧m|Beende| ?Afslutter| ?割镤矧|Saliendo|Sortie|Kil閜ek|In uscita|姜位しています|膦呺<E886A6>頃╇媹雼<E5AAB9>.|袠蟹谢械谐褍衸Bezig met afsluiten|Avslutter|Wychodz陓Saindo|Ie篿re|髻认纳蛗Kon桧m|驱k齦齳or|魃认纳拖|正在退出|タ<><EFBFBD>)", false);
static TQRegExp re_quit ("^(?:Exiting|如腓玎靯Kon桧m|Beende| ?Afslutter| ?割镤矧|Saliendo|Sortie|Kil閜ek|In uscita|姜位しています|膦呺<E886A6>頃╇媹雼<E5AAB9>.|袠蟹谢械谐褍衸Bezig met afsluiten|Avslutter|Wychodz陓Saindo|Ie篿re|髻认纳蛗Kon桧m|驱k齦齳or|魃认纳拖|正在退出|タ<><EFBFBD>)\\.\\.\\. \\((?:Quit||Konec|Ende|Afslut||Salida\\.?|Fin|Kil|Uscita||<EFBFBD>||Stop|Avslutt|Wyjie|Sair|Ie篿re|Koniec|k<EFBFBD>|退|\})\\)", false);
static TQRegExp re_success ("^(?:Exiting|如腓玎靯Kon桧m|Beende| ?Afslutter| ?割镤矧|Saliendo|Sortie|Kil閜ek|In uscita|姜位しています|辆丰钦聪促|行沸恍敌逞胁邪|Bezig met afsluiten|Avslutter|Wychodz陓Saindo|Ie篿re|髻认纳蛗Kon桧m|驱k齦齳or|魃认纳拖|正在退出|タ<><EFBFBD>)\\.\\.\\. \\((?:End of file| 羿Konec souboru|Ende der Datei|Slut p<EFBFBD> filen|<EFBFBD> <EFBFBD> Fin del archivo\\.?|Fin du fichier|Ve a file-nak|Fine del file||<EFBFBD> |Einde van bestand|Slutt p<EFBFBD> filen|Koniec pliku|Fim do arquivo|Sf篿t fi篿er|<EFBFBD> Koniec soru|Dosyan Sonu| |<EFBFBD>)\\)", false);
static TQRegExp re_cache_fill ("^Cache fill: *([0-9]+[.,]?[0-9]*) *%", false);
static TQRegExp re_generating_index ("^Generating Index: *([0-9]+[.,]?[0-9]*) *%", false);
static TQRegExp re_mpeg12 ("mpeg[12]", false);
static TQRegExp re_version ("^MPlayer *0\\.9.* \\(C\\) ");
static TQRegExp re_crash ("^ID_SIGNAL=([0-9]+)$");
static TQRegExp re_paused ("^ID_PAUSED$");
static TQCString command_quit ("quit\n");
static TQCString command_pause ("pause\n");
static TQCString command_visibility ("sub_visibility\n");
static TQCString command_seek_100 ("seek 100 1\n");
static TQCString command_seek_99 ("seek 99 1\n");
static TQCString command_seek_95 ("seek 95 1\n");
static TQCString command_seek_90 ("seek 90 1\n");
static TQCString command_seek_50 ("seek 50 1\n");
KPlayerLineOutputProcess::KPlayerLineOutputProcess (void)
{
@ -290,8 +290,8 @@ KPlayerProcess::KPlayerProcess (void)
m_fifo_offset = 0;
m_fifo_notifier = 0;
m_fifo_timer = 0;
QString home (QDir::homeDirPath());
QDir (home).mkdir (".mplayer");
TQString home (TQDir::homeDirPath());
TQDir (home).mkdir (".mplayer");
m_cache.setAutoDelete (true);
}
@ -321,8 +321,8 @@ void KPlayerProcess::transferTemporaryFile (void)
{
if ( properties() -> useKioslave() && properties() -> useTemporaryFile() && ! m_temporary_file )
{
QFileInfo fi (properties() -> url().fileName());
QString extension (fi.extension(false).lower());
TQFileInfo fi (properties() -> url().fileName());
TQString extension (fi.extension(false).lower());
if ( ! extension.isEmpty() )
extension = "." + extension;
m_temporary_file = new KTempFile (locateLocal ("tmp", "kpl"), extension);
@ -337,10 +337,10 @@ void KPlayerProcess::transferTemporaryFile (void)
m_temp_job = KIO::get (properties() -> url(), false, false);
m_temp_job -> setWindow (kPlayerWorkspace());
m_temp_job -> addMetaData ("PropagateHttpHeader", "true");
connect (m_temp_job, SIGNAL (data (KIO::Job*, const QByteArray&)), SLOT (transferTempData (KIO::Job*, const QByteArray&)));
connect (m_temp_job, SIGNAL (data (KIO::Job*, const TQByteArray&)), SLOT (transferTempData (KIO::Job*, const TQByteArray&)));
connect (m_temp_job, SIGNAL (result (KIO::Job*)), SLOT (transferTempDone (KIO::Job*)));
connect (m_temp_job, SIGNAL (percent (KIO::Job*, unsigned long)), SLOT (transferProgress (KIO::Job*, unsigned long)));
connect (m_temp_job, SIGNAL (infoMessage (KIO::Job*, const QString&)), SLOT (transferInfoMessage (KIO::Job*, const QString&)));
connect (m_temp_job, SIGNAL (infoMessage (KIO::Job*, const TQString&)), SLOT (transferInfoMessage (KIO::Job*, const TQString&)));
transferProgress (m_temp_job, 0);
m_delayed_helper = true;
}
@ -379,13 +379,13 @@ void KPlayerProcess::setState (State state)
emit stateChanged (state, previous);
}
QString KPlayerProcess::positionString (void) const
TQString KPlayerProcess::positionString (void) const
{
QString l (properties() -> lengthString()), p (timeString (position(), true));
TQString l (properties() -> lengthString()), p (timeString (position(), true));
return l.isEmpty() ? p : p + " / " + l;
}
void KPlayerProcess::sendHelperCommand (QCString& command)
void KPlayerProcess::sendHelperCommand (TQCString& command)
{
if ( ! m_helper )
return;
@ -395,7 +395,7 @@ void KPlayerProcess::sendHelperCommand (QCString& command)
#endif
}
void KPlayerProcess::sendPlayerCommand (QCString& command)
void KPlayerProcess::sendPlayerCommand (TQCString& command)
{
if ( ! m_player )
return;
@ -433,11 +433,11 @@ void KPlayerProcess::get_info (void)
}
m_helper = new KPlayerLineOutputProcess;
*m_helper << properties() -> executablePath() << "-slave" << "-ao" << "null" << "-vo" << "x11"
<< "-wid" << QString::number (kPlayerWorkspace() -> hiddenWidget() -> winId());
<< "-wid" << TQString::number (kPlayerWorkspace() -> hiddenWidget() -> winId());
if ( properties() -> cache() == 1 || ! properties() -> url().isLocalFile() && ! properties() -> useKioslave() )
*m_helper << "-nocache";
else if ( properties() -> cache() == 2 )
*m_helper << "-cache" << QString::number (properties() -> cacheSize());
*m_helper << "-cache" << TQString::number (properties() -> cacheSize());
connect (m_helper, SIGNAL (receivedStdoutLine (KPlayerLineOutputProcess*, char*, int)),
SLOT (receivedHelperLine (KPlayerLineOutputProcess*, char*, int)));
if ( ! run (m_helper) )
@ -463,12 +463,12 @@ void KPlayerProcess::play (void)
start();
}
QString resourcePath (const QString& filename)
TQString resourcePath (const TQString& filename)
{
#ifdef DEBUG_KPLAYER_PROCESS
kdDebugTime() << "Looking for " << filename << "\n";
#endif
QString path (KGlobal::dirs() -> findResource ("appdata", filename));
TQString path (KGlobal::dirs() -> findResource ("appdata", filename));
#ifdef DEBUG_KPLAYER_PROCESS
kdDebugTime() << " appdata '" << path << "'\n";
#endif
@ -518,8 +518,8 @@ void KPlayerProcess::start (void)
}*/
m_player = new KPlayerLineOutputProcess;
*m_player << properties() -> executablePath() << "-zoom" << "-noautosub" << "-slave"
<< "-wid" << QString::number (kPlayerWidget() -> winId()) << "-stop-xscreensaver";
QString driver (properties() -> videoDriverString());
<< "-wid" << TQString::number (kPlayerWidget() -> winId()) << "-stop-xscreensaver";
TQString driver (properties() -> videoDriverString());
if ( ! driver.isEmpty() )
{
if ( driver.startsWith ("xvmc") )
@ -532,7 +532,7 @@ void KPlayerProcess::start (void)
if ( ! driver.isEmpty() )
*m_player << "-ao" << driver;
if ( properties() -> softwareVolume() )
*m_player << "-softvol" << "-softvol-max" << QString::number (properties() -> maximumSoftwareVolume());
*m_player << "-softvol" << "-softvol-max" << TQString::number (properties() -> maximumSoftwareVolume());
else if ( driver.startsWith ("alsa") || driver.startsWith ("oss") )
{
driver = properties() -> mixerDevice();
@ -542,11 +542,11 @@ void KPlayerProcess::start (void)
if ( ! driver.isEmpty() )
*m_player << "-mixer-channel" << driver;
}
*m_player << "-osdlevel" << QCString().setNum (properties() -> osdLevel());
*m_player << "-contrast" << QCString().setNum (settings() -> contrast());
*m_player << "-brightness" << QCString().setNum (settings() -> brightness());
*m_player << "-hue" << QCString().setNum (settings() -> hue());
*m_player << "-saturation" << QCString().setNum (settings() -> saturation());
*m_player << "-osdlevel" << TQCString().setNum (properties() -> osdLevel());
*m_player << "-contrast" << TQCString().setNum (settings() -> contrast());
*m_player << "-brightness" << TQCString().setNum (settings() -> brightness());
*m_player << "-hue" << TQCString().setNum (settings() -> hue());
*m_player << "-saturation" << TQCString().setNum (settings() -> saturation());
if ( settings() -> frameDrop() == 0 )
*m_player << "-noframedrop";
else if ( settings() -> frameDrop() == 1 )
@ -557,21 +557,21 @@ void KPlayerProcess::start (void)
if ( cache == 0 && properties() -> useKioslave() && (! properties() -> useTemporaryFile() || ! m_temporary_file) )
*m_player << "-cache" << "1024";
else if ( cache == 2 )
*m_player << "-cache" << QString().setNum (properties() -> cacheSize());
*m_player << "-cache" << TQString().setNum (properties() -> cacheSize());
else if ( cache == 1 )
*m_player << "-nocache";
if ( properties() -> videoScaler() > 0 )
*m_player << "-sws" << QCString().setNum (properties() -> videoScaler());
*m_player << "-sws" << TQCString().setNum (properties() -> videoScaler());
m_audio_delay = settings() -> audioDelay();
if ( m_audio_delay != 0 )
*m_player << "-delay" << QCString().setNum (m_audio_delay);
*m_player << "-delay" << TQCString().setNum (m_audio_delay);
if ( properties() -> hasVideoID() )
*m_player << "-vid" << QCString().setNum (properties() -> videoID());
*m_player << "-vid" << TQCString().setNum (properties() -> videoID());
m_audio_id = properties() -> audioID();
if ( m_audio_id > -1 )
*m_player << "-aid" << QCString().setNum (m_audio_id);
*m_player << "-aid" << TQCString().setNum (m_audio_id);
m_subtitles.clear();
m_vobsub = QString::null;
m_vobsub = TQString::null;
m_subtitle_index = properties() -> subtitleIndex();
if ( settings() -> hasSubtitles() )
{
@ -580,17 +580,17 @@ void KPlayerProcess::start (void)
m_vobsub = settings() -> vobsubSubtitles();
*m_player << "-vobsub" << m_vobsub;
if ( properties() -> hasVobsubID() )
*m_player << "-vobsubid" << QString::number (properties() -> vobsubID());
*m_player << "-vobsubid" << TQString::number (properties() -> vobsubID());
else
m_send_subtitle_index = m_subtitle_index;
}
else if ( settings() -> showSubtitles() )
{
if ( properties() -> hasSubtitleID() )
*m_player << "-sid" << QString::number (properties() -> subtitleID());
*m_player << "-sid" << TQString::number (properties() -> subtitleID());
else if ( settings() -> hasExternalSubtitles() )
{
QString urls (settings() -> currentSubtitles());
TQString urls (settings() -> currentSubtitles());
if ( urls.find (',') < 0 )
*m_player << "-sub" << urls;
else
@ -603,11 +603,11 @@ void KPlayerProcess::start (void)
}
m_subtitle_delay = settings() -> subtitleDelay();
if ( m_subtitle_delay != 0 )
*m_player << "-subdelay" << QCString().setNum (m_subtitle_delay);
*m_player << "-subdelay" << TQCString().setNum (m_subtitle_delay);
m_subtitle_position = settings() -> subtitlePosition();
if ( m_subtitle_position != 100 )
*m_player << "-subpos" << QCString().setNum (m_subtitle_position);
QString font (configuration() -> subtitleFontName());
*m_player << "-subpos" << TQCString().setNum (m_subtitle_position);
TQString font (configuration() -> subtitleFontName());
if ( configuration() -> subtitleFontBold() )
font += ":bold";
if ( configuration() -> subtitleFontItalic() )
@ -615,12 +615,12 @@ void KPlayerProcess::start (void)
*m_player << "-fontconfig" << "-font" << font;
*m_player << "-subfont-autoscale" << (configuration() -> subtitleAutoscale() ? "3" : "0");
if ( configuration() -> subtitleTextSize() )
*m_player << "-subfont-text-scale" << QString::number (configuration() -> subtitleTextSize());
*m_player << "-subfont-text-scale" << TQString::number (configuration() -> subtitleTextSize());
if ( configuration() -> hasSubtitleFontOutline() )
*m_player << "-ffactor" << configuration() -> subtitleFontOutlineString();
if ( configuration() -> hasSubtitleTextWidth() )
*m_player << "-subwidth" << configuration() -> subtitleTextWidthString();
const QString& encoding (properties() -> subtitleEncoding());
const TQString& encoding (properties() -> subtitleEncoding());
if ( encoding == "UTF-8" )
*m_player << "-utf8";
else if ( ! encoding.isEmpty() )
@ -637,7 +637,7 @@ void KPlayerProcess::start (void)
if ( ! properties() -> videoDriverString().startsWith ("sdl")
&& ! properties() -> videoDriverString().startsWith ("svga") )
{
QString path = resourcePath ("input.conf");
TQString path = resourcePath ("input.conf");
if ( ! path.isEmpty() )
*m_player << "-input" << "conf=" + path;
#ifdef DEBUG_KPLAYER_PROCESS
@ -653,12 +653,12 @@ void KPlayerProcess::start (void)
delete m_temporary_file;
m_temporary_file = 0;
}
QString ext (properties() -> extension());
TQString ext (properties() -> extension());
if ( re_ext.search (ext) >= 0 )
ext.prepend ('.');
else
ext = "";
m_fifo_name = QFile::encodeName (QDir::homeDirPath() + "/.mplayer/kpstream" + ext);
m_fifo_name = TQFile::encodeName (TQDir::homeDirPath() + "/.mplayer/kpstream" + ext);
removeDataFifo();
#ifdef HAVE_MKFIFO
#ifdef DEBUG_KPLAYER_PROCESS
@ -679,7 +679,7 @@ void KPlayerProcess::start (void)
#endif
}
else
m_fifo_name = QCString();
m_fifo_name = TQCString();
connect (m_player, SIGNAL (receivedStdoutLine (KPlayerLineOutputProcess*, char*, int)),
SLOT (receivedOutputLine (KPlayerLineOutputProcess*, char*, int)));
connect (m_player, SIGNAL (receivedStderrLine (KPlayerLineOutputProcess*, char*, int)),
@ -704,9 +704,9 @@ void KPlayerProcess::start (void)
m_slave_job = KIO::get (properties() -> url(), false, false);
m_slave_job -> setWindow (kPlayerWorkspace());
m_slave_job -> addMetaData ("PropagateHttpHeader", "true");
connect (m_slave_job, SIGNAL (data (KIO::Job*, const QByteArray&)), SLOT (transferData (KIO::Job*, const QByteArray&)));
connect (m_slave_job, SIGNAL (data (KIO::Job*, const TQByteArray&)), SLOT (transferData (KIO::Job*, const TQByteArray&)));
connect (m_slave_job, SIGNAL (result (KIO::Job*)), SLOT (transferDone (KIO::Job*)));
connect (m_slave_job, SIGNAL (infoMessage (KIO::Job*, const QString&)), SLOT (transferInfoMessage (KIO::Job*, const QString&)));
connect (m_slave_job, SIGNAL (infoMessage (KIO::Job*, const TQString&)), SLOT (transferInfoMessage (KIO::Job*, const TQString&)));
m_cache_size = properties() -> cache() == 2 ? properties() -> cacheSize() * 1024 : 1048576;
m_first_chunk = true;
#ifdef DEBUG_KPLAYER_PROCESS
@ -737,11 +737,11 @@ void KPlayerProcess::restart (void)
bool KPlayerProcess::run (KPlayerLineOutputProcess* player)
{
static QRegExp re_space (" +");
static TQRegExp re_space (" +");
#ifdef DEBUG_KPLAYER_PROCESS
kdDebugTime() << "Process: Run\n";
#endif
QString codec (properties() -> videoCodecString());
TQString codec (properties() -> videoCodecString());
if ( ! codec.isEmpty() )
*player << "-vc" << codec;
codec = properties() -> audioCodecString();
@ -755,9 +755,9 @@ bool KPlayerProcess::run (KPlayerLineOutputProcess* player)
else if ( properties() -> buildNewIndex() == 2 )
*player << "-forceidx";
*player << "-noquiet" << "-msglevel" << "identify=4";
QString commandline = properties() -> commandLine();
TQString commandline = properties() -> commandLine();
if ( ! commandline.isEmpty() )
*player << QStringList::split (re_space, commandline);
*player << TQStringList::split (re_space, commandline);
codec = properties() -> deviceSetting();
if ( ! codec.isEmpty() )
*player << properties() -> deviceOption() << codec;
@ -766,7 +766,7 @@ bool KPlayerProcess::run (KPlayerLineOutputProcess* player)
else
*player << "--";
if ( properties() -> useKioslave() )
*player << (properties() -> useTemporaryFile() && m_temporary_file ? QFile::encodeName (m_temporary_file -> name()) : m_fifo_name);
*player << (properties() -> useTemporaryFile() && m_temporary_file ? TQFile::encodeName (m_temporary_file -> name()) : m_fifo_name);
else
*player << properties() -> urlString();
connect (player, SIGNAL (processExited (KProcess*)), SLOT (playerProcessExited (KProcess*)));
@ -930,17 +930,17 @@ void KPlayerProcess::absoluteSeek (int seconds)
else
seconds --;
}
QCString s ("seek ");
TQCString s ("seek ");
// broken codec workaround
if ( properties() -> length() >= MIN_VIDEO_LENGTH
&& re_mpeg12.search (properties() -> videoCodecString()) >= 0
&& properties() -> deviceOption().isEmpty() )
{
seconds = limit (int (float (seconds) / properties() -> length() * 100 + 0.5), 0, 100);
s += QCString().setNum (seconds) + " 1\n";
s += TQCString().setNum (seconds) + " 1\n";
}
else
s += QCString().setNum (seconds) + " 2\n";
s += TQCString().setNum (seconds) + " 2\n";
sendPlayerCommand (s);
m_seek = true;
m_seek_origin = position();
@ -954,14 +954,14 @@ void KPlayerProcess::relativeSeek (int seconds)
{
if ( ! m_player || m_quit || seconds == 0 )
return;
QCString s ("seek ");
TQCString s ("seek ");
// broken codec workaround
if ( (seconds > 4 || seconds < -4) && properties() -> length() >= MIN_VIDEO_LENGTH
&& re_mpeg12.search (properties() -> videoCodecString()) >= 0
&& properties() -> deviceOption().isEmpty() )
{
//seconds = limit (int ((m_position + seconds) / properties() -> length() * 100 + 0.5), 0, 100);
//s += QCString().setNum (seconds) + " 1\n";
//s += TQCString().setNum (seconds) + " 1\n";
//if ( m_send_seek )
// m_absolute_seek += seconds;
//else
@ -969,7 +969,7 @@ void KPlayerProcess::relativeSeek (int seconds)
return;
}
else
s += QCString().setNum (seconds) + "\n";
s += TQCString().setNum (seconds) + "\n";
sendPlayerCommand (s);
m_seek = true;
}
@ -984,8 +984,8 @@ void KPlayerProcess::volume (int volume)
return;
}
volume = limit (volume, 0, 100);
QCString s ("volume ");
s += QCString().setNum (volume) + " 1\n";
TQCString s ("volume ");
s += TQCString().setNum (volume) + " 1\n";
sendPlayerCommand (s);
m_send_volume = false;
}
@ -999,8 +999,8 @@ void KPlayerProcess::frameDrop (int frame_drop)
m_send_frame_drop = true;
return;
}
QCString s ("frame_drop ");
s += QCString().setNum (frame_drop) + "\n";
TQCString s ("frame_drop ");
s += TQCString().setNum (frame_drop) + "\n";
sendPlayerCommand (s);
m_send_frame_drop = false;
}
@ -1015,8 +1015,8 @@ void KPlayerProcess::contrast (int contrast)
return;
}
contrast = limit (contrast, -100, 100);
QCString s ("contrast ");
s += QCString().setNum (contrast) + " 1\n";
TQCString s ("contrast ");
s += TQCString().setNum (contrast) + " 1\n";
sendPlayerCommand (s);
m_send_contrast = false;
}
@ -1031,8 +1031,8 @@ void KPlayerProcess::brightness (int brightness)
return;
}
brightness = limit (brightness, -100, 100);
QCString s ("brightness ");
s += QCString().setNum (brightness) + " 1\n";
TQCString s ("brightness ");
s += TQCString().setNum (brightness) + " 1\n";
sendPlayerCommand (s);
m_send_brightness = false;
}
@ -1047,8 +1047,8 @@ void KPlayerProcess::hue (int hue)
return;
}
hue = limit (hue, -100, 100);
QCString s ("hue ");
s += QCString().setNum (hue) + " 1\n";
TQCString s ("hue ");
s += TQCString().setNum (hue) + " 1\n";
sendPlayerCommand (s);
m_send_hue = false;
}
@ -1063,8 +1063,8 @@ void KPlayerProcess::saturation (int saturation)
return;
}
saturation = limit (saturation, -100, 100);
QCString s ("saturation ");
s += QCString().setNum (saturation) + " 1\n";
TQCString s ("saturation ");
s += TQCString().setNum (saturation) + " 1\n";
sendPlayerCommand (s);
m_send_saturation = false;
}
@ -1086,8 +1086,8 @@ void KPlayerProcess::subtitleMove (int position, bool absolute)
position += m_send_subtitle_position;
if ( position == 0 )
return;
QCString s ("sub_pos ");
s += QCString().setNum (position) + "\n";
TQCString s ("sub_pos ");
s += TQCString().setNum (position) + "\n";
sendPlayerCommand (s);
m_send_subtitle_position = 0;
}
@ -1109,8 +1109,8 @@ void KPlayerProcess::subtitleDelay (float delay, bool absolute)
delay += m_send_subtitle_delay;
if ( delay < 0.001 && delay > - 0.001 )
return;
QCString s ("sub_delay ");
s += QCString().setNum (- delay) + "\n";
TQCString s ("sub_delay ");
s += TQCString().setNum (- delay) + "\n";
sendPlayerCommand (s);
m_send_subtitle_delay = 0;
}
@ -1124,8 +1124,8 @@ void KPlayerProcess::subtitleIndex (int index)
m_send_subtitle_index = index;
return;
}
QCString s ("sub_select ");
s += QCString().setNum (index) + "\n";
TQCString s ("sub_select ");
s += TQCString().setNum (index) + "\n";
sendPlayerCommand (s);
m_subtitle_index = index;
m_send_subtitle_index = -2;
@ -1166,7 +1166,7 @@ void KPlayerProcess::subtitles (void)
m_send_subtitle_load = false;
return;
}
QString subtitle (settings() -> currentSubtitles());
TQString subtitle (settings() -> currentSubtitles());
index = m_subtitles.findIndex (subtitle);
if ( index >= 0 )
{
@ -1179,7 +1179,7 @@ void KPlayerProcess::subtitles (void)
m_send_subtitle_load = true;
return;
}
QCString s ("sub_load ");
TQCString s ("sub_load ");
s += '"' + subtitle.utf8() + "\"\n";
sendPlayerCommand (s);
m_send_subtitle_load = false;
@ -1202,8 +1202,8 @@ void KPlayerProcess::audioDelay (float delay, bool absolute)
delay += m_send_audio_delay;
if ( delay < 0.001 && delay > - 0.001 )
return;
QCString s ("audio_delay ");
s += QCString().setNum (- delay) + "\n";
TQCString s ("audio_delay ");
s += TQCString().setNum (- delay) + "\n";
sendPlayerCommand (s);
m_send_audio_delay = 0;
}
@ -1219,11 +1219,11 @@ void KPlayerProcess::audioID (int id)
}
if ( id != m_audio_id )
{
QRegExp demuxers (configuration() -> switchAudioDemuxers());
TQRegExp demuxers (configuration() -> switchAudioDemuxers());
if ( demuxers.search (properties() -> demuxerString()) >= 0 )
{
QCString s ("switch_audio ");
s += QCString().setNum (id) + "\n";
TQCString s ("switch_audio ");
s += TQCString().setNum (id) + "\n";
sendPlayerCommand (s);
m_audio_id = id;
}
@ -1233,7 +1233,7 @@ void KPlayerProcess::audioID (int id)
m_send_audio_id = false;
}
void KPlayerProcess::transferData (KIO::Job* job, const QByteArray& data)
void KPlayerProcess::transferData (KIO::Job* job, const TQByteArray& data)
{
if ( job && job == m_slave_job && m_player )
{
@ -1244,13 +1244,13 @@ void KPlayerProcess::transferData (KIO::Job* job, const QByteArray& data)
#ifdef DEBUG_KPLAYER_KIOSLAVE
kdDebugTime() << "Process: Cache: Creating new chunk, size " << data.size() << "\n";
#endif
m_cache.append (new QByteArray (data.copy()));
m_cache.append (new TQByteArray (data.copy()));
}
else
{
QByteArray* array = m_cache.last();
TQByteArray* array = m_cache.last();
int size = array -> size();
array -> resize (size + data.size(), QGArray::SpeedOptim);
array -> resize (size + data.size(), TQGArray::SpeedOptim);
#ifdef DEBUG_KPLAYER_KIOSLAVE
if ( array -> size() != size + data.size() )
kdDebugTime() << "Process: Cache: Size mismatch: " << size << " + " << data.size() << " = " << array -> size() << "\n";
@ -1286,7 +1286,7 @@ void KPlayerProcess::transferData (KIO::Job* job, const QByteArray& data)
}
}
void KPlayerProcess::transferTempData (KIO::Job* job, const QByteArray& data)
void KPlayerProcess::transferTempData (KIO::Job* job, const TQByteArray& data)
{
if ( job && job == m_temp_job && m_temporary_file )
{
@ -1323,7 +1323,7 @@ void KPlayerProcess::transferProgress (KIO::Job* job, unsigned long progress)
#endif
}
void KPlayerProcess::transferInfoMessage (KIO::Job* job, const QString& message)
void KPlayerProcess::transferInfoMessage (KIO::Job* job, const TQString& message)
{
if ( job && (job == m_slave_job || job == m_temp_job) )
emit messageReceived (message);
@ -1340,7 +1340,7 @@ void KPlayerProcess::transferDone (KIO::Job* job)
#endif
if ( job -> error() != 0 && (job -> error() != 20 || ! m_quit) || error_page )
{
QString errorString;
TQString errorString;
if ( job -> error() != 0 )
{
errorString = job -> errorString();
@ -1399,7 +1399,7 @@ void KPlayerProcess::transferTempDone (KIO::Job* job)
#endif
if ( job -> error() != 0 && (job -> error() != 20 || ! m_quit) || m_temp_job -> isErrorPage() )
{
QString errorString;
TQString errorString;
if ( job -> error() != 0 )
errorString = job -> errorString();
else if ( m_temp_job -> isErrorPage() )
@ -1420,12 +1420,12 @@ void KPlayerProcess::transferTempDone (KIO::Job* job)
}
/*if ( m_temp_job -> isErrorPage() )
emit messageReceived ("HTTP request returned an error");
QString errorString (job -> errorString());
TQString errorString (job -> errorString());
if ( ! errorString.isEmpty() )
emit messageReceived (errorString);
KURL url (settings() -> url());
QStringList errors (job -> detailedErrorStrings (&url));
for ( QStringList::Iterator it = errors.begin(); it != errors.end(); ++ it )
TQStringList errors (job -> detailedErrorStrings (&url));
for ( TQStringList::Iterator it = errors.begin(); it != errors.end(); ++ it )
if ( ! (*it).isEmpty() )
emit messageReceived (*it);*/
emit errorDetected();
@ -1521,7 +1521,7 @@ void KPlayerProcess::sendFifoData (void)
delete m_fifo_timer;
m_fifo_timer = 0;
}
m_fifo_notifier = new QSocketNotifier (m_fifo_handle, QSocketNotifier::Write);
m_fifo_notifier = new TQSocketNotifier (m_fifo_handle, TQSocketNotifier::Write);
m_fifo_notifier -> setEnabled (false);
connect (m_fifo_notifier, SIGNAL (activated (int)), SLOT (playerDataWritten (int)));
}
@ -1530,14 +1530,14 @@ void KPlayerProcess::sendFifoData (void)
#ifdef DEBUG_KPLAYER_PROCESS
kdDebugTime() << "Process: fifo open failed, creating timer\n";
#endif
m_fifo_timer = new QTimer (this);
m_fifo_timer = new TQTimer (this);
connect (m_fifo_timer, SIGNAL (timeout()), SLOT (sendFifoData()));
m_fifo_timer -> start (100);
}
}
if ( m_fifo_handle >= 0 )
{
QByteArray* array = m_cache.first();
TQByteArray* array = m_cache.first();
if ( array && array -> size() > m_fifo_offset )
{
#ifdef DEBUG_KPLAYER_KIOSLAVE
@ -1569,7 +1569,7 @@ void KPlayerProcess::playerDataWritten (int fd)
#ifdef DEBUG_KPLAYER_KIOSLAVE
kdDebugTime() << "Process: Cache: Data written\n";
#endif
QByteArray* array = m_cache.first();
TQByteArray* array = m_cache.first();
if ( array && array -> size() <= m_fifo_offset )
{
#ifdef DEBUG_KPLAYER_KIOSLAVE
@ -1617,7 +1617,7 @@ void KPlayerProcess::playerProcessExited (KProcess *proc)
if ( m_slave_job )
m_slave_job -> kill (false);
removeDataFifo();
m_fifo_name = QCString();
m_fifo_name = TQCString();
if ( ! m_quit )
setState (Idle);
}
@ -1701,7 +1701,7 @@ void KPlayerProcess::receivedOutputLine (KPlayerLineOutputProcess* proc, char* s
else if ( m_state < Playing || strncmp (str, "ID_", 3) == 0
|| strncmp (str, "Name", 4) == 0 || strncmp (str, "ICY Info:", 9) == 0 )
{
QSize size (properties() -> originalSize());
TQSize size (properties() -> originalSize());
bool hadVideo = properties() -> hasVideo();
bool hadLength = properties() -> hasLength();
properties() -> extractMeta (str, true);
@ -1808,8 +1808,8 @@ void KPlayerProcess::receivedOutputLine (KPlayerLineOutputProcess* proc, char* s
#ifdef DEBUG_KPLAYER_PROCESS
kdDebugTime() << "Process: Sending audio delay\n";
#endif
QCString s ("audio_delay ");
s += QCString().setNum (- m_send_audio_delay) + "\n";
TQCString s ("audio_delay ");
s += TQCString().setNum (- m_send_audio_delay) + "\n";
sendPlayerCommand (s);
m_send_audio_delay = 0;
}
@ -1818,8 +1818,8 @@ void KPlayerProcess::receivedOutputLine (KPlayerLineOutputProcess* proc, char* s
#ifdef DEBUG_KPLAYER_PROCESS
kdDebugTime() << "Process: Sending subtitle delay\n";
#endif
QCString s ("sub_delay ");
s += QCString().setNum (- m_send_subtitle_delay) + "\n";
TQCString s ("sub_delay ");
s += TQCString().setNum (- m_send_subtitle_delay) + "\n";
sendPlayerCommand (s);
m_send_subtitle_delay = 0;
}
@ -1828,8 +1828,8 @@ void KPlayerProcess::receivedOutputLine (KPlayerLineOutputProcess* proc, char* s
#ifdef DEBUG_KPLAYER_PROCESS
kdDebugTime() << "Process: Sending subtitle position\n";
#endif
QCString s ("sub_pos ");
s += QCString().setNum (m_send_subtitle_position) + "\n";
TQCString s ("sub_pos ");
s += TQCString().setNum (m_send_subtitle_position) + "\n";
sendPlayerCommand (s);
m_send_subtitle_position = 0;
}
@ -1955,7 +1955,7 @@ void KPlayerProcess::receivedOutputLine (KPlayerLineOutputProcess* proc, char* s
}
else if ( ! m_quit )
{
emit messageReceived (QString::fromLocal8Bit (str));
emit messageReceived (TQString::fromLocal8Bit (str));
#ifdef DEBUG_KPLAYER_PROCESS
kdDebugTime() << "process >> " << str << "\n";
#endif

@ -20,9 +20,9 @@
#include <kio/job.h>
#include <kprocess.h>
#include <kurl.h>
#include <qfile.h>
#include <qobject.h>
#include <qptrlist.h>
#include <tqfile.h>
#include <tqobject.h>
#include <tqptrlist.h>
class KPlayerConfiguration;
class KPlayerTrackProperties;
@ -108,7 +108,7 @@ protected:
/**Handles the MPlayer process invocation, input and output.
*@author kiriuja
*/
class KPlayerProcess : public QObject
class KPlayerProcess : public TQObject
{
Q_OBJECT
@ -176,7 +176,7 @@ public:
float position (void) const
{ return m_position; }
/** Current position as string. */
QString positionString (void) const;
TQString positionString (void) const;
/** Changes volume level. */
void volume (int);
@ -232,9 +232,9 @@ protected:
KPlayerConfiguration* configuration (void) const;
/** Sends the given command to the MPlayer process. */
void sendPlayerCommand (QCString&);
void sendPlayerCommand (TQCString&);
/** Sends the given command to the MPlayer helper process. */
void sendHelperCommand (QCString&);
void sendHelperCommand (TQCString&);
/** Closes and unlinks the named pipe. */
void removeDataFifo (void);
@ -262,22 +262,22 @@ protected:
void transferTemporaryFile (void);
/** Name of named pipe used to send data to MPlayer. */
QCString m_fifo_name;
TQCString m_fifo_name;
/** Handle of named pipe used to send data to MPlayer. */
int m_fifo_handle;
/** Offset of data to send. */
uint m_fifo_offset;
/** Fifo notifier object. */
QSocketNotifier* m_fifo_notifier;
TQSocketNotifier* m_fifo_notifier;
/** Fifo timer object. */
QTimer* m_fifo_timer;
TQTimer* m_fifo_timer;
/** Transfer job. */
KIO::TransferJob* m_slave_job;
/** Temporary file transfer job. */
KIO::TransferJob* m_temp_job;
/** Cached transfer data. */
QPtrList<QByteArray> m_cache;
TQPtrList<TQByteArray> m_cache;
/** Temporary file from KIOSlave. */
KTempFile* m_temporary_file;
@ -288,9 +288,9 @@ protected:
/** Current subtitle index. */
int m_subtitle_index;
/** Current list of external subtitles. */
QStringList m_subtitles;
TQStringList m_subtitles;
/** Current vobsub external subtitles. */
QString m_vobsub;
TQString m_vobsub;
/** Current audio delay. */
float m_audio_delay;
@ -324,13 +324,13 @@ protected slots:
/** Receives notification when the data has been written to the fifo. */
void playerDataWritten (int);
/** Transfers data from a KIOSlave to an MPlayer process. */
void transferData (KIO::Job*, const QByteArray&);
void transferData (KIO::Job*, const TQByteArray&);
/** Transfers data from a KIOSlave to a temporary file. */
void transferTempData (KIO::Job*, const QByteArray&);
void transferTempData (KIO::Job*, const TQByteArray&);
/** Emits file transfer progress signal. */
void transferProgress (KIO::Job*, unsigned long);
/** Emits message received signal. */
void transferInfoMessage (KIO::Job*, const QString&);
void transferInfoMessage (KIO::Job*, const TQString&);
/** Processes the result of a slave transfer job. */
void transferDone (KIO::Job*);
/** Processes the result of a temporary file transfer job. */
@ -350,7 +350,7 @@ signals:
/** Emitted when the video size becomes known. */
void sizeAvailable (void);
/** Emitted when a message is received from the mplayer process. */
void messageReceived (QString);
void messageReceived (TQString);
/** Emitted when MPlayer fails to play a file. */
void errorDetected (void);
};

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>KPlayerPropertiesAdvancedPage</class>
<widget class="QFrame">
<widget class="TQFrame">
<property name="name">
<cstring>KPlayerPropertiesAdvancedPage</cstring>
</property>
@ -36,7 +36,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QFrame" row="0" column="0">
<widget class="TQFrame" row="0" column="0">
<property name="name">
<cstring>frame1</cstring>
</property>
@ -58,7 +58,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout1</cstring>
</property>
@ -66,7 +66,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel" row="0" column="0" colspan="2">
<widget class="TQLabel" row="0" column="0" colspan="2">
<property name="name">
<cstring>l_command_line</cstring>
</property>
@ -86,7 +86,7 @@
<string>Additional options that will be passed to MPlayer on the command line. See mplayer(1) manpage for a complete list of possible options.</string>
</property>
</widget>
<widget class="QComboBox" row="1" column="0">
<widget class="TQComboBox" row="1" column="0">
<item>
<property name="text">
<string>default</string>
@ -112,7 +112,7 @@
<string>Choose how to combine the options you specify here with the defaults set in KPlayer Settings. Default uses options from KPlayer Settings, Set To replaces them with the options set here, and Append adds these options to the defaults.</string>
</property>
</widget>
<widget class="QLineEdit" row="1" column="1">
<widget class="TQLineEdit" row="1" column="1">
<property name="name">
<cstring>c_command_line</cstring>
</property>
@ -133,7 +133,7 @@
</widget>
</grid>
</widget>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout2</cstring>
</property>
@ -141,7 +141,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel" row="0" column="0">
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>l_demuxer</cstring>
</property>
@ -161,7 +161,7 @@
<string>Property that shows and allows you to change the demultiplexer used for the file or stream. If the chosen demuxer fails, another one may be used.</string>
</property>
</widget>
<widget class="QComboBox" row="0" column="1" colspan="3">
<widget class="TQComboBox" row="0" column="1" colspan="3">
<property name="name">
<cstring>c_demuxer</cstring>
</property>
@ -180,7 +180,7 @@
<string>Property that shows and allows you to change the demultiplexer used for the file or stream. If the chosen demuxer fails, another one may be used.</string>
</property>
</widget>
<widget class="QLabel" row="1" column="0">
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>l_frame_drop</cstring>
</property>
@ -200,7 +200,7 @@
<string>If your system is too slow to play this file, MPlayer can drop some frames so playback does not slow down. Default uses the default from KPlayer Settings, None disables dropping, Soft drops fewer frames, and Hard drops more frames and may sometimes break decoding. If you select a frame dropping option from Player menu while holding Shift key, KPlayer will remember that choice in this property for the currently loaded file.</string>
</property>
</widget>
<widget class="QComboBox" row="1" column="1">
<widget class="TQComboBox" row="1" column="1">
<item>
<property name="text">
<string>default</string>
@ -231,7 +231,7 @@
<string>If your system is too slow to play this file, MPlayer can drop some frames so playback does not slow down. Default uses the default from KPlayer Settings, None disables dropping, Soft drops fewer frames, and Hard drops more frames and may sometimes break decoding. If you select a frame dropping option from Player menu while holding Shift key, KPlayer will remember that choice in this property for the currently loaded file.</string>
</property>
</widget>
<widget class="QLabel" row="2" column="0">
<widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>l_use_cache</cstring>
</property>
@ -251,7 +251,7 @@
<string>Option to choose whether to use cache and set its size. Default uses the option set in KPlayer Settings, Auto lets MPlayer use the its own configuration, None tells MPlayer to use no cache, and Set Size lets you set a specific size.</string>
</property>
</widget>
<widget class="QComboBox" row="2" column="1">
<widget class="TQComboBox" row="2" column="1">
<item>
<property name="text">
<string>default</string>
@ -282,7 +282,7 @@
<string>Option to choose whether to use cache and set its size. Default uses the option set in KPlayer Settings, Auto lets MPlayer use the its own configuration, None tells MPlayer to use no cache, and Set Size lets you set a specific size.</string>
</property>
</widget>
<widget class="QLineEdit" row="2" column="2">
<widget class="TQLineEdit" row="2" column="2">
<property name="name">
<cstring>c_cache_size</cstring>
</property>
@ -310,7 +310,7 @@
<string>Option to choose whether to use cache and set its size. Default uses the option set in KPlayer Settings, Auto lets MPlayer use the its own configuration, None tells MPlayer to use no cache, and Set Size lets you set a specific size.</string>
</property>
</widget>
<widget class="QLabel" row="2" column="3">
<widget class="TQLabel" row="2" column="3">
<property name="name">
<cstring>l_cache_size_kb</cstring>
</property>
@ -335,7 +335,7 @@
<string>Option to choose whether to use cache and set its size. Default uses the option set in KPlayer Settings, Auto lets MPlayer use the its own configuration, None tells MPlayer to use no cache, and Set Size lets you set a specific size.</string>
</property>
</widget>
<widget class="QLabel" row="3" column="0">
<widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>l_build_index</cstring>
</property>
@ -355,7 +355,7 @@
<string>Option to choose whether to build new index for seeking. Default uses the option from KPlayer Settings, Yes builds an index if the file does not have it, No tells MPlayer not to build index, and Force makes it always build an index.</string>
</property>
</widget>
<widget class="QComboBox" row="3" column="1">
<widget class="TQComboBox" row="3" column="1">
<item>
<property name="text">
<string>default</string>
@ -386,7 +386,7 @@
<string>Option to choose whether to build new index for seeking. Default uses the option from KPlayer Settings, Yes builds an index if the file does not have it, No tells MPlayer not to build index, and Force makes it always build an index.</string>
</property>
</widget>
<widget class="QLabel" row="4" column="0">
<widget class="TQLabel" row="4" column="0">
<property name="name">
<cstring>l_use_kioslave</cstring>
</property>
@ -406,7 +406,7 @@
<string>Option to choose whether to use a KDE I/O Slave to play this file. Auto decides it automatically using options set in KPlayer Settings.</string>
</property>
</widget>
<widget class="QComboBox" row="4" column="1">
<widget class="TQComboBox" row="4" column="1">
<item>
<property name="text">
<string>auto</string>
@ -432,7 +432,7 @@
<string>Option to choose whether to use a KDE I/O Slave to play this file. Auto decides it automatically using options set in KPlayer Settings.</string>
</property>
</widget>
<widget class="QLabel" row="5" column="0">
<widget class="TQLabel" row="5" column="0">
<property name="name">
<cstring>l_use_temporary_file</cstring>
</property>
@ -452,7 +452,7 @@
<string>Option to choose whether to use a temporary file for playing from KDE I/O Slave. Default uses the option from KPlayer Settings. This option has no effect for URLs passed directly to MPlayer.</string>
</property>
</widget>
<widget class="QComboBox" row="5" column="1">
<widget class="TQComboBox" row="5" column="1">
<item>
<property name="text">
<string>default</string>
@ -480,7 +480,7 @@
</widget>
</grid>
</widget>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>l_compression</cstring>
</property>
@ -488,7 +488,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QCheckBox" row="0" column="0">
<widget class="TQCheckBox" row="0" column="0">
<property name="name">
<cstring>c_compression</cstring>
</property>
@ -502,7 +502,7 @@
<string>Option to choose whether to use hardware compression and set image size and quality.</string>
</property>
</widget>
<widget class="QComboBox" row="0" column="1">
<widget class="TQComboBox" row="0" column="1">
<item>
<property name="text">
<string>full size</string>
@ -528,7 +528,7 @@
<string>Option to choose whether to use hardware compression and set image size and quality.</string>
</property>
</widget>
<widget class="QLabel" row="0" column="2">
<widget class="TQLabel" row="0" column="2">
<property name="name">
<cstring>l_quality</cstring>
</property>
@ -548,7 +548,7 @@
<string>Option to choose whether to use hardware compression and set image size and quality.</string>
</property>
</widget>
<widget class="QLineEdit" row="0" column="3">
<widget class="TQLineEdit" row="0" column="3">
<property name="name">
<cstring>c_quality</cstring>
</property>
@ -576,7 +576,7 @@
<string>Option to choose whether to use hardware compression and set image size and quality.</string>
</property>
</widget>
<widget class="QLabel" row="0" column="4">
<widget class="TQLabel" row="0" column="4">
<property name="name">
<cstring>l_spacer</cstring>
</property>

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>KPlayerPropertiesAudioPage</class>
<widget class="QFrame">
<widget class="TQFrame">
<property name="name">
<cstring>KPlayerPropertiesAudioPage</cstring>
</property>
@ -28,7 +28,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QFrame" row="0" column="0">
<widget class="TQFrame" row="0" column="0">
<property name="name">
<cstring>frame1</cstring>
</property>
@ -50,7 +50,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLayoutWidget" row="0" column="0">
<widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
<cstring>layout3</cstring>
</property>
@ -58,7 +58,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel" row="0" column="0">
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>l_track</cstring>
</property>
@ -78,7 +78,7 @@
<string>Option to choose the audio track to play.</string>
</property>
</widget>
<widget class="QComboBox" row="0" column="1">
<widget class="TQComboBox" row="0" column="1">
<item>
<property name="text">
<string>auto</string>
@ -107,7 +107,7 @@
<string>Option to choose the audio track to play.</string>
</property>
</widget>
<widget class="QLineEdit" row="0" column="2">
<widget class="TQLineEdit" row="0" column="2">
<property name="name">
<cstring>c_track</cstring>
</property>
@ -132,7 +132,7 @@
<string>Option to choose the audio track to play.</string>
</property>
</widget>
<widget class="QLabel" row="1" column="0">
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>l_volume</cstring>
</property>
@ -152,7 +152,7 @@
<string>Option to adjust sound volume level for this file. Default uses the same volume as for other files, Set To adjusts volume to the given level, Add and Subtract turn volume up and down respectively by the given amount. It is easier to set this option by moving volume slider while having Shift key pressed.</string>
</property>
</widget>
<widget class="QComboBox" row="1" column="1">
<widget class="TQComboBox" row="1" column="1">
<item>
<property name="text">
<string>default</string>
@ -191,7 +191,7 @@
<string>Option to adjust sound volume level for this file. Default uses the same volume as for other files, Set To adjusts volume to the given level, Add and Subtract turn volume up and down respectively by the given amount. It is easier to set this option by moving volume slider while having Shift key pressed.</string>
</property>
</widget>
<widget class="QLineEdit" row="1" column="2">
<widget class="TQLineEdit" row="1" column="2">
<property name="name">
<cstring>c_volume</cstring>
</property>
@ -216,7 +216,7 @@
<string>Option to adjust sound volume level for this file. Default uses the same volume as for other files, Set To adjusts volume to the given level, Add and Subtract turn volume up and down respectively by the given amount. It is easier to set this option by moving volume slider while having Shift key pressed.</string>
</property>
</widget>
<widget class="QLabel" row="2" column="0">
<widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>l_delay</cstring>
</property>
@ -236,7 +236,7 @@
<string>Option to set delay of sound relative to video for this file. By default sound is played without delay. An easier way to set this option is by using keyboard shortcuts for Audio Delay commands on Player/Audio menu. In the default configuration KPlayer will automatically store those changes in this property.</string>
</property>
</widget>
<widget class="QComboBox" row="2" column="1">
<widget class="TQComboBox" row="2" column="1">
<item>
<property name="text">
<string>default</string>
@ -265,7 +265,7 @@
<string>Option to set delay of sound relative to video for this file. By default sound is played without delay. An easier way to set this option is by using keyboard shortcuts for Audio Delay commands on Player/Audio menu. In the default configuration KPlayer will automatically store those changes in this property.</string>
</property>
</widget>
<widget class="QLineEdit" row="2" column="2">
<widget class="TQLineEdit" row="2" column="2">
<property name="name">
<cstring>c_delay</cstring>
</property>
@ -290,7 +290,7 @@
<string>Option to set delay of sound relative to video for this file. By default sound is played without delay. An easier way to set this option is by using keyboard shortcuts for Audio Delay commands on Player/Audio menu. In the default configuration KPlayer will automatically store those changes in this property.</string>
</property>
</widget>
<widget class="QLabel" row="2" column="3">
<widget class="TQLabel" row="2" column="3">
<property name="name">
<cstring>l_seconds</cstring>
</property>
@ -315,7 +315,7 @@
<string>Option to set delay of sound relative to video for this file. By default sound is played without delay. An easier way to set this option is by using keyboard shortcuts for Audio Delay commands on Player/Audio menu. In the default configuration KPlayer will automatically store those changes in this property.</string>
</property>
</widget>
<widget class="QLabel" row="3" column="0">
<widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>l_codec</cstring>
</property>
@ -335,7 +335,7 @@
<string>Option that lists available codecs and lets you choose the one to be used for this file. Default uses the option from KPlayer Settings, Auto lets MPlayer decide which codec to use automatically.</string>
</property>
</widget>
<widget class="QComboBox" row="3" column="1" colspan="3">
<widget class="TQComboBox" row="3" column="1" colspan="3">
<property name="name">
<cstring>c_codec</cstring>
</property>
@ -354,7 +354,7 @@
<string>Option that lists available codecs and lets you choose the one to be used for this file. Default uses the option from KPlayer Settings, Auto lets MPlayer decide which codec to use automatically.</string>
</property>
</widget>
<widget class="QLabel" row="4" column="0">
<widget class="TQLabel" row="4" column="0">
<property name="name">
<cstring>l_bitrate</cstring>
</property>
@ -374,7 +374,7 @@
<string>Property that shows audio bitrate of this file.</string>
</property>
</widget>
<widget class="QLineEdit" row="4" column="1">
<widget class="TQLineEdit" row="4" column="1">
<property name="name">
<cstring>c_bitrate</cstring>
</property>
@ -396,7 +396,7 @@
<string>Property that shows audio bitrate of this file.</string>
</property>
</widget>
<widget class="QLabel" row="4" column="2">
<widget class="TQLabel" row="4" column="2">
<property name="name">
<cstring>l_kbps</cstring>
</property>
@ -421,7 +421,7 @@
<string>Property that shows audio bitrate of this file.</string>
</property>
</widget>
<widget class="QLabel" row="5" column="0">
<widget class="TQLabel" row="5" column="0">
<property name="name">
<cstring>l_samplerate</cstring>
</property>
@ -441,7 +441,7 @@
<string>Property that shows audio sample rate of this file.</string>
</property>
</widget>
<widget class="QLineEdit" row="5" column="1">
<widget class="TQLineEdit" row="5" column="1">
<property name="name">
<cstring>c_samplerate</cstring>
</property>
@ -463,7 +463,7 @@
<string>Property that shows audio sample rate of this file.</string>
</property>
</widget>
<widget class="QLabel" row="5" column="2">
<widget class="TQLabel" row="5" column="2">
<property name="name">
<cstring>l_hz</cstring>
</property>
@ -488,7 +488,7 @@
<string>Property that shows audio sample rate of this file.</string>
</property>
</widget>
<widget class="QLabel" row="6" column="0">
<widget class="TQLabel" row="6" column="0">
<property name="name">
<cstring>l_mode</cstring>
</property>
@ -508,7 +508,7 @@
<string>Option to choose the audio mode to request from the device.</string>
</property>
</widget>
<widget class="QComboBox" row="6" column="1">
<widget class="TQComboBox" row="6" column="1">
<item>
<property name="text">
<string>auto</string>
@ -552,7 +552,7 @@
<string>Option to choose the audio mode to request from the device.</string>
</property>
</widget>
<widget class="QLabel" row="7" column="0">
<widget class="TQLabel" row="7" column="0">
<property name="name">
<cstring>l_input</cstring>
</property>
@ -572,7 +572,7 @@
<string>Option to specify the audio card input ID to use for capturing audio.</string>
</property>
</widget>
<widget class="QComboBox" row="7" column="1">
<widget class="TQComboBox" row="7" column="1">
<item>
<property name="text">
<string>auto</string>
@ -601,7 +601,7 @@
<string>Option to specify the audio card input ID to use for capturing audio.</string>
</property>
</widget>
<widget class="QLineEdit" row="7" column="2">
<widget class="TQLineEdit" row="7" column="2">
<property name="name">
<cstring>c_input</cstring>
</property>
@ -618,7 +618,7 @@
<string>Option to specify the audio card input ID to use for capturing audio.</string>
</property>
</widget>
<widget class="QCheckBox" row="7" column="3">
<widget class="TQCheckBox" row="7" column="3">
<property name="name">
<cstring>c_immediate</cstring>
</property>
@ -640,7 +640,7 @@
<string>Option to choose specify where audio comes from. Select this option if your TV card is connected with a cable to a sound card. When this option is not selected, audio comes along with video from the TV card.</string>
</property>
</widget>
<widget class="QLabel" row="8" column="0">
<widget class="TQLabel" row="8" column="0">
<property name="name">
<cstring>l_capture</cstring>
</property>
@ -660,7 +660,7 @@
<string>Option to specify the audio capture system and device.</string>
</property>
</widget>
<widget class="QComboBox" row="8" column="1">
<widget class="TQComboBox" row="8" column="1">
<item>
<property name="text">
<string>ALSA</string>
@ -689,7 +689,7 @@
<string>Option to specify the audio capture system and device.</string>
</property>
</widget>
<widget class="QLabel" row="8" column="2">
<widget class="TQLabel" row="8" column="2">
<property name="name">
<cstring>l_device</cstring>
</property>
@ -717,7 +717,7 @@
<string>Option to specify the audio capture system and device.</string>
</property>
</widget>
<widget class="QLineEdit" row="8" column="3">
<widget class="TQLineEdit" row="8" column="3">
<property name="name">
<cstring>c_device</cstring>
</property>

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>KPlayerPropertiesDevicePage</class>
<widget class="QFrame">
<widget class="TQFrame">
<property name="name">
<cstring>KPlayerPropertiesDevicePage</cstring>
</property>
@ -28,7 +28,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QFrame" row="0" column="0">
<widget class="TQFrame" row="0" column="0">
<property name="name">
<cstring>frame1</cstring>
</property>
@ -50,7 +50,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLayoutWidget" row="0" column="0">
<widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
<cstring>layout3</cstring>
</property>
@ -58,7 +58,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel" row="0" column="0">
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>l_name</cstring>
</property>
@ -78,7 +78,7 @@
<string>Option to give a descriptive name for the device. The name will be displayed in the multimedia library and on the menu.</string>
</property>
</widget>
<widget class="QLineEdit" row="0" column="1">
<widget class="TQLineEdit" row="0" column="1">
<property name="name">
<cstring>c_name</cstring>
</property>
@ -97,7 +97,7 @@
<string>Option to give a descriptive name for the device. The name will be displayed in the multimedia library and on the menu.</string>
</property>
</widget>
<widget class="QLabel" row="1" column="0">
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>l_path</cstring>
</property>
@ -117,7 +117,7 @@
<string>Option to specify the path to the device node.</string>
</property>
</widget>
<widget class="QLineEdit" row="1" column="1">
<widget class="TQLineEdit" row="1" column="1">
<property name="name">
<cstring>c_path</cstring>
</property>
@ -139,7 +139,7 @@
<string>Option to specify the path to the device node.</string>
</property>
</widget>
<widget class="QLabel" row="2" column="0">
<widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>l_type</cstring>
</property>
@ -159,7 +159,7 @@
<string>Option that lets you choose the type of the device.</string>
</property>
</widget>
<widget class="QComboBox" row="2" column="1">
<widget class="TQComboBox" row="2" column="1">
<property name="name">
<cstring>c_type</cstring>
</property>
@ -198,7 +198,7 @@
<string>Option that lets you choose the type of the device.</string>
</property>
</widget>
<widget class="QLabel" row="3" column="0">
<widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>l_channel_list</cstring>
</property>
@ -218,7 +218,7 @@
<string>Option to choose the available channels according to your location.</string>
</property>
</widget>
<widget class="QComboBox" row="3" column="1">
<widget class="TQComboBox" row="3" column="1">
<property name="name">
<cstring>c_channel_list</cstring>
</property>
@ -237,7 +237,7 @@
<string>Option to choose the available channels according to your location.</string>
</property>
</widget>
<widget class="QLabel" row="4" column="0">
<widget class="TQLabel" row="4" column="0">
<property name="name">
<cstring>l_driver</cstring>
</property>
@ -257,7 +257,7 @@
<string>Option to choose the input driver.</string>
</property>
</widget>
<widget class="QComboBox" row="4" column="1">
<widget class="TQComboBox" row="4" column="1">
<item>
<property name="text">
<string>BSD Bt848</string>
@ -291,7 +291,7 @@
<string>Option to choose the input driver.</string>
</property>
</widget>
<widget class="QLabel" row="5" column="0">
<widget class="TQLabel" row="5" column="0">
<property name="name">
<cstring>l_channel_file</cstring>
</property>
@ -311,7 +311,7 @@
<string>Option to specify the path to the file containing the list of available channels.</string>
</property>
</widget>
<widget class="QLineEdit" row="5" column="1">
<widget class="TQLineEdit" row="5" column="1">
<property name="name">
<cstring>c_channel_file</cstring>
</property>
@ -339,9 +339,9 @@
<connections>
<connection>
<sender>c_path</sender>
<signal>textChanged (const QString&amp;)</signal>
<signal>textChanged (const TQString&amp;)</signal>
<receiver>KPlayerPropertiesDevicePage</receiver>
<slot>pathChanged (const QString&amp;)</slot>
<slot>pathChanged (const TQString&amp;)</slot>
</connection>
<connection>
<sender>c_type</sender>
@ -351,7 +351,7 @@
</connection>
</connections>
<slots>
<slot access="protected">pathChanged (const QString&amp;)</slot>
<slot access="protected">pathChanged (const TQString&amp;)</slot>
<slot access="protected">typeChanged (int)</slot>
</slots>
<layoutdefaults spacing="6" margin="0"/>

@ -16,16 +16,16 @@
#include <klistview.h>
#include <klocale.h>
#include <kmessagebox.h>
#include <qcheckbox.h>
#include <qcombobox.h>
#include <qlabel.h>
#include <qlayout.h>
#include <qlineedit.h>
#include <qpushbutton.h>
#include <qregexp.h>
#include <tqcheckbox.h>
#include <tqcombobox.h>
#include <tqlabel.h>
#include <tqlayout.h>
#include <tqlineedit.h>
#include <tqpushbutton.h>
#include <tqregexp.h>
#include <stdlib.h>
QString languageName (int id, QString language);
TQString languageName (int id, TQString language);
#ifdef DEBUG
#define DEBUG_KPLAYER_PROPERTIES_DIALOG
@ -35,24 +35,24 @@ QString languageName (int id, QString language);
#include "kplayerpropertiesdialog.moc"
#include "kplayerproperties.h"
static QString s_default_entry (i18n("%1 (%2)"));
static QRegExp re_key_value ("^([^:]+): *(.*)$");
static TQString s_default_entry (i18n("%1 (%2)"));
static TQRegExp re_key_value ("^([^:]+): *(.*)$");
QString listEntry (QComboBox* combo, bool hasDefault = false)
TQString listEntry (TQComboBox* combo, bool hasDefault = false)
{
if ( hasDefault && combo -> currentItem() == 0 )
return QString::null;
return TQString::null;
if ( combo -> currentItem() == 0 || hasDefault && combo -> currentItem() == 1 )
return "";
if ( re_key_value.search (combo -> currentText()) >= 0 )
return re_key_value.cap(1);
return QString::null;
return TQString::null;
}
KPlayerPropertiesDialog::KPlayerPropertiesDialog (void)
: KDialogBase (TreeList, i18n("File Properties"), Help | Default | Ok | Apply | Cancel, Ok)
{
QApplication::connect (this, SIGNAL (aboutToShowPage (QWidget*)), this, SLOT (pageAboutToShow(QWidget*)));
TQApplication::connect (this, SIGNAL (aboutToShowPage (TQWidget*)), this, SLOT (pageAboutToShow(TQWidget*)));
}
KPlayerPropertiesDialog::~KPlayerPropertiesDialog (void)
@ -82,33 +82,33 @@ void KPlayerPropertiesDialog::setup (const KURL& url)
kdDebugTime() << "KPlayerPropertiesDialog::setup\n";
#endif
setupMedia (url);
QFrame* frame = addPage (i18n("General"), i18n("General Properties"));
QBoxLayout* layout = new QVBoxLayout (frame, 0, 0);
TQFrame* frame = addPage (i18n("General"), i18n("General Properties"));
TQBoxLayout* layout = new TQVBoxLayout (frame, 0, 0);
layout -> setAutoAdd (true);
m_general = createGeneralPage (frame, "general");
m_general -> setup (url);
frame = addPage (i18n("Size"), i18n("Size Properties"));
layout = new QVBoxLayout (frame, 0, 0);
layout = new TQVBoxLayout (frame, 0, 0);
layout -> setAutoAdd (true);
m_size = createSizePage (frame, "size");
m_size -> setup (url);
frame = addPage (i18n("Video"), i18n("Video Properties"));
layout = new QVBoxLayout (frame, 0, 0);
layout = new TQVBoxLayout (frame, 0, 0);
layout -> setAutoAdd (true);
m_video = createVideoPage (frame, "video");
m_video -> setup (url);
frame = addPage (i18n("Audio"), i18n("Audio Properties"));
layout = new QVBoxLayout (frame, 0, 0);
layout = new TQVBoxLayout (frame, 0, 0);
layout -> setAutoAdd (true);
m_audio = createAudioPage (frame, "audio");
m_audio -> setup (url);
frame = addPage (i18n("Subtitles"), i18n("Subtitle Properties"));
layout = new QVBoxLayout (frame, 0, 0);
layout = new TQVBoxLayout (frame, 0, 0);
layout -> setAutoAdd (true);
m_subtitles = createSubtitlesPage (frame, "subtitles");
m_subtitles -> setup (url);
frame = addPage (i18n("Advanced"), i18n("Advanced Properties"));
layout = new QVBoxLayout (frame, 0, 0);
layout = new TQVBoxLayout (frame, 0, 0);
layout -> setAutoAdd (true);
m_advanced = createAdvancedPage (frame, "advanced");
m_advanced -> setup (url);
@ -116,18 +116,18 @@ void KPlayerPropertiesDialog::setup (const KURL& url)
KListView* view = (KListView*) child (0, "KListView");
if ( view )
view -> setMinimumSize (view -> sizeHint());
layout = (QBoxLayout*) child (0, "QHBoxLayout");
layout = (TQBoxLayout*) child (0, "TQHBoxLayout");
if ( layout )
layout -> insertSpacing (0, 6);
KConfig* config = kPlayerConfig();
config -> setGroup ("Dialog Options");
QString name (config -> readEntry ("Properties Dialog Page"));
TQString name (config -> readEntry ("Properties Dialog Page"));
if ( ! name.isEmpty() )
{
QFrame* frame = (QFrame*) child (name.latin1());
TQFrame* frame = (TQFrame*) child (name.latin1());
if ( frame )
{
frame = (QFrame*) frame -> parent();
frame = (TQFrame*) frame -> parent();
if ( frame )
showPage (pageIndex (frame));
}
@ -136,9 +136,9 @@ void KPlayerPropertiesDialog::setup (const KURL& url)
int y = config -> readNumEntry ("Properties Dialog Top", -1);*/
int w = config -> readNumEntry ("Properties Dialog Width");
int h = config -> readNumEntry ("Properties Dialog Height");
//QSize size (config -> readNumEntry ("Properties Dialog Width"),
//TQSize size (config -> readNumEntry ("Properties Dialog Width"),
// config -> readNumEntry ("Properties Dialog Height"));
//QSize hint = minimumSizeHint();
//TQSize hint = minimumSizeHint();
//if ( size.width() < hint.width() || size.height() < hint.height() )
// size = sizeHint();
//setGeometry (x, y, size.width(), size.height());
@ -171,15 +171,15 @@ void KPlayerPropertiesDialog::slotDefault (void)
KDialogBase::slotDefault();
}
void KPlayerPropertiesDialog::pageAboutToShow (QWidget* page)
void KPlayerPropertiesDialog::pageAboutToShow (TQWidget* page)
{
#ifdef DEBUG_KPLAYER_PROPERTIES_DIALOG
kdDebugTime() << "KPlayerPropertiesDialog::pageAboutToShow\n";
#endif
QObject* object = page -> child (0, "QFrame");
TQObject* object = page -> child (0, "TQFrame");
KConfig* config = kPlayerConfig();
config -> setGroup ("Dialog Options");
QString name;
TQString name;
if ( object )
{
name = object -> name ("");
@ -225,7 +225,7 @@ KPlayerPropertiesDialog* KPlayerPropertiesDialog::createDialog (KPlayerTrackProp
return new KPlayerItemPropertiesDialog;
else
{
const QString& type = ((KPlayerMediaProperties*) properties -> parent()) -> type();
const TQString& type = ((KPlayerMediaProperties*) properties -> parent()) -> type();
if ( type == "TV" || type == "DVB" )
return new KPlayerChannelPropertiesDialog;
}
@ -247,32 +247,32 @@ void KPlayerDevicePropertiesDialog::setupMedia (const KURL& url)
m_properties = KPlayerMedia::deviceProperties (url);
}
KPlayerPropertiesGeneral* KPlayerDevicePropertiesDialog::createGeneralPage (QFrame* frame, const QString& name)
KPlayerPropertiesGeneral* KPlayerDevicePropertiesDialog::createGeneralPage (TQFrame* frame, const TQString& name)
{
return new KPlayerPropertiesDeviceGeneral (frame, name.utf8());
}
KPlayerPropertiesSize* KPlayerDevicePropertiesDialog::createSizePage (QFrame* frame, const QString& name)
KPlayerPropertiesSize* KPlayerDevicePropertiesDialog::createSizePage (TQFrame* frame, const TQString& name)
{
return new KPlayerPropertiesDeviceSize (frame, name.utf8());
}
KPlayerPropertiesSubtitles* KPlayerDevicePropertiesDialog::createSubtitlesPage (QFrame* frame, const QString& name)
KPlayerPropertiesSubtitles* KPlayerDevicePropertiesDialog::createSubtitlesPage (TQFrame* frame, const TQString& name)
{
return new KPlayerPropertiesDeviceSubtitles (frame, name.utf8());
}
KPlayerPropertiesAudio* KPlayerDevicePropertiesDialog::createAudioPage (QFrame* frame, const QString& name)
KPlayerPropertiesAudio* KPlayerDevicePropertiesDialog::createAudioPage (TQFrame* frame, const TQString& name)
{
return new KPlayerPropertiesDeviceAudio (frame, name.utf8());
}
KPlayerPropertiesVideo* KPlayerDevicePropertiesDialog::createVideoPage (QFrame* frame, const QString& name)
KPlayerPropertiesVideo* KPlayerDevicePropertiesDialog::createVideoPage (TQFrame* frame, const TQString& name)
{
return new KPlayerPropertiesDeviceVideo (frame, name.utf8());
}
KPlayerPropertiesAdvanced* KPlayerDevicePropertiesDialog::createAdvancedPage (QFrame* frame, const QString& name)
KPlayerPropertiesAdvanced* KPlayerDevicePropertiesDialog::createAdvancedPage (TQFrame* frame, const TQString& name)
{
return new KPlayerPropertiesDeviceAdvanced (frame, name.utf8());
}
@ -292,22 +292,22 @@ void KPlayerTVDevicePropertiesDialog::setupMedia (const KURL& url)
m_properties = KPlayerMedia::tvProperties (url);
}
KPlayerPropertiesGeneral* KPlayerTVDevicePropertiesDialog::createGeneralPage (QFrame* frame, const QString& name)
KPlayerPropertiesGeneral* KPlayerTVDevicePropertiesDialog::createGeneralPage (TQFrame* frame, const TQString& name)
{
return new KPlayerPropertiesTVDeviceGeneral (frame, name.utf8());
}
KPlayerPropertiesAudio* KPlayerTVDevicePropertiesDialog::createAudioPage (QFrame* frame, const QString& name)
KPlayerPropertiesAudio* KPlayerTVDevicePropertiesDialog::createAudioPage (TQFrame* frame, const TQString& name)
{
return new KPlayerPropertiesTVDeviceAudio (frame, name.utf8());
}
KPlayerPropertiesVideo* KPlayerTVDevicePropertiesDialog::createVideoPage (QFrame* frame, const QString& name)
KPlayerPropertiesVideo* KPlayerTVDevicePropertiesDialog::createVideoPage (TQFrame* frame, const TQString& name)
{
return new KPlayerPropertiesTVDeviceVideo (frame, name.utf8());
}
KPlayerPropertiesAdvanced* KPlayerTVDevicePropertiesDialog::createAdvancedPage (QFrame* frame, const QString& name)
KPlayerPropertiesAdvanced* KPlayerTVDevicePropertiesDialog::createAdvancedPage (TQFrame* frame, const TQString& name)
{
return new KPlayerPropertiesTVDeviceAdvanced (frame, name.utf8());
}
@ -327,17 +327,17 @@ void KPlayerDVBDevicePropertiesDialog::setupMedia (const KURL& url)
m_properties = KPlayerMedia::dvbProperties (url);
}
KPlayerPropertiesGeneral* KPlayerDVBDevicePropertiesDialog::createGeneralPage (QFrame* frame, const QString& name)
KPlayerPropertiesGeneral* KPlayerDVBDevicePropertiesDialog::createGeneralPage (TQFrame* frame, const TQString& name)
{
return new KPlayerPropertiesDVBDeviceGeneral (frame, name.utf8());
}
KPlayerPropertiesAudio* KPlayerDVBDevicePropertiesDialog::createAudioPage (QFrame* frame, const QString& name)
KPlayerPropertiesAudio* KPlayerDVBDevicePropertiesDialog::createAudioPage (TQFrame* frame, const TQString& name)
{
return new KPlayerPropertiesDVBDeviceAudio (frame, name.utf8());
}
KPlayerPropertiesVideo* KPlayerDVBDevicePropertiesDialog::createVideoPage (QFrame* frame, const QString& name)
KPlayerPropertiesVideo* KPlayerDVBDevicePropertiesDialog::createVideoPage (TQFrame* frame, const TQString& name)
{
return new KPlayerPropertiesDVBDeviceVideo (frame, name.utf8());
}
@ -357,32 +357,32 @@ void KPlayerDiskTrackPropertiesDialog::setupMedia (const KURL& url)
m_properties = KPlayerMedia::trackProperties (url);
}
KPlayerPropertiesGeneral* KPlayerDiskTrackPropertiesDialog::createGeneralPage (QFrame* frame, const QString& name)
KPlayerPropertiesGeneral* KPlayerDiskTrackPropertiesDialog::createGeneralPage (TQFrame* frame, const TQString& name)
{
return new KPlayerPropertiesDiskTrackGeneral (frame, name.utf8());
}
KPlayerPropertiesSize* KPlayerDiskTrackPropertiesDialog::createSizePage (QFrame* frame, const QString& name)
KPlayerPropertiesSize* KPlayerDiskTrackPropertiesDialog::createSizePage (TQFrame* frame, const TQString& name)
{
return new KPlayerPropertiesTrackSize (frame, name.utf8());
}
KPlayerPropertiesSubtitles* KPlayerDiskTrackPropertiesDialog::createSubtitlesPage (QFrame* frame, const QString& name)
KPlayerPropertiesSubtitles* KPlayerDiskTrackPropertiesDialog::createSubtitlesPage (TQFrame* frame, const TQString& name)
{
return new KPlayerPropertiesDiskTrackSubtitles (frame, name.utf8());
}
KPlayerPropertiesAudio* KPlayerDiskTrackPropertiesDialog::createAudioPage (QFrame* frame, const QString& name)
KPlayerPropertiesAudio* KPlayerDiskTrackPropertiesDialog::createAudioPage (TQFrame* frame, const TQString& name)
{
return new KPlayerPropertiesTrackAudio (frame, name.utf8());
}
KPlayerPropertiesVideo* KPlayerDiskTrackPropertiesDialog::createVideoPage (QFrame* frame, const QString& name)
KPlayerPropertiesVideo* KPlayerDiskTrackPropertiesDialog::createVideoPage (TQFrame* frame, const TQString& name)
{
return new KPlayerPropertiesTrackVideo (frame, name.utf8());
}
KPlayerPropertiesAdvanced* KPlayerDiskTrackPropertiesDialog::createAdvancedPage (QFrame* frame, const QString& name)
KPlayerPropertiesAdvanced* KPlayerDiskTrackPropertiesDialog::createAdvancedPage (TQFrame* frame, const TQString& name)
{
return new KPlayerPropertiesTrackAdvanced (frame, name.utf8());
}
@ -394,12 +394,12 @@ KPlayerChannelPropertiesDialog::~KPlayerChannelPropertiesDialog (void)
#endif
}
KPlayerPropertiesGeneral* KPlayerChannelPropertiesDialog::createGeneralPage (QFrame* frame, const QString& name)
KPlayerPropertiesGeneral* KPlayerChannelPropertiesDialog::createGeneralPage (TQFrame* frame, const TQString& name)
{
return new KPlayerPropertiesChannelGeneral (frame, name.utf8());
}
KPlayerPropertiesSubtitles* KPlayerChannelPropertiesDialog::createSubtitlesPage (QFrame* frame, const QString& name)
KPlayerPropertiesSubtitles* KPlayerChannelPropertiesDialog::createSubtitlesPage (TQFrame* frame, const TQString& name)
{
return new KPlayerPropertiesChannelSubtitles (frame, name.utf8());
}
@ -411,24 +411,24 @@ KPlayerItemPropertiesDialog::~KPlayerItemPropertiesDialog (void)
#endif
}
KPlayerPropertiesGeneral* KPlayerItemPropertiesDialog::createGeneralPage (QFrame* frame, const QString& name)
KPlayerPropertiesGeneral* KPlayerItemPropertiesDialog::createGeneralPage (TQFrame* frame, const TQString& name)
{
return new KPlayerPropertiesItemGeneral (frame, name.utf8());
}
KPlayerPropertiesSubtitles* KPlayerItemPropertiesDialog::createSubtitlesPage (QFrame* frame, const QString& name)
KPlayerPropertiesSubtitles* KPlayerItemPropertiesDialog::createSubtitlesPage (TQFrame* frame, const TQString& name)
{
return new KPlayerPropertiesItemSubtitles (frame, name.utf8());
}
KPlayerPropertiesAdvanced* KPlayerItemPropertiesDialog::createAdvancedPage (QFrame* frame, const QString& name)
KPlayerPropertiesAdvanced* KPlayerItemPropertiesDialog::createAdvancedPage (TQFrame* frame, const TQString& name)
{
return new KPlayerPropertiesItemAdvanced (frame, name.utf8());
}
/*void setupHistory (QComboBox* combo, const QStringList& history)
/*void setupHistory (TQComboBox* combo, const TQStringList& history)
{
for ( QStringList::ConstIterator it (history.begin()); it != history.end(); ++ it )
for ( TQStringList::ConstIterator it (history.begin()); it != history.end(); ++ it )
{
combo -> insertItem (*it);
#ifdef DEBUG_KPLAYER_PROPERTIES_DIALOG
@ -437,7 +437,7 @@ KPlayerPropertiesAdvanced* KPlayerItemPropertiesDialog::createAdvancedPage (QFra
}
}*/
KPlayerPropertiesGeneral::KPlayerPropertiesGeneral (QWidget* parent, const char* name)
KPlayerPropertiesGeneral::KPlayerPropertiesGeneral (TQWidget* parent, const char* name)
: KPlayerPropertiesGeneralPage (parent, name)
{
}
@ -528,7 +528,7 @@ void KPlayerPropertiesGeneral::save (void)
properties() -> setName (c_name -> text());
}
KPlayerPropertiesDeviceGeneral::KPlayerPropertiesDeviceGeneral (QWidget* parent, const char* name)
KPlayerPropertiesDeviceGeneral::KPlayerPropertiesDeviceGeneral (TQWidget* parent, const char* name)
: KPlayerPropertiesGeneral (parent, name)
{
}
@ -559,7 +559,7 @@ void KPlayerPropertiesDeviceGeneral::load (void)
KPlayerPropertiesGeneral::load();
}
KPlayerPropertiesTVDeviceGeneral::KPlayerPropertiesTVDeviceGeneral (QWidget* parent, const char* name)
KPlayerPropertiesTVDeviceGeneral::KPlayerPropertiesTVDeviceGeneral (TQWidget* parent, const char* name)
: KPlayerPropertiesDeviceGeneral (parent, name)
{
}
@ -587,14 +587,14 @@ void KPlayerPropertiesTVDeviceGeneral::setupControls (void)
void KPlayerPropertiesTVDeviceGeneral::load (void)
{
const QString& list (properties() -> channelList());
const TQString& list (properties() -> channelList());
for ( uint i = 0; c_channels -> count(); i ++ )
if ( channellists[i].id == list )
{
c_channels -> setCurrentItem (i);
break;
}
const QString& driver (properties() -> inputDriver());
const TQString& driver (properties() -> inputDriver());
c_driver -> setCurrentItem (driver == "bsdbt848" ? 0 : driver == "v4l" ? 1 : 2);
KPlayerPropertiesDeviceGeneral::load();
}
@ -607,7 +607,7 @@ void KPlayerPropertiesTVDeviceGeneral::save (void)
KPlayerPropertiesDeviceGeneral::save();
}
KPlayerPropertiesDVBDeviceGeneral::KPlayerPropertiesDVBDeviceGeneral (QWidget* parent, const char* name)
KPlayerPropertiesDVBDeviceGeneral::KPlayerPropertiesDVBDeviceGeneral (TQWidget* parent, const char* name)
: KPlayerPropertiesDeviceGeneral (parent, name)
{
}
@ -644,7 +644,7 @@ void KPlayerPropertiesDVBDeviceGeneral::save (void)
KPlayerPropertiesDeviceGeneral::save();
}
KPlayerPropertiesTrackGeneral::KPlayerPropertiesTrackGeneral (QWidget* parent, const char* name)
KPlayerPropertiesTrackGeneral::KPlayerPropertiesTrackGeneral (TQWidget* parent, const char* name)
: KPlayerPropertiesGeneral (parent, name)
{
}
@ -663,7 +663,7 @@ void KPlayerPropertiesTrackGeneral::load (void)
KPlayerPropertiesGeneral::load();
}
KPlayerPropertiesDiskTrackGeneral::KPlayerPropertiesDiskTrackGeneral (QWidget* parent, const char* name)
KPlayerPropertiesDiskTrackGeneral::KPlayerPropertiesDiskTrackGeneral (TQWidget* parent, const char* name)
: KPlayerPropertiesTrackGeneral (parent, name)
{
}
@ -686,7 +686,7 @@ void KPlayerPropertiesDiskTrackGeneral::load (void)
KPlayerPropertiesTrackGeneral::load();
}
KPlayerPropertiesChannelGeneral::KPlayerPropertiesChannelGeneral (QWidget* parent, const char* name)
KPlayerPropertiesChannelGeneral::KPlayerPropertiesChannelGeneral (TQWidget* parent, const char* name)
: KPlayerPropertiesDiskTrackGeneral (parent, name)
{
}
@ -716,7 +716,7 @@ void KPlayerPropertiesChannelGeneral::save (void)
KPlayerPropertiesDiskTrackGeneral::save();
}
KPlayerPropertiesItemGeneral::KPlayerPropertiesItemGeneral (QWidget* parent, const char* name)
KPlayerPropertiesItemGeneral::KPlayerPropertiesItemGeneral (TQWidget* parent, const char* name)
: KPlayerPropertiesTrackGeneral (parent, name)
{
}
@ -744,7 +744,7 @@ void KPlayerPropertiesItemGeneral::save (void)
KPlayerPropertiesTrackGeneral::save();
}
KPlayerPropertiesSize::KPlayerPropertiesSize (QWidget* parent, const char* name)
KPlayerPropertiesSize::KPlayerPropertiesSize (TQWidget* parent, const char* name)
: KPlayerPropertiesSizePage (parent, name)
{
}
@ -786,7 +786,7 @@ void KPlayerPropertiesSize::save (void)
int height = labs (c_display_height -> text().toInt());
if ( width == 0 && c_display_size -> currentItem() == 2 && c_display_width -> text().stripWhiteSpace().toDouble() > 0 )
{
QRegExp re ("^\\s*(\\d*)[,.](\\d*)\\s*$");
TQRegExp re ("^\\s*(\\d*)[,.](\\d*)\\s*$");
if ( re.search (c_display_width -> text()) >= 0 )
{
width = (re.cap(1) + re.cap(2)).toInt();
@ -801,7 +801,7 @@ void KPlayerPropertiesSize::save (void)
width /= i;
height /= i --;
}
properties() -> setDisplaySize (QSize (width, height), c_display_size -> currentItem());
properties() -> setDisplaySize (TQSize (width, height), c_display_size -> currentItem());
properties() -> setFullScreenOption (c_full_screen -> currentItem());
properties() -> setMaximizedOption (c_maximized -> currentItem());
properties() -> setMaintainAspectOption (c_maintain_aspect -> currentItem());
@ -822,7 +822,7 @@ void KPlayerPropertiesSize::displaySizeChanged (int option)
}
}
KPlayerPropertiesDeviceSize::KPlayerPropertiesDeviceSize (QWidget* parent, const char* name)
KPlayerPropertiesDeviceSize::KPlayerPropertiesDeviceSize (TQWidget* parent, const char* name)
: KPlayerPropertiesSize (parent, name)
{
}
@ -854,7 +854,7 @@ void KPlayerPropertiesDeviceSize::setupControls (void)
c_current_height -> hide();
}
KPlayerPropertiesTrackSize::KPlayerPropertiesTrackSize (QWidget* parent, const char* name)
KPlayerPropertiesTrackSize::KPlayerPropertiesTrackSize (TQWidget* parent, const char* name)
: KPlayerPropertiesSize (parent, name)
{
}
@ -878,7 +878,7 @@ void KPlayerPropertiesTrackSize::load (void)
KPlayerPropertiesSize::load();
}
KPlayerPropertiesSubtitles::KPlayerPropertiesSubtitles (QWidget* parent, const char* name)
KPlayerPropertiesSubtitles::KPlayerPropertiesSubtitles (TQWidget* parent, const char* name)
: KPlayerPropertiesSubtitlesPage (parent, name)
{
}
@ -987,7 +987,7 @@ void KPlayerPropertiesSubtitles::delayChanged (int option)
}
}
KPlayerPropertiesDeviceSubtitles::KPlayerPropertiesDeviceSubtitles (QWidget* parent, const char* name)
KPlayerPropertiesDeviceSubtitles::KPlayerPropertiesDeviceSubtitles (TQWidget* parent, const char* name)
: KPlayerPropertiesSubtitles (parent, name)
{
}
@ -1010,7 +1010,7 @@ void KPlayerPropertiesDeviceSubtitles::setupControls (void)
hideUrl();
}
KPlayerPropertiesTrackSubtitles::KPlayerPropertiesTrackSubtitles (QWidget* parent, const char* name)
KPlayerPropertiesTrackSubtitles::KPlayerPropertiesTrackSubtitles (TQWidget* parent, const char* name)
: KPlayerPropertiesSubtitles (parent, name)
{
}
@ -1029,15 +1029,15 @@ void KPlayerPropertiesTrackSubtitles::addTracks (void)
kdDebugTime() << "KPlayerPropertiesTrackSubtitles::addTracks\n";
#endif
int i = 1;
const QMap<int, QString>& sids (properties() -> subtitleIDs());
QMap<int, QString>::ConstIterator iterator (sids.constBegin()), end (sids.constEnd());
const TQMap<int, TQString>& sids (properties() -> subtitleIDs());
TQMap<int, TQString>::ConstIterator iterator (sids.constBegin()), end (sids.constEnd());
while ( iterator != end )
{
c_track_set -> insertItem (languageName (iterator.key(), iterator.data()), i);
++ iterator;
++ i;
}
const QMap<int, QString>& vsids (properties() -> vobsubIDs());
const TQMap<int, TQString>& vsids (properties() -> vobsubIDs());
iterator = vsids.constBegin();
end = vsids.constEnd();
while ( iterator != end )
@ -1079,7 +1079,7 @@ void KPlayerPropertiesTrackSubtitles::trackChanged (int option)
}
}
KPlayerPropertiesChannelSubtitles::KPlayerPropertiesChannelSubtitles (QWidget* parent, const char* name)
KPlayerPropertiesChannelSubtitles::KPlayerPropertiesChannelSubtitles (TQWidget* parent, const char* name)
: KPlayerPropertiesTrackSubtitles (parent, name)
{
}
@ -1095,7 +1095,7 @@ void KPlayerPropertiesChannelSubtitles::setupControls (void)
hideUrl();
}
KPlayerPropertiesDiskTrackSubtitles::KPlayerPropertiesDiskTrackSubtitles (QWidget* parent, const char* name)
KPlayerPropertiesDiskTrackSubtitles::KPlayerPropertiesDiskTrackSubtitles (TQWidget* parent, const char* name)
: KPlayerPropertiesTrackSubtitles (parent, name)
{
}
@ -1206,12 +1206,12 @@ const float framerates[] = {
60
};
void fillEncodingCombobox (QComboBox* combobox)
void fillEncodingCombobox (TQComboBox* combobox)
{
for ( uint i = 0; i < sizeof (subtitleencodings) / sizeof (struct KPlayerSubtitleEncoding); i ++ )
{
const struct KPlayerSubtitleEncoding& encoding = subtitleencodings[i];
combobox -> insertItem (QString (encoding.id) + ": " + i18n(encoding.name));
combobox -> insertItem (TQString (encoding.id) + ": " + i18n(encoding.name));
}
}
@ -1219,7 +1219,7 @@ void KPlayerPropertiesDiskTrackSubtitles::setupEncoding (void)
{
fillEncodingCombobox (c_encoding);
for ( uint i = 0; i < sizeof (framerates) / sizeof (float); ++ i )
c_framerate -> insertItem (QString::number (framerates[i]));
c_framerate -> insertItem (TQString::number (framerates[i]));
}
void KPlayerPropertiesDiskTrackSubtitles::setupControls (void)
@ -1238,7 +1238,7 @@ void KPlayerPropertiesDiskTrackSubtitles::load (void)
c_vobsub -> setCurrentItem (properties() -> vobsubSubtitlesOption());
if ( properties() -> hasSubtitleEncoding() )
{
QString encoding = properties() -> subtitleEncoding();
TQString encoding = properties() -> subtitleEncoding();
if ( encoding.isEmpty() )
c_encoding -> setCurrentItem (1);
else
@ -1279,7 +1279,7 @@ void KPlayerPropertiesDiskTrackSubtitles::save (void)
KPlayerPropertiesTrackSubtitles::save();
}
KPlayerPropertiesItemSubtitles::KPlayerPropertiesItemSubtitles (QWidget* parent, const char* name)
KPlayerPropertiesItemSubtitles::KPlayerPropertiesItemSubtitles (TQWidget* parent, const char* name)
: KPlayerPropertiesDiskTrackSubtitles (parent, name)
{
}
@ -1310,7 +1310,7 @@ void KPlayerPropertiesItemSubtitles::save (void)
KPlayerPropertiesDiskTrackSubtitles::save();
}
KPlayerPropertiesAudio::KPlayerPropertiesAudio (QWidget* parent, const char* name)
KPlayerPropertiesAudio::KPlayerPropertiesAudio (TQWidget* parent, const char* name)
: KPlayerPropertiesAudioPage (parent, name)
{
}
@ -1329,7 +1329,7 @@ void KPlayerPropertiesAudio::setup (const KURL& url)
if ( engine() -> audioCodecCount() )
{
c_codec -> clear();
const QString& codec = properties() -> audioCodecValue();
const TQString& codec = properties() -> audioCodecValue();
if ( codec.isEmpty() )
c_codec -> insertItem (i18n("default"));
else
@ -1395,7 +1395,7 @@ void KPlayerPropertiesAudio::load (void)
volumeChanged (c_volume_set -> currentItem());
c_delay_set -> setCurrentItem (properties() -> hasAudioDelay() ? 1 : 0);
delayChanged (c_delay_set -> currentItem());
const QString& codec (properties() -> audioCodecOption());
const TQString& codec (properties() -> audioCodecOption());
c_codec -> setCurrentItem (codec.isNull() ? 0 : engine() -> audioCodecIndex (codec) + 2);
}
@ -1433,7 +1433,7 @@ void KPlayerPropertiesAudio::delayChanged (int option)
}
}
KPlayerPropertiesDeviceAudio::KPlayerPropertiesDeviceAudio (QWidget* parent, const char* name)
KPlayerPropertiesDeviceAudio::KPlayerPropertiesDeviceAudio (TQWidget* parent, const char* name)
: KPlayerPropertiesAudio (parent, name)
{
}
@ -1457,7 +1457,7 @@ void KPlayerPropertiesDeviceAudio::setupControls (void)
hideTV();
}
KPlayerPropertiesTVDeviceAudio::KPlayerPropertiesTVDeviceAudio (QWidget* parent, const char* name)
KPlayerPropertiesTVDeviceAudio::KPlayerPropertiesTVDeviceAudio (TQWidget* parent, const char* name)
: KPlayerPropertiesDVBDeviceAudio (parent, name)
{
}
@ -1497,7 +1497,7 @@ void KPlayerPropertiesTVDeviceAudio::save (void)
KPlayerPropertiesDVBDeviceAudio::save();
}
KPlayerPropertiesDVBDeviceAudio::KPlayerPropertiesDVBDeviceAudio (QWidget* parent, const char* name)
KPlayerPropertiesDVBDeviceAudio::KPlayerPropertiesDVBDeviceAudio (TQWidget* parent, const char* name)
: KPlayerPropertiesDeviceAudio (parent, name)
{
}
@ -1548,7 +1548,7 @@ void KPlayerPropertiesDVBDeviceAudio::inputChanged (int option)
}
}
KPlayerPropertiesTrackAudio::KPlayerPropertiesTrackAudio (QWidget* parent, const char* name)
KPlayerPropertiesTrackAudio::KPlayerPropertiesTrackAudio (TQWidget* parent, const char* name)
: KPlayerPropertiesAudio (parent, name)
{
}
@ -1566,11 +1566,11 @@ void KPlayerPropertiesTrackAudio::setupControls (void)
#ifdef DEBUG_KPLAYER_PROPERTIES_DIALOG
kdDebugTime() << "KPlayerPropertiesTrackAudio::setupControls\n";
#endif
const QMap<int, QString>& ids (properties() -> audioIDs());
const TQMap<int, TQString>& ids (properties() -> audioIDs());
if ( ids.count() > 1 )
{
int i = 1;
QMap<int, QString>::ConstIterator iterator (ids.constBegin()), end (ids.constEnd());
TQMap<int, TQString>::ConstIterator iterator (ids.constBegin()), end (ids.constEnd());
while ( iterator != end )
{
c_track_set -> insertItem (languageName (iterator.key(), iterator.data()), i);
@ -1612,7 +1612,7 @@ void KPlayerPropertiesTrackAudio::trackChanged (int option)
}
}
KPlayerPropertiesVideo::KPlayerPropertiesVideo (QWidget* parent, const char* name)
KPlayerPropertiesVideo::KPlayerPropertiesVideo (TQWidget* parent, const char* name)
: KPlayerPropertiesVideoPage (parent, name)
{
}
@ -1631,7 +1631,7 @@ void KPlayerPropertiesVideo::setup (const KURL& url)
if ( engine() -> videoCodecCount() )
{
c_codec -> clear();
const QString& codec = properties() -> videoCodecValue();
const TQString& codec = properties() -> videoCodecValue();
if ( codec.isEmpty() )
c_codec -> insertItem (i18n("default"));
else
@ -1699,7 +1699,7 @@ void KPlayerPropertiesVideo::load (void)
hueChanged (c_hue_set -> currentItem());
c_saturation_set -> setCurrentItem (properties() -> saturationOption());
saturationChanged (c_saturation_set -> currentItem());
const QString& codec (properties() -> videoCodecOption());
const TQString& codec (properties() -> videoCodecOption());
c_codec -> setCurrentItem (codec.isNull() ? 0 : engine() -> videoCodecIndex (codec) + 2);
}
@ -1760,7 +1760,7 @@ void KPlayerPropertiesVideo::saturationChanged (int option)
}
}
KPlayerPropertiesDeviceVideo::KPlayerPropertiesDeviceVideo (QWidget* parent, const char* name)
KPlayerPropertiesDeviceVideo::KPlayerPropertiesDeviceVideo (TQWidget* parent, const char* name)
: KPlayerPropertiesVideo (parent, name)
{
}
@ -1784,7 +1784,7 @@ void KPlayerPropertiesDeviceVideo::setupControls (void)
hideTV();
}
KPlayerPropertiesTVDeviceVideo::KPlayerPropertiesTVDeviceVideo (QWidget* parent, const char* name)
KPlayerPropertiesTVDeviceVideo::KPlayerPropertiesTVDeviceVideo (TQWidget* parent, const char* name)
: KPlayerPropertiesDVBDeviceVideo (parent, name)
{
}
@ -1808,7 +1808,7 @@ void KPlayerPropertiesTVDeviceVideo::setupControls (void)
void KPlayerPropertiesTVDeviceVideo::load (void)
{
const QString& format (properties() -> videoFormat());
const TQString& format (properties() -> videoFormat());
int i;
for ( i = 1; i < c_format -> count(); i ++ )
if ( c_format -> text (i) == format )
@ -1844,7 +1844,7 @@ void KPlayerPropertiesTVDeviceVideo::normChanged (int option)
}
}
KPlayerPropertiesDVBDeviceVideo::KPlayerPropertiesDVBDeviceVideo (QWidget* parent, const char* name)
KPlayerPropertiesDVBDeviceVideo::KPlayerPropertiesDVBDeviceVideo (TQWidget* parent, const char* name)
: KPlayerPropertiesDeviceVideo (parent, name)
{
}
@ -1895,7 +1895,7 @@ void KPlayerPropertiesDVBDeviceVideo::inputChanged (int option)
}
}
KPlayerPropertiesTrackVideo::KPlayerPropertiesTrackVideo (QWidget* parent, const char* name)
KPlayerPropertiesTrackVideo::KPlayerPropertiesTrackVideo (TQWidget* parent, const char* name)
: KPlayerPropertiesVideo (parent, name)
{
}
@ -1913,11 +1913,11 @@ void KPlayerPropertiesTrackVideo::setupControls (void)
#ifdef DEBUG_KPLAYER_PROPERTIES_DIALOG
kdDebugTime() << "KPlayerPropertiesTrackVideo::setupControls\n";
#endif
const QMap<int, QString>& ids (properties() -> videoIDs());
const TQMap<int, TQString>& ids (properties() -> videoIDs());
if ( ids.count() > 1 )
{
int i = 1;
QMap<int, QString>::ConstIterator iterator (ids.constBegin()), end (ids.constEnd());
TQMap<int, TQString>::ConstIterator iterator (ids.constBegin()), end (ids.constEnd());
while ( iterator != end )
{
c_track_set -> insertItem (languageName (iterator.key(), iterator.data()), i);
@ -1959,7 +1959,7 @@ void KPlayerPropertiesTrackVideo::trackChanged (int option)
}
}
KPlayerPropertiesAdvanced::KPlayerPropertiesAdvanced (QWidget* parent, const char* name)
KPlayerPropertiesAdvanced::KPlayerPropertiesAdvanced (TQWidget* parent, const char* name)
: KPlayerPropertiesAdvancedPage (parent, name)
{
}
@ -1978,7 +1978,7 @@ void KPlayerPropertiesAdvanced::setup (const KURL& url)
if ( engine() -> demuxerCount() )
{
c_demuxer -> clear();
const QString& demuxer = properties() -> demuxerValue();
const TQString& demuxer = properties() -> demuxerValue();
if ( demuxer.isEmpty() )
c_demuxer -> insertItem (i18n("default"));
else
@ -2028,7 +2028,7 @@ void KPlayerPropertiesAdvanced::load (void)
{
c_command_line_option -> setCurrentItem (properties() -> commandLineOption());
commandLineChanged (c_command_line_option -> currentItem());
const QString& demuxer (properties() -> demuxerOption());
const TQString& demuxer (properties() -> demuxerOption());
c_demuxer -> setCurrentItem (demuxer.isNull() ? 0 : engine() -> demuxerIndex (demuxer) + 2);
c_frame_drop -> setCurrentItem (properties() -> frameDropOption());
c_use_cache -> setCurrentItem (properties() -> cacheOption());
@ -2071,7 +2071,7 @@ void KPlayerPropertiesAdvanced::cacheChanged (int cache)
}
}
KPlayerPropertiesDeviceAdvanced::KPlayerPropertiesDeviceAdvanced (QWidget* parent, const char* name)
KPlayerPropertiesDeviceAdvanced::KPlayerPropertiesDeviceAdvanced (TQWidget* parent, const char* name)
: KPlayerPropertiesAdvanced (parent, name)
{
}
@ -2084,7 +2084,7 @@ void KPlayerPropertiesDeviceAdvanced::setupMedia (const KURL& url)
m_properties = KPlayerMedia::deviceProperties (url);
}
KPlayerPropertiesTVDeviceAdvanced::KPlayerPropertiesTVDeviceAdvanced (QWidget* parent, const char* name)
KPlayerPropertiesTVDeviceAdvanced::KPlayerPropertiesTVDeviceAdvanced (TQWidget* parent, const char* name)
: KPlayerPropertiesDeviceAdvanced (parent, name)
{
}
@ -2133,7 +2133,7 @@ void KPlayerPropertiesTVDeviceAdvanced::compressionChanged (bool checked)
c_decimation -> setFocus();
}
KPlayerPropertiesTrackAdvanced::KPlayerPropertiesTrackAdvanced (QWidget* parent, const char* name)
KPlayerPropertiesTrackAdvanced::KPlayerPropertiesTrackAdvanced (TQWidget* parent, const char* name)
: KPlayerPropertiesAdvanced (parent, name)
{
}
@ -2146,7 +2146,7 @@ void KPlayerPropertiesTrackAdvanced::setupMedia (const KURL& url)
m_properties = KPlayerMedia::trackProperties (url);
}
KPlayerPropertiesItemAdvanced::KPlayerPropertiesItemAdvanced (QWidget* parent, const char* name)
KPlayerPropertiesItemAdvanced::KPlayerPropertiesItemAdvanced (TQWidget* parent, const char* name)
: KPlayerPropertiesTrackAdvanced (parent, name)
{
}

@ -40,7 +40,7 @@ class KPlayerPropertiesGeneral : public KPlayerPropertiesGeneralPage
Q_OBJECT
public:
KPlayerPropertiesGeneral (QWidget* parent = 0, const char* name = 0);
KPlayerPropertiesGeneral (TQWidget* parent = 0, const char* name = 0);
virtual ~KPlayerPropertiesGeneral();
void setup (const KURL&);
@ -69,7 +69,7 @@ class KPlayerPropertiesDeviceGeneral : public KPlayerPropertiesGeneral
Q_OBJECT
public:
KPlayerPropertiesDeviceGeneral (QWidget* parent = 0, const char* name = 0);
KPlayerPropertiesDeviceGeneral (TQWidget* parent = 0, const char* name = 0);
virtual void setupMedia (const KURL&);
virtual void setupControls (void);
@ -84,7 +84,7 @@ class KPlayerPropertiesTVDeviceGeneral : public KPlayerPropertiesDeviceGeneral
Q_OBJECT
public:
KPlayerPropertiesTVDeviceGeneral (QWidget* parent = 0, const char* name = 0);
KPlayerPropertiesTVDeviceGeneral (TQWidget* parent = 0, const char* name = 0);
virtual void setupMedia (const KURL&);
virtual void setupControls (void);
@ -100,7 +100,7 @@ class KPlayerPropertiesDVBDeviceGeneral : public KPlayerPropertiesDeviceGeneral
Q_OBJECT
public:
KPlayerPropertiesDVBDeviceGeneral (QWidget* parent = 0, const char* name = 0);
KPlayerPropertiesDVBDeviceGeneral (TQWidget* parent = 0, const char* name = 0);
virtual void setupMedia (const KURL&);
virtual void setupControls (void);
@ -116,7 +116,7 @@ class KPlayerPropertiesTrackGeneral : public KPlayerPropertiesGeneral
Q_OBJECT
public:
KPlayerPropertiesTrackGeneral (QWidget* parent = 0, const char* name = 0);
KPlayerPropertiesTrackGeneral (TQWidget* parent = 0, const char* name = 0);
virtual void setupMedia (const KURL&);
virtual void load (void);
@ -130,7 +130,7 @@ class KPlayerPropertiesDiskTrackGeneral : public KPlayerPropertiesTrackGeneral
Q_OBJECT
public:
KPlayerPropertiesDiskTrackGeneral (QWidget* parent = 0, const char* name = 0);
KPlayerPropertiesDiskTrackGeneral (TQWidget* parent = 0, const char* name = 0);
virtual void setupControls (void);
virtual void load (void);
@ -144,7 +144,7 @@ class KPlayerPropertiesChannelGeneral : public KPlayerPropertiesDiskTrackGeneral
Q_OBJECT
public:
KPlayerPropertiesChannelGeneral (QWidget* parent = 0, const char* name = 0);
KPlayerPropertiesChannelGeneral (TQWidget* parent = 0, const char* name = 0);
virtual void setupControls (void);
virtual void load (void);
@ -159,7 +159,7 @@ class KPlayerPropertiesItemGeneral : public KPlayerPropertiesTrackGeneral
Q_OBJECT
public:
KPlayerPropertiesItemGeneral (QWidget* parent = 0, const char* name = 0);
KPlayerPropertiesItemGeneral (TQWidget* parent = 0, const char* name = 0);
virtual void setupControls (void);
virtual void load (void);
@ -174,7 +174,7 @@ class KPlayerPropertiesSize : public KPlayerPropertiesSizePage
Q_OBJECT
public:
KPlayerPropertiesSize (QWidget* parent = 0, const char* name = 0);
KPlayerPropertiesSize (TQWidget* parent = 0, const char* name = 0);
virtual ~KPlayerPropertiesSize();
void setup (const KURL&);
@ -197,7 +197,7 @@ class KPlayerPropertiesDeviceSize : public KPlayerPropertiesSize
Q_OBJECT
public:
KPlayerPropertiesDeviceSize (QWidget* parent = 0, const char* name = 0);
KPlayerPropertiesDeviceSize (TQWidget* parent = 0, const char* name = 0);
virtual void setupMedia (const KURL&);
virtual void setupControls (void);
@ -211,7 +211,7 @@ class KPlayerPropertiesTrackSize : public KPlayerPropertiesSize
Q_OBJECT
public:
KPlayerPropertiesTrackSize (QWidget* parent = 0, const char* name = 0);
KPlayerPropertiesTrackSize (TQWidget* parent = 0, const char* name = 0);
virtual void setupMedia (const KURL&);
virtual void load (void);
@ -225,7 +225,7 @@ class KPlayerPropertiesSubtitles : public KPlayerPropertiesSubtitlesPage
Q_OBJECT
public:
KPlayerPropertiesSubtitles (QWidget* parent = 0, const char* name = 0);
KPlayerPropertiesSubtitles (TQWidget* parent = 0, const char* name = 0);
virtual ~KPlayerPropertiesSubtitles();
void setup (const KURL&);
@ -253,7 +253,7 @@ class KPlayerPropertiesDeviceSubtitles : public KPlayerPropertiesSubtitles
Q_OBJECT
public:
KPlayerPropertiesDeviceSubtitles (QWidget* parent = 0, const char* name = 0);
KPlayerPropertiesDeviceSubtitles (TQWidget* parent = 0, const char* name = 0);
virtual void setupMedia (const KURL&);
virtual void setupControls (void);
@ -267,7 +267,7 @@ class KPlayerPropertiesTrackSubtitles : public KPlayerPropertiesSubtitles
Q_OBJECT
public:
KPlayerPropertiesTrackSubtitles (QWidget* parent = 0, const char* name = 0);
KPlayerPropertiesTrackSubtitles (TQWidget* parent = 0, const char* name = 0);
virtual void setupMedia (const KURL&);
void addTracks (void);
@ -286,7 +286,7 @@ class KPlayerPropertiesChannelSubtitles : public KPlayerPropertiesTrackSubtitles
Q_OBJECT
public:
KPlayerPropertiesChannelSubtitles (QWidget* parent = 0, const char* name = 0);
KPlayerPropertiesChannelSubtitles (TQWidget* parent = 0, const char* name = 0);
virtual void setupControls (void);
@ -299,7 +299,7 @@ class KPlayerPropertiesDiskTrackSubtitles : public KPlayerPropertiesTrackSubtitl
Q_OBJECT
public:
KPlayerPropertiesDiskTrackSubtitles (QWidget* parent = 0, const char* name = 0);
KPlayerPropertiesDiskTrackSubtitles (TQWidget* parent = 0, const char* name = 0);
virtual void setupControls (void);
void setupEncoding (void);
@ -315,7 +315,7 @@ class KPlayerPropertiesItemSubtitles : public KPlayerPropertiesDiskTrackSubtitle
Q_OBJECT
public:
KPlayerPropertiesItemSubtitles (QWidget* parent = 0, const char* name = 0);
KPlayerPropertiesItemSubtitles (TQWidget* parent = 0, const char* name = 0);
virtual void setupControls (void);
virtual void load (void);
@ -330,7 +330,7 @@ class KPlayerPropertiesAudio : public KPlayerPropertiesAudioPage
Q_OBJECT
public:
KPlayerPropertiesAudio (QWidget* parent = 0, const char* name = 0);
KPlayerPropertiesAudio (TQWidget* parent = 0, const char* name = 0);
virtual ~KPlayerPropertiesAudio();
void setup (const KURL&);
@ -360,7 +360,7 @@ class KPlayerPropertiesDeviceAudio : public KPlayerPropertiesAudio
Q_OBJECT
public:
KPlayerPropertiesDeviceAudio (QWidget* parent = 0, const char* name = 0);
KPlayerPropertiesDeviceAudio (TQWidget* parent = 0, const char* name = 0);
virtual void setupMedia (const KURL&);
virtual void setupControls (void);
@ -374,7 +374,7 @@ class KPlayerPropertiesDVBDeviceAudio : public KPlayerPropertiesDeviceAudio
Q_OBJECT
public:
KPlayerPropertiesDVBDeviceAudio (QWidget* parent = 0, const char* name = 0);
KPlayerPropertiesDVBDeviceAudio (TQWidget* parent = 0, const char* name = 0);
virtual void setupMedia (const KURL&);
virtual void setupControls (void);
@ -393,7 +393,7 @@ class KPlayerPropertiesTVDeviceAudio : public KPlayerPropertiesDVBDeviceAudio
Q_OBJECT
public:
KPlayerPropertiesTVDeviceAudio (QWidget* parent = 0, const char* name = 0);
KPlayerPropertiesTVDeviceAudio (TQWidget* parent = 0, const char* name = 0);
virtual void setupMedia (const KURL&);
virtual void setupControls (void);
@ -409,7 +409,7 @@ class KPlayerPropertiesTrackAudio : public KPlayerPropertiesAudio
Q_OBJECT
public:
KPlayerPropertiesTrackAudio (QWidget* parent = 0, const char* name = 0);
KPlayerPropertiesTrackAudio (TQWidget* parent = 0, const char* name = 0);
virtual void setupMedia (const KURL&);
virtual void setupControls (void);
@ -428,7 +428,7 @@ class KPlayerPropertiesVideo : public KPlayerPropertiesVideoPage
Q_OBJECT
public:
KPlayerPropertiesVideo (QWidget* parent = 0, const char* name = 0);
KPlayerPropertiesVideo (TQWidget* parent = 0, const char* name = 0);
virtual ~KPlayerPropertiesVideo();
void setup (const KURL&);
@ -461,7 +461,7 @@ class KPlayerPropertiesDeviceVideo : public KPlayerPropertiesVideo
Q_OBJECT
public:
KPlayerPropertiesDeviceVideo (QWidget* parent = 0, const char* name = 0);
KPlayerPropertiesDeviceVideo (TQWidget* parent = 0, const char* name = 0);
virtual void setupMedia (const KURL&);
virtual void setupControls (void);
@ -475,7 +475,7 @@ class KPlayerPropertiesDVBDeviceVideo : public KPlayerPropertiesDeviceVideo
Q_OBJECT
public:
KPlayerPropertiesDVBDeviceVideo (QWidget* parent = 0, const char* name = 0);
KPlayerPropertiesDVBDeviceVideo (TQWidget* parent = 0, const char* name = 0);
virtual void setupMedia (const KURL&);
virtual void setupControls (void);
@ -494,7 +494,7 @@ class KPlayerPropertiesTVDeviceVideo : public KPlayerPropertiesDVBDeviceVideo
Q_OBJECT
public:
KPlayerPropertiesTVDeviceVideo (QWidget* parent = 0, const char* name = 0);
KPlayerPropertiesTVDeviceVideo (TQWidget* parent = 0, const char* name = 0);
virtual void setupMedia (const KURL&);
virtual void setupControls (void);
@ -513,7 +513,7 @@ class KPlayerPropertiesTrackVideo : public KPlayerPropertiesVideo
Q_OBJECT
public:
KPlayerPropertiesTrackVideo (QWidget* parent = 0, const char* name = 0);
KPlayerPropertiesTrackVideo (TQWidget* parent = 0, const char* name = 0);
virtual void setupMedia (const KURL&);
virtual void setupControls (void);
@ -532,7 +532,7 @@ class KPlayerPropertiesAdvanced : public KPlayerPropertiesAdvancedPage
Q_OBJECT
public:
KPlayerPropertiesAdvanced (QWidget* parent = 0, const char* name = 0);
KPlayerPropertiesAdvanced (TQWidget* parent = 0, const char* name = 0);
virtual ~KPlayerPropertiesAdvanced();
void setup (const KURL&);
@ -560,7 +560,7 @@ class KPlayerPropertiesDeviceAdvanced : public KPlayerPropertiesAdvanced
Q_OBJECT
public:
KPlayerPropertiesDeviceAdvanced (QWidget* parent = 0, const char* name = 0);
KPlayerPropertiesDeviceAdvanced (TQWidget* parent = 0, const char* name = 0);
virtual void setupMedia (const KURL&);
@ -573,7 +573,7 @@ class KPlayerPropertiesTVDeviceAdvanced : public KPlayerPropertiesDeviceAdvanced
Q_OBJECT
public:
KPlayerPropertiesTVDeviceAdvanced (QWidget* parent = 0, const char* name = 0);
KPlayerPropertiesTVDeviceAdvanced (TQWidget* parent = 0, const char* name = 0);
virtual void setupMedia (const KURL&);
virtual void setupControls (void);
@ -592,7 +592,7 @@ class KPlayerPropertiesTrackAdvanced : public KPlayerPropertiesAdvanced
Q_OBJECT
public:
KPlayerPropertiesTrackAdvanced (QWidget* parent = 0, const char* name = 0);
KPlayerPropertiesTrackAdvanced (TQWidget* parent = 0, const char* name = 0);
virtual void setupMedia (const KURL&);
@ -605,7 +605,7 @@ class KPlayerPropertiesItemAdvanced : public KPlayerPropertiesTrackAdvanced
Q_OBJECT
public:
KPlayerPropertiesItemAdvanced (QWidget* parent = 0, const char* name = 0);
KPlayerPropertiesItemAdvanced (TQWidget* parent = 0, const char* name = 0);
virtual void setupControls (void);
virtual void load (void);
@ -639,12 +639,12 @@ protected:
virtual void slotApply (void);
virtual void slotDefault (void);
virtual KPlayerPropertiesGeneral* createGeneralPage (QFrame* frame, const QString& name) = 0;
virtual KPlayerPropertiesSize* createSizePage (QFrame* frame, const QString& name) = 0;
virtual KPlayerPropertiesSubtitles* createSubtitlesPage (QFrame* frame, const QString& name) = 0;
virtual KPlayerPropertiesAudio* createAudioPage (QFrame* frame, const QString& name) = 0;
virtual KPlayerPropertiesVideo* createVideoPage (QFrame* frame, const QString& name) = 0;
virtual KPlayerPropertiesAdvanced* createAdvancedPage (QFrame* frame, const QString& name) = 0;
virtual KPlayerPropertiesGeneral* createGeneralPage (TQFrame* frame, const TQString& name) = 0;
virtual KPlayerPropertiesSize* createSizePage (TQFrame* frame, const TQString& name) = 0;
virtual KPlayerPropertiesSubtitles* createSubtitlesPage (TQFrame* frame, const TQString& name) = 0;
virtual KPlayerPropertiesAudio* createAudioPage (TQFrame* frame, const TQString& name) = 0;
virtual KPlayerPropertiesVideo* createVideoPage (TQFrame* frame, const TQString& name) = 0;
virtual KPlayerPropertiesAdvanced* createAdvancedPage (TQFrame* frame, const TQString& name) = 0;
KPlayerPropertiesGeneral* m_general;
KPlayerPropertiesSize* m_size;
@ -656,7 +656,7 @@ protected:
KPlayerMediaProperties* m_properties;
protected slots:
void pageAboutToShow (QWidget*);
void pageAboutToShow (TQWidget*);
};
/** The KPlayer device properties dialog.
@ -672,12 +672,12 @@ public:
virtual void setupMedia (const KURL&);
virtual KPlayerPropertiesGeneral* createGeneralPage (QFrame* frame, const QString& name);
virtual KPlayerPropertiesSize* createSizePage (QFrame* frame, const QString& name);
virtual KPlayerPropertiesSubtitles* createSubtitlesPage (QFrame* frame, const QString& name);
virtual KPlayerPropertiesAudio* createAudioPage (QFrame* frame, const QString& name);
virtual KPlayerPropertiesVideo* createVideoPage (QFrame* frame, const QString& name);
virtual KPlayerPropertiesAdvanced* createAdvancedPage (QFrame* frame, const QString& name);
virtual KPlayerPropertiesGeneral* createGeneralPage (TQFrame* frame, const TQString& name);
virtual KPlayerPropertiesSize* createSizePage (TQFrame* frame, const TQString& name);
virtual KPlayerPropertiesSubtitles* createSubtitlesPage (TQFrame* frame, const TQString& name);
virtual KPlayerPropertiesAudio* createAudioPage (TQFrame* frame, const TQString& name);
virtual KPlayerPropertiesVideo* createVideoPage (TQFrame* frame, const TQString& name);
virtual KPlayerPropertiesAdvanced* createAdvancedPage (TQFrame* frame, const TQString& name);
KPlayerDeviceProperties* properties (void) const
{ return (KPlayerDeviceProperties*) KPlayerPropertiesDialog::properties(); }
@ -696,10 +696,10 @@ public:
virtual void setupMedia (const KURL&);
virtual KPlayerPropertiesGeneral* createGeneralPage (QFrame* frame, const QString& name);
virtual KPlayerPropertiesAudio* createAudioPage (QFrame* frame, const QString& name);
virtual KPlayerPropertiesVideo* createVideoPage (QFrame* frame, const QString& name);
virtual KPlayerPropertiesAdvanced* createAdvancedPage (QFrame* frame, const QString& name);
virtual KPlayerPropertiesGeneral* createGeneralPage (TQFrame* frame, const TQString& name);
virtual KPlayerPropertiesAudio* createAudioPage (TQFrame* frame, const TQString& name);
virtual KPlayerPropertiesVideo* createVideoPage (TQFrame* frame, const TQString& name);
virtual KPlayerPropertiesAdvanced* createAdvancedPage (TQFrame* frame, const TQString& name);
KPlayerTVProperties* properties (void) const
{ return (KPlayerTVProperties*) KPlayerPropertiesDialog::properties(); }
@ -718,9 +718,9 @@ public:
virtual void setupMedia (const KURL&);
virtual KPlayerPropertiesGeneral* createGeneralPage (QFrame* frame, const QString& name);
virtual KPlayerPropertiesAudio* createAudioPage (QFrame* frame, const QString& name);
virtual KPlayerPropertiesVideo* createVideoPage (QFrame* frame, const QString& name);
virtual KPlayerPropertiesGeneral* createGeneralPage (TQFrame* frame, const TQString& name);
virtual KPlayerPropertiesAudio* createAudioPage (TQFrame* frame, const TQString& name);
virtual KPlayerPropertiesVideo* createVideoPage (TQFrame* frame, const TQString& name);
KPlayerDVBProperties* properties (void) const
{ return (KPlayerDVBProperties*) KPlayerPropertiesDialog::properties(); }
@ -739,12 +739,12 @@ public:
virtual void setupMedia (const KURL&);
virtual KPlayerPropertiesGeneral* createGeneralPage (QFrame* frame, const QString& name);
virtual KPlayerPropertiesSize* createSizePage (QFrame* frame, const QString& name);
virtual KPlayerPropertiesSubtitles* createSubtitlesPage (QFrame* frame, const QString& name);
virtual KPlayerPropertiesAudio* createAudioPage (QFrame* frame, const QString& name);
virtual KPlayerPropertiesVideo* createVideoPage (QFrame* frame, const QString& name);
virtual KPlayerPropertiesAdvanced* createAdvancedPage (QFrame* frame, const QString& name);
virtual KPlayerPropertiesGeneral* createGeneralPage (TQFrame* frame, const TQString& name);
virtual KPlayerPropertiesSize* createSizePage (TQFrame* frame, const TQString& name);
virtual KPlayerPropertiesSubtitles* createSubtitlesPage (TQFrame* frame, const TQString& name);
virtual KPlayerPropertiesAudio* createAudioPage (TQFrame* frame, const TQString& name);
virtual KPlayerPropertiesVideo* createVideoPage (TQFrame* frame, const TQString& name);
virtual KPlayerPropertiesAdvanced* createAdvancedPage (TQFrame* frame, const TQString& name);
KPlayerDiskTrackProperties* properties (void) const
{ return (KPlayerDiskTrackProperties*) KPlayerPropertiesDialog::properties(); }
@ -761,8 +761,8 @@ public:
KPlayerChannelPropertiesDialog (void) { }
virtual ~KPlayerChannelPropertiesDialog();
virtual KPlayerPropertiesGeneral* createGeneralPage (QFrame* frame, const QString& name);
virtual KPlayerPropertiesSubtitles* createSubtitlesPage (QFrame* frame, const QString& name);
virtual KPlayerPropertiesGeneral* createGeneralPage (TQFrame* frame, const TQString& name);
virtual KPlayerPropertiesSubtitles* createSubtitlesPage (TQFrame* frame, const TQString& name);
KPlayerChannelProperties* properties (void) const
{ return (KPlayerChannelProperties*) KPlayerPropertiesDialog::properties(); }
@ -779,9 +779,9 @@ public:
KPlayerItemPropertiesDialog (void) { }
virtual ~KPlayerItemPropertiesDialog();
virtual KPlayerPropertiesGeneral* createGeneralPage (QFrame* frame, const QString& name);
virtual KPlayerPropertiesSubtitles* createSubtitlesPage (QFrame* frame, const QString& name);
virtual KPlayerPropertiesAdvanced* createAdvancedPage (QFrame* frame, const QString& name);
virtual KPlayerPropertiesGeneral* createGeneralPage (TQFrame* frame, const TQString& name);
virtual KPlayerPropertiesSubtitles* createSubtitlesPage (TQFrame* frame, const TQString& name);
virtual KPlayerPropertiesAdvanced* createAdvancedPage (TQFrame* frame, const TQString& name);
KPlayerItemProperties* properties (void) const
{ return (KPlayerItemProperties*) KPlayerPropertiesDialog::properties(); }

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>KPlayerPropertiesGeneralPage</class>
<widget class="QFrame">
<widget class="TQFrame">
<property name="name">
<cstring>KPlayerPropertiesGeneralPage</cstring>
</property>
@ -28,7 +28,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QFrame">
<widget class="TQFrame">
<property name="name">
<cstring>frame1</cstring>
</property>
@ -50,7 +50,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>l_name</cstring>
</property>
@ -78,7 +78,7 @@
<string>Property that shows and allows you to change the name that KPlayer will display for this file or stream.</string>
</property>
</widget>
<widget class="QLineEdit">
<widget class="TQLineEdit">
<property name="name">
<cstring>c_name</cstring>
</property>
@ -97,7 +97,7 @@
<string>Property that shows and allows you to change the name that KPlayer will display for this file or stream.</string>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>l_url</cstring>
</property>
@ -125,7 +125,7 @@
<string>Property that shows remote URL or local file path of this file or stream.</string>
</property>
</widget>
<widget class="QLineEdit">
<widget class="TQLineEdit">
<property name="name">
<cstring>c_url</cstring>
</property>
@ -150,7 +150,7 @@
<string>Property that shows remote URL or local file path of this file or stream.</string>
</property>
</widget>
<widget class="QFrame">
<widget class="TQFrame">
<property name="name">
<cstring>frame2</cstring>
</property>
@ -172,7 +172,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout3</cstring>
</property>
@ -180,7 +180,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel" row="0" column="0">
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>l_type</cstring>
</property>
@ -200,7 +200,7 @@
<string>Property that shows the type of the device.</string>
</property>
</widget>
<widget class="QLineEdit" row="0" column="1">
<widget class="TQLineEdit" row="0" column="1">
<property name="name">
<cstring>c_type</cstring>
</property>
@ -222,7 +222,7 @@
<string>Property that shows the type of the device.</string>
</property>
</widget>
<widget class="QLabel" row="1" column="0">
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>l_frequency</cstring>
</property>
@ -242,7 +242,7 @@
<string>Property that shows and allows you to change the frequency used to tune in to the channel.</string>
</property>
</widget>
<widget class="QLineEdit" row="1" column="1">
<widget class="TQLineEdit" row="1" column="1">
<property name="name">
<cstring>c_frequency</cstring>
</property>
@ -261,7 +261,7 @@
<string>Property that shows and allows you to change the frequency used to tune in to the channel.</string>
</property>
</widget>
<widget class="QLabel" row="1" column="2">
<widget class="TQLabel" row="1" column="2">
<property name="name">
<cstring>l_mhz</cstring>
</property>
@ -286,7 +286,7 @@
<string>Property that shows and allows you to change the frequency used to tune in to the channel.</string>
</property>
</widget>
<widget class="QLabel" row="2" column="0">
<widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>l_length</cstring>
</property>
@ -306,7 +306,7 @@
<string>Property that shows the time length of the file or stream.</string>
</property>
</widget>
<widget class="QLineEdit" row="2" column="1">
<widget class="TQLineEdit" row="2" column="1">
<property name="name">
<cstring>c_length</cstring>
</property>
@ -328,7 +328,7 @@
<string>Property that shows the time length of the file or stream.</string>
</property>
</widget>
<widget class="QLabel" row="4" column="0">
<widget class="TQLabel" row="4" column="0">
<property name="name">
<cstring>l_playlist</cstring>
</property>
@ -348,7 +348,7 @@
<string>Option to choose whether this is a playlist file or not. Auto determines that automatically based on extension. If autodetection gets it wrong, MPlayer will fail to play the file, and you will then have to set this option correctly.</string>
</property>
</widget>
<widget class="QComboBox" row="4" column="1">
<widget class="TQComboBox" row="4" column="1">
<item>
<property name="text">
<string>auto</string>
@ -382,7 +382,7 @@
<string>Option to choose whether this is a playlist file or not. Auto determines that automatically based on extension. If autodetection gets it wrong, MPlayer will fail to play the file, and you will then have to set this option correctly.</string>
</property>
</widget>
<widget class="QLabel" row="5" column="0">
<widget class="TQLabel" row="5" column="0">
<property name="name">
<cstring>l_channels</cstring>
</property>
@ -402,7 +402,7 @@
<string>Option to choose the available channels according to your location.</string>
</property>
</widget>
<widget class="QComboBox" row="5" column="1">
<widget class="TQComboBox" row="5" column="1">
<property name="name">
<cstring>c_channels</cstring>
</property>
@ -421,7 +421,7 @@
<string>Option to choose the available channels according to your location.</string>
</property>
</widget>
<widget class="QLabel" row="6" column="0">
<widget class="TQLabel" row="6" column="0">
<property name="name">
<cstring>l_driver</cstring>
</property>
@ -441,7 +441,7 @@
<string>Option to choose the input driver.</string>
</property>
</widget>
<widget class="QComboBox" row="6" column="1">
<widget class="TQComboBox" row="6" column="1">
<item>
<property name="text">
<string>BSD Bt848</string>
@ -475,7 +475,7 @@
<string>Option to choose the input driver.</string>
</property>
</widget>
<widget class="QLabel" row="7" column="0">
<widget class="TQLabel" row="7" column="0">
<property name="name">
<cstring>l_channel_file</cstring>
</property>
@ -495,7 +495,7 @@
<string>Option to specify the path to the file containing the list of available channels.</string>
</property>
</widget>
<widget class="QLineEdit" row="7" column="1" colspan="2">
<widget class="TQLineEdit" row="7" column="1" colspan="2">
<property name="name">
<cstring>c_channel_file</cstring>
</property>

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>KPlayerPropertiesSizePage</class>
<widget class="QFrame">
<widget class="TQFrame">
<property name="name">
<cstring>KPlayerPropertiesSizePage</cstring>
</property>
@ -28,7 +28,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QFrame" row="0" column="0">
<widget class="TQFrame" row="0" column="0">
<property name="name">
<cstring>frame1</cstring>
</property>
@ -50,7 +50,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout1</cstring>
</property>
@ -58,7 +58,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel" row="0" column="0">
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>l_resolution</cstring>
</property>
@ -78,7 +78,7 @@
<string>Property that shows the video resolution in pixels.</string>
</property>
</widget>
<widget class="QLineEdit" row="0" column="1">
<widget class="TQLineEdit" row="0" column="1">
<property name="name">
<cstring>c_resolution_width</cstring>
</property>
@ -98,7 +98,7 @@
<string>Property that shows the video resolution in pixels.</string>
</property>
</widget>
<widget class="QLabel" row="0" column="2">
<widget class="TQLabel" row="0" column="2">
<property name="name">
<cstring>l_resolution_by</cstring>
</property>
@ -118,7 +118,7 @@
<string>Property that shows the video resolution in pixels.</string>
</property>
</widget>
<widget class="QLineEdit" row="0" column="3">
<widget class="TQLineEdit" row="0" column="3">
<property name="name">
<cstring>c_resolution_height</cstring>
</property>
@ -138,7 +138,7 @@
<string>Property that shows the video resolution in pixels.</string>
</property>
</widget>
<widget class="QLabel" row="1" column="0">
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>l_original_size</cstring>
</property>
@ -158,7 +158,7 @@
<string>Property that shows the original video size in pixels.</string>
</property>
</widget>
<widget class="QLineEdit" row="1" column="1">
<widget class="TQLineEdit" row="1" column="1">
<property name="name">
<cstring>c_original_width</cstring>
</property>
@ -178,7 +178,7 @@
<string>Property that shows the original video size in pixels.</string>
</property>
</widget>
<widget class="QLabel" row="1" column="2">
<widget class="TQLabel" row="1" column="2">
<property name="name">
<cstring>l_original_by</cstring>
</property>
@ -198,7 +198,7 @@
<string>Property that shows the original video size in pixels.</string>
</property>
</widget>
<widget class="QLineEdit" row="1" column="3">
<widget class="TQLineEdit" row="1" column="3">
<property name="name">
<cstring>c_original_height</cstring>
</property>
@ -218,7 +218,7 @@
<string>Property that shows the original video size in pixels.</string>
</property>
</widget>
<widget class="QLabel" row="2" column="0">
<widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>l_current_size</cstring>
</property>
@ -238,7 +238,7 @@
<string>Property that shows the current video size in pixels.</string>
</property>
</widget>
<widget class="QLineEdit" row="2" column="1">
<widget class="TQLineEdit" row="2" column="1">
<property name="name">
<cstring>c_current_width</cstring>
</property>
@ -258,7 +258,7 @@
<string>Property that shows the current video size in pixels.</string>
</property>
</widget>
<widget class="QLabel" row="2" column="2">
<widget class="TQLabel" row="2" column="2">
<property name="name">
<cstring>l_current_by</cstring>
</property>
@ -278,7 +278,7 @@
<string>Property that shows the current video size in pixels.</string>
</property>
</widget>
<widget class="QLineEdit" row="2" column="3">
<widget class="TQLineEdit" row="2" column="3">
<property name="name">
<cstring>c_current_height</cstring>
</property>
@ -298,7 +298,7 @@
<string>Property that shows the current video size in pixels.</string>
</property>
</widget>
<widget class="QLabel" row="3" column="0">
<widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>l_display_size</cstring>
</property>
@ -318,7 +318,7 @@
<string>Option to set initial video display size or aspect. Auto will choose the initial display size based on the Minimum Initial Video Width option in KPlayer Settings. Set Size allows you to set a specific size, and Set Aspect lets you set a specific aspect. It is easier to set this property by resizing KPlayer window or choosing a size or aspect option from View menu while holding Shift key down.</string>
</property>
</widget>
<widget class="QComboBox" row="3" column="1" colspan="3">
<widget class="TQComboBox" row="3" column="1" colspan="3">
<item>
<property name="text">
<string>auto</string>
@ -344,7 +344,7 @@
<string>Option to set initial video display size or aspect. Auto will choose the initial display size based on the Minimum Initial Video Width option in KPlayer Settings. Set Size allows you to set a specific size, and Set Aspect lets you set a specific aspect. It is easier to set this property by resizing KPlayer window or choosing a size or aspect option from View menu while holding Shift key down.</string>
</property>
</widget>
<widget class="QLineEdit" row="4" column="1">
<widget class="TQLineEdit" row="4" column="1">
<property name="name">
<cstring>c_display_width</cstring>
</property>
@ -361,7 +361,7 @@
<string>Option to set initial video display size or aspect. Auto will choose the initial display size based on the Minimum Initial Video Width option in KPlayer Settings. Set Size allows you to set a specific size, and Set Aspect lets you set a specific aspect. It is easier to set this property by resizing KPlayer window or choosing a size or aspect option from View menu while holding Shift key down.</string>
</property>
</widget>
<widget class="QLabel" row="4" column="2">
<widget class="TQLabel" row="4" column="2">
<property name="name">
<cstring>l_display_by</cstring>
</property>
@ -381,7 +381,7 @@
<string>Option to set initial video display size or aspect. Auto will choose the initial display size based on the Minimum Initial Video Width option in KPlayer Settings. Set Size allows you to set a specific size, and Set Aspect lets you set a specific aspect. It is easier to set this property by resizing KPlayer window or choosing a size or aspect option from View menu while holding Shift key down.</string>
</property>
</widget>
<widget class="QLineEdit" row="4" column="3">
<widget class="TQLineEdit" row="4" column="3">
<property name="name">
<cstring>c_display_height</cstring>
</property>
@ -398,7 +398,7 @@
<string>Option to set initial video display size or aspect. Auto will choose the initial display size based on the Minimum Initial Video Width option in KPlayer Settings. Set Size allows you to set a specific size, and Set Aspect lets you set a specific aspect. It is easier to set this property by resizing KPlayer window or choosing a size or aspect option from View menu while holding Shift key down.</string>
</property>
</widget>
<widget class="QLabel" row="5" column="0">
<widget class="TQLabel" row="5" column="0">
<property name="name">
<cstring>l_full_screen</cstring>
</property>
@ -418,7 +418,7 @@
<string>Option to choose whether to start playing this file in a full screen window. Default does not change the window state for this file. It is easier to set this property by switching to full screen or restoring KPlayer window while holding Shift key down.</string>
</property>
</widget>
<widget class="QComboBox" row="5" column="1" colspan="3">
<widget class="TQComboBox" row="5" column="1" colspan="3">
<item>
<property name="text">
<string>default</string>
@ -444,7 +444,7 @@
<string>Option to choose whether to start playing this file in a full screen window. Default does not change the window state for this file. It is easier to set this property by switching to full screen or restoring KPlayer window while holding Shift key down.</string>
</property>
</widget>
<widget class="QLabel" row="6" column="0">
<widget class="TQLabel" row="6" column="0">
<property name="name">
<cstring>l_maximized</cstring>
</property>
@ -464,7 +464,7 @@
<string>Option to choose whether to start playing this file in a maximized or normal window. Default does not change the window state for this file. If the full screen option is also set, it will take precedence. It is easier to set this property by maximizing or restoring KPlayer window while holding Shift key down.</string>
</property>
</widget>
<widget class="QComboBox" row="6" column="1" colspan="3">
<widget class="TQComboBox" row="6" column="1" colspan="3">
<item>
<property name="text">
<string>default</string>
@ -490,7 +490,7 @@
<string>Option to choose whether to start playing this file in a maximized or normal window. Default does not change the window state for this file. If the full screen option is also set, it will take precedence. It is easier to set this property by maximizing or restoring KPlayer window while holding Shift key down.</string>
</property>
</widget>
<widget class="QLabel" row="7" column="0">
<widget class="TQLabel" row="7" column="0">
<property name="name">
<cstring>l_maintain_aspect</cstring>
</property>
@ -510,7 +510,7 @@
<string>Option to maintain video aspect when resizing KPlayer window. Default leaves the maintain aspect option unchanged for this file. It is easier to set this property by clicking Maintain Aspect button on the main KPlayer toolbar while holding Shift key down.</string>
</property>
</widget>
<widget class="QComboBox" row="7" column="1" colspan="3">
<widget class="TQComboBox" row="7" column="1" colspan="3">
<item>
<property name="text">
<string>default</string>

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>KPlayerPropertiesSubtitlesPage</class>
<widget class="QFrame">
<widget class="TQFrame">
<property name="name">
<cstring>KPlayerPropertiesSubtitlesPage</cstring>
</property>
@ -28,7 +28,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QFrame" row="0" column="0">
<widget class="TQFrame" row="0" column="0">
<property name="name">
<cstring>frame1</cstring>
</property>
@ -50,7 +50,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout1</cstring>
</property>
@ -58,7 +58,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel" row="0" column="0">
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>l_track</cstring>
</property>
@ -78,7 +78,7 @@
<string>Option to choose the subtitle track to play.</string>
</property>
</widget>
<widget class="QComboBox" row="0" column="1">
<widget class="TQComboBox" row="0" column="1">
<item>
<property name="text">
<string>none</string>
@ -112,7 +112,7 @@
<string>Option to choose the subtitle track to play.</string>
</property>
</widget>
<widget class="QLineEdit" row="0" column="2">
<widget class="TQLineEdit" row="0" column="2">
<property name="name">
<cstring>c_track</cstring>
</property>
@ -137,7 +137,7 @@
<string>Option to choose the subtitle track to play.</string>
</property>
</widget>
<widget class="QLabel" row="1" column="0" colspan="4">
<widget class="TQLabel" row="1" column="0" colspan="4">
<property name="name">
<cstring>l_url</cstring>
</property>
@ -157,7 +157,7 @@
<string>Property that shows and allows you to change the path to external subtitle file. KPlayer will store subtitles you load with Load Subtitles command on File menu in this property.</string>
</property>
</widget>
<widget class="QLineEdit" row="2" column="0" colspan="4">
<widget class="TQLineEdit" row="2" column="0" colspan="4">
<property name="name">
<cstring>c_url</cstring>
</property>
@ -179,7 +179,7 @@
<string>Property that shows and allows you to change the path to external subtitle file. KPlayer will store subtitles you load with Load Subtitles command on File menu in this property.</string>
</property>
</widget>
<widget class="QLabel" row="3" column="0">
<widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>l_vobsub</cstring>
</property>
@ -199,7 +199,7 @@
<string>Option to specify the type of the external subtitle file. Usually you can let KPlayer determine the type automatically. One exception is when you specify a VobSub .sub file in the external path field. In that case you have to select the VobSub option here.</string>
</property>
</widget>
<widget class="QComboBox" row="3" column="1">
<widget class="TQComboBox" row="3" column="1">
<item>
<property name="text">
<string>auto</string>
@ -225,7 +225,7 @@
<string>Option to specify the type of the external subtitle file. Usually you can let KPlayer determine the type automatically. One exception is when you specify a VobSub .sub file in the external path field. In that case you have to select the VobSub option here.</string>
</property>
</widget>
<widget class="QLabel" row="4" column="0">
<widget class="TQLabel" row="4" column="0">
<property name="name">
<cstring>l_encoding</cstring>
</property>
@ -245,7 +245,7 @@
<string>Option to specify the encoding of the subtitle file.</string>
</property>
</widget>
<widget class="QComboBox" row="4" column="1" colspan="3">
<widget class="TQComboBox" row="4" column="1" colspan="3">
<item>
<property name="text">
<string>default</string>
@ -277,7 +277,7 @@
<string>Option to specify the encoding of the subtitle file.</string>
</property>
</widget>
<widget class="QLabel" row="5" column="0">
<widget class="TQLabel" row="5" column="0">
<property name="name">
<cstring>l_framerate</cstring>
</property>
@ -297,7 +297,7 @@
<string>Option to specify the frame rate of the subtitle file.</string>
</property>
</widget>
<widget class="QComboBox" row="5" column="1">
<widget class="TQComboBox" row="5" column="1">
<item>
<property name="text">
<string>auto</string>
@ -324,7 +324,7 @@
<string>Option to specify the frame rate of the subtitle file.</string>
</property>
</widget>
<widget class="QLabel" row="6" column="0">
<widget class="TQLabel" row="6" column="0">
<property name="name">
<cstring>l_autoload</cstring>
</property>
@ -344,7 +344,7 @@
<string>Option to automatically load subtitles for this file. Default uses options from Subtitles page in KPlayer Settings.</string>
</property>
</widget>
<widget class="QComboBox" row="6" column="1">
<widget class="TQComboBox" row="6" column="1">
<item>
<property name="text">
<string>default</string>
@ -370,7 +370,7 @@
<string>Option to automatically load subtitles for this file. Default uses options from Subtitles page in KPlayer Settings.</string>
</property>
</widget>
<widget class="QLabel" row="7" column="0">
<widget class="TQLabel" row="7" column="0">
<property name="name">
<cstring>l_position</cstring>
</property>
@ -390,7 +390,7 @@
<string>Option to set vertical position of subtitles. Default will use the same subtitle position as for other files. An easy way to set this property is by using keyboard shortcuts for subtitle position commands on Player/Subtitles menu while holding Shift down.</string>
</property>
</widget>
<widget class="QComboBox" row="7" column="1">
<widget class="TQComboBox" row="7" column="1">
<item>
<property name="text">
<string>default</string>
@ -411,7 +411,7 @@
<string>Option to set vertical position of subtitles. Default will use the same subtitle position as for other files. An easy way to set this property is by using keyboard shortcuts for subtitle position commands on Player/Subtitles menu while holding Shift down.</string>
</property>
</widget>
<widget class="QLineEdit" row="7" column="2">
<widget class="TQLineEdit" row="7" column="2">
<property name="name">
<cstring>c_position</cstring>
</property>
@ -428,7 +428,7 @@
<string>Option to set vertical position of subtitles. Default will use the same subtitle position as for other files. An easy way to set this property is by using keyboard shortcuts for subtitle position commands on Player/Subtitles menu while holding Shift down.</string>
</property>
</widget>
<widget class="QLabel" row="8" column="0">
<widget class="TQLabel" row="8" column="0">
<property name="name">
<cstring>l_delay</cstring>
</property>
@ -448,7 +448,7 @@
<string>Option to set delay of subtitles relative to video. By default subtitles are played without delay. An easier way to set this option is by using keyboard shortcuts for subtitle delay commands on Player/Subtitles menu. In the default configuration KPlayer will automatically store those changes in this property.</string>
</property>
</widget>
<widget class="QComboBox" row="8" column="1">
<widget class="TQComboBox" row="8" column="1">
<item>
<property name="text">
<string>default</string>
@ -469,7 +469,7 @@
<string>Option to set delay of subtitles relative to video. By default subtitles are played without delay. An easier way to set this option is by using keyboard shortcuts for subtitle delay commands on Player/Subtitles menu. In the default configuration KPlayer will automatically store those changes in this property.</string>
</property>
</widget>
<widget class="QLineEdit" row="8" column="2">
<widget class="TQLineEdit" row="8" column="2">
<property name="name">
<cstring>c_delay</cstring>
</property>
@ -486,7 +486,7 @@
<string>Option to set delay of subtitles relative to video. By default subtitles are played without delay. An easier way to set this option is by using keyboard shortcuts for subtitle delay commands on Player/Subtitles menu. In the default configuration KPlayer will automatically store those changes in this property.</string>
</property>
</widget>
<widget class="QLabel" row="8" column="3">
<widget class="TQLabel" row="8" column="3">
<property name="name">
<cstring>l_delay_seconds</cstring>
</property>
@ -511,7 +511,7 @@
<string>Option to set delay of subtitles relative to video. By default subtitles are played without delay. An easier way to set this option is by using keyboard shortcuts for subtitle delay commands on Player/Subtitles menu. In the default configuration KPlayer will automatically store those changes in this property.</string>
</property>
</widget>
<widget class="QLabel" row="9" column="0">
<widget class="TQLabel" row="9" column="0">
<property name="name">
<cstring>l_closed_caption</cstring>
</property>
@ -531,7 +531,7 @@
<string>Option to display closed caption subtitles if they are available.</string>
</property>
</widget>
<widget class="QComboBox" row="9" column="1">
<widget class="TQComboBox" row="9" column="1">
<item>
<property name="text">
<string>default</string>

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>KPlayerPropertiesVideoPage</class>
<widget class="QFrame">
<widget class="TQFrame">
<property name="name">
<cstring>KPlayerPropertiesVideoPage</cstring>
</property>
@ -28,7 +28,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QFrame" row="0" column="0">
<widget class="TQFrame" row="0" column="0">
<property name="name">
<cstring>frame1</cstring>
</property>
@ -50,7 +50,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout1</cstring>
</property>
@ -58,7 +58,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel" row="0" column="0">
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>l_track</cstring>
</property>
@ -78,7 +78,7 @@
<string>Option to choose the video track to play.</string>
</property>
</widget>
<widget class="QComboBox" row="0" column="1">
<widget class="TQComboBox" row="0" column="1">
<item>
<property name="text">
<string>auto</string>
@ -107,7 +107,7 @@
<string>Option to choose the video track to play.</string>
</property>
</widget>
<widget class="QLineEdit" row="0" column="2">
<widget class="TQLineEdit" row="0" column="2">
<property name="name">
<cstring>c_track</cstring>
</property>
@ -132,7 +132,7 @@
<string>Option to choose the video track to play.</string>
</property>
</widget>
<widget class="QLabel" row="1" column="0">
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>l_contrast</cstring>
</property>
@ -152,7 +152,7 @@
<string>Option to adjust video contrast level for this file. Default uses the same contrast as for other files, Set To adjusts contrast to the given level, Add and Subtract turn contrast up and down respectively by the given amount. It is easier to set this option by moving contrast slider while holding Shift key down.</string>
</property>
</widget>
<widget class="QComboBox" row="1" column="1">
<widget class="TQComboBox" row="1" column="1">
<item>
<property name="text">
<string>default</string>
@ -191,7 +191,7 @@
<string>Option to adjust video contrast level for this file. Default uses the same contrast as for other files, Set To adjusts contrast to the given level, Add and Subtract turn contrast up and down respectively by the given amount. It is easier to set this option by moving contrast slider while holding Shift key down.</string>
</property>
</widget>
<widget class="QLineEdit" row="1" column="2">
<widget class="TQLineEdit" row="1" column="2">
<property name="name">
<cstring>c_contrast</cstring>
</property>
@ -208,7 +208,7 @@
<string>Option to adjust video contrast level for this file. Default uses the same contrast as for other files, Set To adjusts contrast to the given level, Add and Subtract turn contrast up and down respectively by the given amount. It is easier to set this option by moving contrast slider while holding Shift key down.</string>
</property>
</widget>
<widget class="QLabel" row="1" column="3">
<widget class="TQLabel" row="1" column="3">
<property name="name">
<cstring>l_empty</cstring>
</property>
@ -224,7 +224,7 @@
<string></string>
</property>
</widget>
<widget class="QLabel" row="2" column="0">
<widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>l_brightness</cstring>
</property>
@ -244,7 +244,7 @@
<string>Option to adjust video brightness level for this file. Default uses the same brightness as for other files, Set To adjusts brightness to the given level, Add and Subtract turn brightness up and down respectively by the given amount. It is easier to set this option by moving brightness slider while holding Shift key down.</string>
</property>
</widget>
<widget class="QComboBox" row="2" column="1">
<widget class="TQComboBox" row="2" column="1">
<item>
<property name="text">
<string>default</string>
@ -283,7 +283,7 @@
<string>Option to adjust video brightness level for this file. Default uses the same brightness as for other files, Set To adjusts brightness to the given level, Add and Subtract turn brightness up and down respectively by the given amount. It is easier to set this option by moving brightness slider while holding Shift key down.</string>
</property>
</widget>
<widget class="QLineEdit" row="2" column="2">
<widget class="TQLineEdit" row="2" column="2">
<property name="name">
<cstring>c_brightness</cstring>
</property>
@ -300,7 +300,7 @@
<string>Option to adjust video brightness level for this file. Default uses the same brightness as for other files, Set To adjusts brightness to the given level, Add and Subtract turn brightness up and down respectively by the given amount. It is easier to set this option by moving brightness slider while holding Shift key down.</string>
</property>
</widget>
<widget class="QLabel" row="3" column="0">
<widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>l_hue</cstring>
</property>
@ -320,7 +320,7 @@
<string>Option to adjust video hue for this file. Default uses the same hue as for other files, Set To adjusts hue to the given level, Add and Subtract turn hue up and down respectively by the given amount. It is easier to set this option by moving hue slider while holding Shift key down.</string>
</property>
</widget>
<widget class="QComboBox" row="3" column="1">
<widget class="TQComboBox" row="3" column="1">
<item>
<property name="text">
<string>default</string>
@ -359,7 +359,7 @@
<string>Option to adjust video hue for this file. Default uses the same hue as for other files, Set To adjusts hue to the given level, Add and Subtract turn hue up and down respectively by the given amount. It is easier to set this option by moving hue slider while holding Shift key down.</string>
</property>
</widget>
<widget class="QLineEdit" row="3" column="2">
<widget class="TQLineEdit" row="3" column="2">
<property name="name">
<cstring>c_hue</cstring>
</property>
@ -376,7 +376,7 @@
<string>Option to adjust video hue for this file. Default uses the same hue as for other files, Set To adjusts hue to the given level, Add and Subtract turn hue up and down respectively by the given amount. It is easier to set this option by moving hue slider while holding Shift key down.</string>
</property>
</widget>
<widget class="QLabel" row="4" column="0">
<widget class="TQLabel" row="4" column="0">
<property name="name">
<cstring>l_saturation</cstring>
</property>
@ -396,7 +396,7 @@
<string>Option to adjust video saturation level for this file. Default uses the same saturation as for other files, Set To adjusts saturation to the given level, Add and Subtract turn saturation up and down respectively by the given amount. It is easier to set this option by moving saturation slider while holding Shift key down.</string>
</property>
</widget>
<widget class="QComboBox" row="4" column="1">
<widget class="TQComboBox" row="4" column="1">
<item>
<property name="text">
<string>default</string>
@ -435,7 +435,7 @@
<string>Option to adjust video saturation level for this file. Default uses the same saturation as for other files, Set To adjusts saturation to the given level, Add and Subtract turn saturation up and down respectively by the given amount. It is easier to set this option by moving saturation slider while holding Shift key down.</string>
</property>
</widget>
<widget class="QLineEdit" row="4" column="2">
<widget class="TQLineEdit" row="4" column="2">
<property name="name">
<cstring>c_saturation</cstring>
</property>
@ -452,7 +452,7 @@
<string>Option to adjust video saturation level for this file. Default uses the same saturation as for other files, Set To adjusts saturation to the given level, Add and Subtract turn saturation up and down respectively by the given amount. It is easier to set this option by moving saturation slider while holding Shift key down.</string>
</property>
</widget>
<widget class="QLabel" row="5" column="0">
<widget class="TQLabel" row="5" column="0">
<property name="name">
<cstring>l_codec</cstring>
</property>
@ -472,7 +472,7 @@
<string>Option that lists available codecs and lets you choose the one to be used for this file. Default uses the option from KPlayer Settings, Auto lets MPlayer decide which codec to use automatically.</string>
</property>
</widget>
<widget class="QComboBox" row="5" column="1" colspan="3">
<widget class="TQComboBox" row="5" column="1" colspan="3">
<property name="name">
<cstring>c_codec</cstring>
</property>
@ -491,7 +491,7 @@
<string>Option that lists available codecs and lets you choose the one to be used for this file. Default uses the option from KPlayer Settings, Auto lets MPlayer decide which codec to use automatically.</string>
</property>
</widget>
<widget class="QLabel" row="6" column="0">
<widget class="TQLabel" row="6" column="0">
<property name="name">
<cstring>l_bitrate</cstring>
</property>
@ -511,7 +511,7 @@
<string>Property that shows video bitrate of this file.</string>
</property>
</widget>
<widget class="QLineEdit" row="6" column="1">
<widget class="TQLineEdit" row="6" column="1">
<property name="name">
<cstring>c_bitrate</cstring>
</property>
@ -533,7 +533,7 @@
<string>Property that shows video bitrate of this file.</string>
</property>
</widget>
<widget class="QLabel" row="6" column="2">
<widget class="TQLabel" row="6" column="2">
<property name="name">
<cstring>l_kbps</cstring>
</property>
@ -550,7 +550,7 @@
<string>Property that shows video bitrate of this file.</string>
</property>
</widget>
<widget class="QLabel" row="7" column="0">
<widget class="TQLabel" row="7" column="0">
<property name="name">
<cstring>l_framerate</cstring>
</property>
@ -570,7 +570,7 @@
<string>Property that shows video frame rate of this file.</string>
</property>
</widget>
<widget class="QLineEdit" row="7" column="1">
<widget class="TQLineEdit" row="7" column="1">
<property name="name">
<cstring>c_framerate</cstring>
</property>
@ -592,7 +592,7 @@
<string>Property that shows video frame rate of this file.</string>
</property>
</widget>
<widget class="QLabel" row="7" column="2">
<widget class="TQLabel" row="7" column="2">
<property name="name">
<cstring>l_fps</cstring>
</property>
@ -609,7 +609,7 @@
<string>Property that shows video frame rate of this file.</string>
</property>
</widget>
<widget class="QLabel" row="8" column="0">
<widget class="TQLabel" row="8" column="0">
<property name="name">
<cstring>l_input</cstring>
</property>
@ -629,7 +629,7 @@
<string>Option to specify the video card input ID to use for capturing video.</string>
</property>
</widget>
<widget class="QComboBox" row="8" column="1">
<widget class="TQComboBox" row="8" column="1">
<item>
<property name="text">
<string>auto</string>
@ -658,7 +658,7 @@
<string>Option to specify the video card input ID to use for capturing video.</string>
</property>
</widget>
<widget class="QLineEdit" row="8" column="2">
<widget class="TQLineEdit" row="8" column="2">
<property name="name">
<cstring>c_input</cstring>
</property>
@ -675,7 +675,7 @@
<string>Option to specify the video card input ID to use for capturing video.</string>
</property>
</widget>
<widget class="QLabel" row="9" column="0">
<widget class="TQLabel" row="9" column="0">
<property name="name">
<cstring>l_format</cstring>
</property>
@ -695,7 +695,7 @@
<string>Option to specify the output format to request from the device.</string>
</property>
</widget>
<widget class="QComboBox" row="9" column="1">
<widget class="TQComboBox" row="9" column="1">
<item>
<property name="text">
<string>auto</string>
@ -899,7 +899,7 @@
<string>Option to specify the output format to request from the device.</string>
</property>
</widget>
<widget class="QLabel" row="10" column="0">
<widget class="TQLabel" row="10" column="0">
<property name="name">
<cstring>l_norm</cstring>
</property>
@ -919,7 +919,7 @@
<string>Option to specify the video norm to request from the device.</string>
</property>
</widget>
<widget class="QComboBox" row="10" column="1">
<widget class="TQComboBox" row="10" column="1">
<item>
<property name="text">
<string>auto</string>
@ -1003,7 +1003,7 @@
<string>Option to specify the video norm to request from the device.</string>
</property>
</widget>
<widget class="QLineEdit" row="10" column="2">
<widget class="TQLineEdit" row="10" column="2">
<property name="name">
<cstring>c_norm_id</cstring>
</property>

@ -18,8 +18,8 @@
#endif
#include <kconfig.h>
#include <qfileinfo.h>
#include <qregexp.h>
#include <tqfileinfo.h>
#include <tqregexp.h>
#ifdef DEBUG
#define DEBUG_KPLAYER_SETTINGS
@ -137,7 +137,7 @@ void KPlayerSettings::setMaximized (bool maximized)
properties ("Maximized") -> setMaximized (maximized);
}
void KPlayerSettings::setMaintainAspect (bool maintain, QSize aspect)
void KPlayerSettings::setMaintainAspect (bool maintain, TQSize aspect)
{
#ifdef DEBUG_KPLAYER_SETTINGS
kdDebugTime() << "Settings::setMaintainAspect (" << maintain << ", " << aspect.width() << "x" << aspect.height() << ")\n";
@ -154,7 +154,7 @@ void KPlayerSettings::setMaintainAspect (bool maintain, QSize aspect)
}
}
void KPlayerSettings::setAspect (QSize aspect)
void KPlayerSettings::setAspect (TQSize aspect)
{
#ifdef DEBUG_KPLAYER_SETTINGS
kdDebugTime() << "Settings::setAspect " << m_aspect.width() << "x" << m_aspect.height() << " => " << aspect.width() << "x" << aspect.height() << "\n";
@ -167,7 +167,7 @@ void KPlayerSettings::setAspect (QSize aspect)
setAspectOverride (! aspect.isEmpty() && ! m_aspect.isEmpty() && aspect.width() * m_aspect.height() != aspect.height() * m_aspect.width());
}
void KPlayerSettings::setDisplaySize (QSize size)
void KPlayerSettings::setDisplaySize (TQSize size)
{
#ifdef DEBUG_KPLAYER_SETTINGS
kdDebugTime() << "Settings::setDisplaySize (" << size.width() << "x" << size.height() << ")\n";
@ -255,35 +255,35 @@ void KPlayerSettings::setSaturation (int saturation)
properties() -> adjustSaturation (saturation);
}
QString KPlayerSettings::currentSubtitles (void) const
TQString KPlayerSettings::currentSubtitles (void) const
{
if ( properties() -> hasSubtitleUrl() )
{
QString subtitle (properties() -> subtitleUrlString());
TQString subtitle (properties() -> subtitleUrlString());
if ( subtitles().find (subtitle) != subtitles().end() )
return subtitle;
}
return subtitles().first();
}
QString KPlayerSettings::currentSubtitlePath (void) const
TQString KPlayerSettings::currentSubtitlePath (void) const
{
QString current (currentSubtitles());
TQString current (currentSubtitles());
return hasVobsubSubtitles() && current != properties() -> subtitleUrlString() ? vobsubSubtitles() : current;
}
static bool vobsubExtension (const QString& path)
static bool vobsubExtension (const TQString& path)
{
return path.endsWith (".idx", false) || path.endsWith (".ifo", false) || path.endsWith (".sub", false);
}
bool vobsub (const QString& path)
bool vobsub (const TQString& path)
{
if ( ! vobsubExtension (path) )
return false;
if ( ! path.endsWith (".sub", false) )
return true;
QFile file (path);
TQFile file (path);
if ( ! file.open (IO_ReadOnly) )
return false;
char data [4];
@ -292,7 +292,7 @@ bool vobsub (const QString& path)
return length == sizeof (data) && memcmp (data, "\0\0\1\272", sizeof (data)) == 0;
}
void KPlayerSettings::addSubtitlePath (const QString& path)
void KPlayerSettings::addSubtitlePath (const TQString& path)
{
if ( path == properties() -> subtitleUrlString() ? properties() -> vobsubSubtitles() : vobsub (path) )
{
@ -323,7 +323,7 @@ void KPlayerSettings::setSubtitleDelay (float delay)
properties ("Subtitle Delay") -> setSubtitleDelay (delay);
}
bool KPlayerSettings::isAspect (QSize size)
bool KPlayerSettings::isAspect (TQSize size)
{
return ! size.isEmpty() && ! aspect().isEmpty() && size.width() * aspect().height() == size.height() * aspect().width();
}
@ -338,7 +338,7 @@ bool KPlayerSettings::isZoomFactor (int m, int d)
#endif
if ( fullScreen() || maximized() || ! properties() -> hasOriginalSize() )
return false;
QSize size (properties() -> currentSize() * m / d);
TQSize size (properties() -> currentSize() * m / d);
if ( ! aspect().isEmpty() )
size.setHeight (size.width() * aspect().height() / aspect().width());
bool result = size == displaySize();
@ -348,9 +348,9 @@ bool KPlayerSettings::isZoomFactor (int m, int d)
return result;
}
QSize KPlayerSettings::adjustDisplaySize (bool user_zoom, bool user_resize)
TQSize KPlayerSettings::adjustDisplaySize (bool user_zoom, bool user_resize)
{
QSize size (! user_zoom && constrainedSize() ? constrainSize (kPlayerWorkspace() -> size())
TQSize size (! user_zoom && constrainedSize() ? constrainSize (kPlayerWorkspace() -> size())
: adjustSize (displaySize()));
#ifdef DEBUG_KPLAYER_SETTINGS
kdDebugTime() << "Settings::adjustDisplaySize (" << user_zoom << ", " << user_resize << ") " << size.width() << "x" << size.height() << "\n";
@ -394,11 +394,11 @@ bool KPlayerSettings::setInitialDisplaySize (void)
}
if ( displaySizeOverride() )
return ! aspectOverride();
QSize size;
TQSize size;
if ( properties() -> displaySizeOption() == 1 )
size = properties() -> displaySize();
else if ( ! properties() -> hasOriginalSize() )
size = QSize (configuration() -> minimumInitialWidth(), 0);
size = TQSize (configuration() -> minimumInitialWidth(), 0);
else
{
int d = 1, n = (configuration() -> minimumInitialWidth() - 1) / properties() -> currentSize().width();
@ -417,7 +417,7 @@ bool KPlayerSettings::setInitialDisplaySize (void)
return true;
}
QSize KPlayerSettings::constrainSize (QSize size) const
TQSize KPlayerSettings::constrainSize (TQSize size) const
{
#ifdef DEBUG_KPLAYER_SETTINGS
kdDebugTime() << "Settings::constrainSize " << size.width() << "x" << size.height() << "\n";
@ -425,7 +425,7 @@ QSize KPlayerSettings::constrainSize (QSize size) const
return adjustSize (size, size.width() * aspect().height() > size.height() * aspect().width());
}
QSize KPlayerSettings::adjustSize (QSize size, bool horizontally) const
TQSize KPlayerSettings::adjustSize (TQSize size, bool horizontally) const
{
#ifdef DEBUG_KPLAYER_SETTINGS
kdDebugTime() << "Settings::adjustSize " << size.width() << "x" << size.height() << " " << horizontally << "\n";

@ -21,7 +21,7 @@
/** The KPlayer settings.
*@author kiriuja
*/
class KPlayerSettings : public QObject
class KPlayerSettings : public TQObject
{
Q_OBJECT
@ -38,11 +38,11 @@ public:
KPlayerConfiguration* configuration (void) const
{ return KPlayerEngine::engine() -> configuration(); }
/** Returns the properties for the given key. */
KPlayerProperties* properties (const QString& key) const
KPlayerProperties* properties (const TQString& key) const
{ return configuration() -> override (key) ? (KPlayerProperties*) configuration()
: (KPlayerProperties*) properties(); }
void setOverride (const QString& key, bool override)
void setOverride (const TQString& key, bool override)
{ configuration() -> setOverride (key, override); }
/** Loads the given URL settings and makes the necessary adjustments. */
@ -77,29 +77,29 @@ public:
{ return properties ("Saturation") -> saturation(); }
void setSaturation (int);
QSize aspect (void) const
TQSize aspect (void) const
{ return m_aspect; }
void setAspect (QSize aspect);
void setAspect (TQSize aspect);
bool aspectOverride (void) const
{ return configuration() -> override ("Aspect"); }
void setAspectOverride (bool override)
{ configuration() -> setOverride ("Aspect", override); }
QSize displaySize (void) const
TQSize displaySize (void) const
{ return m_display_size; }
void setDisplaySize (QSize size);
void setDisplaySize (TQSize size);
bool displaySizeOverride (void) const
{ return configuration() -> override ("Display Size"); }
void setDisplaySizeOverride (bool override)
{ configuration() -> setOverride ("Display Size", override); }
QSize adjustDisplaySize (bool, bool);
TQSize adjustDisplaySize (bool, bool);
bool setInitialDisplaySize (void);
bool isAspect (QSize);
bool isAspect (TQSize);
bool isZoomFactor (int, int = 1);
bool fullScreen (void);
@ -111,14 +111,14 @@ public:
bool maintainAspect (void) const
{ return properties ("Maintain Aspect") -> maintainAspect(); }
void setMaintainAspect (bool, QSize);
void setMaintainAspect (bool, TQSize);
bool constrainedSize (void)
{ return fullScreen() || maximized() || ! configuration() -> resizeAutomatically()
|| KPlayerEngine::engine() -> light(); }
QSize constrainSize (QSize size) const;
QSize adjustSize (QSize size, bool horizontally = false) const;
TQSize constrainSize (TQSize size) const;
TQSize adjustSize (TQSize size, bool horizontally = false) const;
bool control (void) const
{ return m_control; }
@ -157,13 +157,13 @@ public:
{ return properties() -> showInternalSubtitles()
|| (hasExternalSubtitles() || hasVobsubSubtitles()) && properties() -> showSubtitles(); }
QString currentSubtitles (void) const;
const QStringList& subtitles (void) const
TQString currentSubtitles (void) const;
const TQStringList& subtitles (void) const
{ return m_subtitles; }
bool hasExternalSubtitles (void) const
{ return ! m_subtitles.isEmpty(); }
const QString& vobsubSubtitles (void) const
const TQString& vobsubSubtitles (void) const
{ return m_vobsub; }
bool hasVobsubSubtitles (void) const
{ return ! m_vobsub.isEmpty(); }
@ -171,11 +171,11 @@ public:
{ return showSubtitles() && hasVobsubSubtitles() && currentSubtitles() != properties() -> subtitleUrlString()
&& ! properties() -> hasSubtitleID(); }
QString currentSubtitlePath (void) const;
TQString currentSubtitlePath (void) const;
void addSubtitlePath (const QString& path);
void addSubtitlePath (const TQString& path);
void clearSubtitles (void)
{ m_subtitles.clear(); m_vobsub = QString::null; }
{ m_subtitles.clear(); m_vobsub = TQString::null; }
int subtitlePosition (void) const
{ return properties ("Subtitle Position") -> subtitlePosition(); }
@ -194,16 +194,16 @@ public:
protected:
KPlayerTrackProperties* m_properties;
bool m_last_full_screen;
QSize m_display_size;
QSize m_aspect;
TQSize m_display_size;
TQSize m_aspect;
bool m_control;
bool m_shift;
bool m_no_control;
bool m_no_shift;
bool m_fake_control;
bool m_fake_shift;
QStringList m_subtitles;
QString m_vobsub;
TQStringList m_subtitles;
TQString m_vobsub;
};
inline KPlayerTrackProperties* KPlayerEngine::properties (void) const

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>KPlayerSettingsAdvancedPage</class>
<widget class="QFrame">
<widget class="TQFrame">
<property name="name">
<cstring>KPlayerSettingsAdvancedPage</cstring>
</property>
@ -36,7 +36,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QFrame" row="0" column="0">
<widget class="TQFrame" row="0" column="0">
<property name="name">
<cstring>frame1</cstring>
</property>
@ -58,7 +58,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>l_executable_path</cstring>
</property>
@ -78,7 +78,7 @@
<string>Path to MPlayer executable, either absolute path or a name to look for in the current environment path.</string>
</property>
</widget>
<widget class="QLineEdit">
<widget class="TQLineEdit">
<property name="name">
<cstring>c_executable_path</cstring>
</property>
@ -100,7 +100,7 @@
<string>Path to MPlayer executable, either absolute path or a name to look for in the current environment path.</string>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>l_command_line</cstring>
</property>
@ -120,7 +120,7 @@
<string>Additional options that will be passed to MPlayer on the command line. See mplayer(1) manpage for a complete list of possible options. You can also choose this option for individual file or URL in File Properties.</string>
</property>
</widget>
<widget class="QLineEdit">
<widget class="TQLineEdit">
<property name="name">
<cstring>c_command_line</cstring>
</property>
@ -142,7 +142,7 @@
<string>Additional options that will be passed to MPlayer on the command line. See mplayer(1) manpage for a complete list of possible options. You can also choose this option for individual file or URL in File Properties.</string>
</property>
</widget>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout2</cstring>
</property>
@ -150,7 +150,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel" row="0" column="0">
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>l_demuxer</cstring>
</property>
@ -170,7 +170,7 @@
<string>Property that shows and allows you to change the demultiplexer that should be used to handle file formats. If the chosen demuxer fails on a particular file, another one may be used.</string>
</property>
</widget>
<widget class="QComboBox" row="0" column="1" colspan="3">
<widget class="TQComboBox" row="0" column="1" colspan="3">
<property name="name">
<cstring>c_demuxer</cstring>
</property>
@ -189,7 +189,7 @@
<string>Property that shows and allows you to change the demultiplexer that should be used to handle file formats. If the chosen demuxer fails on a particular file, another one may be used.</string>
</property>
</widget>
<widget class="QLabel" row="1" column="0">
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>l_frame_drop</cstring>
</property>
@ -209,7 +209,7 @@
<string>If your system is too slow to play a file, MPlayer can drop some frames so playback does not slow down. None disables dropping, Soft drops less frames, and Hard drops more frames and may sometimes break decoding. You can also choose this option for individual file or URL in File Properties.</string>
</property>
</widget>
<widget class="QComboBox" row="1" column="1">
<widget class="TQComboBox" row="1" column="1">
<item>
<property name="text">
<string>none</string>
@ -235,7 +235,7 @@
<string>If your system is too slow to play a file, MPlayer can drop some frames so playback does not slow down. None disables dropping, Soft drops less frames, and Hard drops more frames and may sometimes break decoding. You can also choose this option for individual file or URL in File Properties.</string>
</property>
</widget>
<widget class="QLabel" row="2" column="0">
<widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>l_use_cache</cstring>
</property>
@ -255,7 +255,7 @@
<string>Option to choose whether to use cache and set its size. Auto lets MPlayer use the its own configuration, None tells MPlayer to use no cache, and Set Size lets you set a specific size. You can also choose this option for individual file or URL in File Properties.</string>
</property>
</widget>
<widget class="QComboBox" row="2" column="1">
<widget class="TQComboBox" row="2" column="1">
<item>
<property name="text">
<string>auto</string>
@ -281,7 +281,7 @@
<string>Option to choose whether to use cache and set its size. Auto lets MPlayer use the its own configuration, None tells MPlayer to use no cache, and Set Size lets you set a specific size. You can also choose this option for individual file or URL in File Properties.</string>
</property>
</widget>
<widget class="QLineEdit" row="2" column="2">
<widget class="TQLineEdit" row="2" column="2">
<property name="name">
<cstring>c_cache_size</cstring>
</property>
@ -309,7 +309,7 @@
<string>Option to choose whether to use cache and set its size. Auto lets MPlayer use the its own configuration, None tells MPlayer to use no cache, and Set Size lets you set a specific size. You can also choose this option for individual file or URL in File Properties.</string>
</property>
</widget>
<widget class="QLabel" row="2" column="3">
<widget class="TQLabel" row="2" column="3">
<property name="name">
<cstring>l_cache_size_kb</cstring>
</property>
@ -334,7 +334,7 @@
<string>Option to choose whether to use cache and set its size. Auto lets MPlayer use the its own configuration, None tells MPlayer to use no cache, and Set Size lets you set a specific size. You can also choose this option for individual file or URL in File Properties.</string>
</property>
</widget>
<widget class="QLabel" row="3" column="0">
<widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>l_build_index</cstring>
</property>
@ -354,7 +354,7 @@
<string>Option to choose whether to build new index for seeking. Yes builds an index if the file does not have it, No tells MPlayer not to build index, and Force makes it always build an index. You can also choose this option for individual file or URL in File Properties.</string>
</property>
</widget>
<widget class="QComboBox" row="3" column="1">
<widget class="TQComboBox" row="3" column="1">
<item>
<property name="text">
<string>yes</string>
@ -382,7 +382,7 @@
</widget>
</grid>
</widget>
<widget class="QCheckBox">
<widget class="TQCheckBox">
<property name="name">
<cstring>c_use_temporary_file</cstring>
</property>
@ -396,7 +396,7 @@
<string>Option to choose whether to use a temporary file for playing from KDE I/O Slave. This option has no effect for URLs passed directly to MPlayer. You can also choose it for individual file or URL in File Properties.</string>
</property>
</widget>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout4</cstring>
</property>
@ -404,7 +404,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>l_use_kioslave</cstring>
</property>
@ -421,7 +421,7 @@
<string>Option to choose whether to use a KDE I/O Slave to play selected URL types. You can also choose this option for individual file or stream in File Properties.</string>
</property>
</widget>
<widget class="QCheckBox">
<widget class="TQCheckBox">
<property name="name">
<cstring>c_use_kioslave_for_http</cstring>
</property>
@ -435,7 +435,7 @@
<string>Option to choose whether to use a KDE I/O Slave to play HTTP URLs. You can also choose this option for individual file or stream in File Properties.</string>
</property>
</widget>
<widget class="QCheckBox">
<widget class="TQCheckBox">
<property name="name">
<cstring>c_use_kioslave_for_ftp</cstring>
</property>
@ -449,7 +449,7 @@
<string>Option to choose whether to use a KDE I/O Slave to play FTP URLs. You can also choose this option for individual file in File Properties.</string>
</property>
</widget>
<widget class="QCheckBox">
<widget class="TQCheckBox">
<property name="name">
<cstring>c_use_kioslave_for_smb</cstring>
</property>
@ -473,7 +473,7 @@
</widget>
</hbox>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>l_osd_level</cstring>
</property>
@ -501,7 +501,7 @@
<string>Option to choose what to include in On Screen Display inside the video area. Since KPlayer can display almost everything outside the video area, the recommended choice is Subtitles Only.</string>
</property>
</widget>
<widget class="QComboBox">
<widget class="TQComboBox">
<item>
<property name="text">
<string>subtitles only</string>

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>KPlayerSettingsAudioPage</class>
<widget class="QFrame">
<widget class="TQFrame">
<property name="name">
<cstring>KPlayerSettingsAudioPage</cstring>
</property>
@ -28,7 +28,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QFrame" row="0" column="0">
<widget class="TQFrame" row="0" column="0">
<property name="name">
<cstring>frame1</cstring>
</property>
@ -50,7 +50,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLayoutWidget" row="0" column="0">
<widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
<cstring>layout0</cstring>
</property>
@ -58,7 +58,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel" row="0" column="0">
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>l_driver</cstring>
</property>
@ -78,7 +78,7 @@
<string>Option that lists available audio outputs and lets you choose the one to use for playing sound. Recommended choices are OSS (the default) and ALSA (recommended when available). ARTS and SDL are not recommended. Auto will let MPlayer choose an audio output according to its own configuration. If you need to specify more than one output separated by comma, set this option to Auto and put them in Additional Command Line Arguments on Advanced page.</string>
</property>
</widget>
<widget class="QComboBox" row="0" column="1" colspan="2">
<widget class="TQComboBox" row="0" column="1" colspan="2">
<property name="name">
<cstring>c_driver</cstring>
</property>
@ -97,7 +97,7 @@
<string>Option that lists available audio outputs and lets you choose the one to use for playing sound. Recommended choices are OSS (the default) and ALSA (recommended when available). ARTS and SDL are not recommended. Auto will let MPlayer choose an audio output according to its own configuration. If you need to specify more than one output separated by comma, set this option to Auto and put them in Additional Command Line Arguments on Advanced page.</string>
</property>
</widget>
<widget class="QLabel" row="1" column="0">
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>l_device</cstring>
</property>
@ -117,7 +117,7 @@
<string>Option to specify audio device to use for the chosen audio output. Leave blank to use the default device.</string>
</property>
</widget>
<widget class="QLineEdit" row="1" column="1" colspan="2">
<widget class="TQLineEdit" row="1" column="1" colspan="2">
<property name="name">
<cstring>c_device</cstring>
</property>
@ -136,7 +136,7 @@
<string>Option to specify audio device to use for the chosen audio output. Leave blank to use the default device.</string>
</property>
</widget>
<widget class="QCheckBox" row="2" column="0" colspan="3">
<widget class="TQCheckBox" row="2" column="0" colspan="3">
<property name="name">
<cstring>c_softvol</cstring>
</property>
@ -150,7 +150,7 @@
<string>Option to choose whether to control volume in software independently of other programs.</string>
</property>
</widget>
<widget class="QLabel" row="3" column="0">
<widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>l_maximum</cstring>
</property>
@ -170,7 +170,7 @@
<string>Option to specify the maximum sound volume in percents of the normal volume level.</string>
</property>
</widget>
<widget class="QLineEdit" row="3" column="1">
<widget class="TQLineEdit" row="3" column="1">
<property name="name">
<cstring>c_maximum</cstring>
</property>
@ -195,7 +195,7 @@
<string>Option to specify the maximum sound volume in percents of the normal volume level.</string>
</property>
</widget>
<widget class="QLabel" row="3" column="2">
<widget class="TQLabel" row="3" column="2">
<property name="name">
<cstring>l_percent</cstring>
</property>
@ -212,7 +212,7 @@
<string>Option to specify the maximum sound volume in percents of the normal volume level.</string>
</property>
</widget>
<widget class="QLabel" row="4" column="0">
<widget class="TQLabel" row="4" column="0">
<property name="name">
<cstring>l_mixer</cstring>
</property>
@ -232,7 +232,7 @@
<string>Option to specify the mixer device to be used to control audio output volume. Leave blank to use the default device.</string>
</property>
</widget>
<widget class="QLineEdit" row="4" column="1" colspan="2">
<widget class="TQLineEdit" row="4" column="1" colspan="2">
<property name="name">
<cstring>c_mixer</cstring>
</property>
@ -251,7 +251,7 @@
<string>Option to specify the mixer device to be used to control audio output volume. Leave blank to use the default device.</string>
</property>
</widget>
<widget class="QLabel" row="5" column="0">
<widget class="TQLabel" row="5" column="0">
<property name="name">
<cstring>l_channel</cstring>
</property>
@ -271,7 +271,7 @@
<string>Option to specify the mixer channel to be used to control audio output volume. Leave blank to use the default channel.</string>
</property>
</widget>
<widget class="QComboBox" row="5" column="1" colspan="2">
<widget class="TQComboBox" row="5" column="1" colspan="2">
<property name="name">
<cstring>c_channel</cstring>
</property>
@ -293,7 +293,7 @@
<string>Option to specify the mixer channel to be used to control audio output volume. Leave blank to use the default channel.</string>
</property>
</widget>
<widget class="QLabel" row="6" column="0">
<widget class="TQLabel" row="6" column="0">
<property name="name">
<cstring>l_codec</cstring>
</property>
@ -313,7 +313,7 @@
<string>Option that lists available codecs and lets you choose the one to be used for decoding audio. Auto is the recommended choice, it lets MPlayer decide which codec to use automatically. If you need to tell MPlayer to use a particular codec for a given file or stream, set this option in File Properties.</string>
</property>
</widget>
<widget class="QComboBox" row="6" column="1" colspan="2">
<widget class="TQComboBox" row="6" column="1" colspan="2">
<property name="name">
<cstring>c_codec</cstring>
</property>
@ -334,7 +334,7 @@
</widget>
</grid>
</widget>
<widget class="QLayoutWidget" row="1" column="0">
<widget class="TQLayoutWidget" row="1" column="0">
<property name="name">
<cstring>layout1</cstring>
</property>
@ -342,7 +342,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>l_delay_step</cstring>
</property>
@ -362,7 +362,7 @@
<string>Option to specify the amount in seconds by which to change audio delay when using Increase/Decrease Delay commands on Player/Audio menu or the corresponding keyboard shortcuts.</string>
</property>
</widget>
<widget class="QLineEdit">
<widget class="TQLineEdit">
<property name="name">
<cstring>c_delay_step</cstring>
</property>
@ -379,7 +379,7 @@
<string>Option to specify the amount in seconds by which to change audio delay when using Increase/Decrease Delay commands on Player/Audio menu or the corresponding keyboard shortcuts.</string>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>l_delay_seconds</cstring>
</property>
@ -419,15 +419,15 @@
</connection>
<connection>
<sender>c_device</sender>
<signal>textChanged(const QString&amp;)</signal>
<signal>textChanged(const TQString&amp;)</signal>
<receiver>KPlayerSettingsAudioPage</receiver>
<slot>deviceChanged(const QString&amp;)</slot>
<slot>deviceChanged(const TQString&amp;)</slot>
</connection>
<connection>
<sender>c_mixer</sender>
<signal>textChanged(const QString&amp;)</signal>
<signal>textChanged(const TQString&amp;)</signal>
<receiver>KPlayerSettingsAudioPage</receiver>
<slot>mixerChanged(const QString&amp;)</slot>
<slot>mixerChanged(const TQString&amp;)</slot>
</connection>
<connection>
<sender>c_softvol</sender>
@ -438,8 +438,8 @@
</connections>
<slots>
<slot access="protected">driverChanged(int)</slot>
<slot access="protected">deviceChanged(const QString&amp;)</slot>
<slot access="protected">mixerChanged(const QString&amp;)</slot>
<slot access="protected">deviceChanged(const TQString&amp;)</slot>
<slot access="protected">mixerChanged(const TQString&amp;)</slot>
<slot access="protected">softvolChanged(bool)</slot>
</slots>
<layoutdefaults spacing="6" margin="0"/>

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>KPlayerSettingsBrightnessPage</class>
<widget class="QFrame">
<widget class="TQFrame">
<property name="name">
<cstring>KPlayerSettingsBrightnessPage</cstring>
</property>
@ -28,7 +28,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QFrame" row="0" column="0">
<widget class="TQFrame" row="0" column="0">
<property name="name">
<cstring>frame4</cstring>
</property>
@ -50,7 +50,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel" row="0" column="0">
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>l_brightness_minimum</cstring>
</property>
@ -78,7 +78,7 @@
<string>Option to specify a lower limit on the video brightness setting.</string>
</property>
</widget>
<widget class="QLineEdit" row="0" column="1">
<widget class="TQLineEdit" row="0" column="1">
<property name="name">
<cstring>c_brightness_minimum</cstring>
</property>
@ -106,7 +106,7 @@
<string>Option to specify a lower limit on the video brightness setting.</string>
</property>
</widget>
<widget class="QLabel" row="1" column="0">
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>l_brightness_maximum</cstring>
</property>
@ -134,7 +134,7 @@
<string>Option to specify an upper limit on the video brightness setting.</string>
</property>
</widget>
<widget class="QLineEdit" row="1" column="1">
<widget class="TQLineEdit" row="1" column="1">
<property name="name">
<cstring>c_brightness_maximum</cstring>
</property>
@ -162,7 +162,7 @@
<string>Option to specify an upper limit on the video brightness setting.</string>
</property>
</widget>
<widget class="QLabel" row="2" column="0">
<widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>l_brightness_step</cstring>
</property>
@ -190,7 +190,7 @@
<string>Option to specify the amount by which to change video brightness when using Increase/Decrease Brightness commands on Player/Video menu or the corresponding keyboard shortcuts.</string>
</property>
</widget>
<widget class="QLineEdit" row="2" column="1">
<widget class="TQLineEdit" row="2" column="1">
<property name="name">
<cstring>c_brightness_step</cstring>
</property>
@ -218,7 +218,7 @@
<string>Option to specify the amount by which to change video brightness when using Increase/Decrease Brightness commands on Player/Video menu or the corresponding keyboard shortcuts.</string>
</property>
</widget>
<widget class="QLayoutWidget" row="3" column="0" colspan="2">
<widget class="TQLayoutWidget" row="3" column="0" colspan="2">
<property name="name">
<cstring>layout2</cstring>
</property>
@ -229,7 +229,7 @@
<property name="spacing">
<number>6</number>
</property>
<widget class="QCheckBox">
<widget class="TQCheckBox">
<property name="name">
<cstring>c_brightness_reset</cstring>
</property>
@ -243,7 +243,7 @@
<string>Option to reset video brightness to a specific setting for each new file or KPlayer session.</string>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>l_brightness_to</cstring>
</property>
@ -271,7 +271,7 @@
<string>Option to reset video brightness to a specific setting for each new file or KPlayer session.</string>
</property>
</widget>
<widget class="QLineEdit">
<widget class="TQLineEdit">
<property name="name">
<cstring>c_brightness_default</cstring>
</property>
@ -299,7 +299,7 @@
<string>Option to reset video brightness to a specific setting for each new file or KPlayer session.</string>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>l_brightness_every</cstring>
</property>
@ -327,7 +327,7 @@
<string>Option to reset video brightness to a specific setting for each new file or KPlayer session.</string>
</property>
</widget>
<widget class="QComboBox">
<widget class="TQComboBox">
<item>
<property name="text">
<string>file</string>

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>KPlayerSettingsContrastPage</class>
<widget class="QFrame">
<widget class="TQFrame">
<property name="name">
<cstring>KPlayerSettingsContrastPage</cstring>
</property>
@ -28,7 +28,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QFrame" row="0" column="0">
<widget class="TQFrame" row="0" column="0">
<property name="name">
<cstring>frame4</cstring>
</property>
@ -50,7 +50,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel" row="0" column="0">
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>l_contrast_minimum</cstring>
</property>
@ -78,7 +78,7 @@
<string>Option to specify a lower limit on the video contrast setting.</string>
</property>
</widget>
<widget class="QLineEdit" row="0" column="1">
<widget class="TQLineEdit" row="0" column="1">
<property name="name">
<cstring>c_contrast_minimum</cstring>
</property>
@ -106,7 +106,7 @@
<string>Option to specify a lower limit on the video contrast setting.</string>
</property>
</widget>
<widget class="QLabel" row="1" column="0">
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>l_contrast_maximum</cstring>
</property>
@ -134,7 +134,7 @@
<string>Option to specify an upper limit on the video contrast setting.</string>
</property>
</widget>
<widget class="QLineEdit" row="1" column="1">
<widget class="TQLineEdit" row="1" column="1">
<property name="name">
<cstring>c_contrast_maximum</cstring>
</property>
@ -162,7 +162,7 @@
<string>Option to specify an upper limit on the video contrast setting.</string>
</property>
</widget>
<widget class="QLabel" row="2" column="0">
<widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>l_contrast_step</cstring>
</property>
@ -190,7 +190,7 @@
<string>Option to specify the amount by which to change video contrast when using Increase/Decrease Contrast commands on Player/Video menu or the corresponding keyboard shortcuts.</string>
</property>
</widget>
<widget class="QLineEdit" row="2" column="1">
<widget class="TQLineEdit" row="2" column="1">
<property name="name">
<cstring>c_contrast_step</cstring>
</property>
@ -218,7 +218,7 @@
<string>Option to specify the amount by which to change video contrast when using Increase/Decrease Contrast commands on Player/Video menu or the corresponding keyboard shortcuts.</string>
</property>
</widget>
<widget class="QLayoutWidget" row="3" column="0" colspan="2">
<widget class="TQLayoutWidget" row="3" column="0" colspan="2">
<property name="name">
<cstring>layout3</cstring>
</property>
@ -229,7 +229,7 @@
<property name="spacing">
<number>6</number>
</property>
<widget class="QCheckBox">
<widget class="TQCheckBox">
<property name="name">
<cstring>c_contrast_reset</cstring>
</property>
@ -243,7 +243,7 @@
<string>Option to reset video contrast to a specific setting for each new file or KPlayer session.</string>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>l_contrast_to</cstring>
</property>
@ -271,7 +271,7 @@
<string>Option to reset video contrast to a specific setting for each new file or KPlayer session.</string>
</property>
</widget>
<widget class="QLineEdit">
<widget class="TQLineEdit">
<property name="name">
<cstring>c_contrast_default</cstring>
</property>
@ -299,7 +299,7 @@
<string>Option to reset video contrast to a specific setting for each new file or KPlayer session.</string>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>l_contrast_every</cstring>
</property>
@ -327,7 +327,7 @@
<string>Option to reset video contrast to a specific setting for each new file or KPlayer session.</string>
</property>
</widget>
<widget class="QComboBox">
<widget class="TQComboBox">
<item>
<property name="text">
<string>file</string>

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>KPlayerSettingsControlsPage</class>
<widget class="QFrame">
<widget class="TQFrame">
<property name="name">
<cstring>KPlayerSettingsControlsPage</cstring>
</property>
@ -28,7 +28,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QFrame" row="0" column="0">
<widget class="TQFrame" row="0" column="0">
<property name="name">
<cstring>frame1</cstring>
</property>
@ -50,7 +50,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QCheckBox">
<widget class="TQCheckBox">
<property name="name">
<cstring>c_shift</cstring>
</property>
@ -66,7 +66,7 @@
</widget>
</vbox>
</widget>
<widget class="QFrame" row="1" column="0">
<widget class="TQFrame" row="1" column="0">
<property name="name">
<cstring>frame1</cstring>
</property>
@ -88,7 +88,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel" row="0" column="0" rowspan="1" colspan="3">
<widget class="TQLabel" row="0" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>l_remember</cstring>
</property>
@ -102,7 +102,7 @@
<string>Option to choose whether to automatically remember any changes and adjustments made to the settings you select below in the file properties for the currently loaded file. The selected settings will be stored even if you do not hold Shift. This is most useful for settings that are almost always file specific, like subtitle URL, subtitle delay, and audio delay.</string>
</property>
</widget>
<widget class="QLabel" row="1" column="0">
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>c_spacer</cstring>
</property>
@ -130,7 +130,7 @@
<string></string>
</property>
</widget>
<widget class="QCheckBox" row="1" column="1">
<widget class="TQCheckBox" row="1" column="1">
<property name="name">
<cstring>c_size</cstring>
</property>
@ -144,7 +144,7 @@
<string>Option to choose whether to automatically remember the video display size you choose by resizing the KPlayer window in the file properties for the currently loaded file. If this option is not selected, you can still make KPlayer remember the display size by holding down Shift key before and while you resize the window.</string>
</property>
</widget>
<widget class="QCheckBox" row="2" column="1">
<widget class="TQCheckBox" row="2" column="1">
<property name="name">
<cstring>c_aspect</cstring>
</property>
@ -158,7 +158,7 @@
<string>Option to choose whether to automatically remember the video aspect you choose by using commands on View menu in the file properties for the currently loaded file. If this option is selected, KPlayer will remember the video aspect in the current file's properties, then automatically reset it to the previous setting when another file is loaded. If this option is not selected, you can still make KPlayer remember the video aspect by holding down the Shift key when choosing an aspect command.</string>
</property>
</widget>
<widget class="QCheckBox" row="3" column="1">
<widget class="TQCheckBox" row="3" column="1">
<property name="name">
<cstring>c_full_screen</cstring>
</property>
@ -172,7 +172,7 @@
<string>Option to choose whether to automatically remember the setting for the full screen option you choose on the View menu in the file properties for the currently loaded file. If this option is selected, KPlayer will remember the full screen option in the current file's properties, then automatically reset it to the previous setting when another file is loaded. If this option is not selected, you can still make KPlayer remember the full screen option by holding down the Shift key when choosing it.</string>
</property>
</widget>
<widget class="QCheckBox" row="4" column="1">
<widget class="TQCheckBox" row="4" column="1">
<property name="name">
<cstring>c_maximized</cstring>
</property>
@ -186,7 +186,7 @@
<string>Option to choose whether to automatically remember whether the window is maximized in the file properties for the currently loaded file. If this option is selected, KPlayer will remember the maximized state in the current file's properties, then automatically reset it to the previous setting when another file is loaded. If this option is not selected, you can still make KPlayer remember the maximized state by holding down the Shift key when maximizing the KPlayer window.</string>
</property>
</widget>
<widget class="QCheckBox" row="5" column="1">
<widget class="TQCheckBox" row="5" column="1">
<property name="name">
<cstring>c_maintain_aspect</cstring>
</property>
@ -200,7 +200,7 @@
<string>Option to choose whether to automatically remember the setting for the maintain aspect option in the file properties for the currently loaded file. If this option is selected, KPlayer will remember the maintain aspect option in the current file's properties, then automatically reset it to the previous setting when another file is loaded. If this option is not selected, you can still make KPlayer remember the maintain aspect option by holding down the Shift key when clicking the maintain aspect toolbar button or choosing an aspect option from View menu.</string>
</property>
</widget>
<widget class="QCheckBox" row="6" column="1">
<widget class="TQCheckBox" row="6" column="1">
<property name="name">
<cstring>c_volume</cstring>
</property>
@ -214,7 +214,7 @@
<string>Option to choose whether to automatically remember volume adjustments in file properties for the currently loaded file. If this option is selected, KPlayer will remember volume adjustments in the current file's properties, then automatically reset the volume to the previous setting when another file is loaded. If this option is not selected, you can still make KPlayer remember volume adjustments by holding down the Shift key when making them.</string>
</property>
</widget>
<widget class="QCheckBox" row="7" column="1">
<widget class="TQCheckBox" row="7" column="1">
<property name="name">
<cstring>c_audio_delay</cstring>
</property>
@ -228,7 +228,7 @@
<string>Option to choose whether to automatically remember the audio delay setting in file properties for the currently loaded file. If this option is selected, KPlayer will remember the audio delay in the current file's properties, then automatically reset the audio delay when another file is loaded. If this option is not selected, you can still make KPlayer remember the audio delay by holding down the Shift key when changing it.</string>
</property>
</widget>
<widget class="QCheckBox" row="1" column="2">
<widget class="TQCheckBox" row="1" column="2">
<property name="name">
<cstring>c_contrast</cstring>
</property>
@ -242,7 +242,7 @@
<string>Option to choose whether to automatically remember contrast adjustments in the file properties for the currently loaded file. If this option is selected, KPlayer will remember contrast adjustments in the current file's properties, then automatically reset contrast to the previous setting when another file is loaded. If this option is not selected, you can still make KPlayer remember contrast adjustments by holding down the Shift key when making them.</string>
</property>
</widget>
<widget class="QCheckBox" row="2" column="2">
<widget class="TQCheckBox" row="2" column="2">
<property name="name">
<cstring>c_brightness</cstring>
</property>
@ -256,7 +256,7 @@
<string>Option to choose whether to automatically remember brightness adjustments in the file properties for the currently loaded file. If this option is selected, KPlayer will remember brightness adjustments in the current file's properties, then automatically reset brightness to the previous setting when another file is loaded. If this option is not selected, you can still make KPlayer remember brightness adjustments by holding down the Shift key when making them.</string>
</property>
</widget>
<widget class="QCheckBox" row="3" column="2">
<widget class="TQCheckBox" row="3" column="2">
<property name="name">
<cstring>c_hue</cstring>
</property>
@ -270,7 +270,7 @@
<string>Option to choose whether to automatically remember hue adjustments in the file properties for the currently loaded file. If this option is selected, KPlayer will remember hue adjustments in the current file's properties, then automatically reset hue to the previous setting when another file is loaded. If this option is not selected, you can still make KPlayer remember hue adjustments by holding down the Shift key when making them.</string>
</property>
</widget>
<widget class="QCheckBox" row="4" column="2">
<widget class="TQCheckBox" row="4" column="2">
<property name="name">
<cstring>c_saturation</cstring>
</property>
@ -284,7 +284,7 @@
<string>Option to choose whether to automatically remember saturation adjustments in the file properties for the currently loaded file. If this option is selected, KPlayer will remember saturation adjustments in the current file's properties, then automatically reset saturation to the previous setting when another file is loaded. If this option is not selected, you can still make KPlayer remember saturation adjustments by holding down the Shift key when making them.</string>
</property>
</widget>
<widget class="QCheckBox" row="5" column="2">
<widget class="TQCheckBox" row="5" column="2">
<property name="name">
<cstring>c_subtitle_position</cstring>
</property>
@ -298,7 +298,7 @@
<string>Option to choose whether to automatically remember the subtitles' vertical position in the file properties for the currently loaded file. If this option is selected, KPlayer will remember the subtitles' position in the current file's properties, then automatically reset the subtitles' position when another file is loaded. If this option is not selected, you can still make KPlayer remember the subtitles' position by holding down the Shift key when changing it.</string>
</property>
</widget>
<widget class="QCheckBox" row="6" column="2">
<widget class="TQCheckBox" row="6" column="2">
<property name="name">
<cstring>c_subtitle_delay</cstring>
</property>
@ -312,7 +312,7 @@
<string>Option to choose whether to automatically remember the subtitle delay in the file properties for the currently loaded file. If this option is selected, KPlayer will remember the subtitle delay in the current file's properties, then automatically reset the subtitle delay when another file is loaded. If this option is not selected, you can still make KPlayer remember the subtitle delay by holding down the Shift key when changing it.</string>
</property>
</widget>
<widget class="QCheckBox" row="7" column="2">
<widget class="TQCheckBox" row="7" column="2">
<property name="name">
<cstring>c_frame_drop</cstring>
</property>

@ -17,15 +17,15 @@
#include <klistview.h>
#include <klocale.h>
#include <kmessagebox.h>
#include <qcheckbox.h>
#include <qcombobox.h>
#include <qfontdatabase.h>
#include <qlabel.h>
#include <qlayout.h>
#include <qlineedit.h>
#include <qpushbutton.h>
#include <qregexp.h>
#include <qslider.h>
#include <tqcheckbox.h>
#include <tqcombobox.h>
#include <tqfontdatabase.h>
#include <tqlabel.h>
#include <tqlayout.h>
#include <tqlineedit.h>
#include <tqpushbutton.h>
#include <tqregexp.h>
#include <tqslider.h>
#include <math.h>
#include <stdlib.h>
@ -38,86 +38,86 @@
#include "kplayerengine.h"
#include "kplayersettings.h"
static QString s_default_entry (i18n("%1 (%2)"));
static QRegExp re_key_value ("^([^:]+): *(.*)$");
static TQString s_default_entry (i18n("%1 (%2)"));
static TQRegExp re_key_value ("^([^:]+): *(.*)$");
KPlayerSettingsDialog::KPlayerSettingsDialog (QWidget* parent)
KPlayerSettingsDialog::KPlayerSettingsDialog (TQWidget* parent)
: KDialogBase (TreeList, i18n("KPlayer Preferences"), Help | Default | Ok | Apply | Cancel, Ok, parent)
{
//m_initial_move = false;
QApplication::connect (this, SIGNAL (aboutToShowPage (QWidget*)), this, SLOT (pageAboutToShow(QWidget*)));
QFrame* frame = addPage (i18n("General"), i18n("General Settings"));
QBoxLayout* layout = new QVBoxLayout (frame, 0, 0);
TQApplication::connect (this, SIGNAL (aboutToShowPage (TQWidget*)), this, SLOT (pageAboutToShow(TQWidget*)));
TQFrame* frame = addPage (i18n("General"), i18n("General Settings"));
TQBoxLayout* layout = new TQVBoxLayout (frame, 0, 0);
layout -> setAutoAdd (true);
m_general = new KPlayerSettingsGeneral (frame, "general");
frame = addPage (i18n("Controls"), i18n("Control Settings"));
layout = new QVBoxLayout (frame, 0, 0);
layout = new TQVBoxLayout (frame, 0, 0);
layout -> setAutoAdd (true);
m_controls = new KPlayerSettingsControls (frame, "controls");
frame = addPage (i18n("Video"), i18n("Video Settings"));
layout = new QVBoxLayout (frame, 0, 0);
layout = new TQVBoxLayout (frame, 0, 0);
layout -> setAutoAdd (true);
m_video = new KPlayerSettingsVideo (frame, "video");
frame = addPage (i18n("Audio"), i18n("Audio Settings"));
layout = new QVBoxLayout (frame, 0, 0);
layout = new TQVBoxLayout (frame, 0, 0);
layout -> setAutoAdd (true);
m_audio = new KPlayerSettingsAudio (frame, "audio");
frame = addPage (i18n("Subtitles"), i18n("Subtitle Settings"));
layout = new QVBoxLayout (frame, 0, 0);
layout = new TQVBoxLayout (frame, 0, 0);
layout -> setAutoAdd (true);
m_subtitles = new KPlayerSettingsSubtitles (frame, "subtitles");
frame = addPage (i18n("Advanced"), i18n("Advanced Settings"));
layout = new QVBoxLayout (frame, 0, 0);
layout = new TQVBoxLayout (frame, 0, 0);
layout -> setAutoAdd (true);
m_advanced = new KPlayerSettingsAdvanced (frame, "advanced");
frame = addPage (QStringList() << i18n("Controls") << i18n("Progress"), i18n("Progress Control Settings"));
layout = new QVBoxLayout (frame, 0, 0);
frame = addPage (TQStringList() << i18n("Controls") << i18n("Progress"), i18n("Progress Control Settings"));
layout = new TQVBoxLayout (frame, 0, 0);
layout -> setAutoAdd (true);
m_progress = new KPlayerSettingsProgress (frame, "progress");
frame = addPage (QStringList() << i18n("Controls") << i18n("Volume"), i18n("Volume Control Settings"));
layout = new QVBoxLayout (frame, 0, 0);
frame = addPage (TQStringList() << i18n("Controls") << i18n("Volume"), i18n("Volume Control Settings"));
layout = new TQVBoxLayout (frame, 0, 0);
layout -> setAutoAdd (true);
m_volume = new KPlayerSettingsVolume (frame, "volume");
frame = addPage (QStringList() << i18n("Controls") << i18n("Contrast"), i18n("Contrast Control Settings"));
layout = new QVBoxLayout (frame, 0, 0);
frame = addPage (TQStringList() << i18n("Controls") << i18n("Contrast"), i18n("Contrast Control Settings"));
layout = new TQVBoxLayout (frame, 0, 0);
layout -> setAutoAdd (true);
m_contrast = new KPlayerSettingsContrast (frame, "contrast");
frame = addPage (QStringList() << i18n("Controls") << i18n("Brightness"), i18n("Brightness Control Settings"));
layout = new QVBoxLayout (frame, 0, 0);
frame = addPage (TQStringList() << i18n("Controls") << i18n("Brightness"), i18n("Brightness Control Settings"));
layout = new TQVBoxLayout (frame, 0, 0);
layout -> setAutoAdd (true);
m_brightness = new KPlayerSettingsBrightness (frame, "brightness");
frame = addPage (QStringList() << i18n("Controls") << i18n("Hue"), i18n("Hue Control Settings"));
layout = new QVBoxLayout (frame, 0, 0);
frame = addPage (TQStringList() << i18n("Controls") << i18n("Hue"), i18n("Hue Control Settings"));
layout = new TQVBoxLayout (frame, 0, 0);
layout -> setAutoAdd (true);
m_hue = new KPlayerSettingsHue (frame, "hue");
frame = addPage (QStringList() << i18n("Controls") << i18n("Saturation"), i18n("Saturation Control Settings"));
layout = new QVBoxLayout (frame, 0, 0);
frame = addPage (TQStringList() << i18n("Controls") << i18n("Saturation"), i18n("Saturation Control Settings"));
layout = new TQVBoxLayout (frame, 0, 0);
layout -> setAutoAdd (true);
m_saturation = new KPlayerSettingsSaturation (frame, "saturation");
frame = addPage (QStringList() << i18n("Controls") << i18n("Sliders"), i18n("Slider Control Settings"));
layout = new QVBoxLayout (frame, 0, 0);
frame = addPage (TQStringList() << i18n("Controls") << i18n("Sliders"), i18n("Slider Control Settings"));
layout = new TQVBoxLayout (frame, 0, 0);
layout -> setAutoAdd (true);
m_sliders = new KPlayerSettingsSliders (frame, "sliders");
setHelp ("settings");
KListView* view = (KListView*) child (0, "KListView");
if ( view )
{
for ( QListViewItem* item = view -> firstChild(); item; item = item -> nextSibling() )
for ( TQListViewItem* item = view -> firstChild(); item; item = item -> nextSibling() )
item -> setOpen (true);
view -> setMinimumSize (view -> sizeHint());
}
layout = (QBoxLayout*) child (0, "QHBoxLayout");
layout = (TQBoxLayout*) child (0, "TQHBoxLayout");
if ( layout )
layout -> insertSpacing (0, 6);
KConfig* config = kPlayerConfig();
config -> setGroup ("Dialog Options");
QString name (config -> readEntry ("Settings Dialog Page"));
TQString name (config -> readEntry ("Settings Dialog Page"));
if ( ! name.isEmpty() )
{
frame = (QFrame*) child (name.latin1());
frame = (TQFrame*) child (name.latin1());
if ( frame )
{
frame = (QFrame*) frame -> parent();
frame = (TQFrame*) frame -> parent();
if ( frame )
showPage (pageIndex (frame));
}
@ -126,9 +126,9 @@ KPlayerSettingsDialog::KPlayerSettingsDialog (QWidget* parent)
int y = config -> readNumEntry ("Settings Dialog Top", -1);*/
int w = config -> readNumEntry ("Settings Dialog Width");
int h = config -> readNumEntry ("Settings Dialog Height");
//QSize size (config -> readNumEntry ("Settings Dialog Width"),
//TQSize size (config -> readNumEntry ("Settings Dialog Width"),
// config -> readNumEntry ("Settings Dialog Height"));
//QSize hint = minimumSizeHint();
//TQSize hint = minimumSizeHint();
//if ( size.width() < hint.width() || size.height() < hint.height() )
// size = sizeHint();
//setGeometry (x, y, size.width(), size.height());
@ -172,7 +172,7 @@ KPlayerSettingsDialog::~KPlayerSettingsDialog (void)
config -> writeEntry ("Settings Dialog Height", height());
}
/*void KPlayerSettingsDialog::moveEvent (QMoveEvent* event)
/*void KPlayerSettingsDialog::moveEvent (TQMoveEvent* event)
{
#ifdef DEBUG_KPLAYER_SETTINGS_DIALOG
kdDebugTime() << "KPlayerSettingsDialog move " << event -> oldPos().x() << "x" << event -> oldPos().y()
@ -196,7 +196,7 @@ KPlayerSettingsDialog::~KPlayerSettingsDialog (void)
m_initial_move = false;
}
void KPlayerSettingsDialog::resizeEvent (QResizeEvent* event)
void KPlayerSettingsDialog::resizeEvent (TQResizeEvent* event)
{
#ifdef DEBUG_KPLAYER_SETTINGS_DIALOG
kdDebugTime() << "KPlayerSettingsDialog resize " << event -> oldSize(). width() << "x" << event -> oldSize(). height()
@ -205,7 +205,7 @@ void KPlayerSettingsDialog::resizeEvent (QResizeEvent* event)
KDialogBase::resizeEvent (event);
}
void KPlayerSettingsDialog::showEvent (QShowEvent* event)
void KPlayerSettingsDialog::showEvent (TQShowEvent* event)
{
#ifdef DEBUG_KPLAYER_SETTINGS_DIALOG
kdDebugTime() << "KPlayerSettingsDialog::showEvent\n";
@ -249,16 +249,16 @@ void KPlayerSettingsDialog::slotDefault (void)
KDialogBase::slotDefault();
}
void KPlayerSettingsDialog::pageAboutToShow (QWidget* page)
void KPlayerSettingsDialog::pageAboutToShow (TQWidget* page)
{
#ifdef DEBUG_KPLAYER_SETTINGS_DIALOG
kdDebugTime() << "KPlayerSettingsDialog::pageAboutToShow\n";
#endif
m_advanced -> refreshLists();
QObject* object = page -> child (0, "QFrame");
TQObject* object = page -> child (0, "TQFrame");
KConfig* config = kPlayerConfig();
config -> setGroup ("Dialog Options");
QString name;
TQString name;
if ( object )
{
name = object -> name ("");
@ -282,7 +282,7 @@ void KPlayerSettingsDialog::slotOk (void)
KDialogBase::slotOk();
}
//void dumpObject (const QObject* object, int indent, int depth = 20);
//void dumpObject (const TQObject* object, int indent, int depth = 20);
void KPlayerSettingsDialog::slotApply (void)
{
@ -308,12 +308,12 @@ void KPlayerSettingsDialog::slotApply (void)
KDialogBase::slotApply();
}
KPlayerSettingsAdvanced::KPlayerSettingsAdvanced (QWidget* parent, const char* name)
KPlayerSettingsAdvanced::KPlayerSettingsAdvanced (TQWidget* parent, const char* name)
: KPlayerSettingsAdvancedPage (parent, name)
{
loadLists();
load();
QApplication::connect (kPlayerEngine(), SIGNAL (updated()), this, SLOT (refresh()));
TQApplication::connect (kPlayerEngine(), SIGNAL (updated()), this, SLOT (refresh()));
}
void KPlayerSettingsAdvanced::refresh (void)
@ -378,7 +378,7 @@ void KPlayerSettingsAdvanced::refreshLists (void)
void KPlayerSettingsAdvanced::cacheChanged (int cache)
{
if ( cache == 2 )
c_cache_size -> setText (QString::number (configuration() -> cacheSize()));
c_cache_size -> setText (TQString::number (configuration() -> cacheSize()));
else
c_cache_size -> setText ("");
c_cache_size -> setEnabled (cache == 2);
@ -390,13 +390,13 @@ void KPlayerSettingsAdvanced::cacheChanged (int cache)
}
}
KPlayerSettingsAudio::KPlayerSettingsAudio (QWidget* parent, const char* name)
KPlayerSettingsAudio::KPlayerSettingsAudio (TQWidget* parent, const char* name)
: KPlayerSettingsAudioPage (parent, name)
{
m_amixer_running = false;
loadLists();
load();
QApplication::connect (kPlayerEngine(), SIGNAL (updated()), this, SLOT (refresh()));
TQApplication::connect (kPlayerEngine(), SIGNAL (updated()), this, SLOT (refresh()));
}
void KPlayerSettingsAudio::refresh (void)
@ -451,7 +451,7 @@ void KPlayerSettingsAudio::load (void)
c_softvol -> setChecked (m_softvol);
softvolChanged (m_softvol);
c_codec -> setCurrentItem (engine() -> audioCodecIndex (configuration() -> audioCodec()) + 1);
c_delay_step -> setText (QString::number (configuration() -> audioDelayStep()));
c_delay_step -> setText (TQString::number (configuration() -> audioDelayStep()));
}
void KPlayerSettingsAudio::save (void)
@ -488,7 +488,7 @@ void KPlayerSettingsAudio::defaultAlsaChannels (void)
#ifdef DEBUG_KPLAYER_SETTINGS_DIALOG
kdDebugTime() << "KPlayerSettingsAudio::defaultAlsaChannels\n";
#endif
QString text = c_channel -> currentText();
TQString text = c_channel -> currentText();
c_channel -> insertItem ("Master");
c_channel -> insertItem ("PCM");
c_channel -> insertItem ("Line");
@ -506,7 +506,7 @@ void KPlayerSettingsAudio::runAmixer (void)
c_channel -> clear();
KPlayerLineOutputProcess* amixer = new KPlayerLineOutputProcess;
*amixer << "amixer";
QString mixer = c_mixer -> text();
TQString mixer = c_mixer -> text();
if ( ! mixer.isEmpty() )
{
*amixer << "-D" << mixer;
@ -525,12 +525,12 @@ void KPlayerSettingsAudio::runAmixer (void)
void KPlayerSettingsAudio::amixerOutput (KPlayerLineOutputProcess*, char* str, int)
{
static QString control;
static TQString control;
#ifdef DEBUG_KPLAYER_SETTINGS_DIALOG
kdDebugTime() << " amixer: " << str << "\n";
#endif
static QRegExp re_control ("^Simple mixer control '(.*)'");
static QRegExp re_pvolume ("^ +Capabilities:.* pvolume");
static TQRegExp re_control ("^Simple mixer control '(.*)'");
static TQRegExp re_pvolume ("^ +Capabilities:.* pvolume");
if ( re_control.search (str) >= 0 )
{
control = re_control.cap(1);
@ -540,7 +540,7 @@ void KPlayerSettingsAudio::amixerOutput (KPlayerLineOutputProcess*, char* str, i
}
else if ( re_pvolume.search (str) >= 0 )
{
QString text = c_channel -> currentText();
TQString text = c_channel -> currentText();
c_channel -> insertItem (control);
c_channel -> setEditText (text);
#ifdef DEBUG_KPLAYER_SETTINGS_DIALOG
@ -568,7 +568,7 @@ void KPlayerSettingsAudio::driverChanged (int index)
kdDebugTime() << "KPlayerSettingsAudio::driverChanged\n";
kdDebugTime() << " Index " << index << "\n";
#endif
QString driver (listEntry (c_driver));
TQString driver (listEntry (c_driver));
#ifdef DEBUG_KPLAYER_SETTINGS_DIALOG
kdDebugTime() << " Driver " << driver << "\n";
#endif
@ -600,7 +600,7 @@ void KPlayerSettingsAudio::driverChanged (int index)
m_driver = driver;
}
void KPlayerSettingsAudio::deviceChanged (const QString& device)
void KPlayerSettingsAudio::deviceChanged (const TQString& device)
{
#ifdef DEBUG_KPLAYER_SETTINGS_DIALOG
kdDebugTime() << "KPlayerSettingsAudio::deviceChanged\n";
@ -611,7 +611,7 @@ void KPlayerSettingsAudio::deviceChanged (const QString& device)
m_device = device;
}
void KPlayerSettingsAudio::mixerChanged (const QString&)
void KPlayerSettingsAudio::mixerChanged (const TQString&)
{
#ifdef DEBUG_KPLAYER_SETTINGS_DIALOG
kdDebugTime() << "KPlayerSettingsAudio::mixerChanged\n";
@ -626,9 +626,9 @@ void KPlayerSettingsAudio::softvolChanged (bool checked)
kdDebugTime() << "KPlayerSettingsAudio::softvolChanged\n";
kdDebugTime() << " Checked " << checked << "\n";
#endif
c_maximum -> setText (checked ? QString::number (configuration() -> maximumSoftwareVolume()) : "");
c_maximum -> setText (checked ? TQString::number (configuration() -> maximumSoftwareVolume()) : "");
c_maximum -> setEnabled (checked);
QString driver (listEntry (c_driver));
TQString driver (listEntry (c_driver));
bool empty = checked || driver != configuration() -> audioDriver()
|| driver != "alsa" && driver != "oss" && driver != "sun";
c_mixer -> setText (empty ? "" : configuration() -> hasMixerDevice()
@ -638,7 +638,7 @@ void KPlayerSettingsAudio::softvolChanged (bool checked)
m_softvol = checked;
}
KPlayerSettingsControls::KPlayerSettingsControls (QWidget* parent, const char* name)
KPlayerSettingsControls::KPlayerSettingsControls (TQWidget* parent, const char* name)
: KPlayerSettingsControlsPage (parent, name)
{
load();
@ -689,7 +689,7 @@ void KPlayerSettingsControls::rememberSizeChanged (bool checked)
c_aspect -> setEnabled (! checked);
}
KPlayerSettingsGeneral::KPlayerSettingsGeneral (QWidget* parent, const char* name)
KPlayerSettingsGeneral::KPlayerSettingsGeneral (TQWidget* parent, const char* name)
: KPlayerSettingsGeneralPage (parent, name)
{
load();
@ -699,10 +699,10 @@ void KPlayerSettingsGeneral::load (void)
{
c_resize_automatically -> setChecked (configuration() -> resizeAutomatically());
resizeAutomaticallyChanged (configuration() -> resizeAutomatically());
c_playlist_menu_size -> setText (QString::number (configuration() -> playlistMenuSize()));
c_recent_menu_size -> setText (QString::number (configuration() -> recentMenuSize()));
c_recent_list_size -> setText (QString::number (configuration() -> recentListSize()));
c_cache_size_limit -> setText (QString::number (configuration() -> cacheSizeLimit()));
c_playlist_menu_size -> setText (TQString::number (configuration() -> playlistMenuSize()));
c_recent_menu_size -> setText (TQString::number (configuration() -> recentMenuSize()));
c_recent_list_size -> setText (TQString::number (configuration() -> recentListSize()));
c_cache_size_limit -> setText (TQString::number (configuration() -> cacheSizeLimit()));
c_allow_duplicate_entries -> setChecked (configuration() -> allowDuplicateEntries());
c_show_messages_on_error -> setChecked (configuration() -> showMessagesOnError());
}
@ -723,14 +723,14 @@ void KPlayerSettingsGeneral::save (void)
void KPlayerSettingsGeneral::resizeAutomaticallyChanged (bool resizeAutomaticallyChecked)
{
if ( resizeAutomaticallyChecked )
c_minimum_initial_width -> setText (QString::number (configuration() -> minimumInitialWidth()));
c_minimum_initial_width -> setText (TQString::number (configuration() -> minimumInitialWidth()));
else
c_minimum_initial_width -> setText ("");
c_minimum_initial_width -> setEnabled (resizeAutomaticallyChecked);
l_minimum_initial_width -> setEnabled (resizeAutomaticallyChecked);
}
KPlayerSettingsSliders::KPlayerSettingsSliders (QWidget* parent, const char* name)
KPlayerSettingsSliders::KPlayerSettingsSliders (TQWidget* parent, const char* name)
: KPlayerSettingsSlidersPage (parent, name)
{
load();
@ -738,8 +738,8 @@ KPlayerSettingsSliders::KPlayerSettingsSliders (QWidget* parent, const char* nam
void KPlayerSettingsSliders::load (void)
{
c_preferred_slider_length -> setText (QString::number (configuration() -> preferredSliderLength()));
c_minimum_slider_length -> setText (QString::number (configuration() -> minimumSliderLength()));
c_preferred_slider_length -> setText (TQString::number (configuration() -> preferredSliderLength()));
c_minimum_slider_length -> setText (TQString::number (configuration() -> minimumSliderLength()));
c_show_slider_marks -> setChecked (configuration() -> showSliderMarks());
showMarksChanged (c_show_slider_marks -> isChecked());
}
@ -767,7 +767,7 @@ void KPlayerSettingsSliders::save (void)
void KPlayerSettingsSliders::showMarksChanged (bool showMarksChecked)
{
if ( showMarksChecked )
c_slider_marks -> setText (QString::number (configuration() -> sliderMarks()));
c_slider_marks -> setText (TQString::number (configuration() -> sliderMarks()));
else
c_slider_marks -> setText ("");
l_slider_marks -> setEnabled (showMarksChecked);
@ -775,7 +775,7 @@ void KPlayerSettingsSliders::showMarksChanged (bool showMarksChecked)
l_slider_marks_percent -> setEnabled (showMarksChecked);
}
KPlayerSettingsSubtitles::KPlayerSettingsSubtitles (QWidget* parent, const char* name)
KPlayerSettingsSubtitles::KPlayerSettingsSubtitles (TQWidget* parent, const char* name)
: KPlayerSettingsSubtitlesPage (parent, name)
{
m_initialized = m_recursion = false;
@ -784,17 +784,17 @@ KPlayerSettingsSubtitles::KPlayerSettingsSubtitles (QWidget* parent, const char*
m_initialized = true;
}
void fillEncodingCombobox (QComboBox* combobox);
void fillEncodingCombobox (TQComboBox* combobox);
void KPlayerSettingsSubtitles::loadLists (void)
{
QValueList<int> sizes (QFontDatabase::standardSizes());
QValueList<int>::ConstIterator it (sizes.begin());
TQValueList<int> sizes (TQFontDatabase::standardSizes());
TQValueList<int>::ConstIterator it (sizes.begin());
for ( int i = 1; i < *it; ++ i )
c_text_size -> insertItem (QString::number (i));
c_text_size -> insertItem (TQString::number (i));
while ( it != sizes.end() )
{
c_text_size -> insertItem (QString::number (*it));
c_text_size -> insertItem (TQString::number (*it));
++ it;
}
fillEncodingCombobox (c_encoding);
@ -806,19 +806,19 @@ void KPlayerSettingsSubtitles::load (void)
c_bold -> setChecked (configuration() -> subtitleFontBold());
c_italic -> setChecked (configuration() -> subtitleFontItalic());
if ( configuration() -> subtitleTextSize() )
c_text_size -> setEditText (QString::number (configuration() -> subtitleTextSize()));
c_text_size -> setEditText (TQString::number (configuration() -> subtitleTextSize()));
else
c_text_size -> setCurrentItem (0);
c_autoscale -> setChecked (configuration() -> subtitleAutoscale());
c_outline -> setText (QString::number (configuration() -> subtitleFontOutline()));
c_outline -> setText (TQString::number (configuration() -> subtitleFontOutline()));
outlineEditChanged (c_outline -> text());
c_width -> setText (QString::number (configuration() -> subtitleTextWidth()));
c_width -> setText (TQString::number (configuration() -> subtitleTextWidth()));
widthEditChanged (c_width -> text());
c_position_step -> setText (QString::number (configuration() -> subtitlePositionStep()));
c_delay_step -> setText (QString::number (configuration() -> subtitleDelayStep()));
c_position_step -> setText (TQString::number (configuration() -> subtitlePositionStep()));
c_delay_step -> setText (TQString::number (configuration() -> subtitleDelayStep()));
if ( configuration() -> hasSubtitleEncoding() )
{
QString encoding = configuration() -> subtitleEncoding();
TQString encoding = configuration() -> subtitleEncoding();
c_encoding -> setEditText (encoding);
encoding += ": ";
for ( int i = 1; i < c_encoding -> count(); ++ i )
@ -875,10 +875,10 @@ void KPlayerSettingsSubtitles::save (void)
void KPlayerSettingsSubtitles::widthSliderChanged (int value)
{
if ( ! m_recursion )
c_width -> setText (QString::number (value));
c_width -> setText (TQString::number (value));
}
void KPlayerSettingsSubtitles::widthEditChanged (const QString& value)
void KPlayerSettingsSubtitles::widthEditChanged (const TQString& value)
{
int number = value.toInt();
if ( number < 10 )
@ -893,10 +893,10 @@ void KPlayerSettingsSubtitles::widthEditChanged (const QString& value)
void KPlayerSettingsSubtitles::outlineSliderChanged (int value)
{
if ( ! m_recursion )
c_outline -> setText (QString::number (float (value) / 20));
c_outline -> setText (TQString::number (float (value) / 20));
}
void KPlayerSettingsSubtitles::outlineEditChanged (const QString& value)
void KPlayerSettingsSubtitles::outlineEditChanged (const TQString& value)
{
int number = int (value.toFloat() * 20 + 0.5);
if ( number < 0 )
@ -943,12 +943,12 @@ void KPlayerSettingsSubtitles::autoloadSubtitlesChanged (bool autoloadSubtitlesC
}
}
KPlayerSettingsVideo::KPlayerSettingsVideo (QWidget* parent, const char* name)
KPlayerSettingsVideo::KPlayerSettingsVideo (TQWidget* parent, const char* name)
: KPlayerSettingsVideoPage (parent, name)
{
loadLists();
load();
QApplication::connect (engine(), SIGNAL (updated()), this, SLOT (refresh()));
TQApplication::connect (engine(), SIGNAL (updated()), this, SLOT (refresh()));
}
void KPlayerSettingsVideo::refresh (void)
@ -1016,7 +1016,7 @@ void KPlayerSettingsVideo::driverChanged (int index)
c_device -> setEnabled (index > 0);
}
KPlayerSettingsProgress::KPlayerSettingsProgress (QWidget* parent, const char* name)
KPlayerSettingsProgress::KPlayerSettingsProgress (TQWidget* parent, const char* name)
: KPlayerSettingsProgressPage (parent, name)
{
load();
@ -1024,9 +1024,9 @@ KPlayerSettingsProgress::KPlayerSettingsProgress (QWidget* parent, const char* n
void KPlayerSettingsProgress::load (void)
{
c_progress_seek -> setText (QString::number (configuration() -> progressNormalSeek()));
c_progress_seek -> setText (TQString::number (configuration() -> progressNormalSeek()));
c_progress_seek_units -> setCurrentItem (configuration() -> progressNormalSeekUnits());
c_progress_fast -> setText (QString::number (configuration() -> progressFastSeek()));
c_progress_fast -> setText (TQString::number (configuration() -> progressFastSeek()));
c_progress_fast_units -> setCurrentItem (configuration() -> progressFastSeekUnits());
}
@ -1038,7 +1038,7 @@ void KPlayerSettingsProgress::save (void)
configuration() -> setProgressFastSeek (labs (c_progress_fast -> text().toInt()));
}
KPlayerSettingsVolume::KPlayerSettingsVolume (QWidget* parent, const char* name)
KPlayerSettingsVolume::KPlayerSettingsVolume (TQWidget* parent, const char* name)
: KPlayerSettingsVolumePage (parent, name)
{
load();
@ -1046,9 +1046,9 @@ KPlayerSettingsVolume::KPlayerSettingsVolume (QWidget* parent, const char* name)
void KPlayerSettingsVolume::load (void)
{
c_volume_minimum -> setText (QString::number (configuration() -> volumeMinimum()));
c_volume_maximum -> setText (QString::number (configuration() -> volumeMaximum()));
c_volume_step -> setText (QString::number (configuration() -> volumeStep()));
c_volume_minimum -> setText (TQString::number (configuration() -> volumeMinimum()));
c_volume_maximum -> setText (TQString::number (configuration() -> volumeMaximum()));
c_volume_step -> setText (TQString::number (configuration() -> volumeStep()));
c_volume_reset -> setChecked (configuration() -> volumeReset());
resetChanged (configuration() -> volumeReset());
}
@ -1069,7 +1069,7 @@ void KPlayerSettingsVolume::resetChanged (bool resetChecked)
{
if ( resetChecked )
{
c_volume_default -> setText (QString::number (configuration() -> initialVolume()));
c_volume_default -> setText (TQString::number (configuration() -> initialVolume()));
c_volume_every -> setCurrentItem (0);
c_volume_every -> setCurrentText (i18n("file"));
c_volume_every -> setCurrentItem (configuration() -> volumeEvery());
@ -1089,7 +1089,7 @@ void KPlayerSettingsVolume::resetChanged (bool resetChecked)
}
}
KPlayerSettingsContrast::KPlayerSettingsContrast (QWidget* parent, const char* name)
KPlayerSettingsContrast::KPlayerSettingsContrast (TQWidget* parent, const char* name)
: KPlayerSettingsContrastPage (parent, name)
{
load();
@ -1097,9 +1097,9 @@ KPlayerSettingsContrast::KPlayerSettingsContrast (QWidget* parent, const char* n
void KPlayerSettingsContrast::load (void)
{
c_contrast_minimum -> setText (QString::number (configuration() -> contrastMinimum()));
c_contrast_maximum -> setText (QString::number (configuration() -> contrastMaximum()));
c_contrast_step -> setText (QString::number (configuration() -> contrastStep()));
c_contrast_minimum -> setText (TQString::number (configuration() -> contrastMinimum()));
c_contrast_maximum -> setText (TQString::number (configuration() -> contrastMaximum()));
c_contrast_step -> setText (TQString::number (configuration() -> contrastStep()));
c_contrast_reset -> setChecked (configuration() -> contrastReset());
resetChanged (configuration() -> contrastReset());
}
@ -1120,7 +1120,7 @@ void KPlayerSettingsContrast::resetChanged (bool resetChecked)
{
if ( resetChecked )
{
c_contrast_default -> setText (QString::number (configuration() -> initialContrast()));
c_contrast_default -> setText (TQString::number (configuration() -> initialContrast()));
c_contrast_every -> setCurrentItem (0);
c_contrast_every -> setCurrentText (i18n("file"));
c_contrast_every -> setCurrentItem (configuration() -> contrastEvery());
@ -1140,7 +1140,7 @@ void KPlayerSettingsContrast::resetChanged (bool resetChecked)
}
}
KPlayerSettingsBrightness::KPlayerSettingsBrightness (QWidget* parent, const char* name)
KPlayerSettingsBrightness::KPlayerSettingsBrightness (TQWidget* parent, const char* name)
: KPlayerSettingsBrightnessPage (parent, name)
{
load();
@ -1148,9 +1148,9 @@ KPlayerSettingsBrightness::KPlayerSettingsBrightness (QWidget* parent, const cha
void KPlayerSettingsBrightness::load (void)
{
c_brightness_minimum -> setText (QString::number (configuration() -> brightnessMinimum()));
c_brightness_maximum -> setText (QString::number (configuration() -> brightnessMaximum()));
c_brightness_step -> setText (QString::number (configuration() -> brightnessStep()));
c_brightness_minimum -> setText (TQString::number (configuration() -> brightnessMinimum()));
c_brightness_maximum -> setText (TQString::number (configuration() -> brightnessMaximum()));
c_brightness_step -> setText (TQString::number (configuration() -> brightnessStep()));
c_brightness_reset -> setChecked (configuration() -> brightnessReset());
resetChanged (configuration() -> brightnessReset());
}
@ -1171,7 +1171,7 @@ void KPlayerSettingsBrightness::resetChanged (bool resetChecked)
{
if ( resetChecked )
{
c_brightness_default -> setText (QString::number (configuration() -> initialBrightness()));
c_brightness_default -> setText (TQString::number (configuration() -> initialBrightness()));
c_brightness_every -> setCurrentItem (0);
c_brightness_every -> setCurrentText (i18n("file"));
c_brightness_every -> setCurrentItem (configuration() -> brightnessEvery());
@ -1191,7 +1191,7 @@ void KPlayerSettingsBrightness::resetChanged (bool resetChecked)
}
}
KPlayerSettingsHue::KPlayerSettingsHue (QWidget* parent, const char* name)
KPlayerSettingsHue::KPlayerSettingsHue (TQWidget* parent, const char* name)
: KPlayerSettingsHuePage (parent, name)
{
load();
@ -1199,9 +1199,9 @@ KPlayerSettingsHue::KPlayerSettingsHue (QWidget* parent, const char* name)
void KPlayerSettingsHue::load (void)
{
c_hue_minimum -> setText (QString::number (configuration() -> hueMinimum()));
c_hue_maximum -> setText (QString::number (configuration() -> hueMaximum()));
c_hue_step -> setText (QString::number (configuration() -> hueStep()));
c_hue_minimum -> setText (TQString::number (configuration() -> hueMinimum()));
c_hue_maximum -> setText (TQString::number (configuration() -> hueMaximum()));
c_hue_step -> setText (TQString::number (configuration() -> hueStep()));
c_hue_reset -> setChecked (configuration() -> hueReset());
resetChanged (configuration() -> hueReset());
}
@ -1222,7 +1222,7 @@ void KPlayerSettingsHue::resetChanged (bool resetChecked)
{
if ( resetChecked )
{
c_hue_default -> setText (QString::number (configuration() -> initialHue()));
c_hue_default -> setText (TQString::number (configuration() -> initialHue()));
c_hue_every -> setCurrentItem (0);
c_hue_every -> setCurrentText (i18n("file"));
c_hue_every -> setCurrentItem (configuration() -> hueEvery());
@ -1242,7 +1242,7 @@ void KPlayerSettingsHue::resetChanged (bool resetChecked)
}
}
KPlayerSettingsSaturation::KPlayerSettingsSaturation (QWidget* parent, const char* name)
KPlayerSettingsSaturation::KPlayerSettingsSaturation (TQWidget* parent, const char* name)
: KPlayerSettingsSaturationPage (parent, name)
{
load();
@ -1250,9 +1250,9 @@ KPlayerSettingsSaturation::KPlayerSettingsSaturation (QWidget* parent, const cha
void KPlayerSettingsSaturation::load (void)
{
c_saturation_minimum -> setText (QString::number (configuration() -> saturationMinimum()));
c_saturation_maximum -> setText (QString::number (configuration() -> saturationMaximum()));
c_saturation_step -> setText (QString::number (configuration() -> saturationStep()));
c_saturation_minimum -> setText (TQString::number (configuration() -> saturationMinimum()));
c_saturation_maximum -> setText (TQString::number (configuration() -> saturationMaximum()));
c_saturation_step -> setText (TQString::number (configuration() -> saturationStep()));
c_saturation_reset -> setChecked (configuration() -> saturationReset());
resetChanged (configuration() -> saturationReset());
}
@ -1273,7 +1273,7 @@ void KPlayerSettingsSaturation::resetChanged (bool resetChecked)
{
if ( resetChecked )
{
c_saturation_default -> setText (QString::number (configuration() -> initialSaturation()));
c_saturation_default -> setText (TQString::number (configuration() -> initialSaturation()));
c_saturation_every -> setCurrentItem (0);
c_saturation_every -> setCurrentText (i18n("file"));
c_saturation_every -> setCurrentItem (configuration() -> saturationEvery());

@ -33,14 +33,14 @@
#include "kplayersettingssaturation.h"
#include "kplayerproperties.h"
QString listEntry (QComboBox* combo, bool hasDefault = false);
TQString listEntry (TQComboBox* combo, bool hasDefault = false);
class KPlayerSettingsAdvanced : public KPlayerSettingsAdvancedPage
{
Q_OBJECT
public:
KPlayerSettingsAdvanced (QWidget* parent = 0, const char* name = 0);
KPlayerSettingsAdvanced (TQWidget* parent = 0, const char* name = 0);
KPlayerEngine* engine (void)
{ return KPlayerEngine::engine(); }
@ -64,7 +64,7 @@ class KPlayerSettingsAudio : public KPlayerSettingsAudioPage
Q_OBJECT
public:
KPlayerSettingsAudio (QWidget* parent = 0, const char* name = 0);
KPlayerSettingsAudio (TQWidget* parent = 0, const char* name = 0);
KPlayerEngine* engine (void)
{ return KPlayerEngine::engine(); }
@ -88,14 +88,14 @@ protected:
void runAmixer (void);
void defaultAlsaChannels (void);
virtual void driverChanged (int);
virtual void deviceChanged (const QString&);
virtual void mixerChanged (const QString&);
virtual void deviceChanged (const TQString&);
virtual void mixerChanged (const TQString&);
virtual void softvolChanged (bool);
/** Last selected driver. */
QString m_driver;
TQString m_driver;
/** Last entered device. */
QString m_device;
TQString m_device;
/** Last software volume setting. */
bool m_softvol;
/** Amixer tracking flags. */
@ -107,7 +107,7 @@ class KPlayerSettingsControls : public KPlayerSettingsControlsPage
Q_OBJECT
public:
KPlayerSettingsControls (QWidget* parent = 0, const char* name = 0);
KPlayerSettingsControls (TQWidget* parent = 0, const char* name = 0);
KPlayerConfiguration* configuration (void)
{ return KPlayerEngine::engine() -> configuration(); }
@ -124,7 +124,7 @@ class KPlayerSettingsSliders : public KPlayerSettingsSlidersPage
Q_OBJECT
public:
KPlayerSettingsSliders (QWidget* parent = 0, const char* name = 0);
KPlayerSettingsSliders (TQWidget* parent = 0, const char* name = 0);
KPlayerConfiguration* configuration (void)
{ return KPlayerEngine::engine() -> configuration(); }
@ -141,7 +141,7 @@ class KPlayerSettingsGeneral : public KPlayerSettingsGeneralPage
Q_OBJECT
public:
KPlayerSettingsGeneral (QWidget* parent = 0, const char* name = 0);
KPlayerSettingsGeneral (TQWidget* parent = 0, const char* name = 0);
KPlayerConfiguration* configuration (void)
{ return KPlayerEngine::engine() -> configuration(); }
@ -158,7 +158,7 @@ class KPlayerSettingsSubtitles : public KPlayerSettingsSubtitlesPage
Q_OBJECT
public:
KPlayerSettingsSubtitles (QWidget* parent = 0, const char* name = 0);
KPlayerSettingsSubtitles (TQWidget* parent = 0, const char* name = 0);
KPlayerConfiguration* configuration (void)
{ return KPlayerEngine::engine() -> configuration(); }
@ -169,9 +169,9 @@ public:
protected:
virtual void widthSliderChanged (int);
virtual void widthEditChanged (const QString&);
virtual void widthEditChanged (const TQString&);
virtual void outlineSliderChanged (int);
virtual void outlineEditChanged (const QString&);
virtual void outlineEditChanged (const TQString&);
virtual void autoexpandChanged (bool);
virtual void autoloadSubtitlesChanged (bool);
/** Recursion prevention. */
@ -185,7 +185,7 @@ class KPlayerSettingsVideo : public KPlayerSettingsVideoPage
Q_OBJECT
public:
KPlayerSettingsVideo (QWidget* parent = 0, const char* name = 0);
KPlayerSettingsVideo (TQWidget* parent = 0, const char* name = 0);
KPlayerEngine* engine (void)
{ return KPlayerEngine::engine(); }
@ -208,7 +208,7 @@ class KPlayerSettingsProgress : public KPlayerSettingsProgressPage
Q_OBJECT
public:
KPlayerSettingsProgress (QWidget* parent = 0, const char* name = 0);
KPlayerSettingsProgress (TQWidget* parent = 0, const char* name = 0);
KPlayerConfiguration* configuration (void)
{ return KPlayerEngine::engine() -> configuration(); }
@ -222,7 +222,7 @@ class KPlayerSettingsVolume : public KPlayerSettingsVolumePage
Q_OBJECT
public:
KPlayerSettingsVolume (QWidget* parent = 0, const char* name = 0);
KPlayerSettingsVolume (TQWidget* parent = 0, const char* name = 0);
KPlayerConfiguration* configuration (void)
{ return KPlayerEngine::engine() -> configuration(); }
@ -239,7 +239,7 @@ class KPlayerSettingsContrast : public KPlayerSettingsContrastPage
Q_OBJECT
public:
KPlayerSettingsContrast (QWidget* parent = 0, const char* name = 0);
KPlayerSettingsContrast (TQWidget* parent = 0, const char* name = 0);
KPlayerConfiguration* configuration (void)
{ return KPlayerEngine::engine() -> configuration(); }
@ -256,7 +256,7 @@ class KPlayerSettingsBrightness : public KPlayerSettingsBrightnessPage
Q_OBJECT
public:
KPlayerSettingsBrightness (QWidget* parent = 0, const char* name = 0);
KPlayerSettingsBrightness (TQWidget* parent = 0, const char* name = 0);
KPlayerConfiguration* configuration (void)
{ return KPlayerEngine::engine() -> configuration(); }
@ -273,7 +273,7 @@ class KPlayerSettingsHue : public KPlayerSettingsHuePage
Q_OBJECT
public:
KPlayerSettingsHue (QWidget* parent = 0, const char* name = 0);
KPlayerSettingsHue (TQWidget* parent = 0, const char* name = 0);
KPlayerConfiguration* configuration (void)
{ return KPlayerEngine::engine() -> configuration(); }
@ -290,7 +290,7 @@ class KPlayerSettingsSaturation : public KPlayerSettingsSaturationPage
Q_OBJECT
public:
KPlayerSettingsSaturation (QWidget* parent = 0, const char* name = 0);
KPlayerSettingsSaturation (TQWidget* parent = 0, const char* name = 0);
KPlayerConfiguration* configuration (void)
{ return KPlayerEngine::engine() -> configuration(); }
@ -310,7 +310,7 @@ class KPlayerSettingsDialog : public KDialogBase
Q_OBJECT
public:
KPlayerSettingsDialog (QWidget*);
KPlayerSettingsDialog (TQWidget*);
virtual ~KPlayerSettingsDialog();
/** Configuration. */
@ -318,9 +318,9 @@ public:
{ return KPlayerEngine::engine() -> configuration(); }
protected:
/*virtual void moveEvent (QMoveEvent*);
virtual void resizeEvent (QResizeEvent*);
virtual void showEvent (QShowEvent*);
/*virtual void moveEvent (TQMoveEvent*);
virtual void resizeEvent (TQResizeEvent*);
virtual void showEvent (TQShowEvent*);
virtual void windowActivationChange (bool);
bool m_initial_move;*/
@ -344,7 +344,7 @@ protected:
virtual void slotDefault (void);
protected slots:
void pageAboutToShow (QWidget*);
void pageAboutToShow (TQWidget*);
};
#endif

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>KPlayerSettingsGeneralPage</class>
<widget class="QFrame">
<widget class="TQFrame">
<property name="name">
<cstring>KPlayerSettingsGeneralPage</cstring>
</property>
@ -28,7 +28,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QFrame" row="0" column="0">
<widget class="TQFrame" row="0" column="0">
<property name="name">
<cstring>frame1</cstring>
</property>
@ -50,7 +50,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QCheckBox">
<widget class="TQCheckBox">
<property name="name">
<cstring>c_resize_automatically</cstring>
</property>
@ -64,7 +64,7 @@
<string>Option to choose whether to automatically resize main KPlayer window so that the video area is of the desired size.</string>
</property>
</widget>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout4</cstring>
</property>
@ -72,7 +72,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel" row="0" column="0">
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>l_minimum_initial_width</cstring>
</property>
@ -100,7 +100,7 @@
<string>Option to choose the minimum horizontal size that the video area should be when loading and starting to play a new file. KPlayer will take the original video size and enlarge it in 50% increments until it is at least this size.</string>
</property>
</widget>
<widget class="QLineEdit" row="0" column="1">
<widget class="TQLineEdit" row="0" column="1">
<property name="name">
<cstring>c_minimum_initial_width</cstring>
</property>
@ -128,7 +128,7 @@
<string>Option to choose the minimum horizontal size that the video area should be when loading and starting to play a new file. KPlayer will take the original video size and enlarge it in 50% increments until it is at least this size.</string>
</property>
</widget>
<widget class="QLabel" row="0" column="2">
<widget class="TQLabel" row="0" column="2">
<property name="name">
<cstring>l_minimum_initial_width_pixels</cstring>
</property>
@ -153,7 +153,7 @@
<string>Option to choose the minimum horizontal size that the video area should be when loading and starting to play a new file. KPlayer will take the original video size and enlarge it in 50% increments until it is at least this size.</string>
</property>
</widget>
<widget class="QLabel" row="1" column="0">
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>l_playlist_menu_size</cstring>
</property>
@ -181,7 +181,7 @@
<string>Option to specify the maximum number of entries on Play List and Add To Playlist menus.</string>
</property>
</widget>
<widget class="QLineEdit" row="1" column="1">
<widget class="TQLineEdit" row="1" column="1">
<property name="name">
<cstring>c_playlist_menu_size</cstring>
</property>
@ -209,7 +209,7 @@
<string>Option to specify the maximum number of entries on Play List and Add To Playlist menus.</string>
</property>
</widget>
<widget class="QLabel" row="2" column="0">
<widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>l_recent_menu_size</cstring>
</property>
@ -237,7 +237,7 @@
<string>Option to specify the maximum number of entries on the Play Recent menu. If this number is exceeded, the oldest entries will be removed.</string>
</property>
</widget>
<widget class="QLineEdit" row="2" column="1">
<widget class="TQLineEdit" row="2" column="1">
<property name="name">
<cstring>c_recent_menu_size</cstring>
</property>
@ -265,7 +265,7 @@
<string>Option to specify the maximum number of entries on the Play Recent menu. If this number is exceeded, the oldest entries will be removed.</string>
</property>
</widget>
<widget class="QLabel" row="3" column="0">
<widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>l_recent_list_size</cstring>
</property>
@ -293,7 +293,7 @@
<string>Option to specify the maximum number of entries on the Recent list in the multimedia library. If this number is exceeded, the oldest entries will be removed.</string>
</property>
</widget>
<widget class="QLineEdit" row="3" column="1">
<widget class="TQLineEdit" row="3" column="1">
<property name="name">
<cstring>c_recent_list_size</cstring>
</property>
@ -321,7 +321,7 @@
<string>Option to specify the maximum number of entries on the Recent list in the multimedia library. If this number is exceeded, the oldest entries will be removed.</string>
</property>
</widget>
<widget class="QLabel" row="4" column="0">
<widget class="TQLabel" row="4" column="0">
<property name="name">
<cstring>l_cache_size_limit</cstring>
</property>
@ -349,7 +349,7 @@
<string>Option that shows and allows you to change the maximum number of entries for which KPlayer remembers properties, even if they are no longer on playlist. If the limit is exceeded, the oldest existing entries are removed from cache.</string>
</property>
</widget>
<widget class="QLineEdit" row="4" column="1">
<widget class="TQLineEdit" row="4" column="1">
<property name="name">
<cstring>c_cache_size_limit</cstring>
</property>
@ -379,7 +379,7 @@
</widget>
</grid>
</widget>
<widget class="QCheckBox">
<widget class="TQCheckBox">
<property name="name">
<cstring>c_allow_duplicate_entries</cstring>
</property>
@ -393,7 +393,7 @@
<string>Option to choose whether to allow multiple entries having the exact same URL on playlist. Duplicate entries will have the same set of file properties. If this option is not selected, and you put a new entry with the same URL as an existing one on a playlist, the old entry will be removed.</string>
</property>
</widget>
<widget class="QCheckBox">
<widget class="TQCheckBox">
<property name="name">
<cstring>c_show_messages_on_error</cstring>
</property>

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>KPlayerSettingsHuePage</class>
<widget class="QFrame">
<widget class="TQFrame">
<property name="name">
<cstring>KPlayerSettingsHuePage</cstring>
</property>
@ -28,7 +28,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QFrame" row="0" column="0">
<widget class="TQFrame" row="0" column="0">
<property name="name">
<cstring>frame4</cstring>
</property>
@ -50,7 +50,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel" row="0" column="0">
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>l_hue_minimum</cstring>
</property>
@ -78,7 +78,7 @@
<string>Option to specify a lower limit on the video hue setting.</string>
</property>
</widget>
<widget class="QLineEdit" row="0" column="1">
<widget class="TQLineEdit" row="0" column="1">
<property name="name">
<cstring>c_hue_minimum</cstring>
</property>
@ -106,7 +106,7 @@
<string>Option to specify a lower limit on the video hue setting.</string>
</property>
</widget>
<widget class="QLabel" row="1" column="0">
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>l_hue_maximum</cstring>
</property>
@ -134,7 +134,7 @@
<string>Option to specify an upper limit on the video hue setting.</string>
</property>
</widget>
<widget class="QLineEdit" row="1" column="1">
<widget class="TQLineEdit" row="1" column="1">
<property name="name">
<cstring>c_hue_maximum</cstring>
</property>
@ -162,7 +162,7 @@
<string>Option to specify an upper limit on the video hue setting.</string>
</property>
</widget>
<widget class="QLabel" row="2" column="0">
<widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>l_hue_step</cstring>
</property>
@ -190,7 +190,7 @@
<string>Option to specify the amount by which to change video hue when using Increase/Decrease Hue commands on Player/Video menu or the corresponding keyboard shortcuts.</string>
</property>
</widget>
<widget class="QLineEdit" row="2" column="1">
<widget class="TQLineEdit" row="2" column="1">
<property name="name">
<cstring>c_hue_step</cstring>
</property>
@ -218,7 +218,7 @@
<string>Option to specify the amount by which to change video hue when using Increase/Decrease Hue commands on Player/Video menu or the corresponding keyboard shortcuts.</string>
</property>
</widget>
<widget class="QLayoutWidget" row="3" column="0" colspan="2">
<widget class="TQLayoutWidget" row="3" column="0" colspan="2">
<property name="name">
<cstring>layout2</cstring>
</property>
@ -229,7 +229,7 @@
<property name="spacing">
<number>6</number>
</property>
<widget class="QCheckBox">
<widget class="TQCheckBox">
<property name="name">
<cstring>c_hue_reset</cstring>
</property>
@ -243,7 +243,7 @@
<string>Option to reset video hue to a specific setting for each new file or KPlayer session.</string>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>l_hue_to</cstring>
</property>
@ -271,7 +271,7 @@
<string>Option to reset video hue to a specific setting for each new file or KPlayer session.</string>
</property>
</widget>
<widget class="QLineEdit">
<widget class="TQLineEdit">
<property name="name">
<cstring>c_hue_default</cstring>
</property>
@ -299,7 +299,7 @@
<string>Option to reset video hue to a specific setting for each new file or KPlayer session.</string>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>l_hue_every</cstring>
</property>
@ -327,7 +327,7 @@
<string>Option to reset video hue to a specific setting for each new file or KPlayer session.</string>
</property>
</widget>
<widget class="QComboBox">
<widget class="TQComboBox">
<item>
<property name="text">
<string>file</string>

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>KPlayerSettingsProgressPage</class>
<widget class="QFrame">
<widget class="TQFrame">
<property name="name">
<cstring>KPlayerSettingsProgressPage</cstring>
</property>
@ -28,7 +28,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QFrame" row="0" column="0">
<widget class="TQFrame" row="0" column="0">
<property name="name">
<cstring>frame4</cstring>
</property>
@ -50,7 +50,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLayoutWidget" row="0" column="0">
<widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
<cstring>layout2</cstring>
</property>
@ -58,7 +58,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel" row="0" column="0">
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>l_progress_seek</cstring>
</property>
@ -86,7 +86,7 @@
<string>Option to specify the amount by which playback will be moved forward or backward when using Forward/Backward commands on Player menu, either in seconds or in percents of time length of the file if it is known.</string>
</property>
</widget>
<widget class="QLineEdit" row="0" column="1">
<widget class="TQLineEdit" row="0" column="1">
<property name="name">
<cstring>c_progress_seek</cstring>
</property>
@ -114,7 +114,7 @@
<string>Option to specify the amount by which playback will be moved forward or backward when using Forward/Backward commands on Player menu, either in seconds or in percents of time length of the file if it is known.</string>
</property>
</widget>
<widget class="QComboBox" row="0" column="2">
<widget class="TQComboBox" row="0" column="2">
<item>
<property name="text">
<string>percent</string>
@ -135,7 +135,7 @@
<string>Option to specify the amount by which playback will be moved forward or backward when using Forward/Backward commands on Player menu, either in seconds or in percents of time length of the file if it is known.</string>
</property>
</widget>
<widget class="QLabel" row="1" column="0">
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>l_progress_fast</cstring>
</property>
@ -163,7 +163,7 @@
<string>Option to specify the amount by which playback will be moved forward or backward when using Fast Forward/Backward commands on Player menu, either in seconds or in percents of time length of the file if it is known.</string>
</property>
</widget>
<widget class="QLineEdit" row="1" column="1">
<widget class="TQLineEdit" row="1" column="1">
<property name="name">
<cstring>c_progress_fast</cstring>
</property>
@ -191,7 +191,7 @@
<string>Option to specify the amount by which playback will be moved forward or backward when using Fast Forward/Backward commands on Player menu, either in seconds or in percents of time length of the file if it is known.</string>
</property>
</widget>
<widget class="QComboBox" row="1" column="2">
<widget class="TQComboBox" row="1" column="2">
<item>
<property name="text">
<string>percent</string>

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>KPlayerSettingsSaturationPage</class>
<widget class="QFrame">
<widget class="TQFrame">
<property name="name">
<cstring>KPlayerSettingsSaturationPage</cstring>
</property>
@ -28,7 +28,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QFrame" row="0" column="0">
<widget class="TQFrame" row="0" column="0">
<property name="name">
<cstring>frame4</cstring>
</property>
@ -50,7 +50,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel" row="0" column="0">
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>l_saturation_minimum</cstring>
</property>
@ -78,7 +78,7 @@
<string>Option to specify a lower limit on the video saturation setting.</string>
</property>
</widget>
<widget class="QLineEdit" row="0" column="1">
<widget class="TQLineEdit" row="0" column="1">
<property name="name">
<cstring>c_saturation_minimum</cstring>
</property>
@ -106,7 +106,7 @@
<string>Option to specify a lower limit on the video saturation setting.</string>
</property>
</widget>
<widget class="QLabel" row="1" column="0">
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>l_saturation_maximum</cstring>
</property>
@ -134,7 +134,7 @@
<string>Option to specify an upper limit on the video saturation setting.</string>
</property>
</widget>
<widget class="QLineEdit" row="1" column="1">
<widget class="TQLineEdit" row="1" column="1">
<property name="name">
<cstring>c_saturation_maximum</cstring>
</property>
@ -162,7 +162,7 @@
<string>Option to specify an upper limit on the video saturation setting.</string>
</property>
</widget>
<widget class="QLabel" row="2" column="0">
<widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>l_saturation_step</cstring>
</property>
@ -190,7 +190,7 @@
<string>Option to specify the amount by which to change video saturation when using Increase/Decrease Saturation commands on Player/Video menu or the corresponding keyboard shortcuts.</string>
</property>
</widget>
<widget class="QLineEdit" row="2" column="1">
<widget class="TQLineEdit" row="2" column="1">
<property name="name">
<cstring>c_saturation_step</cstring>
</property>
@ -218,7 +218,7 @@
<string>Option to specify the amount by which to change video saturation when using Increase/Decrease Saturation commands on Player/Video menu or the corresponding keyboard shortcuts.</string>
</property>
</widget>
<widget class="QLayoutWidget" row="3" column="0" colspan="2">
<widget class="TQLayoutWidget" row="3" column="0" colspan="2">
<property name="name">
<cstring>layout3</cstring>
</property>
@ -229,7 +229,7 @@
<property name="spacing">
<number>6</number>
</property>
<widget class="QCheckBox">
<widget class="TQCheckBox">
<property name="name">
<cstring>c_saturation_reset</cstring>
</property>
@ -243,7 +243,7 @@
<string>Option to reset video saturation to a specific setting for each new file or KPlayer session.</string>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>l_saturation_to</cstring>
</property>
@ -271,7 +271,7 @@
<string>Option to reset video saturation to a specific setting for each new file or KPlayer session.</string>
</property>
</widget>
<widget class="QLineEdit">
<widget class="TQLineEdit">
<property name="name">
<cstring>c_saturation_default</cstring>
</property>
@ -299,7 +299,7 @@
<string>Option to reset video saturation to a specific setting for each new file or KPlayer session.</string>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>l_saturation_every</cstring>
</property>
@ -327,7 +327,7 @@
<string>Option to reset video saturation to a specific setting for each new file or KPlayer session.</string>
</property>
</widget>
<widget class="QComboBox">
<widget class="TQComboBox">
<item>
<property name="text">
<string>file</string>

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>KPlayerSettingsSlidersPage</class>
<widget class="QFrame">
<widget class="TQFrame">
<property name="name">
<cstring>KPlayerSettingsSlidersPage</cstring>
</property>
@ -28,7 +28,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QFrame" row="0" column="0">
<widget class="TQFrame" row="0" column="0">
<property name="name">
<cstring>frame4</cstring>
</property>
@ -50,7 +50,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLayoutWidget" row="0" column="0">
<widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
<cstring>layout3</cstring>
</property>
@ -58,7 +58,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel" row="0" column="0">
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>l_minimum_slider_length</cstring>
</property>
@ -86,7 +86,7 @@
<string>Option that shows and allows you to change minimum length of slider control. It affects sliders embedded in toolbars.</string>
</property>
</widget>
<widget class="QLineEdit" row="0" column="1">
<widget class="TQLineEdit" row="0" column="1">
<property name="name">
<cstring>c_minimum_slider_length</cstring>
</property>
@ -114,7 +114,7 @@
<string>Option that shows and allows you to change minimum length of slider control. It affects sliders embedded in toolbars.</string>
</property>
</widget>
<widget class="QLabel" row="0" column="2">
<widget class="TQLabel" row="0" column="2">
<property name="name">
<cstring>l_minimum_slider_length_pixels</cstring>
</property>
@ -139,7 +139,7 @@
<string>Option that shows and allows you to change minimum length of slider control. It affects sliders embedded in toolbars.</string>
</property>
</widget>
<widget class="QLabel" row="1" column="0">
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>l_preferred_slider_length</cstring>
</property>
@ -167,7 +167,7 @@
<string>Option that shows and allows you to change preferred length of slider control. It affects both popup sliders and sliders embedded in toolbars.</string>
</property>
</widget>
<widget class="QLineEdit" row="1" column="1">
<widget class="TQLineEdit" row="1" column="1">
<property name="name">
<cstring>c_preferred_slider_length</cstring>
</property>
@ -195,7 +195,7 @@
<string>Option that shows and allows you to change preferred length of slider control. It affects both popup sliders and sliders embedded in toolbars.</string>
</property>
</widget>
<widget class="QLabel" row="1" column="2">
<widget class="TQLabel" row="1" column="2">
<property name="name">
<cstring>l_preferred_slider_length_pixels</cstring>
</property>
@ -220,7 +220,7 @@
<string>Option that shows and allows you to change preferred length of slider control. It affects both popup sliders and sliders embedded in toolbars.</string>
</property>
</widget>
<widget class="QCheckBox" row="2" column="0">
<widget class="TQCheckBox" row="2" column="0">
<property name="name">
<cstring>c_show_slider_marks</cstring>
</property>
@ -234,7 +234,7 @@
<string>Option to show slider marks on slider controls.</string>
</property>
</widget>
<widget class="QLabel" row="3" column="0">
<widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>l_slider_marks</cstring>
</property>
@ -262,7 +262,7 @@
<string>Option to specify the distance between tick marks on the a slider, in percents of slider length.</string>
</property>
</widget>
<widget class="QLineEdit" row="3" column="1">
<widget class="TQLineEdit" row="3" column="1">
<property name="name">
<cstring>c_slider_marks</cstring>
</property>
@ -290,7 +290,7 @@
<string>Option to specify the distance between tick marks on sliders, in percents of slider length.</string>
</property>
</widget>
<widget class="QLabel" row="3" column="2">
<widget class="TQLabel" row="3" column="2">
<property name="name">
<cstring>l_slider_marks_percent</cstring>
</property>

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>KPlayerSettingsSubtitlesPage</class>
<widget class="QFrame">
<widget class="TQFrame">
<property name="name">
<cstring>KPlayerSettingsSubtitlesPage</cstring>
</property>
@ -28,7 +28,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QFrame" row="0" column="0">
<widget class="TQFrame" row="0" column="0">
<property name="name">
<cstring>frame1</cstring>
</property>
@ -50,7 +50,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel" row="0" column="0">
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>l_font_name</cstring>
</property>
@ -92,7 +92,7 @@
<string>Option to specify the name of the font for displaying subtitles and other OSD text.</string>
</property>
</widget>
<widget class="QCheckBox" row="0" column="2">
<widget class="TQCheckBox" row="0" column="2">
<property name="name">
<cstring>c_bold</cstring>
</property>
@ -106,7 +106,7 @@
<string>Option to choose bold font for displaying subtitles and other OSD text.</string>
</property>
</widget>
<widget class="QCheckBox" row="0" column="3">
<widget class="TQCheckBox" row="0" column="3">
<property name="name">
<cstring>c_italic</cstring>
</property>
@ -120,7 +120,7 @@
<string>Option to choose italic font for displaying subtitles and other OSD text.</string>
</property>
</widget>
<widget class="QLabel" row="1" column="0">
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>l_text_size</cstring>
</property>
@ -140,7 +140,7 @@
<string>Option to specify the size of subtitle text.</string>
</property>
</widget>
<widget class="QComboBox" row="1" column="1">
<widget class="TQComboBox" row="1" column="1">
<item>
<property name="text">
<string>auto</string>
@ -167,7 +167,7 @@
<string>Option to specify the size of subtitle text.</string>
</property>
</widget>
<widget class="QCheckBox" row="1" column="2" colspan="2">
<widget class="TQCheckBox" row="1" column="2" colspan="2">
<property name="name">
<cstring>c_autoscale</cstring>
</property>
@ -181,7 +181,7 @@
<string>Option to automatically scale subtitles and other OSD elements.</string>
</property>
</widget>
<widget class="QLabel" row="2" column="0">
<widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>l_outline</cstring>
</property>
@ -201,7 +201,7 @@
<string>Option to specify the outline of the font for displaying subtitles and other OSD text.</string>
</property>
</widget>
<widget class="QSlider" row="2" column="1">
<widget class="TQSlider" row="2" column="1">
<property name="name">
<cstring>c_outline_slider</cstring>
</property>
@ -235,7 +235,7 @@
<string>Option to specify the outline of the font for displaying subtitles and other OSD text.</string>
</property>
</widget>
<widget class="QLineEdit" row="2" column="2">
<widget class="TQLineEdit" row="2" column="2">
<property name="name">
<cstring>c_outline</cstring>
</property>
@ -252,7 +252,7 @@
<string>Option to specify the width of the subtitle area in percent of the video width.</string>
</property>
</widget>
<widget class="QLabel" row="3" column="0">
<widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>l_width</cstring>
</property>
@ -272,7 +272,7 @@
<string>Option to specify the width of the subtitle area in percent of the video width.</string>
</property>
</widget>
<widget class="QSlider" row="3" column="1">
<widget class="TQSlider" row="3" column="1">
<property name="name">
<cstring>c_width_slider</cstring>
</property>
@ -306,7 +306,7 @@
<string>Option to specify the width of the subtitle area in percent of the video width.</string>
</property>
</widget>
<widget class="QLineEdit" row="3" column="2">
<widget class="TQLineEdit" row="3" column="2">
<property name="name">
<cstring>c_width</cstring>
</property>
@ -323,7 +323,7 @@
<string>Option to specify the width of the subtitle area in percent of the video width.</string>
</property>
</widget>
<widget class="QLabel" row="3" column="3">
<widget class="TQLabel" row="3" column="3">
<property name="name">
<cstring>l_width_percent</cstring>
</property>
@ -340,7 +340,7 @@
<string>Option to specify the width of the subtitle area in percent of the video width.</string>
</property>
</widget>
<widget class="QLabel" row="4" column="0" colspan="2">
<widget class="TQLabel" row="4" column="0" colspan="2">
<property name="name">
<cstring>l_position_step</cstring>
</property>
@ -360,7 +360,7 @@
<string>Option to specify the amount in percents of video height by which to move subtitles when using Move Up/Down commands on Player/Subtitles menu or the corresponding keyboard shortcuts.</string>
</property>
</widget>
<widget class="QLineEdit" row="4" column="2">
<widget class="TQLineEdit" row="4" column="2">
<property name="name">
<cstring>c_position_step</cstring>
</property>
@ -377,7 +377,7 @@
<string>Option to specify the amount in percents of video height by which to move subtitles when using Move Up/Down commands on Player/Subtitles menu or the corresponding keyboard shortcuts.</string>
</property>
</widget>
<widget class="QLabel" row="4" column="3">
<widget class="TQLabel" row="4" column="3">
<property name="name">
<cstring>l_position_percent</cstring>
</property>
@ -394,7 +394,7 @@
<string>Option to specify the amount in percents of video height by which to move subtitles when using Move Up/Down commands on Player/Subtitles menu or the corresponding keyboard shortcuts.</string>
</property>
</widget>
<widget class="QLabel" row="5" column="0" colspan="2">
<widget class="TQLabel" row="5" column="0" colspan="2">
<property name="name">
<cstring>l_delay_step</cstring>
</property>
@ -414,7 +414,7 @@
<string>Option to specify the amount in seconds by which to change subtitle delay when using Increase/Decrease Delay commands on Player/Subtitles menu or the corresponding keyboard shortcuts.</string>
</property>
</widget>
<widget class="QLineEdit" row="5" column="2">
<widget class="TQLineEdit" row="5" column="2">
<property name="name">
<cstring>c_delay_step</cstring>
</property>
@ -431,7 +431,7 @@
<string>Option to specify the amount in seconds by which to change subtitle delay when using Increase/Decrease Delay commands on Player/Subtitles menu or the corresponding keyboard shortcuts.</string>
</property>
</widget>
<widget class="QLabel" row="5" column="3">
<widget class="TQLabel" row="5" column="3">
<property name="name">
<cstring>l_delay_seconds</cstring>
</property>
@ -448,7 +448,7 @@
<string>Option to specify the amount in seconds by which to change subtitle delay when using Increase/Decrease Delay commands on Player/Subtitles menu or the corresponding keyboard shortcuts.</string>
</property>
</widget>
<widget class="QLabel" row="6" column="0">
<widget class="TQLabel" row="6" column="0">
<property name="name">
<cstring>l_encoding</cstring>
</property>
@ -468,7 +468,7 @@
<string>Option to specify the encoding of the subtitle file.</string>
</property>
</widget>
<widget class="QComboBox" row="6" column="1" colspan="3">
<widget class="TQComboBox" row="6" column="1" colspan="3">
<item>
<property name="text">
<string>auto</string>
@ -495,7 +495,7 @@
<string>Option to specify the encoding of the subtitle file.</string>
</property>
</widget>
<widget class="QCheckBox" row="7" column="0" colspan="4">
<widget class="TQCheckBox" row="7" column="0" colspan="4">
<property name="name">
<cstring>c_embedded_fonts</cstring>
</property>
@ -509,7 +509,7 @@
<string>Option to use embedded fonts if they are available to display subtitles.</string>
</property>
</widget>
<widget class="QCheckBox" row="8" column="0" colspan="4">
<widget class="TQCheckBox" row="8" column="0" colspan="4">
<property name="name">
<cstring>c_closed_caption</cstring>
</property>
@ -523,7 +523,7 @@
<string>Option to display closed caption subtitles if they are available.</string>
</property>
</widget>
<widget class="QCheckBox" row="9" column="0" colspan="2">
<widget class="TQCheckBox" row="9" column="0" colspan="2">
<property name="name">
<cstring>c_subtitles_autoexpand</cstring>
</property>
@ -537,7 +537,7 @@
<string>Option to automatically expand the video area to fit subtitles below the video.</string>
</property>
</widget>
<widget class="QComboBox" row="9" column="2">
<widget class="TQComboBox" row="9" column="2">
<item>
<property name="text">
<cstring>1:1</cstring>
@ -571,7 +571,7 @@
<string>Option to specify the aspect ratio of the expanded video area. The video will only be expanded if it has a higher aspect ratio than the one you choose.</string>
</property>
</widget>
<widget class="QCheckBox" row="10" column="0" colspan="4">
<widget class="TQCheckBox" row="10" column="0" colspan="4">
<property name="name">
<cstring>c_subtitles_autoload</cstring>
</property>
@ -585,7 +585,7 @@
<string>Option to automatically load subtitle types selected below by looking for subtitle files with the same name as the currently loaded file and the corresponding subtitle extension.</string>
</property>
</widget>
<widget class="QLabel" row="11" column="0">
<widget class="TQLabel" row="11" column="0">
<property name="name">
<cstring>l_extensions</cstring>
</property>
@ -605,7 +605,7 @@
<string>Option that lets you give a list of extensions that will be used to automatically load subtitles. If you enter multiple extensions, separate them by commas, semicolons, colons, periods or spaces. Extensions you give will be converted to lower and upper case when looking for files. Subtitles with mixed case extensions cannot be autoloaded at this time.</string>
</property>
</widget>
<widget class="QLineEdit" row="11" column="1" colspan="3">
<widget class="TQLineEdit" row="11" column="1" colspan="3">
<property name="name">
<cstring>c_subtitles_list</cstring>
</property>
@ -629,9 +629,9 @@
</connection>
<connection>
<sender>c_width</sender>
<signal>textChanged(const QString&amp;)</signal>
<signal>textChanged(const TQString&amp;)</signal>
<receiver>KPlayerSettingsSubtitlesPage</receiver>
<slot>widthEditChanged(const QString&amp;)</slot>
<slot>widthEditChanged(const TQString&amp;)</slot>
</connection>
<connection>
<sender>c_outline_slider</sender>
@ -641,9 +641,9 @@
</connection>
<connection>
<sender>c_outline</sender>
<signal>textChanged(const QString&amp;)</signal>
<signal>textChanged(const TQString&amp;)</signal>
<receiver>KPlayerSettingsSubtitlesPage</receiver>
<slot>outlineEditChanged(const QString&amp;)</slot>
<slot>outlineEditChanged(const TQString&amp;)</slot>
</connection>
<connection>
<sender>c_subtitles_autoexpand</sender>
@ -660,9 +660,9 @@
</connections>
<slots>
<slot access="protected">widthSliderChanged(int)</slot>
<slot access="protected">widthEditChanged(const QString&amp;)</slot>
<slot access="protected">widthEditChanged(const TQString&amp;)</slot>
<slot access="protected">outlineSliderChanged(int)</slot>
<slot access="protected">outlineEditChanged(const QString&amp;)</slot>
<slot access="protected">outlineEditChanged(const TQString&amp;)</slot>
<slot access="protected">autoexpandChanged(bool)</slot>
<slot access="protected">autoloadSubtitlesChanged(bool)</slot>
</slots>

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>KPlayerSettingsVideoPage</class>
<widget class="QFrame">
<widget class="TQFrame">
<property name="name">
<cstring>KPlayerSettingsVideoPage</cstring>
</property>
@ -28,7 +28,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QFrame" row="0" column="0">
<widget class="TQFrame" row="0" column="0">
<property name="name">
<cstring>frame1</cstring>
</property>
@ -50,7 +50,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout1</cstring>
</property>
@ -58,7 +58,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel" row="0" column="0">
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>l_driver</cstring>
</property>
@ -78,7 +78,7 @@
<string>Option that lists available video outputs and lets you choose the one to use for playing video. Recommended choice depends on the video card you have. For Matrox card try XMGA, for other cards either XVidix (if supported) or XVideo provide the best quality. With NVidia drivers you can also try XVMC output. If after trying hard you cannot make any of these work, you can use X11 output as the last resort. Video outputs that open a separate window instead of using KPlayer video area are not recommended. Auto will let MPlayer choose a video output according to its own configuration. If you need to specify more than one output separated by comma, set this option to Auto and put them in Additional Command Line Arguments on Advanced page.</string>
</property>
</widget>
<widget class="QComboBox" row="0" column="1">
<widget class="TQComboBox" row="0" column="1">
<property name="name">
<cstring>c_driver</cstring>
</property>
@ -97,7 +97,7 @@
<string>Option that lists available video outputs and lets you choose the one to use for playing video. Recommended choice depends on the video card you have. For Matrox card try XMGA, for other cards either XVidix (if supported) or XVideo provide the best quality. With NVidia drivers you can also try XVMC output. If after trying hard you cannot make any of these work, you can use X11 output as the last resort. Video outputs that open a separate window instead of using KPlayer video area are not recommended. Auto will let MPlayer choose a video output according to its own configuration. If you need to specify more than one output separated by comma, set this option to Auto and put them in Additional Command Line Arguments on Advanced page.</string>
</property>
</widget>
<widget class="QLabel" row="1" column="0">
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>l_device</cstring>
</property>
@ -117,7 +117,7 @@
<string>Option to specify video device to use for the chosen video output. Leave blank to use the default device.</string>
</property>
</widget>
<widget class="QLineEdit" row="1" column="1">
<widget class="TQLineEdit" row="1" column="1">
<property name="name">
<cstring>c_device</cstring>
</property>
@ -145,7 +145,7 @@
<string>Option to specify video device to use for the chosen video output. Leave blank to use the default device.</string>
</property>
</widget>
<widget class="QLabel" row="2" column="0">
<widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>l_codec</cstring>
</property>
@ -165,7 +165,7 @@
<string>Option that lists available codecs and lets you choose the one to be used for decoding video. Auto is the recommended choice, it lets MPlayer decide which codec to use automatically. If you need to tell MPlayer to use a particular codec for a given file or stream, set this option in File Properties.</string>
</property>
</widget>
<widget class="QComboBox" row="2" column="1">
<widget class="TQComboBox" row="2" column="1">
<property name="name">
<cstring>c_codec</cstring>
</property>
@ -184,7 +184,7 @@
<string>Option that lists available codecs and lets you choose the one to be used for decoding video. Auto is the recommended choice, it lets MPlayer decide which codec to use automatically. If you need to tell MPlayer to use a particular codec for a given file or stream, set this option in File Properties.</string>
</property>
</widget>
<widget class="QLabel" row="3" column="0">
<widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>l_scaler</cstring>
</property>
@ -204,7 +204,7 @@
<string>Option to specify the video scaler to be used when doing software scaling. Software scaling consumes considerable amount of system resources, so unless you have plenty of them and software scaling gives you better image quality, you should choose a video output above that uses hardware scaling.</string>
</property>
</widget>
<widget class="QComboBox" row="3" column="1">
<widget class="TQComboBox" row="3" column="1">
<property name="name">
<cstring>c_scaler</cstring>
</property>
@ -280,7 +280,7 @@
</widget>
</grid>
</widget>
<widget class="QCheckBox">
<widget class="TQCheckBox">
<property name="name">
<cstring>c_doublebuffering</cstring>
</property>
@ -294,7 +294,7 @@
<string>Option to choose whether double buffering should be used for video output. This option is recommended, it gives smoother display in many cases.</string>
</property>
</widget>
<widget class="QCheckBox">
<widget class="TQCheckBox">
<property name="name">
<cstring>c_direct_rendering</cstring>
</property>

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>KPlayerSettingsVolumePage</class>
<widget class="QFrame">
<widget class="TQFrame">
<property name="name">
<cstring>KPlayerSettingsVolumePage</cstring>
</property>
@ -28,7 +28,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QFrame" row="0" column="0">
<widget class="TQFrame" row="0" column="0">
<property name="name">
<cstring>frame4</cstring>
</property>
@ -50,7 +50,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel" row="0" column="0">
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>l_volume_minimum</cstring>
</property>
@ -78,7 +78,7 @@
<string>Option to specify a lower limit on the sound volume setting.</string>
</property>
</widget>
<widget class="QLineEdit" row="0" column="1">
<widget class="TQLineEdit" row="0" column="1">
<property name="name">
<cstring>c_volume_minimum</cstring>
</property>
@ -106,7 +106,7 @@
<string>Option to specify a lower limit on the sound volume setting.</string>
</property>
</widget>
<widget class="QLabel" row="1" column="0">
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>l_volume_maximum</cstring>
</property>
@ -134,7 +134,7 @@
<string>Option to specify an upper limit on the sound volume setting.</string>
</property>
</widget>
<widget class="QLineEdit" row="1" column="1">
<widget class="TQLineEdit" row="1" column="1">
<property name="name">
<cstring>c_volume_maximum</cstring>
</property>
@ -162,7 +162,7 @@
<string>Option to specify an upper limit on the sound volume setting.</string>
</property>
</widget>
<widget class="QLabel" row="2" column="0">
<widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>l_volume_step</cstring>
</property>
@ -190,7 +190,7 @@
<string>Option to specify the amount by which to change sound volume when using Increase/Decrease Volume commands on Player/Audio menu or the corresponding keyboard shortcuts.</string>
</property>
</widget>
<widget class="QLineEdit" row="2" column="1">
<widget class="TQLineEdit" row="2" column="1">
<property name="name">
<cstring>c_volume_step</cstring>
</property>
@ -218,7 +218,7 @@
<string>Option to specify the amount by which to change sound volume when using Increase/Decrease Volume commands on Player/Audio menu or the corresponding keyboard shortcuts.</string>
</property>
</widget>
<widget class="QLayoutWidget" row="3" column="0" colspan="2">
<widget class="TQLayoutWidget" row="3" column="0" colspan="2">
<property name="name">
<cstring>layout3</cstring>
</property>
@ -229,7 +229,7 @@
<property name="spacing">
<number>6</number>
</property>
<widget class="QCheckBox">
<widget class="TQCheckBox">
<property name="name">
<cstring>c_volume_reset</cstring>
</property>
@ -243,7 +243,7 @@
<string>Option to reset sound volume to a specific setting for each new file or KPlayer session.</string>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>l_volume_to</cstring>
</property>
@ -271,7 +271,7 @@
<string>Option to reset sound volume to a specific setting for each new file or KPlayer session.</string>
</property>
</widget>
<widget class="QLineEdit">
<widget class="TQLineEdit">
<property name="name">
<cstring>c_volume_default</cstring>
</property>
@ -299,7 +299,7 @@
<string>Option to reset sound volume to a specific setting for each new file or KPlayer session.</string>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>l_volume_every</cstring>
</property>
@ -327,7 +327,7 @@
<string>Option to reset sound volume to a specific setting for each new file or KPlayer session.</string>
</property>
</widget>
<widget class="QComboBox">
<widget class="TQComboBox">
<item>
<property name="text">
<string>file</string>

@ -16,9 +16,9 @@
#include <kapplication.h>
#include <ktoolbar.h>
#include <ktoolbarbutton.h>
#include <qcursor.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <tqcursor.h>
#include <tqtooltip.h>
#include <tqwhatsthis.h>
#ifdef DEBUG
#define DEBUG_KPLAYER_SLIDERS
@ -37,7 +37,7 @@ KPlayerPopupFrame::~KPlayerPopupFrame()
#endif
}
void KPlayerPopupFrame::keyPressEvent (QKeyEvent* ev)
void KPlayerPopupFrame::keyPressEvent (TQKeyEvent* ev)
{
switch ( ev -> key() )
{
@ -50,15 +50,15 @@ void KPlayerPopupFrame::keyPressEvent (QKeyEvent* ev)
}
}
KPlayerPopupSliderAction::KPlayerPopupSliderAction (const QString& text,
const QString& pix, const KShortcut& shortcut, const QObject* receiver,
const char* slot, QObject* parent, const char* name)
KPlayerPopupSliderAction::KPlayerPopupSliderAction (const TQString& text,
const TQString& pix, const KShortcut& shortcut, const TQObject* receiver,
const char* slot, TQObject* parent, const char* name)
: KAction (text, pix, shortcut, parent, name)
{
m_frame = new KPlayerPopupFrame;
m_frame -> setFrameStyle (QFrame::PopupPanel | QFrame::Raised);
m_frame -> setFrameStyle (TQFrame::PopupPanel | TQFrame::Raised);
m_frame -> setLineWidth (2);
m_slider = new KPlayerSlider (Qt::Vertical, m_frame);
m_slider = new KPlayerSlider (TQt::Vertical, m_frame);
m_frame -> resize (36, m_slider -> sizeHint().height() + 4);
m_slider -> setGeometry (m_frame -> contentsRect());
#ifdef DEBUG_KPLAYER_SLIDERS
@ -66,7 +66,7 @@ KPlayerPopupSliderAction::KPlayerPopupSliderAction (const QString& text,
#endif
connect (m_slider, SIGNAL (changed (int)), receiver, slot);
if ( ! text.isEmpty() )
QToolTip::add (m_slider, text);
TQToolTip::add (m_slider, text);
}
KPlayerPopupSliderAction::~KPlayerPopupSliderAction()
@ -79,13 +79,13 @@ KPlayerPopupSliderAction::~KPlayerPopupSliderAction()
void KPlayerPopupSliderAction::slotActivated (void)
{
KAction::slotActivated();
QWidget* button = 0;
TQWidget* button = 0;
#ifdef DEBUG_KPLAYER_SLIDERS
if ( sender() )
kdDebugTime() << "Sender class name: " << sender() -> className() << "\n";
#endif
if ( sender() && sender() -> inherits ("KToolBarButton") )
button = (QWidget*) sender();
button = (TQWidget*) sender();
else
{
KToolBar* toolbar = 0;
@ -102,20 +102,20 @@ void KPlayerPopupSliderAction::slotActivated (void)
button = toolbar -> getButton (itemId (index));
}
}
QPoint point;
TQPoint point;
if ( button )
{
point = button -> mapToGlobal (QPoint (0, button -> height()));
if ( point.y() + m_frame -> height() > QApplication::desktop() -> height() )
point = button -> mapToGlobal (TQPoint (0, button -> height()));
if ( point.y() + m_frame -> height() > TQApplication::desktop() -> height() )
point.setY (point.y() - button -> height() - m_frame -> height());
}
else
{
point = QCursor::pos() - QPoint (m_frame -> width() / 2, m_frame -> height() / 2);
if ( point.x() + m_frame -> width() > QApplication::desktop() -> width() )
point.setX (QApplication::desktop() -> width() - m_frame -> width());
if ( point.y() + m_frame -> height() > QApplication::desktop() -> height() )
point.setY (QApplication::desktop() -> height() - m_frame -> height());
point = TQCursor::pos() - TQPoint (m_frame -> width() / 2, m_frame -> height() / 2);
if ( point.x() + m_frame -> width() > TQApplication::desktop() -> width() )
point.setX (TQApplication::desktop() -> width() - m_frame -> width());
if ( point.y() + m_frame -> height() > TQApplication::desktop() -> height() )
point.setY (TQApplication::desktop() -> height() - m_frame -> height());
if ( point.x() < 0 )
point.setX (0);
if ( point.y() < 0 )
@ -124,16 +124,16 @@ void KPlayerPopupSliderAction::slotActivated (void)
#ifdef DEBUG_KPLAYER_SLIDERS
kdDebugTime() << "Point: " << point.x() << "x" << point.y() << "\n";
#endif
QWhatsThis::add (m_frame, whatsThis());
QWhatsThis::add (m_slider, whatsThis());
TQWhatsThis::add (m_frame, whatsThis());
TQWhatsThis::add (m_slider, whatsThis());
m_frame -> move (point);
m_frame -> show();
m_slider -> setFocus();
}
KPlayerSliderAction::KPlayerSliderAction (const QString& text, const KShortcut& cut,
const QObject* receiver, const char* slot, KActionCollection* parent, const char* name)
: KWidgetAction (new KPlayerSlider (Qt::Horizontal, 0, name), text, cut, 0, 0, parent, name)
KPlayerSliderAction::KPlayerSliderAction (const TQString& text, const KShortcut& cut,
const TQObject* receiver, const char* slot, KActionCollection* parent, const char* name)
: KWidgetAction (new KPlayerSlider (TQt::Horizontal, 0, name), text, cut, 0, 0, parent, name)
{
setAutoSized (true);
setShortcutConfigurable (false);
@ -147,20 +147,20 @@ KPlayerSliderAction::~KPlayerSliderAction()
#endif
}
int KPlayerSliderAction::plug (QWidget* widget, int index)
int KPlayerSliderAction::plug (TQWidget* widget, int index)
{
int result = KWidgetAction::plug (widget, index);
if ( result < 0 )
return result;
KToolBar* toolbar = (KToolBar*) widget;
if ( ! text().isEmpty() )
QToolTip::add (slider(), text());
TQToolTip::add (slider(), text());
orientationChanged (toolbar -> orientation());
connect (toolbar, SIGNAL (orientationChanged (Orientation)), this, SLOT (orientationChanged (Orientation)));
return result;
}
void KPlayerSliderAction::unplug (QWidget* widget)
void KPlayerSliderAction::unplug (TQWidget* widget)
{
KWidgetAction::unplug (widget);
if ( ! slider() || ! isPlugged() || widget != slider() -> parent() )
@ -174,8 +174,8 @@ void KPlayerSliderAction::orientationChanged (Orientation orientation)
slider() -> setOrientation (orientation);
}
KPlayerSlider::KPlayerSlider (Qt::Orientation orientation, QWidget* parent, const char* name)
: QSlider (orientation, parent, name)
KPlayerSlider::KPlayerSlider (TQt::Orientation orientation, TQWidget* parent, const char* name)
: TQSlider (orientation, parent, name)
{
m_dragging = m_changing_orientation = false;
connect (this, SIGNAL (valueChanged (int)), this, SLOT (sliderValueChanged (int)));
@ -188,16 +188,16 @@ KPlayerSlider::~KPlayerSlider()
#endif
}
QSize KPlayerSlider::sizeHint() const
TQSize KPlayerSlider::sizeHint() const
{
#ifdef DEBUG_KPLAYER_SLIDER_HINTS
kdDebugTime() << "KPlayerSlider::sizeHint\n";
#endif
QSize hint = QSlider::sizeHint();
TQSize hint = TQSlider::sizeHint();
if ( KPlayerEngine::engine() )
{
int length = KPlayerEngine::engine() -> configuration() -> preferredSliderLength();
if ( orientation() == Qt::Horizontal )
if ( orientation() == TQt::Horizontal )
{
if ( hint.width() < length )
hint.setWidth (length);
@ -214,16 +214,16 @@ QSize KPlayerSlider::sizeHint() const
return hint;
}
QSize KPlayerSlider::minimumSizeHint() const
TQSize KPlayerSlider::minimumSizeHint() const
{
#ifdef DEBUG_KPLAYER_SLIDER_HINTS
kdDebugTime() << "KPlayerSlider::minimumSizeHint\n";
#endif
QSize hint = QSlider::minimumSizeHint();
TQSize hint = TQSlider::minimumSizeHint();
if ( KPlayerEngine::engine() )
{
int length = KPlayerEngine::engine() -> configuration() -> minimumSliderLength();
if ( orientation() == Qt::Horizontal )
if ( orientation() == TQt::Horizontal )
{
if ( hint.width() < length )
hint.setWidth (length);
@ -245,59 +245,59 @@ void KPlayerSlider::setOrientation (Orientation o)
if ( o == orientation() )
return;
m_changing_orientation = true;
int minValue = QSlider::minValue();
int maxValue = QSlider::maxValue();
int value = QSlider::value();
QSlider::setOrientation (o);
QSlider::setMinValue (- maxValue);
QSlider::setMaxValue (- minValue);
QSlider::setValue (- value);
int minValue = TQSlider::minValue();
int maxValue = TQSlider::maxValue();
int value = TQSlider::value();
TQSlider::setOrientation (o);
TQSlider::setMinValue (- maxValue);
TQSlider::setMaxValue (- minValue);
TQSlider::setValue (- value);
m_changing_orientation = false;
}
int KPlayerSlider::minValue (void) const
{
if ( orientation() == Qt::Horizontal )
return QSlider::minValue();
return - QSlider::maxValue();
if ( orientation() == TQt::Horizontal )
return TQSlider::minValue();
return - TQSlider::maxValue();
}
void KPlayerSlider::setMinValue (int minValue)
{
if ( orientation() == Qt::Horizontal )
QSlider::setMinValue (minValue);
if ( orientation() == TQt::Horizontal )
TQSlider::setMinValue (minValue);
else
QSlider::setMaxValue (- minValue);
TQSlider::setMaxValue (- minValue);
}
int KPlayerSlider::maxValue (void) const
{
if ( orientation() == Qt::Horizontal )
return QSlider::maxValue();
return - QSlider::minValue();
if ( orientation() == TQt::Horizontal )
return TQSlider::maxValue();
return - TQSlider::minValue();
}
void KPlayerSlider::setMaxValue (int maxValue)
{
if ( orientation() == Qt::Horizontal )
QSlider::setMaxValue (maxValue);
if ( orientation() == TQt::Horizontal )
TQSlider::setMaxValue (maxValue);
else
QSlider::setMinValue (- maxValue);
TQSlider::setMinValue (- maxValue);
}
int KPlayerSlider::value (void) const
{
if ( orientation() == Qt::Horizontal )
return QSlider::value();
return - QSlider::value();
if ( orientation() == TQt::Horizontal )
return TQSlider::value();
return - TQSlider::value();
}
void KPlayerSlider::setValue (int value, int)
{
if ( orientation() == Qt::Horizontal )
QSlider::setValue (value);
if ( orientation() == TQt::Horizontal )
TQSlider::setValue (value);
else
QSlider::setValue (- value);
TQSlider::setValue (- value);
}
void KPlayerSlider::setup (int minValue, int maxValue, int value,
@ -307,7 +307,7 @@ void KPlayerSlider::setup (int minValue, int maxValue, int value,
setMaxValue (maxValue);
setLineStep (lineStep);
setPageStep (pageStep);
setTickmarks (tickMarks ? QSlider::Both : QSlider::NoMarks);
setTickmarks (tickMarks ? TQSlider::Both : TQSlider::NoMarks);
setTickInterval (tickInterval);
setValue (value);
updateGeometry();
@ -319,25 +319,25 @@ void KPlayerSlider::sliderValueChanged (int)
emit changed (value());
}
void KPlayerSlider::mousePressEvent (QMouseEvent* event)
void KPlayerSlider::mousePressEvent (TQMouseEvent* event)
{
m_dragging = (event -> stateAfter() & (Qt::LeftButton | Qt::MidButton)) != 0;
m_dragging = (event -> stateAfter() & (TQt::LeftButton | TQt::MidButton)) != 0;
#ifdef DEBUG_KPLAYER_SLIDERS
kdDebugTime() << "Popup slider mouse press " << event -> state() << " -> " << event -> stateAfter() << " -> " << m_dragging << "\n";
#endif
QSlider::mousePressEvent (event);
TQSlider::mousePressEvent (event);
}
void KPlayerSlider::mouseReleaseEvent (QMouseEvent* event)
void KPlayerSlider::mouseReleaseEvent (TQMouseEvent* event)
{
m_dragging = (event -> stateAfter() & (Qt::LeftButton | Qt::MidButton)) != 0;
m_dragging = (event -> stateAfter() & (TQt::LeftButton | TQt::MidButton)) != 0;
#ifdef DEBUG_KPLAYER_SLIDERS
kdDebugTime() << "Popup slider mouse release " << event -> state() << " -> " << event -> stateAfter() << " -> " << m_dragging << "\n";
#endif
QSlider::mouseReleaseEvent (event);
TQSlider::mouseReleaseEvent (event);
}
void KPlayerSlider::keyPressEvent (QKeyEvent* event)
void KPlayerSlider::keyPressEvent (TQKeyEvent* event)
{
int key = event -> key();
if ( key == Key_Left || key == Key_Right || (event -> state() & (ControlButton | AltButton | MetaButton)) != 0
@ -347,22 +347,22 @@ void KPlayerSlider::keyPressEvent (QKeyEvent* event)
event -> ignore();
return;
}
QSlider::keyPressEvent (event);
TQSlider::keyPressEvent (event);
}
void KPlayerSlider::wheelEvent (QWheelEvent* event)
void KPlayerSlider::wheelEvent (TQWheelEvent* event)
{
static int remainder = 0;
static QSlider* owner = 0;
static TQSlider* owner = 0;
if ( owner != this )
{
owner = this;
remainder = 0;
}
int delta = event -> delta();
if ( orientation() != Qt::Horizontal )
if ( orientation() != TQt::Horizontal )
delta = - delta;
delta *= (event -> state() & Qt::ControlButton) == Qt::ControlButton ? pageStep() : lineStep();
delta *= (event -> state() & TQt::ControlButton) == TQt::ControlButton ? pageStep() : lineStep();
int offset = (delta + remainder + (delta > 0 ? 60 : -60)) / 120;
remainder += delta - offset * 120;
#ifdef DEBUG_KPLAYER_SLIDERS
@ -372,6 +372,6 @@ void KPlayerSlider::wheelEvent (QWheelEvent* event)
<< " spontaneous " << event -> spontaneous() << "\n";
#endif
if ( offset != 0 )
QSlider::setValue (QSlider::value() + offset);
TQSlider::setValue (TQSlider::value() + offset);
event -> accept();
}

@ -17,26 +17,26 @@
#define KPLAYERSLIDERACTION_H
#include <kaction.h>
#include <qhbox.h>
#include <qslider.h>
#include <tqhbox.h>
#include <tqslider.h>
/**KPlayer's slider widget. Works around the Qt upside-down slider bug.
/**KPlayer's slider widget. Works around the TQt upside-down slider bug.
*@author kiriuja
*/
class KPlayerSlider : public QSlider
class KPlayerSlider : public TQSlider
{
Q_OBJECT
public:
/** The KPlayerSlider constructor. Parameters are passed on to QSlider. */
KPlayerSlider (Qt::Orientation, QWidget* parent = 0, const char* name = 0);
/** The KPlayerSlider constructor. Parameters are passed on to TQSlider. */
KPlayerSlider (TQt::Orientation, TQWidget* parent = 0, const char* name = 0);
/** The KPlayerSlider destructor. Does nothing. */
virtual ~KPlayerSlider();
/** The size hint. */
virtual QSize sizeHint() const;
virtual TQSize sizeHint() const;
/** The minimum size hint. */
virtual QSize minimumSizeHint() const;
virtual TQSize minimumSizeHint() const;
/** The minimum value. */
int minValue (void) const;
@ -48,7 +48,7 @@ public:
void setMaxValue (int);
/** The current value. */
int value (void) const;
/** Sets the current value. The extra parameter prevents overriding of the virtual QSlider::setValue. */
/** Sets the current value. The extra parameter prevents overriding of the virtual TQSlider::setValue. */
void setValue (int, int = 0); // do not override the virtual setValue
/** Sets up the slider by setting all options in one go. */
@ -65,7 +65,7 @@ signals:
void changed (int);
protected slots:
/** Receives the valueChanged signal from QSlider. */
/** Receives the valueChanged signal from TQSlider. */
void sliderValueChanged (int);
/** Keeps track of dragging state. */
//void sliderThumbPressed (void);
@ -74,13 +74,13 @@ protected slots:
protected:
/** Filters keystrokes. */
virtual void keyPressEvent (QKeyEvent*);
virtual void keyPressEvent (TQKeyEvent*);
/** Remember mouse button state. */
virtual void mousePressEvent (QMouseEvent*);
virtual void mousePressEvent (TQMouseEvent*);
/** Remember mouse button state. */
virtual void mouseReleaseEvent (QMouseEvent*);
virtual void mouseReleaseEvent (TQMouseEvent*);
/** Processes the wheel event. Reverses direction when the slider is horizontal. */
virtual void wheelEvent (QWheelEvent*);
virtual void wheelEvent (TQWheelEvent*);
/** Dragging state. */
bool m_dragging;
@ -95,20 +95,20 @@ protected:
/**KPlayer popup frame.
*@author kiriuja
*/
class KPlayerPopupFrame : public QHBox
class KPlayerPopupFrame : public TQHBox
{
Q_OBJECT
public:
/** The KPlayerPopupFrame constructor. Parameters are passed on to QHBox. */
KPlayerPopupFrame (QWidget* parent = 0, const char* name = 0)
: QHBox (parent, name, WType_Popup) { }
/** The KPlayerPopupFrame constructor. Parameters are passed on to TQHBox. */
KPlayerPopupFrame (TQWidget* parent = 0, const char* name = 0)
: TQHBox (parent, name, WType_Popup) { }
/** The KPlayerPopupFrame destructor. Does nothing. */
virtual ~KPlayerPopupFrame();
protected:
/** Closes the popup frame when Alt, Tab, Esc, Enter or Return is pressed. */
virtual void keyPressEvent (QKeyEvent*);
virtual void keyPressEvent (TQKeyEvent*);
};
/**Action representing a popup slider activated by a toolbar button.
@ -120,8 +120,8 @@ class KPlayerPopupSliderAction : public KAction
public:
/** The KPlayerPopupSliderAction constructor. Parameters are passed on to KAction. */
KPlayerPopupSliderAction (const QString& text, const QString& pix, const KShortcut& shortcut,
const QObject* receiver, const char* slot, QObject* parent = 0, const char* name = 0);
KPlayerPopupSliderAction (const TQString& text, const TQString& pix, const KShortcut& shortcut,
const TQObject* receiver, const char* slot, TQObject* parent = 0, const char* name = 0);
/** The KPlayerPopupSliderAction destructor. */
virtual ~KPlayerPopupSliderAction();
@ -149,7 +149,7 @@ class KPlayerSliderAction : public KWidgetAction
public:
/** The KPlayerSliderAction constructor. Parameters are passed on to KAction. */
KPlayerSliderAction (const QString& text, const KShortcut&, const QObject* receiver,
KPlayerSliderAction (const TQString& text, const KShortcut&, const TQObject* receiver,
const char* slot, KActionCollection* parent = 0, const char* name = 0);
/** The KPlayerSliderAction destructor. */
virtual ~KPlayerSliderAction();
@ -159,9 +159,9 @@ public:
{ return (KPlayerSlider*) widget(); }
/** Plugs the slider into the toolbar. */
virtual int plug (QWidget* widget, int index = -1);
virtual int plug (TQWidget* widget, int index = -1);
/** Unplugs the slider from the toolbar. */
virtual void unplug (QWidget* widget);
virtual void unplug (TQWidget* widget);
protected slots:
/** Changes the slider orientation when the toolbar orientation changes. */

@ -14,7 +14,7 @@
***************************************************************************/
#include <klocale.h>
#include <qregexp.h>
#include <tqregexp.h>
#ifdef DEBUG
#define DEBUG_KPLAYER_SOURCE
@ -25,7 +25,7 @@
#include "kplayernode.h"
#include "kplayerproperties.h"
static QRegExp re_semicolon ("; *");
static TQRegExp re_semicolon ("; *");
KPlayerSource::KPlayerSource (KPlayerContainerNode* parent)
{
@ -55,7 +55,7 @@ bool KPlayerSource::has (bool groups)
kdDebugTime() << " ID " << parent() -> id() << "\n";
#endif
bool group;
QString id;
TQString id;
start (groups);
return next (group, id);
}
@ -93,7 +93,7 @@ void KPlayerSource::start (bool groups)
}
}
bool KPlayerSource::next (bool& group, QString& id)
bool KPlayerSource::next (bool& group, TQString& id)
{
#ifdef DEBUG_KPLAYER_SOURCE
kdDebugTime() << "KPlayerSource::next\n";
@ -117,13 +117,13 @@ bool KPlayerSource::next (bool& group, QString& id)
return false;
}
bool KPlayerSource::verify (const QString& id)
bool KPlayerSource::verify (const TQString& id)
{
#ifdef DEBUG_KPLAYER_SOURCE
kdDebugTime() << "KPlayerSource::verify '" << id << "'\n";
#endif
bool group;
QString groupid;
TQString groupid;
start (true);
while ( next (group, groupid) )
if ( groupid == id )
@ -193,7 +193,7 @@ void KPlayerSource::removed (KPlayerContainerNode*, const KPlayerNodeList& nodes
emit nodesRemoved (list);
}
bool KPlayerSource::find (KPlayerContainerNode* node, const QString& id)
bool KPlayerSource::find (KPlayerContainerNode* node, const TQString& id)
{
#ifdef DEBUG_KPLAYER_SOURCE
kdDebugTime() << "KPlayerSource::find '" << id << "'\n";
@ -233,7 +233,7 @@ void KPlayerListSource::enumStart (bool)
kdDebugTime() << "KPlayerListSource::start\n";
kdDebugTime() << " ID " << parent() -> id() << "\n";
#endif
const QStringList& children (parent() -> media() -> children());
const TQStringList& children (parent() -> media() -> children());
m_iterator = children.begin();
m_end = children.end();
#ifdef DEBUG_KPLAYER_SOURCE
@ -241,7 +241,7 @@ void KPlayerListSource::enumStart (bool)
#endif
}
bool KPlayerListSource::enumNext (bool& group, QString& id)
bool KPlayerListSource::enumNext (bool& group, TQString& id)
{
#ifdef DEBUG_KPLAYER_SOURCE
kdDebugTime() << "KPlayerListSource::next\n";
@ -305,7 +305,7 @@ bool KPlayerFixedSource::canRemove (void) const
return false;
}
bool KPlayerFixedSource::enumNext (bool& group, QString& id)
bool KPlayerFixedSource::enumNext (bool& group, TQString& id)
{
#ifdef DEBUG_KPLAYER_SOURCE
kdDebugTime() << "KPlayerFixedSource::next\n";
@ -377,7 +377,7 @@ void KPlayerDevicesSource::enumStart (bool groups)
KPlayerListSource::enumStart (groups);
}
bool KPlayerDevicesSource::enumNext (bool& group, QString& id)
bool KPlayerDevicesSource::enumNext (bool& group, TQString& id)
{
#ifdef DEBUG_KPLAYER_SOURCE
kdDebugTime() << "KPlayerDevicesSource::next\n";
@ -452,7 +452,7 @@ void KPlayerDiskSource::enumStart (bool groups)
m_tracks = groups ? 0 : parent() -> tracks();
}
bool KPlayerDiskSource::enumNext (bool& group, QString& id)
bool KPlayerDiskSource::enumNext (bool& group, TQString& id)
{
#ifdef DEBUG_KPLAYER_SOURCE
kdDebugTime() << "KPlayerDiskSource::next\n";
@ -461,7 +461,7 @@ bool KPlayerDiskSource::enumNext (bool& group, QString& id)
{
++ m_track;
group = false;
id = QString::number (m_track);
id = TQString::number (m_track);
return true;
}
return false;
@ -497,7 +497,7 @@ void KPlayerTunerSource::enumStart (bool groups)
}
}
bool KPlayerTunerSource::enumNext (bool& group, QString& id)
bool KPlayerTunerSource::enumNext (bool& group, TQString& id)
{
#ifdef DEBUG_KPLAYER_SOURCE
kdDebugTime() << "KPlayerTunerSource::next\n";
@ -534,7 +534,7 @@ KPlayerStoreSource::~KPlayerStoreSource()
#endif
}
bool KPlayerStoreSource::enumNext (bool& group, QString& id)
bool KPlayerStoreSource::enumNext (bool& group, TQString& id)
{
#ifdef DEBUG_KPLAYER_SOURCE
kdDebugTime() << "KPlayerStoreSource::next\n";
@ -570,13 +570,13 @@ KPlayerDirectorySource::KPlayerDirectorySource (KPlayerContainerNode* parent)
#endif
m_iterator = 0;
m_directory = parent -> url().path();
m_directory.setFilter (QDir::All);
m_directory.setSorting (QDir::Name);
m_directory.setFilter (TQDir::All);
m_directory.setSorting (TQDir::Name);
m_watch.addDir (m_directory.path());
if ( m_watch.internalMethod() != KDirWatch::Stat )
{
m_watch.startScan();
connect (&m_watch, SIGNAL (dirty (const QString&)), SLOT (dirty (const QString&)));
connect (&m_watch, SIGNAL (dirty (const TQString&)), SLOT (dirty (const TQString&)));
}
#ifdef DEBUG_KPLAYER_SOURCE
kdDebugTime() << " Path " << m_directory.path() << "\n";
@ -607,10 +607,10 @@ bool KPlayerDirectorySource::canRemove (void) const
return false;
}
bool checkMimeType (const QString& path)
bool checkMimeType (const TQString& path)
{
KMimeType::Ptr mimetype (KMimeType::findByPath (path));
const QString& name (mimetype -> name().lower());
const TQString& name (mimetype -> name().lower());
#ifdef DEBUG_KPLAYER_SOURCE
kdDebugTime() << " Mime Type " << name << "\n";
#endif
@ -626,24 +626,24 @@ bool checkMimeType (const QString& path)
|| name.startsWith ("uri/mms") || name.startsWith ("uri/pnm") || name.startsWith ("uri/rtsp");
}
bool checkFileInfo (const QFileInfo* info)
bool checkFileInfo (const TQFileInfo* info)
{
return info -> fileName() != "." && info -> fileName() != ".."
&& info -> exists() && info -> isReadable()
&& (info -> isDir() || checkMimeType (info -> filePath()));
}
void KPlayerDirectorySource::dirty (const QString&)
void KPlayerDirectorySource::dirty (const TQString&)
{
#ifdef DEBUG_KPLAYER_SOURCE
kdDebugTime() << "KPlayerDirectorySource::dirty\n";
kdDebugTime() << " Path " << m_directory.path() << "\n";
#endif
const QFileInfoList* list = m_directory.entryInfoList();
const TQFileInfoList* list = m_directory.entryInfoList();
if ( ! list )
return;
QStringList previous;
for ( QFileInfoListIterator iterator (*list); iterator.current(); ++ iterator )
TQStringList previous;
for ( TQFileInfoListIterator iterator (*list); iterator.current(); ++ iterator )
previous << iterator.current() -> fileName();
#ifdef DEBUG_KPLAYER_SOURCE
kdDebugTime() << " Previous " << previous.count() << "\n";
@ -655,11 +655,11 @@ void KPlayerDirectorySource::dirty (const QString&)
#ifdef DEBUG_KPLAYER_SOURCE
kdDebugTime() << " Current " << list -> count() << "\n";
#endif
QFileInfoList current;
for ( QFileInfoListIterator it (*list); it.current(); ++ it )
TQFileInfoList current;
for ( TQFileInfoListIterator it (*list); it.current(); ++ it )
{
QFileInfo* info = it.current();
QString name (info -> fileName());
TQFileInfo* info = it.current();
TQString name (info -> fileName());
if ( previous.contains (name) )
previous.remove (name);
else if ( checkFileInfo (info) )
@ -674,12 +674,12 @@ void KPlayerDirectorySource::dirty (const QString&)
}
}
bool KPlayerDirectorySource::verify (const QString& id)
bool KPlayerDirectorySource::verify (const TQString& id)
{
#ifdef DEBUG_KPLAYER_SOURCE
kdDebugTime() << "KPlayerDirectorySource::verify '" << id << "'\n";
#endif
QFileInfo info (m_directory, id);
TQFileInfo info (m_directory, id);
return info.exists() && info.isDir();
}
@ -691,24 +691,24 @@ void KPlayerDirectorySource::enumStart (bool groups)
#endif
delete m_iterator;
m_iterator = 0;
const QFileInfoList* list = m_directory.entryInfoList();
const TQFileInfoList* list = m_directory.entryInfoList();
if ( list )
{
m_iterator = new QFileInfoListIterator (*list);
m_iterator = new TQFileInfoListIterator (*list);
#ifdef DEBUG_KPLAYER_SOURCE
kdDebugTime() << " Count " << list -> count() << "\n";
#endif
}
}
bool KPlayerDirectorySource::enumNext (bool& group, QString& id)
bool KPlayerDirectorySource::enumNext (bool& group, TQString& id)
{
#ifdef DEBUG_KPLAYER_SOURCE
kdDebugTime() << "KPlayerDirectorySource::next\n";
#endif
if ( ! m_iterator )
return false;
QFileInfo* info;
TQFileInfo* info;
do
{
info = m_iterator -> current();
@ -763,7 +763,7 @@ void KPlayerOriginSource::enumStart (bool groups)
parent() -> origin() -> source() -> start (groups);
}
bool KPlayerOriginSource::enumNext (bool& group, QString& id)
bool KPlayerOriginSource::enumNext (bool& group, TQString& id)
{
#ifdef DEBUG_KPLAYER_SOURCE
kdDebugTime() << "KPlayerOriginSource::next\n";
@ -791,7 +791,7 @@ void KPlayerOriginSource::added (KPlayerContainerNode*, const KPlayerNodeList& n
#endif
if ( after )
{
QString id (after -> id());
TQString id (after -> id());
if ( ! after -> isContainer() && parent() -> isGroup() && ! parent() -> origin() -> isGroup() )
id = parent() -> origin() -> metaurl (id).url();
after = parent() -> nodeById (id);
@ -815,11 +815,11 @@ void KPlayerOriginSource::removed (KPlayerContainerNode*, const KPlayerNodeList&
#ifdef DEBUG_KPLAYER_SOURCE
kdDebugTime() << "KPlayerOriginSource::removed\n";
#endif
QStringList ids;
TQStringList ids;
KPlayerNodeListIterator iterator (nodes);
while ( KPlayerNode* node = iterator.current() )
{
QString id (node -> id());
TQString id (node -> id());
if ( ! node -> isContainer() && parent() -> isGroup() && ! parent() -> origin() -> isGroup() )
id = parent() -> origin() -> metaurl (id).url();
ids << id;
@ -879,14 +879,14 @@ void KPlayerKeySource::enumStart (bool groups)
parent() -> origin() -> source() -> start (groups);
}
bool KPlayerKeySource::match (const QString& id)
bool KPlayerKeySource::match (const TQString& id)
{
QString value (meta (id, parent() -> parentKey()));
QStringList values (QStringList::split (re_semicolon, value));
TQString value (meta (id, parent() -> parentKey()));
TQStringList values (TQStringList::split (re_semicolon, value));
return values.contains (parent() -> id()) > 0;
}
bool KPlayerKeySource::enumNext (bool& group, QString& id)
bool KPlayerKeySource::enumNext (bool& group, TQString& id)
{
#ifdef DEBUG_KPLAYER_SOURCE
kdDebugTime() << "KPlayerKeySource::next\n";
@ -933,7 +933,7 @@ void KPlayerKeySource::added (const KPlayerNodeList& nodes)
list.append (node);
if ( ! parent() -> groupingKey().isEmpty() )
{
QString value (node -> meta (parent() -> groupingKey()));
TQString value (node -> meta (parent() -> groupingKey()));
if ( ! map.contains (value) && ! parent() -> nodeById (value) )
{
groups.append (new KPlayerCollectionNode);
@ -962,7 +962,7 @@ void KPlayerKeySource::brand (const KPlayerNodeList& nodes)
brand (((KPlayerContainerNode*) node) -> nodes());
else
{
QString value (node -> meta (parent() -> parentKey()));
TQString value (node -> meta (parent() -> parentKey()));
if ( value.isEmpty() )
value = parent() -> id();
else
@ -989,8 +989,8 @@ void KPlayerKeySource::remove (const KPlayerNodeList& nodes)
}
else
{
QString value (node -> meta (parent() -> parentKey()));
QStringList values (QStringList::split (re_semicolon, value));
TQString value (node -> meta (parent() -> parentKey()));
TQStringList values (TQStringList::split (re_semicolon, value));
if ( values.remove (parent() -> id()) <= 0 || values.isEmpty() )
list.append (node);
else
@ -1081,12 +1081,12 @@ void KPlayerSearchSource::enumStart (bool groups)
parent() -> origin() -> source() -> start (groups);
}
bool KPlayerSearchSource::match (const QString& id)
bool KPlayerSearchSource::match (const TQString& id)
{
return meta (id, "Name") == parent() -> id();
}
bool KPlayerSearchSource::enumNext (bool& group, QString& id)
bool KPlayerSearchSource::enumNext (bool& group, TQString& id)
{
#ifdef DEBUG_KPLAYER_SOURCE
kdDebugTime() << "KPlayerSearchSource::next\n";
@ -1163,7 +1163,7 @@ void KPlayerGroupSource::enumStart (bool groups)
}
}
bool KPlayerGroupSource::enumNext (bool& group, QString& id)
bool KPlayerGroupSource::enumNext (bool& group, TQString& id)
{
#ifdef DEBUG_KPLAYER_SOURCE
kdDebugTime() << "KPlayerGroupSource::next\n";
@ -1217,7 +1217,7 @@ void KPlayerGroupSource::added (KPlayerContainerNode*, const KPlayerNodeList& no
KPlayerNodeListIterator iterator (nodes);
while ( KPlayerNode* node = iterator.current() )
{
QString value (node -> meta (parent() -> groupingKey()));
TQString value (node -> meta (parent() -> groupingKey()));
if ( ! map.contains (value) && ! parent() -> nodeById (value) )
{
groups.append (new KPlayerCollectionNode);
@ -1247,7 +1247,7 @@ void KPlayerGroupSource::remove (KPlayerContainerNode* node, const KPlayerNodeLi
return;
node -> remove (nodes);
bool group;
QString id;
TQString id;
node -> source() -> start (true);
while ( node -> source() -> next (group, id) )
remove ((KPlayerContainerNode*) node -> nodeById (id), nodes);

@ -17,7 +17,7 @@
#define KPLAYERSOURCE_H
#include <kdirwatch.h>
#include <qdir.h>
#include <tqdir.h>
class KPlayerCollectionNode;
class KPlayerContainerNode;
@ -34,7 +34,7 @@ class KPlayerNodeList;
/**Source class, responsible for routing of subnodes into and out of the node.
*@author kiriuja
*/
class KPlayerSource : public QObject
class KPlayerSource : public TQObject
{
Q_OBJECT
@ -56,9 +56,9 @@ public:
/** Initializes the node retrieval process. */
void start (bool groups);
/** Retrieves the id of the next node. */
bool next (bool& group, QString& id);
bool next (bool& group, TQString& id);
/** Verifies the given id. */
virtual bool verify (const QString& id);
virtual bool verify (const TQString& id);
/** Saves the node data into the source. */
virtual void save (void);
@ -85,17 +85,17 @@ protected:
/** Initializes the node retrieval process. */
virtual void enumStart (bool groups) = 0;
/** Retrieves the id of the next node. */
virtual bool enumNext (bool& group, QString& id) = 0;
virtual bool enumNext (bool& group, TQString& id) = 0;
/** Connects the given node and all subnodes. */
void connectNodes (KPlayerContainerNode* node);
/** Searches for a node with the given ID in the given node and its subnodes. */
bool find (KPlayerContainerNode* node, const QString& id);
bool find (KPlayerContainerNode* node, const TQString& id);
/** Parent node. */
KPlayerContainerNode* m_parent;
/** Parent node iterator. */
QPtrListIterator<KPlayerNode>* m_iterator;
TQPtrListIterator<KPlayerNode>* m_iterator;
/** Flag stored by start() for next(). */
bool m_groups;
@ -129,12 +129,12 @@ protected:
/** Initializes the node retrieval process. */
virtual void enumStart (bool groups);
/** Retrieves the id of the next node. */
virtual bool enumNext (bool& group, QString& id);
virtual bool enumNext (bool& group, TQString& id);
/** Current iterator. */
QStringList::ConstIterator m_iterator;
TQStringList::ConstIterator m_iterator;
/** End iterator. */
QStringList::ConstIterator m_end;
TQStringList::ConstIterator m_end;
};
/**Fixed source class, handles subnodes of a fixed node.
@ -159,10 +159,10 @@ public:
protected:
/** Retrieves the id of the next node. */
virtual bool enumNext (bool& group, QString& id);
virtual bool enumNext (bool& group, TQString& id);
/** List of fixed IDs. */
QStringList m_fixed_ids;
TQStringList m_fixed_ids;
};
/**Root source class, handles subnodes of the root node.
@ -211,10 +211,10 @@ protected:
/** Initializes the node retrieval process. */
virtual void enumStart (bool groups);
/** Retrieves the id of the next node. */
virtual bool enumNext (bool& group, QString& id);
virtual bool enumNext (bool& group, TQString& id);
/** List of pending devices. */
QStringList m_pending;
TQStringList m_pending;
};
/**Device source class, handles device nodes.
@ -259,7 +259,7 @@ protected:
/** Initializes the node retrieval process. */
virtual void enumStart (bool groups);
/** Retrieves the id of the next node. */
virtual bool enumNext (bool& group, QString& id);
virtual bool enumNext (bool& group, TQString& id);
/** Number of tracks. */
int m_tracks;
@ -284,10 +284,10 @@ protected:
/** Initializes the node retrieval process. */
virtual void enumStart (bool groups);
/** Retrieves the id of the next node. */
virtual bool enumNext (bool& group, QString& id);
virtual bool enumNext (bool& group, TQString& id);
/** List of pending devices. */
QStringList m_pending;
TQStringList m_pending;
/** List source. */
KPlayerListSource m_list;
};
@ -310,7 +310,7 @@ public:
protected:
/** Retrieves the id of the next node. */
virtual bool enumNext (bool& group, QString& id);
virtual bool enumNext (bool& group, TQString& id);
};
/**Directory source class, handles subnodes in filesystem directory.
@ -334,22 +334,22 @@ public:
virtual bool canRemove (void) const;
/** Verifies the given id. */
virtual bool verify (const QString& id);
virtual bool verify (const TQString& id);
protected slots:
/** Receives dirty signal from directory watch. */
void dirty (const QString& path);
void dirty (const TQString& path);
protected:
/** Initializes the node retrieval process. */
virtual void enumStart (bool groups);
/** Retrieves the id of the next node. */
virtual bool enumNext (bool& group, QString& id);
virtual bool enumNext (bool& group, TQString& id);
/** Directory. */
QDir m_directory;
TQDir m_directory;
/** Entry info iterator. */
QFileInfoListIterator* m_iterator;
TQFileInfoListIterator* m_iterator;
/** Directory watch. */
KDirWatch m_watch;
};
@ -390,7 +390,7 @@ protected:
/** Initializes the node retrieval process. */
virtual void enumStart (bool groups);
/** Retrieves the id of the next node. */
virtual bool enumNext (bool& group, QString& id);
virtual bool enumNext (bool& group, TQString& id);
};
#if 0
@ -415,7 +415,7 @@ public:
{ return (KPlayerCollectionNode*) m_parent; }
/** Matches the meta information for the given ID against the criteria. */
bool match (const QString& id);
bool match (const TQString& id);
/** Adds the given nodes into the list of nodes, optionally linking to the origin. */
virtual KPlayerNode* add (const KPlayerNodeList& nodes, bool link, KPlayerNode* after = 0);
@ -435,7 +435,7 @@ protected:
/** Initializes the node retrieval process. */
virtual void enumStart (bool groups);
/** Retrieves the id of the next node. */
virtual bool enumNext (bool& group, QString& id);
virtual bool enumNext (bool& group, TQString& id);
};
/**Group source class, handles subnodes of a grouped node.
@ -471,7 +471,7 @@ protected:
/** Initializes the node retrieval process. */
virtual void enumStart (bool groups);
/** Retrieves the id of the next node. */
virtual bool enumNext (bool& group, QString& id);
virtual bool enumNext (bool& group, TQString& id);
/** Removes the given nodes from the given node and its subnodes. */
void remove (KPlayerContainerNode* node, const KPlayerNodeList& nodes);
@ -522,7 +522,7 @@ public:
virtual bool canRemove (void) const;
/** Matches the meta information for the given ID against the criteria. */
bool match (const QString& id);
bool match (const TQString& id);
//public slots:
/** Adds the given nodes into the list of nodes. */
@ -534,7 +534,7 @@ protected:
/** Initializes the node retrieval process. */
virtual void enumStart (bool groups);
/** Retrieves the id of the next node. */
virtual bool enumNext (bool& group, QString& id);
virtual bool enumNext (bool& group, TQString& id);
/** Current node. */
KPlayerContainerNode* m_current;

@ -15,8 +15,8 @@
#include <kcursor.h>
#include <klocale.h>
#include <qtimer.h>
#include <qwhatsthis.h>
#include <tqtimer.h>
#include <tqwhatsthis.h>
#ifdef DEBUG
#define DEBUG_KPLAYER_WIDGET
@ -57,18 +57,18 @@ void KPlayerWidgetUnmapHandler (uint wid)
kPlayerWidget() -> unmapHandler (wid);
}
KPlayerWidget::KPlayerWidget (QWidget *parent, const char *name)
: QWidget (parent, name)
KPlayerWidget::KPlayerWidget (TQWidget *parent, const char *name)
: TQWidget (parent, name)
{
#ifdef DEBUG_KPLAYER_WIDGET
kdDebugTime() << "Creating widget\n";
#endif
connect (kPlayerProcess(), SIGNAL (stateChanged (KPlayerProcess::State, KPlayerProcess::State)), SLOT (playerStateChanged (KPlayerProcess::State, KPlayerProcess::State)));
QWhatsThis::add (this, i18n("Video area is the central part of KPlayer. When playing a file that has video, it will display the video and optionally subtitles. Normally it will be hidden when playing an audio only file."));
setFocusPolicy (QWidget::NoFocus);
TQWhatsThis::add (this, i18n("Video area is the central part of KPlayer. When playing a file that has video, it will display the video and optionally subtitles. Normally it will be hidden when playing an audio only file."));
setFocusPolicy (TQWidget::NoFocus);
//setEnabled (false);
setEraseColor (QColor (0, 0, 0));
setMinimumSize (QSize (0, 0));
setEraseColor (TQColor (0, 0, 0));
setMinimumSize (TQSize (0, 0));
KPlayerSetX11EventFilter();
}
@ -115,20 +115,20 @@ void KPlayerWidget::unmapHandler (uint wid)
}
}
void KPlayerWidget::showEvent (QShowEvent* event)
void KPlayerWidget::showEvent (TQShowEvent* event)
{
QWidget::showEvent (event);
TQWidget::showEvent (event);
//if ( kPlayerProcess() -> is09Version() )
sendConfigureEvent();
}
void KPlayerWidget::resizeEvent (QResizeEvent* event)
void KPlayerWidget::resizeEvent (TQResizeEvent* event)
{
#ifdef DEBUG_KPLAYER_WIDGET
kdDebugTime() << "Widget " << event -> oldSize().width() << "x" << event -> oldSize().height()
<< " => " << event -> size().width() << "x" << event -> size().height() << "\n";
#endif
QWidget::resizeEvent (event);
TQWidget::resizeEvent (event);
/*if ( kPlayerProcess() -> is09Version() )
{
KPlayerX11UnmapWindow (winId());
@ -146,73 +146,73 @@ void KPlayerWidget::resizeEvent (QResizeEvent* event)
#endif
}
void KPlayerWidget::mouseMoveEvent (QMouseEvent* event)
void KPlayerWidget::mouseMoveEvent (TQMouseEvent* event)
{
QWidget::mouseMoveEvent (event);
TQWidget::mouseMoveEvent (event);
event -> ignore();
}
void KPlayerWidget::mousePressEvent (QMouseEvent* event)
void KPlayerWidget::mousePressEvent (TQMouseEvent* event)
{
#ifdef DEBUG_KPLAYER_WIDGET
kdDebugTime() << "KPlayerWidget mouse press event\n";
#endif
QWidget::mousePressEvent (event);
TQWidget::mousePressEvent (event);
event -> ignore();
}
void KPlayerWidget::mouseReleaseEvent (QMouseEvent* event)
void KPlayerWidget::mouseReleaseEvent (TQMouseEvent* event)
{
#ifdef DEBUG_KPLAYER_WIDGET
kdDebugTime() << "KPlayerWidget mouse release event\n";
#endif
QWidget::mouseReleaseEvent (event);
TQWidget::mouseReleaseEvent (event);
event -> ignore();
}
void KPlayerWidget::mouseDoubleClickEvent (QMouseEvent* event)
void KPlayerWidget::mouseDoubleClickEvent (TQMouseEvent* event)
{
#ifdef DEBUG_KPLAYER_WIDGET
kdDebugTime() << "KPlayerWidget mouse double click\n";
#endif
QWidget::mouseDoubleClickEvent (event);
TQWidget::mouseDoubleClickEvent (event);
event -> ignore();
}
void KPlayerWidget::contextMenuEvent (QContextMenuEvent* event)
void KPlayerWidget::contextMenuEvent (TQContextMenuEvent* event)
{
#ifdef DEBUG_KPLAYER_WIDGET
kdDebugTime() << "KPlayerWidget context menu event\n";
#endif
QWidget::contextMenuEvent (event);
TQWidget::contextMenuEvent (event);
event -> ignore();
}
void KPlayerWidget::wheelEvent (QWheelEvent* event)
void KPlayerWidget::wheelEvent (TQWheelEvent* event)
{
#ifdef DEBUG_KPLAYER_WIDGET
kdDebugTime() << "Widget wheel event: delta " << event -> delta() << " position " << event -> x() << "x" << event -> y()
<< " global " << event -> globalX() << "x" << event -> globalY() << " state " << event -> state() << " orientation "
<< event -> orientation() << " accepted " << event -> isAccepted() << " spontaneous " << event -> spontaneous() << "\n";
#endif
QWidget::wheelEvent (event);
TQWidget::wheelEvent (event);
event -> ignore();
}
void KPlayerWidget::focusInEvent (QFocusEvent* event)
void KPlayerWidget::focusInEvent (TQFocusEvent* event)
{
#ifdef DEBUG_KPLAYER_WIDGET
kdDebugTime() << "Widget focus in event\n";
#endif
QWidget::focusInEvent (event);
TQWidget::focusInEvent (event);
}
void KPlayerWidget::focusOutEvent (QFocusEvent* event)
void KPlayerWidget::focusOutEvent (TQFocusEvent* event)
{
#ifdef DEBUG_KPLAYER_WIDGET
kdDebugTime() << "Widget focus out event\n";
#endif
QWidget::focusOutEvent (event);
TQWidget::focusOutEvent (event);
}
void KPlayerWidget::playerStateChanged (KPlayerProcess::State state, KPlayerProcess::State)
@ -230,8 +230,8 @@ void KPlayerWidget::playerStateChanged (KPlayerProcess::State state, KPlayerProc
sendConfigureEvent();
}
KPlayerWorkspace::KPlayerWorkspace (QWidget* parent, const char* name)
: QWidget (parent, name), m_timer (this)
KPlayerWorkspace::KPlayerWorkspace (TQWidget* parent, const char* name)
: TQWidget (parent, name), m_timer (this)
{
#ifdef DEBUG_KPLAYER_WORKSPACE
kdDebugTime() << "Creating workspace\n";
@ -241,22 +241,22 @@ KPlayerWorkspace::KPlayerWorkspace (QWidget* parent, const char* name)
connect (&m_timer, SIGNAL (timeout()), SLOT (cursorTimeout()));
connect (kPlayerProcess(), SIGNAL (stateChanged (KPlayerProcess::State, KPlayerProcess::State)), SLOT (playerStateChanged (KPlayerProcess::State, KPlayerProcess::State)));
connect (kPlayerProcess(), SIGNAL (sizeAvailable()), SLOT (setMouseCursorTracking()));
QWhatsThis::add (this, i18n("Video area is the central part of KPlayer. When playing a file that has video, it will display the video and optionally subtitles. Normally it will be hidden when playing an audio only file."));
setEraseColor (QColor (0, 0, 0));
setMinimumSize (QSize (0, 0));
setFocusPolicy (QWidget::StrongFocus);
QWidget* proxy = new QWidget (parent);
proxy -> setEraseColor (QColor (0, 0, 0));
proxy -> setFocusPolicy (QWidget::StrongFocus);
TQWhatsThis::add (this, i18n("Video area is the central part of KPlayer. When playing a file that has video, it will display the video and optionally subtitles. Normally it will be hidden when playing an audio only file."));
setEraseColor (TQColor (0, 0, 0));
setMinimumSize (TQSize (0, 0));
setFocusPolicy (TQWidget::StrongFocus);
TQWidget* proxy = new TQWidget (parent);
proxy -> setEraseColor (TQColor (0, 0, 0));
proxy -> setFocusPolicy (TQWidget::StrongFocus);
proxy -> setGeometry (-4, -4, 1, 1);
proxy -> lower();
proxy -> show();
setFocusProxy (proxy);
m_hidden_widget = new QWidget (this);
m_hidden_widget = new TQWidget (this);
m_hidden_widget -> setGeometry (-10, -10, 5, 5);
}
void KPlayerWorkspace::setDisplaySize (QSize size)
void KPlayerWorkspace::setDisplaySize (TQSize size)
{
#ifdef DEBUG_KPLAYER_WORKSPACE
kdDebugTime() << "Workspace::setDisplaySize (" << size.width() << "x" << size.height() << ")\n";
@ -272,17 +272,17 @@ void KPlayerWorkspace::resizeHandler (bool resizing)
return;
m_resizing = resizing;
if ( ! resizing )
QTimer::singleShot (0, this, SIGNAL(userResize()));
TQTimer::singleShot (0, this, SIGNAL(userResize()));
}
void KPlayerWorkspace::resizeEvent (QResizeEvent* event)
void KPlayerWorkspace::resizeEvent (TQResizeEvent* event)
{
static bool recursion = false;
#ifdef DEBUG_KPLAYER_WORKSPACE
kdDebugTime() << "WSpace " << event -> oldSize(). width() << "x" << event -> oldSize(). height()
<< " => " << event -> size(). width() << "x" << event -> size(). height() << "\n";
#endif
QWidget::resizeEvent (event);
TQWidget::resizeEvent (event);
if ( ! recursion && ! m_resizing )
{
recursion = true;
@ -291,13 +291,13 @@ void KPlayerWorkspace::resizeEvent (QResizeEvent* event)
}
}
void KPlayerWorkspace::mouseMoveEvent (QMouseEvent* event)
void KPlayerWorkspace::mouseMoveEvent (TQMouseEvent* event)
{
QWidget::mouseMoveEvent (event);
TQWidget::mouseMoveEvent (event);
mouseActivity();
}
void KPlayerWorkspace::contextMenuEvent (QContextMenuEvent* event)
void KPlayerWorkspace::contextMenuEvent (TQContextMenuEvent* event)
{
#ifdef DEBUG_KPLAYER_WORKSPACE
kdDebugTime() << "KPlayerWorkspace context menu\n";
@ -306,13 +306,13 @@ void KPlayerWorkspace::contextMenuEvent (QContextMenuEvent* event)
event -> accept();
}
void KPlayerWorkspace::mousePressEvent (QMouseEvent* event)
void KPlayerWorkspace::mousePressEvent (TQMouseEvent* event)
{
#ifdef DEBUG_KPLAYER_WIDGET
kdDebugTime() << "KPlayerWorkspace mouse press event\n";
#endif
QWidget::mousePressEvent (event);
if ( kPlayerEngine() -> light() && event -> button() == Qt::RightButton )
TQWidget::mousePressEvent (event);
if ( kPlayerEngine() -> light() && event -> button() == TQt::RightButton )
{
emit contextMenu (event -> globalPos());
event -> accept();
@ -322,35 +322,35 @@ void KPlayerWorkspace::mousePressEvent (QMouseEvent* event)
mouseActivity();
}
void KPlayerWorkspace::mouseReleaseEvent (QMouseEvent* event)
void KPlayerWorkspace::mouseReleaseEvent (TQMouseEvent* event)
{
#ifdef DEBUG_KPLAYER_WIDGET
kdDebugTime() << "KPlayerWorkspace mouse release event\n";
#endif
QWidget::mouseReleaseEvent (event);
TQWidget::mouseReleaseEvent (event);
event -> ignore();
mouseActivity();
}
void KPlayerWorkspace::mouseDoubleClickEvent (QMouseEvent* event)
void KPlayerWorkspace::mouseDoubleClickEvent (TQMouseEvent* event)
{
#ifdef DEBUG_KPLAYER_WORKSPACE
kdDebugTime() << "KPlayerWorkspace mouse double click\n";
#endif
QWidget::mouseDoubleClickEvent (event);
TQWidget::mouseDoubleClickEvent (event);
kPlayerEngine() -> doubleClick();
event -> accept();
mouseActivity();
}
void KPlayerWorkspace::wheelEvent (QWheelEvent* event)
void KPlayerWorkspace::wheelEvent (TQWheelEvent* event)
{
#ifdef DEBUG_KPLAYER_WORKSPACE
kdDebugTime() << "Workspace wheel event: delta " << event -> delta() << " position " << event -> x() << "x" << event -> y()
<< " global " << event -> globalX() << "x" << event -> globalY() << " state " << event -> state() << " orientation "
<< event -> orientation() << " accepted " << event -> isAccepted() << " spontaneous " << event -> spontaneous() << "\n";
#endif
QWidget::wheelEvent (event);
TQWidget::wheelEvent (event);
kPlayerEngine() -> wheel (event -> delta(), event -> state());
event -> accept();
mouseActivity();
@ -358,7 +358,7 @@ void KPlayerWorkspace::wheelEvent (QWheelEvent* event)
void KPlayerWorkspace::windowActivationChange (bool old)
{
QWidget::windowActivationChange (old);
TQWidget::windowActivationChange (old);
bool active = isActiveWindow();
#ifdef DEBUG_KPLAYER_WORKSPACE
kdDebugTime() << "Workspace activation " << old << " -> " << active << "\n";
@ -371,20 +371,20 @@ void KPlayerWorkspace::windowActivationChange (bool old)
#endif
}
void KPlayerWorkspace::focusInEvent (QFocusEvent* event)
void KPlayerWorkspace::focusInEvent (TQFocusEvent* event)
{
#ifdef DEBUG_KPLAYER_WORKSPACE
kdDebugTime() << "Workspace focus in event\n";
#endif
QWidget::focusInEvent (event);
TQWidget::focusInEvent (event);
}
void KPlayerWorkspace::focusOutEvent (QFocusEvent* event)
void KPlayerWorkspace::focusOutEvent (TQFocusEvent* event)
{
#ifdef DEBUG_KPLAYER_WORKSPACE
kdDebugTime() << "Workspace focus out event\n";
#endif
QWidget::focusOutEvent (event);
TQWidget::focusOutEvent (event);
}
void KPlayerWorkspace::mouseActivity (void)

@ -16,22 +16,22 @@
#ifndef KPLAYERWIDGET_H
#define KPLAYERWIDGET_H
#include <qtimer.h>
#include <qwidget.h>
#include <tqtimer.h>
#include <tqwidget.h>
#include "kplayerprocess.h"
/** The KPlayer widget where mplayer video output is displayed.
*@author kiriuja
*/
class KPlayerWidget : public QWidget
class KPlayerWidget : public TQWidget
{
Q_OBJECT
public:
/** The widget constructor. Initializes internal data structures.
Parameters are passed to the QWidget constructor. */
KPlayerWidget (QWidget* parent = 0, const char* name = 0);
Parameters are passed to the TQWidget constructor. */
KPlayerWidget (TQWidget* parent = 0, const char* name = 0);
/** The widget destructor. Frees allocated memory. */
virtual ~KPlayerWidget();
@ -43,24 +43,24 @@ public:
protected:
/** Processes the widget resize event. Ensures that MPlayer
continues to display video. Emits resized signal. */
virtual void resizeEvent (QResizeEvent*);
virtual void resizeEvent (TQResizeEvent*);
/** Processes the widget show event. Ensures that MPlayer
continues to display video with correct size. */
virtual void showEvent (QShowEvent*);
virtual void showEvent (TQShowEvent*);
/** Ignores a mouse move event. */
virtual void mouseMoveEvent (QMouseEvent*);
virtual void mouseMoveEvent (TQMouseEvent*);
/** Ignores a mouse press event. */
virtual void mousePressEvent (QMouseEvent*);
virtual void mousePressEvent (TQMouseEvent*);
/** Ignores a mouse release event. */
virtual void mouseReleaseEvent (QMouseEvent*);
virtual void mouseReleaseEvent (TQMouseEvent*);
/** Ignores a mouse double click event. */
virtual void mouseDoubleClickEvent (QMouseEvent*);
virtual void mouseDoubleClickEvent (TQMouseEvent*);
/** Ignores a context menu event. */
virtual void contextMenuEvent (QContextMenuEvent*);
virtual void contextMenuEvent (TQContextMenuEvent*);
/** Ignores a wheel event. */
virtual void wheelEvent (QWheelEvent*);
virtual void focusInEvent (QFocusEvent*);
virtual void focusOutEvent (QFocusEvent*);
virtual void wheelEvent (TQWheelEvent*);
virtual void focusInEvent (TQFocusEvent*);
virtual void focusOutEvent (TQFocusEvent*);
protected slots:
/** Receives the stateChanged signal from KPlayerProcess. */
@ -70,25 +70,25 @@ protected slots:
/** The KPlayer workspace that contains the video widget.
*@author kiriuja
*/
class KPlayerWorkspace : public QWidget
class KPlayerWorkspace : public TQWidget
{
Q_OBJECT
public:
/** The workspace constructor. Creates the KPlayerWidget.
Parameters are passed to the QWidget constructor. */
KPlayerWorkspace (QWidget* parent = 0, const char* name = 0);
Parameters are passed to the TQWidget constructor. */
KPlayerWorkspace (TQWidget* parent = 0, const char* name = 0);
/** Returns a pointer to the KPlayerWidget object. */
KPlayerWidget* widget (void) const
{ return m_widget; }
/** Returns a pointer to the hidden widget object. */
QWidget* hiddenWidget (void) const
TQWidget* hiddenWidget (void) const
{ return m_hidden_widget; }
/** Resizes the widget to the given size. */
void setDisplaySize (QSize);
void setDisplaySize (TQSize);
/** Handles resizing done by the window manager.
* @param resizing true if resizing has started, false if resizing has completed
@ -101,22 +101,22 @@ public:
protected:
/** Processes the widget resize event. Resizes the KPlayerWidget to the video size. */
virtual void resizeEvent (QResizeEvent*);
virtual void resizeEvent (TQResizeEvent*);
/** Shows mouse cursor and starts timer. */
virtual void mouseMoveEvent (QMouseEvent*);
virtual void mouseMoveEvent (TQMouseEvent*);
/** Emits context menu signal on a right click in a part. */
virtual void mousePressEvent (QMouseEvent*);
virtual void mousePressEvent (TQMouseEvent*);
/** Ignores a mouse release event. */
virtual void mouseReleaseEvent (QMouseEvent*);
virtual void mouseReleaseEvent (TQMouseEvent*);
/** Processes mouse double click event. Sends a doubleClick signal to the engine. */
virtual void mouseDoubleClickEvent (QMouseEvent*);
virtual void mouseDoubleClickEvent (TQMouseEvent*);
/** Processes the wheel event. Sends a wheelZoom signal to the engine. */
virtual void wheelEvent (QWheelEvent*);
virtual void wheelEvent (TQWheelEvent*);
/** Emits the contextMenu signal. */
virtual void contextMenuEvent (QContextMenuEvent*);
virtual void contextMenuEvent (TQContextMenuEvent*);
virtual void windowActivationChange (bool);
virtual void focusInEvent (QFocusEvent*);
virtual void focusOutEvent (QFocusEvent*);
virtual void focusInEvent (TQFocusEvent*);
virtual void focusOutEvent (TQFocusEvent*);
/** Starts timer and sets the cursor. */
void mouseActivity (void);
@ -127,7 +127,7 @@ protected:
KPlayerWidget* m_widget;
/** The pointer to the hidden widget object. */
QWidget* m_hidden_widget;
TQWidget* m_hidden_widget;
// Following should be private
/** Window manager is resizing the top level window. */
@ -135,7 +135,7 @@ protected:
/** Mouse activity indicator. */
bool m_mouse_activity;
/** Mouse activity timer. */
QTimer m_timer;
TQTimer m_timer;
signals:
/** Emitted when the widget is resized. */
@ -143,7 +143,7 @@ signals:
/** Emitted when the widget is resized by the user. */
void userResize (void);
/** Emitted when the context menu event is received. */
void contextMenu (const QPoint& global_position);
void contextMenu (const TQPoint& global_position);
protected slots:
/** Set the mouse cursor and tracking. */

@ -313,31 +313,31 @@ int KPlayerX11EventFilter (XEvent* event)
return 0;
}
Display* qt_xdisplay (void);
extern Time qt_x_time;
Display* tqt_xdisplay (void);
extern Time tqt_x_time;
void KPlayerX11SetInputFocus (uint id)
{
XSetInputFocus (qt_xdisplay(), id, RevertToNone, qt_x_time);
XFlush (qt_xdisplay());
XSetInputFocus (tqt_xdisplay(), id, RevertToNone, tqt_x_time);
XFlush (tqt_xdisplay());
}
void KPlayerX11MapWindow (uint id)
{
XMapWindow (qt_xdisplay(), id);
XFlush (qt_xdisplay());
XMapWindow (tqt_xdisplay(), id);
XFlush (tqt_xdisplay());
}
void KPlayerX11UnmapWindow (uint id)
{
XUnmapWindow (qt_xdisplay(), id);
XFlush (qt_xdisplay());
XUnmapWindow (tqt_xdisplay(), id);
XFlush (tqt_xdisplay());
}
void KPlayerX11ClearExposeWindow (uint id)
{
XClearArea (qt_xdisplay(), id, 0, 0, 0, 0, True);
XFlush (qt_xdisplay());
XClearArea (tqt_xdisplay(), id, 0, 0, 0, 0, True);
XFlush (tqt_xdisplay());
}
void KPlayerX11SendConfigureEvent (uint id, int w, int h)
@ -345,9 +345,9 @@ void KPlayerX11SendConfigureEvent (uint id, int w, int h)
#ifdef DEBUG_KPLAYER_RESIZE
kdDebugTime() << "KPlayerX11SendConfigureEvent " << id << " " << w << "x" << h << "\n";
#endif
XConfigureEvent event = { ConfigureNotify, 0, True, qt_xdisplay(), id, id, 0, 0, w, h, 0, None, False };
XSendEvent (qt_xdisplay(), event.event, True, StructureNotifyMask, (XEvent*) &event);
XFlush (qt_xdisplay());
XConfigureEvent event = { ConfigureNotify, 0, True, tqt_xdisplay(), id, id, 0, 0, w, h, 0, None, False };
XSendEvent (tqt_xdisplay(), event.event, True, StructureNotifyMask, (XEvent*) &event);
XFlush (tqt_xdisplay());
}
void KPlayerX11SendConfigureEvent (uint id, int x, int y, int w, int h)
@ -355,15 +355,15 @@ void KPlayerX11SendConfigureEvent (uint id, int x, int y, int w, int h)
#ifdef DEBUG_KPLAYER_RESIZE
kdDebugTime() << "KPlayerX11SendConfigureEvent " << id << " " << x << "x" << y << " " << w << "x" << h << "\n";
#endif
XConfigureEvent event = { ConfigureNotify, 0, True, qt_xdisplay(), id, id, x, y, w, h, 0, None, False };
XSendEvent (qt_xdisplay(), event.event, True, StructureNotifyMask, (XEvent*) &event);
XFlush (qt_xdisplay());
XConfigureEvent event = { ConfigureNotify, 0, True, tqt_xdisplay(), id, id, x, y, w, h, 0, None, False };
XSendEvent (tqt_xdisplay(), event.event, True, StructureNotifyMask, (XEvent*) &event);
XFlush (tqt_xdisplay());
}
void KPlayerX11DiscardConfigureEvents (uint id)
{
XEvent event;
while ( XCheckTypedWindowEvent (qt_xdisplay(), id, ConfigureNotify, &event) )
while ( XCheckTypedWindowEvent (tqt_xdisplay(), id, ConfigureNotify, &event) )
#ifdef DEBUG_KPLAYER_RESIZE
kdDebugTime() << "Discarded ConfigureEvent " << event.xconfigure.event << " " << event.xconfigure.window
<< " " << event.xconfigure.send_event << " " << event.xconfigure.serial
@ -383,7 +383,7 @@ void KPlayerX11GetKeyboardMouseState (uint id)
Window root, child;
int root_x, root_y, win_x, win_y;
uint state;
if ( XQueryPointer (qt_xdisplay(), id, &root, &child, &root_x, &root_y, &win_x, &win_y, &state) )
if ( XQueryPointer (tqt_xdisplay(), id, &root, &child, &root_x, &root_y, &win_x, &win_y, &state) )
{
#ifdef DEBUG_KPLAYER_KEY
kdDebugTime() << " root " << root << " " << root_x << "x" << root_y << " child " << child
@ -393,21 +393,21 @@ void KPlayerX11GetKeyboardMouseState (uint id)
}
}
extern QX11EventFilter qt_set_x11_event_filter (QX11EventFilter);
extern QX11EventFilter tqt_set_x11_event_filter (QX11EventFilter);
static int KPlayerX11EventFilterCount = 0;
void KPlayerSetX11EventFilter (void)
{
if ( ! KPlayerX11EventFilterCount ++ )
PreviousX11EventFilter = qt_set_x11_event_filter (KPlayerX11EventFilter);
PreviousX11EventFilter = tqt_set_x11_event_filter (KPlayerX11EventFilter);
}
void KPlayerResetX11EventFilter (void)
{
if ( -- KPlayerX11EventFilterCount )
return;
qt_set_x11_event_filter (PreviousX11EventFilter);
tqt_set_x11_event_filter (PreviousX11EventFilter);
PreviousX11EventFilter = 0;
}

Loading…
Cancel
Save