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

@ -15,8 +15,8 @@
#include <kaction.h> #include <kaction.h>
#include <klocale.h> #include <klocale.h>
#include <qpopupmenu.h> #include <tqpopupmenu.h>
#include <qregexp.h> #include <tqregexp.h>
#ifdef DEBUG #ifdef DEBUG
#include <kdebug.h> #include <kdebug.h>
@ -28,9 +28,9 @@ kdbgstream kdDebugTime (void);
#include "kplayeractionlist.moc" #include "kplayeractionlist.moc"
#include "kplayerproperties.h" #include "kplayerproperties.h"
KPlayerActionList::KPlayerActionList (const QString& text, const QString& status, KPlayerActionList::KPlayerActionList (const TQString& text, const TQString& status,
const QString& whatsthis, QObject* parent, const char* name) const TQString& whatsthis, TQObject* parent, const char* name)
: QObject (parent, name), m_text (text), m_status (status), m_whatsthis (whatsthis) : TQObject (parent, name), m_text (text), m_status (status), m_whatsthis (whatsthis)
{ {
#ifdef DEBUG_KPLAYER_ACTIONLIST #ifdef DEBUG_KPLAYER_ACTIONLIST
kdDebugTime() << "Creating action list\n"; kdDebugTime() << "Creating action list\n";
@ -65,20 +65,20 @@ void KPlayerActionList::plug (void)
#endif #endif
for ( i = 0; i < count; i ++ ) for ( i = 0; i < count; i ++ )
{ {
QWidget* container = action -> container (i); TQWidget* container = action -> container (i);
#ifdef DEBUG_KPLAYER_ACTIONLIST #ifdef DEBUG_KPLAYER_ACTIONLIST
kdDebugTime() << " Container " << container -> className() << " " << container -> name ("<unnamed>") << "\n"; kdDebugTime() << " Container " << container -> className() << " " << container -> name ("<unnamed>") << "\n";
#endif #endif
if ( container -> inherits ("QPopupMenu") ) if ( container -> inherits ("TQPopupMenu") )
{ {
QPopupMenu* menu = (QPopupMenu*) container; TQPopupMenu* menu = (TQPopupMenu*) container;
int index = menu -> indexOf (action -> itemId (i)); int index = menu -> indexOf (action -> itemId (i));
#ifdef DEBUG_KPLAYER_ACTIONLIST #ifdef DEBUG_KPLAYER_ACTIONLIST
kdDebugTime() << " Index " << index << "\n"; kdDebugTime() << " Index " << index << "\n";
#endif #endif
if ( index > 0 ) if ( index > 0 )
{ {
QMenuItem* item = menu -> findItem (menu -> idAt (index - 1)); TQMenuItem* item = menu -> findItem (menu -> idAt (index - 1));
if ( ! item || ! item -> isSeparator() ) if ( ! item || ! item -> isSeparator() )
menu -> insertSeparator (index); menu -> insertSeparator (index);
} }
@ -91,20 +91,20 @@ void KPlayerActionList::plug (void)
#endif #endif
for ( i = 0; i < count; i ++ ) for ( i = 0; i < count; i ++ )
{ {
QWidget* container = action -> container (i); TQWidget* container = action -> container (i);
#ifdef DEBUG_KPLAYER_ACTIONLIST #ifdef DEBUG_KPLAYER_ACTIONLIST
kdDebugTime() << " Container " << container -> className() << " " << container -> name ("<unnamed>") << "\n"; kdDebugTime() << " Container " << container -> className() << " " << container -> name ("<unnamed>") << "\n";
#endif #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; int index = menu -> indexOf (action -> itemId (i)) + 1;
#ifdef DEBUG_KPLAYER_ACTIONLIST #ifdef DEBUG_KPLAYER_ACTIONLIST
kdDebugTime() << " Index " << index << "\n"; kdDebugTime() << " Index " << index << "\n";
#endif #endif
if ( index > 0 && index < int (menu -> count()) ) 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() ) if ( ! item || ! item -> isSeparator() )
menu -> insertSeparator (index); menu -> insertSeparator (index);
} }
@ -131,20 +131,20 @@ void KPlayerActionList::unplug (void)
#endif #endif
for ( i = 0; i < count; i ++ ) for ( i = 0; i < count; i ++ )
{ {
QWidget* container = action -> container (i); TQWidget* container = action -> container (i);
#ifdef DEBUG_KPLAYER_ACTIONLIST #ifdef DEBUG_KPLAYER_ACTIONLIST
kdDebugTime() << " Container " << container -> className() << " " << container -> name ("<unnamed>") << "\n"; kdDebugTime() << " Container " << container -> className() << " " << container -> name ("<unnamed>") << "\n";
#endif #endif
if ( container -> inherits ("QPopupMenu") ) if ( container -> inherits ("TQPopupMenu") )
{ {
QPopupMenu* menu = (QPopupMenu*) container; TQPopupMenu* menu = (TQPopupMenu*) container;
int index = menu -> indexOf (action -> itemId (i)); int index = menu -> indexOf (action -> itemId (i));
#ifdef DEBUG_KPLAYER_ACTIONLIST #ifdef DEBUG_KPLAYER_ACTIONLIST
kdDebugTime() << " Index " << index << "\n"; kdDebugTime() << " Index " << index << "\n";
#endif #endif
if ( index > 0 ) if ( index > 0 )
{ {
QMenuItem* item = menu -> findItem (menu -> idAt (index - 1)); TQMenuItem* item = menu -> findItem (menu -> idAt (index - 1));
if ( ! item || item -> isSeparator() ) if ( ! item || item -> isSeparator() )
menu -> removeItemAt (index - 1); menu -> removeItemAt (index - 1);
} }
@ -157,20 +157,20 @@ void KPlayerActionList::unplug (void)
#endif #endif
for ( i = 0; i < count; i ++ ) for ( i = 0; i < count; i ++ )
{ {
QWidget* container = action -> container (i); TQWidget* container = action -> container (i);
#ifdef DEBUG_KPLAYER_ACTIONLIST #ifdef DEBUG_KPLAYER_ACTIONLIST
kdDebugTime() << " Container " << container -> className() << " " << container -> name ("<unnamed>") << "\n"; kdDebugTime() << " Container " << container -> className() << " " << container -> name ("<unnamed>") << "\n";
#endif #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; int index = menu -> indexOf (action -> itemId (i)) + 1;
#ifdef DEBUG_KPLAYER_ACTIONLIST #ifdef DEBUG_KPLAYER_ACTIONLIST
kdDebugTime() << " Index " << index << "\n"; kdDebugTime() << " Index " << index << "\n";
#endif #endif
if ( index > 0 && index < int (menu -> count()) ) 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() ) if ( ! item || item -> isSeparator() )
menu -> removeItemAt (index); menu -> removeItemAt (index);
} }
@ -183,7 +183,7 @@ void KPlayerActionList::unplug (void)
void KPlayerActionList::updateAction (KAction* action) void KPlayerActionList::updateAction (KAction* action)
{ {
QString text (action -> text()); TQString text (action -> text());
action -> setStatusText (m_status.arg (text)); action -> setStatusText (m_status.arg (text));
action -> setWhatsThis (m_whatsthis.arg (text)); action -> setWhatsThis (m_whatsthis.arg (text));
text = m_text.arg (text); text = m_text.arg (text);
@ -203,7 +203,7 @@ void KPlayerActionList::actionActivated (void)
kdDebugTime() << " Name " << action -> text() << "\n"; kdDebugTime() << " Name " << action -> text() << "\n";
#endif #endif
int index = 0; int index = 0;
QPtrListIterator<KAction> iterator (actions()); TQPtrListIterator<KAction> iterator (actions());
while ( iterator.current() ) while ( iterator.current() )
{ {
if ( iterator.current() == action ) if ( iterator.current() == action )
@ -226,8 +226,8 @@ void KPlayerActionList::actionActivated (KAction*, int index)
emit activated (index); emit activated (index);
} }
KPlayerSimpleActionList::KPlayerSimpleActionList (const QStringList& names, const QString& text, KPlayerSimpleActionList::KPlayerSimpleActionList (const TQStringList& names, const TQString& text,
const QString& status, const QString& whatsthis, QObject* parent, const char* name) const TQString& status, const TQString& whatsthis, TQObject* parent, const char* name)
: KPlayerActionList (text, status, whatsthis, parent, name), m_names (names) : KPlayerActionList (text, status, whatsthis, parent, name), m_names (names)
{ {
#ifdef DEBUG_KPLAYER_ACTIONLIST #ifdef DEBUG_KPLAYER_ACTIONLIST
@ -248,7 +248,7 @@ void KPlayerSimpleActionList::update (void)
kdDebugTime() << "KPlayerSimpleActionList::update\n"; kdDebugTime() << "KPlayerSimpleActionList::update\n";
#endif #endif
unplug(); unplug();
QStringList::ConstIterator iterator (m_names.constBegin()); TQStringList::ConstIterator iterator (m_names.constBegin());
while ( iterator != m_names.constEnd() ) while ( iterator != m_names.constEnd() )
{ {
KAction* action = new KAction (*iterator, 0, this, SLOT(actionActivated()), this); KAction* action = new KAction (*iterator, 0, this, SLOT(actionActivated()), this);
@ -261,9 +261,9 @@ void KPlayerSimpleActionList::update (void)
void KPlayerSimpleActionList::updateAction (KAction* action) void KPlayerSimpleActionList::updateAction (KAction* action)
{ {
QString text (action -> text()); TQString text (action -> text());
KPlayerPropertyInfo* info = KPlayerMedia::info (text); KPlayerPropertyInfo* info = KPlayerMedia::info (text);
QString caption (info -> caption()); TQString caption (info -> caption());
if ( caption.isEmpty() ) if ( caption.isEmpty() )
caption = i18n(text.utf8()); caption = i18n(text.utf8());
action -> setStatusText (m_status.arg (caption)); action -> setStatusText (m_status.arg (caption));
@ -273,9 +273,9 @@ void KPlayerSimpleActionList::updateAction (KAction* action)
action -> setText (caption); action -> setText (caption);
} }
KPlayerToggleActionList::KPlayerToggleActionList (const QStringList& names, const QMap<QString, bool>& states, KPlayerToggleActionList::KPlayerToggleActionList (const TQStringList& names, const TQMap<TQString, bool>& states,
const QString& ontext, const QString& offtext, const QString& onstatus, const QString& offstatus, const TQString& ontext, const TQString& offtext, const TQString& onstatus, const TQString& offstatus,
const QString& onwhatsthis, const QString& offwhatsthis, QObject* parent, const char* name) const TQString& onwhatsthis, const TQString& offwhatsthis, TQObject* parent, const char* name)
: KPlayerSimpleActionList (names, offtext, offstatus, offwhatsthis, parent, name), : KPlayerSimpleActionList (names, offtext, offstatus, offwhatsthis, parent, name),
m_states (states), m_on_text (ontext), m_on_status (onstatus), m_on_whatsthis (onwhatsthis) 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) void KPlayerToggleActionList::updateAction (KAction* action)
{ {
QString text (action -> text()); TQString text (action -> text());
KPlayerPropertyInfo* info = KPlayerMedia::info (text); KPlayerPropertyInfo* info = KPlayerMedia::info (text);
QString caption (info -> caption()); TQString caption (info -> caption());
if ( caption.isEmpty() ) if ( caption.isEmpty() )
caption = i18n(text.utf8()); caption = i18n(text.utf8());
bool on = m_states [text]; bool on = m_states [text];
@ -317,15 +317,15 @@ void KPlayerToggleActionList::actionActivated (KAction* action, int index)
updateAction (action); 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 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 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 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 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 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 QRegExp re_lang_code ("^([^\\[]+)\\[([^\\]]+)\\]"); static TQRegExp re_lang_code ("^([^\\[]+)\\[([^\\]]+)\\]");
if ( language.length() < 2 ) if ( language.length() < 2 )
return i18n("Track %1").arg (id); return i18n("Track %1").arg (id);
QString name; TQString name;
if ( re_lang_code.search (language) >= 0 ) if ( re_lang_code.search (language) >= 0 )
{ {
name = re_lang_code.cap(2).simplifyWhiteSpace(); name = re_lang_code.cap(2).simplifyWhiteSpace();
@ -335,7 +335,7 @@ QString languageName (int id, QString language)
} }
if ( language.length() == 3 ) if ( language.length() == 3 )
{ {
QString code ('|' + language + '|'); TQString code ('|' + language + '|');
if ( middle.find (code, 0, false) >= 0 ) if ( middle.find (code, 0, false) >= 0 )
language.remove (1, 1); language.remove (1, 1);
else if ( right.find (code, 0, false) >= 0 ) else if ( right.find (code, 0, false) >= 0 )
@ -347,7 +347,7 @@ QString languageName (int id, QString language)
language = other.mid (index + 5, 2); language = other.mid (index + 5, 2);
} }
} }
QString locname (KGlobal::locale() -> twoAlphaToLanguageName (language)); TQString locname (KGlobal::locale() -> twoAlphaToLanguageName (language));
if ( locname.isEmpty() ) if ( locname.isEmpty() )
{ {
if ( language == "no" ) if ( language == "no" )
@ -359,8 +359,8 @@ QString languageName (int id, QString language)
return locname; return locname;
} }
KPlayerTrackActionList::KPlayerTrackActionList (const QString& text, const QString& status, KPlayerTrackActionList::KPlayerTrackActionList (const TQString& text, const TQString& status,
const QString& whatsthis, QObject* parent, const char* name) const TQString& whatsthis, TQObject* parent, const char* name)
: KPlayerActionList (text, status, whatsthis, parent, name) : KPlayerActionList (text, status, whatsthis, parent, name)
{ {
#ifdef DEBUG_KPLAYER_ACTIONLIST #ifdef DEBUG_KPLAYER_ACTIONLIST
@ -375,12 +375,12 @@ KPlayerTrackActionList::~KPlayerTrackActionList()
#endif #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 ) while ( iterator != end )
{ {
QString text (languageName (iterator.key(), iterator.data())); TQString text (languageName (iterator.key(), iterator.data()));
#ifdef DEBUG_KPLAYER_ACTIONLIST #ifdef DEBUG_KPLAYER_ACTIONLIST
kdDebugTime() << " Stream " << iterator.key() << " " << iterator.data() << " " << text << "\n"; kdDebugTime() << " Stream " << iterator.key() << " " << iterator.data() << " " << text << "\n";
#endif #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(); unplug();
if ( ids.count() > 1 ) if ( ids.count() > 1 )
@ -411,8 +411,8 @@ void KPlayerTrackActionList::actionActivated (KAction* action, int index)
KPlayerActionList::actionActivated (action, ((KToggleAction*) action) -> isChecked() ? index : -1); KPlayerActionList::actionActivated (action, ((KToggleAction*) action) -> isChecked() ? index : -1);
} }
KPlayerSubtitleTrackActionList::KPlayerSubtitleTrackActionList (const QString& text, const QString& status, KPlayerSubtitleTrackActionList::KPlayerSubtitleTrackActionList (const TQString& text, const TQString& status,
const QString& whatsthis, QObject* parent, const char* name) const TQString& whatsthis, TQObject* parent, const char* name)
: KPlayerTrackActionList (text, status, whatsthis, parent, name) : KPlayerTrackActionList (text, status, whatsthis, parent, name)
{ {
#ifdef DEBUG_KPLAYER_ACTIONLIST #ifdef DEBUG_KPLAYER_ACTIONLIST
@ -427,8 +427,8 @@ KPlayerSubtitleTrackActionList::~KPlayerSubtitleTrackActionList()
#endif #endif
} }
void KPlayerSubtitleTrackActionList::update (bool show, const QMap<int, QString>& sids, int sid, void KPlayerSubtitleTrackActionList::update (bool show, const TQMap<int, TQString>& sids, int sid,
const QMap<int, QString>& vsids, int vsid, QStringList files, const QString& vobsub, const QString& current) const TQMap<int, TQString>& vsids, int vsid, TQStringList files, const TQString& vobsub, const TQString& current)
{ {
unplug(); unplug();
if ( sids.count() > 0 || vsids.count() > 0 || files.count() > 0 ) 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); addActions (vsids, vsid);
if ( vsids.isEmpty() ) if ( vsids.isEmpty() )
files << vobsub; files << vobsub;
QStringList::ConstIterator iterator (files.constBegin()), end (files.constEnd()); TQStringList::ConstIterator iterator (files.constBegin()), end (files.constEnd());
while ( iterator != end ) while ( iterator != end )
{ {
QString text ((*iterator).section ('/', -1, -1)); TQString text ((*iterator).section ('/', -1, -1));
#ifdef DEBUG_KPLAYER_ACTIONLIST #ifdef DEBUG_KPLAYER_ACTIONLIST
kdDebugTime() << " Subtitle file '" << text << "' " << *iterator << "\n"; kdDebugTime() << " Subtitle file '" << text << "' " << *iterator << "\n";
#endif #endif

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

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

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

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

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

File diff suppressed because it is too large Load Diff

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

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

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

File diff suppressed because it is too large Load Diff

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

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

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

@ -19,10 +19,10 @@
#include <krandomsequence.h> #include <krandomsequence.h>
#include <kurl.h> #include <kurl.h>
#include <kurldrag.h> #include <kurldrag.h>
#include <qdockarea.h> #include <tqdockarea.h>
#include <qfileinfo.h> #include <tqfileinfo.h>
#include <qpopupmenu.h> #include <tqpopupmenu.h>
#include <qtooltip.h> #include <tqtooltip.h>
#ifdef DEBUG #ifdef DEBUG
#define DEBUG_KPLAYER_PLAYLIST #define DEBUG_KPLAYER_PLAYLIST
@ -36,8 +36,8 @@
#include "kplayerpropertiesdialog.h" #include "kplayerpropertiesdialog.h"
#include "kplayersettings.h" #include "kplayersettings.h"
KPlayerPlaylist::KPlayerPlaylist (KActionCollection* ac, QObject* parent, const char* name) KPlayerPlaylist::KPlayerPlaylist (KActionCollection* ac, TQObject* parent, const char* name)
: QObject (parent, name) : TQObject (parent, name)
{ {
#ifdef DEBUG_KPLAYER_PLAYLIST #ifdef DEBUG_KPLAYER_PLAYLIST
kdDebugTime() << "Creating playlist\n"; 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 -> 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.")); 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))); 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"); 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 -> 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.")); 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 #endif
} }
void KPlayerPlaylist::initialize (QPopupMenu* menu) void KPlayerPlaylist::initialize (TQPopupMenu* menu)
{ {
#ifdef DEBUG_KPLAYER_PLAYLIST #ifdef DEBUG_KPLAYER_PLAYLIST
kdDebugTime() << "Initializing playlist\n"; kdDebugTime() << "Initializing playlist\n";
@ -699,8 +699,8 @@ void KPlayerPlaylist::addToPlaylists (void)
{ {
KPlayerContainerNode* container = KPlayerNode::root() -> getNodeByUrl ("kplayer:/playlists"); KPlayerContainerNode* container = KPlayerNode::root() -> getNodeByUrl ("kplayer:/playlists");
KPlayerNodeNameValidator validator (container); KPlayerNodeNameValidator validator (container);
QString name = KInputDialog::text (i18n("Add to playlists"), i18n("Playlist name"), TQString name = KInputDialog::text (i18n("Add to playlists"), i18n("Playlist name"),
QString::null, 0, 0, 0, &validator, QString::null, 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.")); 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() ) if ( ! name.isNull() )
{ {
@ -731,8 +731,8 @@ void KPlayerPlaylist::addToCollection (void)
{ {
KPlayerContainerNode* container = KPlayerNode::root() -> getNodeByUrl ("kplayer:/collection"); KPlayerContainerNode* container = KPlayerNode::root() -> getNodeByUrl ("kplayer:/collection");
KPlayerNodeNameValidator validator (container); KPlayerNodeNameValidator validator (container);
QString name = KInputDialog::text (i18n("Add to collection"), i18n("Folder name"), TQString name = KInputDialog::text (i18n("Add to collection"), i18n("Folder name"),
QString::null, 0, 0, 0, &validator, QString::null, 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.")); 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() ) if ( ! name.isNull() )
{ {
@ -858,34 +858,34 @@ void KPlayerPlaylist::addNextNodes (const KPlayerNodeList& nodes)
} }
} }
KPlayerPlaylistCombobox::KPlayerPlaylistCombobox (QWidget* parent, const char* name) KPlayerPlaylistCombobox::KPlayerPlaylistCombobox (TQWidget* parent, const char* name)
: QComboBox (parent, name) : TQComboBox (parent, name)
{ {
#ifdef DEBUG_KPLAYER_PLAYLIST #ifdef DEBUG_KPLAYER_PLAYLIST
kdDebugTime() << "Creating playlist combobox\n"; kdDebugTime() << "Creating playlist combobox\n";
#endif #endif
} }
QSize KPlayerPlaylistCombobox::sizeHint() const TQSize KPlayerPlaylistCombobox::sizeHint() const
{ {
QSize hint = QComboBox::sizeHint(); TQSize hint = TQComboBox::sizeHint();
hint.setWidth (configuration() -> preferredSliderLength()); hint.setWidth (configuration() -> preferredSliderLength());
return hint; return hint;
} }
QSize KPlayerPlaylistCombobox::minimumSizeHint() const TQSize KPlayerPlaylistCombobox::minimumSizeHint() const
{ {
QSize hint = QComboBox::minimumSizeHint(); TQSize hint = TQComboBox::minimumSizeHint();
hint.setWidth (configuration() -> minimumSliderLength()); hint.setWidth (configuration() -> minimumSliderLength());
return hint; return hint;
} }
void KPlayerPlaylistCombobox::contextMenuEvent (QContextMenuEvent* event) void KPlayerPlaylistCombobox::contextMenuEvent (TQContextMenuEvent* event)
{ {
#ifdef DEBUG_KPLAYER_PLAYLIST #ifdef DEBUG_KPLAYER_PLAYLIST
kdDebugTime() << "KPlayerPlaylistCombobox::contextMenuEvent\n"; kdDebugTime() << "KPlayerPlaylistCombobox::contextMenuEvent\n";
#endif #endif
QComboBox::contextMenuEvent (event); TQComboBox::contextMenuEvent (event);
m_popup -> popup (event -> globalPos()); m_popup -> popup (event -> globalPos());
event -> accept(); event -> accept();
} }

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

@ -22,11 +22,11 @@
#include <kprocctrl.h> #include <kprocctrl.h>
#include <kstandarddirs.h> #include <kstandarddirs.h>
#include <ktempfile.h> #include <ktempfile.h>
#include <qdir.h> #include <tqdir.h>
#include <qfileinfo.h> #include <tqfileinfo.h>
#include <qregexp.h> #include <tqregexp.h>
#include <qsocketnotifier.h> #include <tqsocketnotifier.h>
#include <qtimer.h> #include <tqtimer.h>
#include <unistd.h> #include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
@ -50,32 +50,32 @@
#define NO_SEEK_ORIGIN -5 #define NO_SEEK_ORIGIN -5
#ifdef DEBUG_KPLAYER_DUMP #ifdef DEBUG_KPLAYER_DUMP
static QFile s_dump (QDir::homeDirPath() + "/kioslave.dump"); static TQFile s_dump (TQDir::homeDirPath() + "/kioslave.dump");
#endif #endif
static QRegExp re_ext ("^[A-Za-z0-9]+$"); static TQRegExp re_ext ("^[A-Za-z0-9]+$");
static QRegExp re_a_or_v ("^[AV]: *([0-9,:.-]+)"); static TQRegExp re_a_or_v ("^[AV]: *([0-9,:.-]+)");
static QRegExp re_a_and_v ("^A: *([0-9,:.-]+) +V: *([0-9,:.-]+)"); static TQRegExp 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 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 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 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 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 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 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 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 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 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 QRegExp re_cache_fill ("^Cache fill: *([0-9]+[.,]?[0-9]*) *%", false); static TQRegExp re_cache_fill ("^Cache fill: *([0-9]+[.,]?[0-9]*) *%", false);
static QRegExp re_generating_index ("^Generating Index: *([0-9]+[.,]?[0-9]*) *%", false); static TQRegExp re_generating_index ("^Generating Index: *([0-9]+[.,]?[0-9]*) *%", false);
static QRegExp re_mpeg12 ("mpeg[12]", false); static TQRegExp re_mpeg12 ("mpeg[12]", false);
static QRegExp re_version ("^MPlayer *0\\.9.* \\(C\\) "); static TQRegExp re_version ("^MPlayer *0\\.9.* \\(C\\) ");
static QRegExp re_crash ("^ID_SIGNAL=([0-9]+)$"); static TQRegExp re_crash ("^ID_SIGNAL=([0-9]+)$");
static QRegExp re_paused ("^ID_PAUSED$"); static TQRegExp re_paused ("^ID_PAUSED$");
static QCString command_quit ("quit\n"); static TQCString command_quit ("quit\n");
static QCString command_pause ("pause\n"); static TQCString command_pause ("pause\n");
static QCString command_visibility ("sub_visibility\n"); static TQCString command_visibility ("sub_visibility\n");
static QCString command_seek_100 ("seek 100 1\n"); static TQCString command_seek_100 ("seek 100 1\n");
static QCString command_seek_99 ("seek 99 1\n"); static TQCString command_seek_99 ("seek 99 1\n");
static QCString command_seek_95 ("seek 95 1\n"); static TQCString command_seek_95 ("seek 95 1\n");
static QCString command_seek_90 ("seek 90 1\n"); static TQCString command_seek_90 ("seek 90 1\n");
static QCString command_seek_50 ("seek 50 1\n"); static TQCString command_seek_50 ("seek 50 1\n");
KPlayerLineOutputProcess::KPlayerLineOutputProcess (void) KPlayerLineOutputProcess::KPlayerLineOutputProcess (void)
{ {
@ -290,8 +290,8 @@ KPlayerProcess::KPlayerProcess (void)
m_fifo_offset = 0; m_fifo_offset = 0;
m_fifo_notifier = 0; m_fifo_notifier = 0;
m_fifo_timer = 0; m_fifo_timer = 0;
QString home (QDir::homeDirPath()); TQString home (TQDir::homeDirPath());
QDir (home).mkdir (".mplayer"); TQDir (home).mkdir (".mplayer");
m_cache.setAutoDelete (true); m_cache.setAutoDelete (true);
} }
@ -321,8 +321,8 @@ void KPlayerProcess::transferTemporaryFile (void)
{ {
if ( properties() -> useKioslave() && properties() -> useTemporaryFile() && ! m_temporary_file ) if ( properties() -> useKioslave() && properties() -> useTemporaryFile() && ! m_temporary_file )
{ {
QFileInfo fi (properties() -> url().fileName()); TQFileInfo fi (properties() -> url().fileName());
QString extension (fi.extension(false).lower()); TQString extension (fi.extension(false).lower());
if ( ! extension.isEmpty() ) if ( ! extension.isEmpty() )
extension = "." + extension; extension = "." + extension;
m_temporary_file = new KTempFile (locateLocal ("tmp", "kpl"), 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 = KIO::get (properties() -> url(), false, false);
m_temp_job -> setWindow (kPlayerWorkspace()); m_temp_job -> setWindow (kPlayerWorkspace());
m_temp_job -> addMetaData ("PropagateHttpHeader", "true"); 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 (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 (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); transferProgress (m_temp_job, 0);
m_delayed_helper = true; m_delayed_helper = true;
} }
@ -379,13 +379,13 @@ void KPlayerProcess::setState (State state)
emit stateChanged (state, previous); 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; return l.isEmpty() ? p : p + " / " + l;
} }
void KPlayerProcess::sendHelperCommand (QCString& command) void KPlayerProcess::sendHelperCommand (TQCString& command)
{ {
if ( ! m_helper ) if ( ! m_helper )
return; return;
@ -395,7 +395,7 @@ void KPlayerProcess::sendHelperCommand (QCString& command)
#endif #endif
} }
void KPlayerProcess::sendPlayerCommand (QCString& command) void KPlayerProcess::sendPlayerCommand (TQCString& command)
{ {
if ( ! m_player ) if ( ! m_player )
return; return;
@ -433,11 +433,11 @@ void KPlayerProcess::get_info (void)
} }
m_helper = new KPlayerLineOutputProcess; m_helper = new KPlayerLineOutputProcess;
*m_helper << properties() -> executablePath() << "-slave" << "-ao" << "null" << "-vo" << "x11" *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() ) if ( properties() -> cache() == 1 || ! properties() -> url().isLocalFile() && ! properties() -> useKioslave() )
*m_helper << "-nocache"; *m_helper << "-nocache";
else if ( properties() -> cache() == 2 ) 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)), connect (m_helper, SIGNAL (receivedStdoutLine (KPlayerLineOutputProcess*, char*, int)),
SLOT (receivedHelperLine (KPlayerLineOutputProcess*, char*, int))); SLOT (receivedHelperLine (KPlayerLineOutputProcess*, char*, int)));
if ( ! run (m_helper) ) if ( ! run (m_helper) )
@ -463,12 +463,12 @@ void KPlayerProcess::play (void)
start(); start();
} }
QString resourcePath (const QString& filename) TQString resourcePath (const TQString& filename)
{ {
#ifdef DEBUG_KPLAYER_PROCESS #ifdef DEBUG_KPLAYER_PROCESS
kdDebugTime() << "Looking for " << filename << "\n"; kdDebugTime() << "Looking for " << filename << "\n";
#endif #endif
QString path (KGlobal::dirs() -> findResource ("appdata", filename)); TQString path (KGlobal::dirs() -> findResource ("appdata", filename));
#ifdef DEBUG_KPLAYER_PROCESS #ifdef DEBUG_KPLAYER_PROCESS
kdDebugTime() << " appdata '" << path << "'\n"; kdDebugTime() << " appdata '" << path << "'\n";
#endif #endif
@ -518,8 +518,8 @@ void KPlayerProcess::start (void)
}*/ }*/
m_player = new KPlayerLineOutputProcess; m_player = new KPlayerLineOutputProcess;
*m_player << properties() -> executablePath() << "-zoom" << "-noautosub" << "-slave" *m_player << properties() -> executablePath() << "-zoom" << "-noautosub" << "-slave"
<< "-wid" << QString::number (kPlayerWidget() -> winId()) << "-stop-xscreensaver"; << "-wid" << TQString::number (kPlayerWidget() -> winId()) << "-stop-xscreensaver";
QString driver (properties() -> videoDriverString()); TQString driver (properties() -> videoDriverString());
if ( ! driver.isEmpty() ) if ( ! driver.isEmpty() )
{ {
if ( driver.startsWith ("xvmc") ) if ( driver.startsWith ("xvmc") )
@ -532,7 +532,7 @@ void KPlayerProcess::start (void)
if ( ! driver.isEmpty() ) if ( ! driver.isEmpty() )
*m_player << "-ao" << driver; *m_player << "-ao" << driver;
if ( properties() -> softwareVolume() ) 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") ) else if ( driver.startsWith ("alsa") || driver.startsWith ("oss") )
{ {
driver = properties() -> mixerDevice(); driver = properties() -> mixerDevice();
@ -542,11 +542,11 @@ void KPlayerProcess::start (void)
if ( ! driver.isEmpty() ) if ( ! driver.isEmpty() )
*m_player << "-mixer-channel" << driver; *m_player << "-mixer-channel" << driver;
} }
*m_player << "-osdlevel" << QCString().setNum (properties() -> osdLevel()); *m_player << "-osdlevel" << TQCString().setNum (properties() -> osdLevel());
*m_player << "-contrast" << QCString().setNum (settings() -> contrast()); *m_player << "-contrast" << TQCString().setNum (settings() -> contrast());
*m_player << "-brightness" << QCString().setNum (settings() -> brightness()); *m_player << "-brightness" << TQCString().setNum (settings() -> brightness());
*m_player << "-hue" << QCString().setNum (settings() -> hue()); *m_player << "-hue" << TQCString().setNum (settings() -> hue());
*m_player << "-saturation" << QCString().setNum (settings() -> saturation()); *m_player << "-saturation" << TQCString().setNum (settings() -> saturation());
if ( settings() -> frameDrop() == 0 ) if ( settings() -> frameDrop() == 0 )
*m_player << "-noframedrop"; *m_player << "-noframedrop";
else if ( settings() -> frameDrop() == 1 ) else if ( settings() -> frameDrop() == 1 )
@ -557,21 +557,21 @@ void KPlayerProcess::start (void)
if ( cache == 0 && properties() -> useKioslave() && (! properties() -> useTemporaryFile() || ! m_temporary_file) ) if ( cache == 0 && properties() -> useKioslave() && (! properties() -> useTemporaryFile() || ! m_temporary_file) )
*m_player << "-cache" << "1024"; *m_player << "-cache" << "1024";
else if ( cache == 2 ) else if ( cache == 2 )
*m_player << "-cache" << QString().setNum (properties() -> cacheSize()); *m_player << "-cache" << TQString().setNum (properties() -> cacheSize());
else if ( cache == 1 ) else if ( cache == 1 )
*m_player << "-nocache"; *m_player << "-nocache";
if ( properties() -> videoScaler() > 0 ) if ( properties() -> videoScaler() > 0 )
*m_player << "-sws" << QCString().setNum (properties() -> videoScaler()); *m_player << "-sws" << TQCString().setNum (properties() -> videoScaler());
m_audio_delay = settings() -> audioDelay(); m_audio_delay = settings() -> audioDelay();
if ( m_audio_delay != 0 ) if ( m_audio_delay != 0 )
*m_player << "-delay" << QCString().setNum (m_audio_delay); *m_player << "-delay" << TQCString().setNum (m_audio_delay);
if ( properties() -> hasVideoID() ) if ( properties() -> hasVideoID() )
*m_player << "-vid" << QCString().setNum (properties() -> videoID()); *m_player << "-vid" << TQCString().setNum (properties() -> videoID());
m_audio_id = properties() -> audioID(); m_audio_id = properties() -> audioID();
if ( m_audio_id > -1 ) 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_subtitles.clear();
m_vobsub = QString::null; m_vobsub = TQString::null;
m_subtitle_index = properties() -> subtitleIndex(); m_subtitle_index = properties() -> subtitleIndex();
if ( settings() -> hasSubtitles() ) if ( settings() -> hasSubtitles() )
{ {
@ -580,17 +580,17 @@ void KPlayerProcess::start (void)
m_vobsub = settings() -> vobsubSubtitles(); m_vobsub = settings() -> vobsubSubtitles();
*m_player << "-vobsub" << m_vobsub; *m_player << "-vobsub" << m_vobsub;
if ( properties() -> hasVobsubID() ) if ( properties() -> hasVobsubID() )
*m_player << "-vobsubid" << QString::number (properties() -> vobsubID()); *m_player << "-vobsubid" << TQString::number (properties() -> vobsubID());
else else
m_send_subtitle_index = m_subtitle_index; m_send_subtitle_index = m_subtitle_index;
} }
else if ( settings() -> showSubtitles() ) else if ( settings() -> showSubtitles() )
{ {
if ( properties() -> hasSubtitleID() ) if ( properties() -> hasSubtitleID() )
*m_player << "-sid" << QString::number (properties() -> subtitleID()); *m_player << "-sid" << TQString::number (properties() -> subtitleID());
else if ( settings() -> hasExternalSubtitles() ) else if ( settings() -> hasExternalSubtitles() )
{ {
QString urls (settings() -> currentSubtitles()); TQString urls (settings() -> currentSubtitles());
if ( urls.find (',') < 0 ) if ( urls.find (',') < 0 )
*m_player << "-sub" << urls; *m_player << "-sub" << urls;
else else
@ -603,11 +603,11 @@ void KPlayerProcess::start (void)
} }
m_subtitle_delay = settings() -> subtitleDelay(); m_subtitle_delay = settings() -> subtitleDelay();
if ( m_subtitle_delay != 0 ) 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(); m_subtitle_position = settings() -> subtitlePosition();
if ( m_subtitle_position != 100 ) if ( m_subtitle_position != 100 )
*m_player << "-subpos" << QCString().setNum (m_subtitle_position); *m_player << "-subpos" << TQCString().setNum (m_subtitle_position);
QString font (configuration() -> subtitleFontName()); TQString font (configuration() -> subtitleFontName());
if ( configuration() -> subtitleFontBold() ) if ( configuration() -> subtitleFontBold() )
font += ":bold"; font += ":bold";
if ( configuration() -> subtitleFontItalic() ) if ( configuration() -> subtitleFontItalic() )
@ -615,12 +615,12 @@ void KPlayerProcess::start (void)
*m_player << "-fontconfig" << "-font" << font; *m_player << "-fontconfig" << "-font" << font;
*m_player << "-subfont-autoscale" << (configuration() -> subtitleAutoscale() ? "3" : "0"); *m_player << "-subfont-autoscale" << (configuration() -> subtitleAutoscale() ? "3" : "0");
if ( configuration() -> subtitleTextSize() ) if ( configuration() -> subtitleTextSize() )
*m_player << "-subfont-text-scale" << QString::number (configuration() -> subtitleTextSize()); *m_player << "-subfont-text-scale" << TQString::number (configuration() -> subtitleTextSize());
if ( configuration() -> hasSubtitleFontOutline() ) if ( configuration() -> hasSubtitleFontOutline() )
*m_player << "-ffactor" << configuration() -> subtitleFontOutlineString(); *m_player << "-ffactor" << configuration() -> subtitleFontOutlineString();
if ( configuration() -> hasSubtitleTextWidth() ) if ( configuration() -> hasSubtitleTextWidth() )
*m_player << "-subwidth" << configuration() -> subtitleTextWidthString(); *m_player << "-subwidth" << configuration() -> subtitleTextWidthString();
const QString& encoding (properties() -> subtitleEncoding()); const TQString& encoding (properties() -> subtitleEncoding());
if ( encoding == "UTF-8" ) if ( encoding == "UTF-8" )
*m_player << "-utf8"; *m_player << "-utf8";
else if ( ! encoding.isEmpty() ) else if ( ! encoding.isEmpty() )
@ -637,7 +637,7 @@ void KPlayerProcess::start (void)
if ( ! properties() -> videoDriverString().startsWith ("sdl") if ( ! properties() -> videoDriverString().startsWith ("sdl")
&& ! properties() -> videoDriverString().startsWith ("svga") ) && ! properties() -> videoDriverString().startsWith ("svga") )
{ {
QString path = resourcePath ("input.conf"); TQString path = resourcePath ("input.conf");
if ( ! path.isEmpty() ) if ( ! path.isEmpty() )
*m_player << "-input" << "conf=" + path; *m_player << "-input" << "conf=" + path;
#ifdef DEBUG_KPLAYER_PROCESS #ifdef DEBUG_KPLAYER_PROCESS
@ -653,12 +653,12 @@ void KPlayerProcess::start (void)
delete m_temporary_file; delete m_temporary_file;
m_temporary_file = 0; m_temporary_file = 0;
} }
QString ext (properties() -> extension()); TQString ext (properties() -> extension());
if ( re_ext.search (ext) >= 0 ) if ( re_ext.search (ext) >= 0 )
ext.prepend ('.'); ext.prepend ('.');
else else
ext = ""; ext = "";
m_fifo_name = QFile::encodeName (QDir::homeDirPath() + "/.mplayer/kpstream" + ext); m_fifo_name = TQFile::encodeName (TQDir::homeDirPath() + "/.mplayer/kpstream" + ext);
removeDataFifo(); removeDataFifo();
#ifdef HAVE_MKFIFO #ifdef HAVE_MKFIFO
#ifdef DEBUG_KPLAYER_PROCESS #ifdef DEBUG_KPLAYER_PROCESS
@ -679,7 +679,7 @@ void KPlayerProcess::start (void)
#endif #endif
} }
else else
m_fifo_name = QCString(); m_fifo_name = TQCString();
connect (m_player, SIGNAL (receivedStdoutLine (KPlayerLineOutputProcess*, char*, int)), connect (m_player, SIGNAL (receivedStdoutLine (KPlayerLineOutputProcess*, char*, int)),
SLOT (receivedOutputLine (KPlayerLineOutputProcess*, char*, int))); SLOT (receivedOutputLine (KPlayerLineOutputProcess*, char*, int)));
connect (m_player, SIGNAL (receivedStderrLine (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 = KIO::get (properties() -> url(), false, false);
m_slave_job -> setWindow (kPlayerWorkspace()); m_slave_job -> setWindow (kPlayerWorkspace());
m_slave_job -> addMetaData ("PropagateHttpHeader", "true"); 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 (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_cache_size = properties() -> cache() == 2 ? properties() -> cacheSize() * 1024 : 1048576;
m_first_chunk = true; m_first_chunk = true;
#ifdef DEBUG_KPLAYER_PROCESS #ifdef DEBUG_KPLAYER_PROCESS
@ -737,11 +737,11 @@ void KPlayerProcess::restart (void)
bool KPlayerProcess::run (KPlayerLineOutputProcess* player) bool KPlayerProcess::run (KPlayerLineOutputProcess* player)
{ {
static QRegExp re_space (" +"); static TQRegExp re_space (" +");
#ifdef DEBUG_KPLAYER_PROCESS #ifdef DEBUG_KPLAYER_PROCESS
kdDebugTime() << "Process: Run\n"; kdDebugTime() << "Process: Run\n";
#endif #endif
QString codec (properties() -> videoCodecString()); TQString codec (properties() -> videoCodecString());
if ( ! codec.isEmpty() ) if ( ! codec.isEmpty() )
*player << "-vc" << codec; *player << "-vc" << codec;
codec = properties() -> audioCodecString(); codec = properties() -> audioCodecString();
@ -755,9 +755,9 @@ bool KPlayerProcess::run (KPlayerLineOutputProcess* player)
else if ( properties() -> buildNewIndex() == 2 ) else if ( properties() -> buildNewIndex() == 2 )
*player << "-forceidx"; *player << "-forceidx";
*player << "-noquiet" << "-msglevel" << "identify=4"; *player << "-noquiet" << "-msglevel" << "identify=4";
QString commandline = properties() -> commandLine(); TQString commandline = properties() -> commandLine();
if ( ! commandline.isEmpty() ) if ( ! commandline.isEmpty() )
*player << QStringList::split (re_space, commandline); *player << TQStringList::split (re_space, commandline);
codec = properties() -> deviceSetting(); codec = properties() -> deviceSetting();
if ( ! codec.isEmpty() ) if ( ! codec.isEmpty() )
*player << properties() -> deviceOption() << codec; *player << properties() -> deviceOption() << codec;
@ -766,7 +766,7 @@ bool KPlayerProcess::run (KPlayerLineOutputProcess* player)
else else
*player << "--"; *player << "--";
if ( properties() -> useKioslave() ) 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 else
*player << properties() -> urlString(); *player << properties() -> urlString();
connect (player, SIGNAL (processExited (KProcess*)), SLOT (playerProcessExited (KProcess*))); connect (player, SIGNAL (processExited (KProcess*)), SLOT (playerProcessExited (KProcess*)));
@ -930,17 +930,17 @@ void KPlayerProcess::absoluteSeek (int seconds)
else else
seconds --; seconds --;
} }
QCString s ("seek "); TQCString s ("seek ");
// broken codec workaround // broken codec workaround
if ( properties() -> length() >= MIN_VIDEO_LENGTH if ( properties() -> length() >= MIN_VIDEO_LENGTH
&& re_mpeg12.search (properties() -> videoCodecString()) >= 0 && re_mpeg12.search (properties() -> videoCodecString()) >= 0
&& properties() -> deviceOption().isEmpty() ) && properties() -> deviceOption().isEmpty() )
{ {
seconds = limit (int (float (seconds) / properties() -> length() * 100 + 0.5), 0, 100); 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 else
s += QCString().setNum (seconds) + " 2\n"; s += TQCString().setNum (seconds) + " 2\n";
sendPlayerCommand (s); sendPlayerCommand (s);
m_seek = true; m_seek = true;
m_seek_origin = position(); m_seek_origin = position();
@ -954,14 +954,14 @@ void KPlayerProcess::relativeSeek (int seconds)
{ {
if ( ! m_player || m_quit || seconds == 0 ) if ( ! m_player || m_quit || seconds == 0 )
return; return;
QCString s ("seek "); TQCString s ("seek ");
// broken codec workaround // broken codec workaround
if ( (seconds > 4 || seconds < -4) && properties() -> length() >= MIN_VIDEO_LENGTH if ( (seconds > 4 || seconds < -4) && properties() -> length() >= MIN_VIDEO_LENGTH
&& re_mpeg12.search (properties() -> videoCodecString()) >= 0 && re_mpeg12.search (properties() -> videoCodecString()) >= 0
&& properties() -> deviceOption().isEmpty() ) && properties() -> deviceOption().isEmpty() )
{ {
//seconds = limit (int ((m_position + seconds) / properties() -> length() * 100 + 0.5), 0, 100); //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 ) //if ( m_send_seek )
// m_absolute_seek += seconds; // m_absolute_seek += seconds;
//else //else
@ -969,7 +969,7 @@ void KPlayerProcess::relativeSeek (int seconds)
return; return;
} }
else else
s += QCString().setNum (seconds) + "\n"; s += TQCString().setNum (seconds) + "\n";
sendPlayerCommand (s); sendPlayerCommand (s);
m_seek = true; m_seek = true;
} }
@ -984,8 +984,8 @@ void KPlayerProcess::volume (int volume)
return; return;
} }
volume = limit (volume, 0, 100); volume = limit (volume, 0, 100);
QCString s ("volume "); TQCString s ("volume ");
s += QCString().setNum (volume) + " 1\n"; s += TQCString().setNum (volume) + " 1\n";
sendPlayerCommand (s); sendPlayerCommand (s);
m_send_volume = false; m_send_volume = false;
} }
@ -999,8 +999,8 @@ void KPlayerProcess::frameDrop (int frame_drop)
m_send_frame_drop = true; m_send_frame_drop = true;
return; return;
} }
QCString s ("frame_drop "); TQCString s ("frame_drop ");
s += QCString().setNum (frame_drop) + "\n"; s += TQCString().setNum (frame_drop) + "\n";
sendPlayerCommand (s); sendPlayerCommand (s);
m_send_frame_drop = false; m_send_frame_drop = false;
} }
@ -1015,8 +1015,8 @@ void KPlayerProcess::contrast (int contrast)
return; return;
} }
contrast = limit (contrast, -100, 100); contrast = limit (contrast, -100, 100);
QCString s ("contrast "); TQCString s ("contrast ");
s += QCString().setNum (contrast) + " 1\n"; s += TQCString().setNum (contrast) + " 1\n";
sendPlayerCommand (s); sendPlayerCommand (s);
m_send_contrast = false; m_send_contrast = false;
} }
@ -1031,8 +1031,8 @@ void KPlayerProcess::brightness (int brightness)
return; return;
} }
brightness = limit (brightness, -100, 100); brightness = limit (brightness, -100, 100);
QCString s ("brightness "); TQCString s ("brightness ");
s += QCString().setNum (brightness) + " 1\n"; s += TQCString().setNum (brightness) + " 1\n";
sendPlayerCommand (s); sendPlayerCommand (s);
m_send_brightness = false; m_send_brightness = false;
} }
@ -1047,8 +1047,8 @@ void KPlayerProcess::hue (int hue)
return; return;
} }
hue = limit (hue, -100, 100); hue = limit (hue, -100, 100);
QCString s ("hue "); TQCString s ("hue ");
s += QCString().setNum (hue) + " 1\n"; s += TQCString().setNum (hue) + " 1\n";
sendPlayerCommand (s); sendPlayerCommand (s);
m_send_hue = false; m_send_hue = false;
} }
@ -1063,8 +1063,8 @@ void KPlayerProcess::saturation (int saturation)
return; return;
} }
saturation = limit (saturation, -100, 100); saturation = limit (saturation, -100, 100);
QCString s ("saturation "); TQCString s ("saturation ");
s += QCString().setNum (saturation) + " 1\n"; s += TQCString().setNum (saturation) + " 1\n";
sendPlayerCommand (s); sendPlayerCommand (s);
m_send_saturation = false; m_send_saturation = false;
} }
@ -1086,8 +1086,8 @@ void KPlayerProcess::subtitleMove (int position, bool absolute)
position += m_send_subtitle_position; position += m_send_subtitle_position;
if ( position == 0 ) if ( position == 0 )
return; return;
QCString s ("sub_pos "); TQCString s ("sub_pos ");
s += QCString().setNum (position) + "\n"; s += TQCString().setNum (position) + "\n";
sendPlayerCommand (s); sendPlayerCommand (s);
m_send_subtitle_position = 0; m_send_subtitle_position = 0;
} }
@ -1109,8 +1109,8 @@ void KPlayerProcess::subtitleDelay (float delay, bool absolute)
delay += m_send_subtitle_delay; delay += m_send_subtitle_delay;
if ( delay < 0.001 && delay > - 0.001 ) if ( delay < 0.001 && delay > - 0.001 )
return; return;
QCString s ("sub_delay "); TQCString s ("sub_delay ");
s += QCString().setNum (- delay) + "\n"; s += TQCString().setNum (- delay) + "\n";
sendPlayerCommand (s); sendPlayerCommand (s);
m_send_subtitle_delay = 0; m_send_subtitle_delay = 0;
} }
@ -1124,8 +1124,8 @@ void KPlayerProcess::subtitleIndex (int index)
m_send_subtitle_index = index; m_send_subtitle_index = index;
return; return;
} }
QCString s ("sub_select "); TQCString s ("sub_select ");
s += QCString().setNum (index) + "\n"; s += TQCString().setNum (index) + "\n";
sendPlayerCommand (s); sendPlayerCommand (s);
m_subtitle_index = index; m_subtitle_index = index;
m_send_subtitle_index = -2; m_send_subtitle_index = -2;
@ -1166,7 +1166,7 @@ void KPlayerProcess::subtitles (void)
m_send_subtitle_load = false; m_send_subtitle_load = false;
return; return;
} }
QString subtitle (settings() -> currentSubtitles()); TQString subtitle (settings() -> currentSubtitles());
index = m_subtitles.findIndex (subtitle); index = m_subtitles.findIndex (subtitle);
if ( index >= 0 ) if ( index >= 0 )
{ {
@ -1179,7 +1179,7 @@ void KPlayerProcess::subtitles (void)
m_send_subtitle_load = true; m_send_subtitle_load = true;
return; return;
} }
QCString s ("sub_load "); TQCString s ("sub_load ");
s += '"' + subtitle.utf8() + "\"\n"; s += '"' + subtitle.utf8() + "\"\n";
sendPlayerCommand (s); sendPlayerCommand (s);
m_send_subtitle_load = false; m_send_subtitle_load = false;
@ -1202,8 +1202,8 @@ void KPlayerProcess::audioDelay (float delay, bool absolute)
delay += m_send_audio_delay; delay += m_send_audio_delay;
if ( delay < 0.001 && delay > - 0.001 ) if ( delay < 0.001 && delay > - 0.001 )
return; return;
QCString s ("audio_delay "); TQCString s ("audio_delay ");
s += QCString().setNum (- delay) + "\n"; s += TQCString().setNum (- delay) + "\n";
sendPlayerCommand (s); sendPlayerCommand (s);
m_send_audio_delay = 0; m_send_audio_delay = 0;
} }
@ -1219,11 +1219,11 @@ void KPlayerProcess::audioID (int id)
} }
if ( id != m_audio_id ) if ( id != m_audio_id )
{ {
QRegExp demuxers (configuration() -> switchAudioDemuxers()); TQRegExp demuxers (configuration() -> switchAudioDemuxers());
if ( demuxers.search (properties() -> demuxerString()) >= 0 ) if ( demuxers.search (properties() -> demuxerString()) >= 0 )
{ {
QCString s ("switch_audio "); TQCString s ("switch_audio ");
s += QCString().setNum (id) + "\n"; s += TQCString().setNum (id) + "\n";
sendPlayerCommand (s); sendPlayerCommand (s);
m_audio_id = id; m_audio_id = id;
} }
@ -1233,7 +1233,7 @@ void KPlayerProcess::audioID (int id)
m_send_audio_id = false; 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 ) 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 #ifdef DEBUG_KPLAYER_KIOSLAVE
kdDebugTime() << "Process: Cache: Creating new chunk, size " << data.size() << "\n"; kdDebugTime() << "Process: Cache: Creating new chunk, size " << data.size() << "\n";
#endif #endif
m_cache.append (new QByteArray (data.copy())); m_cache.append (new TQByteArray (data.copy()));
} }
else else
{ {
QByteArray* array = m_cache.last(); TQByteArray* array = m_cache.last();
int size = array -> size(); int size = array -> size();
array -> resize (size + data.size(), QGArray::SpeedOptim); array -> resize (size + data.size(), TQGArray::SpeedOptim);
#ifdef DEBUG_KPLAYER_KIOSLAVE #ifdef DEBUG_KPLAYER_KIOSLAVE
if ( array -> size() != size + data.size() ) if ( array -> size() != size + data.size() )
kdDebugTime() << "Process: Cache: Size mismatch: " << size << " + " << data.size() << " = " << array -> size() << "\n"; 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 ) if ( job && job == m_temp_job && m_temporary_file )
{ {
@ -1323,7 +1323,7 @@ void KPlayerProcess::transferProgress (KIO::Job* job, unsigned long progress)
#endif #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) ) if ( job && (job == m_slave_job || job == m_temp_job) )
emit messageReceived (message); emit messageReceived (message);
@ -1340,7 +1340,7 @@ void KPlayerProcess::transferDone (KIO::Job* job)
#endif #endif
if ( job -> error() != 0 && (job -> error() != 20 || ! m_quit) || error_page ) if ( job -> error() != 0 && (job -> error() != 20 || ! m_quit) || error_page )
{ {
QString errorString; TQString errorString;
if ( job -> error() != 0 ) if ( job -> error() != 0 )
{ {
errorString = job -> errorString(); errorString = job -> errorString();
@ -1399,7 +1399,7 @@ void KPlayerProcess::transferTempDone (KIO::Job* job)
#endif #endif
if ( job -> error() != 0 && (job -> error() != 20 || ! m_quit) || m_temp_job -> isErrorPage() ) if ( job -> error() != 0 && (job -> error() != 20 || ! m_quit) || m_temp_job -> isErrorPage() )
{ {
QString errorString; TQString errorString;
if ( job -> error() != 0 ) if ( job -> error() != 0 )
errorString = job -> errorString(); errorString = job -> errorString();
else if ( m_temp_job -> isErrorPage() ) else if ( m_temp_job -> isErrorPage() )
@ -1420,12 +1420,12 @@ void KPlayerProcess::transferTempDone (KIO::Job* job)
} }
/*if ( m_temp_job -> isErrorPage() ) /*if ( m_temp_job -> isErrorPage() )
emit messageReceived ("HTTP request returned an error"); emit messageReceived ("HTTP request returned an error");
QString errorString (job -> errorString()); TQString errorString (job -> errorString());
if ( ! errorString.isEmpty() ) if ( ! errorString.isEmpty() )
emit messageReceived (errorString); emit messageReceived (errorString);
KURL url (settings() -> url()); KURL url (settings() -> url());
QStringList errors (job -> detailedErrorStrings (&url)); TQStringList errors (job -> detailedErrorStrings (&url));
for ( QStringList::Iterator it = errors.begin(); it != errors.end(); ++ it ) for ( TQStringList::Iterator it = errors.begin(); it != errors.end(); ++ it )
if ( ! (*it).isEmpty() ) if ( ! (*it).isEmpty() )
emit messageReceived (*it);*/ emit messageReceived (*it);*/
emit errorDetected(); emit errorDetected();
@ -1521,7 +1521,7 @@ void KPlayerProcess::sendFifoData (void)
delete m_fifo_timer; delete m_fifo_timer;
m_fifo_timer = 0; 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); m_fifo_notifier -> setEnabled (false);
connect (m_fifo_notifier, SIGNAL (activated (int)), SLOT (playerDataWritten (int))); connect (m_fifo_notifier, SIGNAL (activated (int)), SLOT (playerDataWritten (int)));
} }
@ -1530,14 +1530,14 @@ void KPlayerProcess::sendFifoData (void)
#ifdef DEBUG_KPLAYER_PROCESS #ifdef DEBUG_KPLAYER_PROCESS
kdDebugTime() << "Process: fifo open failed, creating timer\n"; kdDebugTime() << "Process: fifo open failed, creating timer\n";
#endif #endif
m_fifo_timer = new QTimer (this); m_fifo_timer = new TQTimer (this);
connect (m_fifo_timer, SIGNAL (timeout()), SLOT (sendFifoData())); connect (m_fifo_timer, SIGNAL (timeout()), SLOT (sendFifoData()));
m_fifo_timer -> start (100); m_fifo_timer -> start (100);
} }
} }
if ( m_fifo_handle >= 0 ) if ( m_fifo_handle >= 0 )
{ {
QByteArray* array = m_cache.first(); TQByteArray* array = m_cache.first();
if ( array && array -> size() > m_fifo_offset ) if ( array && array -> size() > m_fifo_offset )
{ {
#ifdef DEBUG_KPLAYER_KIOSLAVE #ifdef DEBUG_KPLAYER_KIOSLAVE
@ -1569,7 +1569,7 @@ void KPlayerProcess::playerDataWritten (int fd)
#ifdef DEBUG_KPLAYER_KIOSLAVE #ifdef DEBUG_KPLAYER_KIOSLAVE
kdDebugTime() << "Process: Cache: Data written\n"; kdDebugTime() << "Process: Cache: Data written\n";
#endif #endif
QByteArray* array = m_cache.first(); TQByteArray* array = m_cache.first();
if ( array && array -> size() <= m_fifo_offset ) if ( array && array -> size() <= m_fifo_offset )
{ {
#ifdef DEBUG_KPLAYER_KIOSLAVE #ifdef DEBUG_KPLAYER_KIOSLAVE
@ -1617,7 +1617,7 @@ void KPlayerProcess::playerProcessExited (KProcess *proc)
if ( m_slave_job ) if ( m_slave_job )
m_slave_job -> kill (false); m_slave_job -> kill (false);
removeDataFifo(); removeDataFifo();
m_fifo_name = QCString(); m_fifo_name = TQCString();
if ( ! m_quit ) if ( ! m_quit )
setState (Idle); setState (Idle);
} }
@ -1701,7 +1701,7 @@ void KPlayerProcess::receivedOutputLine (KPlayerLineOutputProcess* proc, char* s
else if ( m_state < Playing || strncmp (str, "ID_", 3) == 0 else if ( m_state < Playing || strncmp (str, "ID_", 3) == 0
|| strncmp (str, "Name", 4) == 0 || strncmp (str, "ICY Info:", 9) == 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 hadVideo = properties() -> hasVideo();
bool hadLength = properties() -> hasLength(); bool hadLength = properties() -> hasLength();
properties() -> extractMeta (str, true); properties() -> extractMeta (str, true);
@ -1808,8 +1808,8 @@ void KPlayerProcess::receivedOutputLine (KPlayerLineOutputProcess* proc, char* s
#ifdef DEBUG_KPLAYER_PROCESS #ifdef DEBUG_KPLAYER_PROCESS
kdDebugTime() << "Process: Sending audio delay\n"; kdDebugTime() << "Process: Sending audio delay\n";
#endif #endif
QCString s ("audio_delay "); TQCString s ("audio_delay ");
s += QCString().setNum (- m_send_audio_delay) + "\n"; s += TQCString().setNum (- m_send_audio_delay) + "\n";
sendPlayerCommand (s); sendPlayerCommand (s);
m_send_audio_delay = 0; m_send_audio_delay = 0;
} }
@ -1818,8 +1818,8 @@ void KPlayerProcess::receivedOutputLine (KPlayerLineOutputProcess* proc, char* s
#ifdef DEBUG_KPLAYER_PROCESS #ifdef DEBUG_KPLAYER_PROCESS
kdDebugTime() << "Process: Sending subtitle delay\n"; kdDebugTime() << "Process: Sending subtitle delay\n";
#endif #endif
QCString s ("sub_delay "); TQCString s ("sub_delay ");
s += QCString().setNum (- m_send_subtitle_delay) + "\n"; s += TQCString().setNum (- m_send_subtitle_delay) + "\n";
sendPlayerCommand (s); sendPlayerCommand (s);
m_send_subtitle_delay = 0; m_send_subtitle_delay = 0;
} }
@ -1828,8 +1828,8 @@ void KPlayerProcess::receivedOutputLine (KPlayerLineOutputProcess* proc, char* s
#ifdef DEBUG_KPLAYER_PROCESS #ifdef DEBUG_KPLAYER_PROCESS
kdDebugTime() << "Process: Sending subtitle position\n"; kdDebugTime() << "Process: Sending subtitle position\n";
#endif #endif
QCString s ("sub_pos "); TQCString s ("sub_pos ");
s += QCString().setNum (m_send_subtitle_position) + "\n"; s += TQCString().setNum (m_send_subtitle_position) + "\n";
sendPlayerCommand (s); sendPlayerCommand (s);
m_send_subtitle_position = 0; m_send_subtitle_position = 0;
} }
@ -1955,7 +1955,7 @@ void KPlayerProcess::receivedOutputLine (KPlayerLineOutputProcess* proc, char* s
} }
else if ( ! m_quit ) else if ( ! m_quit )
{ {
emit messageReceived (QString::fromLocal8Bit (str)); emit messageReceived (TQString::fromLocal8Bit (str));
#ifdef DEBUG_KPLAYER_PROCESS #ifdef DEBUG_KPLAYER_PROCESS
kdDebugTime() << "process >> " << str << "\n"; kdDebugTime() << "process >> " << str << "\n";
#endif #endif

@ -20,9 +20,9 @@
#include <kio/job.h> #include <kio/job.h>
#include <kprocess.h> #include <kprocess.h>
#include <kurl.h> #include <kurl.h>
#include <qfile.h> #include <tqfile.h>
#include <qobject.h> #include <tqobject.h>
#include <qptrlist.h> #include <tqptrlist.h>
class KPlayerConfiguration; class KPlayerConfiguration;
class KPlayerTrackProperties; class KPlayerTrackProperties;
@ -108,7 +108,7 @@ protected:
/**Handles the MPlayer process invocation, input and output. /**Handles the MPlayer process invocation, input and output.
*@author kiriuja *@author kiriuja
*/ */
class KPlayerProcess : public QObject class KPlayerProcess : public TQObject
{ {
Q_OBJECT Q_OBJECT
@ -176,7 +176,7 @@ public:
float position (void) const float position (void) const
{ return m_position; } { return m_position; }
/** Current position as string. */ /** Current position as string. */
QString positionString (void) const; TQString positionString (void) const;
/** Changes volume level. */ /** Changes volume level. */
void volume (int); void volume (int);
@ -232,9 +232,9 @@ protected:
KPlayerConfiguration* configuration (void) const; KPlayerConfiguration* configuration (void) const;
/** Sends the given command to the MPlayer process. */ /** Sends the given command to the MPlayer process. */
void sendPlayerCommand (QCString&); void sendPlayerCommand (TQCString&);
/** Sends the given command to the MPlayer helper process. */ /** Sends the given command to the MPlayer helper process. */
void sendHelperCommand (QCString&); void sendHelperCommand (TQCString&);
/** Closes and unlinks the named pipe. */ /** Closes and unlinks the named pipe. */
void removeDataFifo (void); void removeDataFifo (void);
@ -262,22 +262,22 @@ protected:
void transferTemporaryFile (void); void transferTemporaryFile (void);
/** Name of named pipe used to send data to MPlayer. */ /** 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. */ /** Handle of named pipe used to send data to MPlayer. */
int m_fifo_handle; int m_fifo_handle;
/** Offset of data to send. */ /** Offset of data to send. */
uint m_fifo_offset; uint m_fifo_offset;
/** Fifo notifier object. */ /** Fifo notifier object. */
QSocketNotifier* m_fifo_notifier; TQSocketNotifier* m_fifo_notifier;
/** Fifo timer object. */ /** Fifo timer object. */
QTimer* m_fifo_timer; TQTimer* m_fifo_timer;
/** Transfer job. */ /** Transfer job. */
KIO::TransferJob* m_slave_job; KIO::TransferJob* m_slave_job;
/** Temporary file transfer job. */ /** Temporary file transfer job. */
KIO::TransferJob* m_temp_job; KIO::TransferJob* m_temp_job;
/** Cached transfer data. */ /** Cached transfer data. */
QPtrList<QByteArray> m_cache; TQPtrList<TQByteArray> m_cache;
/** Temporary file from KIOSlave. */ /** Temporary file from KIOSlave. */
KTempFile* m_temporary_file; KTempFile* m_temporary_file;
@ -288,9 +288,9 @@ protected:
/** Current subtitle index. */ /** Current subtitle index. */
int m_subtitle_index; int m_subtitle_index;
/** Current list of external subtitles. */ /** Current list of external subtitles. */
QStringList m_subtitles; TQStringList m_subtitles;
/** Current vobsub external subtitles. */ /** Current vobsub external subtitles. */
QString m_vobsub; TQString m_vobsub;
/** Current audio delay. */ /** Current audio delay. */
float m_audio_delay; float m_audio_delay;
@ -324,13 +324,13 @@ protected slots:
/** Receives notification when the data has been written to the fifo. */ /** Receives notification when the data has been written to the fifo. */
void playerDataWritten (int); void playerDataWritten (int);
/** Transfers data from a KIOSlave to an MPlayer process. */ /** 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. */ /** 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. */ /** Emits file transfer progress signal. */
void transferProgress (KIO::Job*, unsigned long); void transferProgress (KIO::Job*, unsigned long);
/** Emits message received signal. */ /** Emits message received signal. */
void transferInfoMessage (KIO::Job*, const QString&); void transferInfoMessage (KIO::Job*, const TQString&);
/** Processes the result of a slave transfer job. */ /** Processes the result of a slave transfer job. */
void transferDone (KIO::Job*); void transferDone (KIO::Job*);
/** Processes the result of a temporary file transfer job. */ /** Processes the result of a temporary file transfer job. */
@ -350,7 +350,7 @@ signals:
/** Emitted when the video size becomes known. */ /** Emitted when the video size becomes known. */
void sizeAvailable (void); void sizeAvailable (void);
/** Emitted when a message is received from the mplayer process. */ /** Emitted when a message is received from the mplayer process. */
void messageReceived (QString); void messageReceived (TQString);
/** Emitted when MPlayer fails to play a file. */ /** Emitted when MPlayer fails to play a file. */
void errorDetected (void); 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"> <!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>KPlayerPropertiesAdvancedPage</class> <class>KPlayerPropertiesAdvancedPage</class>
<widget class="QFrame"> <widget class="TQFrame">
<property name="name"> <property name="name">
<cstring>KPlayerPropertiesAdvancedPage</cstring> <cstring>KPlayerPropertiesAdvancedPage</cstring>
</property> </property>
@ -36,7 +36,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QFrame" row="0" column="0"> <widget class="TQFrame" row="0" column="0">
<property name="name"> <property name="name">
<cstring>frame1</cstring> <cstring>frame1</cstring>
</property> </property>
@ -58,7 +58,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout1</cstring> <cstring>layout1</cstring>
</property> </property>
@ -66,7 +66,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLabel" row="0" column="0" colspan="2"> <widget class="TQLabel" row="0" column="0" colspan="2">
<property name="name"> <property name="name">
<cstring>l_command_line</cstring> <cstring>l_command_line</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QComboBox" row="1" column="0"> <widget class="TQComboBox" row="1" column="0">
<item> <item>
<property name="text"> <property name="text">
<string>default</string> <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> <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> </property>
</widget> </widget>
<widget class="QLineEdit" row="1" column="1"> <widget class="TQLineEdit" row="1" column="1">
<property name="name"> <property name="name">
<cstring>c_command_line</cstring> <cstring>c_command_line</cstring>
</property> </property>
@ -133,7 +133,7 @@
</widget> </widget>
</grid> </grid>
</widget> </widget>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout2</cstring> <cstring>layout2</cstring>
</property> </property>
@ -141,7 +141,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLabel" row="0" column="0"> <widget class="TQLabel" row="0" column="0">
<property name="name"> <property name="name">
<cstring>l_demuxer</cstring> <cstring>l_demuxer</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QComboBox" row="0" column="1" colspan="3"> <widget class="TQComboBox" row="0" column="1" colspan="3">
<property name="name"> <property name="name">
<cstring>c_demuxer</cstring> <cstring>c_demuxer</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="1" column="0"> <widget class="TQLabel" row="1" column="0">
<property name="name"> <property name="name">
<cstring>l_frame_drop</cstring> <cstring>l_frame_drop</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QComboBox" row="1" column="1"> <widget class="TQComboBox" row="1" column="1">
<item> <item>
<property name="text"> <property name="text">
<string>default</string> <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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="2" column="0"> <widget class="TQLabel" row="2" column="0">
<property name="name"> <property name="name">
<cstring>l_use_cache</cstring> <cstring>l_use_cache</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QComboBox" row="2" column="1"> <widget class="TQComboBox" row="2" column="1">
<item> <item>
<property name="text"> <property name="text">
<string>default</string> <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> <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> </property>
</widget> </widget>
<widget class="QLineEdit" row="2" column="2"> <widget class="TQLineEdit" row="2" column="2">
<property name="name"> <property name="name">
<cstring>c_cache_size</cstring> <cstring>c_cache_size</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="2" column="3"> <widget class="TQLabel" row="2" column="3">
<property name="name"> <property name="name">
<cstring>l_cache_size_kb</cstring> <cstring>l_cache_size_kb</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="3" column="0"> <widget class="TQLabel" row="3" column="0">
<property name="name"> <property name="name">
<cstring>l_build_index</cstring> <cstring>l_build_index</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QComboBox" row="3" column="1"> <widget class="TQComboBox" row="3" column="1">
<item> <item>
<property name="text"> <property name="text">
<string>default</string> <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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="4" column="0"> <widget class="TQLabel" row="4" column="0">
<property name="name"> <property name="name">
<cstring>l_use_kioslave</cstring> <cstring>l_use_kioslave</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QComboBox" row="4" column="1"> <widget class="TQComboBox" row="4" column="1">
<item> <item>
<property name="text"> <property name="text">
<string>auto</string> <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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="5" column="0"> <widget class="TQLabel" row="5" column="0">
<property name="name"> <property name="name">
<cstring>l_use_temporary_file</cstring> <cstring>l_use_temporary_file</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QComboBox" row="5" column="1"> <widget class="TQComboBox" row="5" column="1">
<item> <item>
<property name="text"> <property name="text">
<string>default</string> <string>default</string>
@ -480,7 +480,7 @@
</widget> </widget>
</grid> </grid>
</widget> </widget>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>l_compression</cstring> <cstring>l_compression</cstring>
</property> </property>
@ -488,7 +488,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QCheckBox" row="0" column="0"> <widget class="TQCheckBox" row="0" column="0">
<property name="name"> <property name="name">
<cstring>c_compression</cstring> <cstring>c_compression</cstring>
</property> </property>
@ -502,7 +502,7 @@
<string>Option to choose whether to use hardware compression and set image size and quality.</string> <string>Option to choose whether to use hardware compression and set image size and quality.</string>
</property> </property>
</widget> </widget>
<widget class="QComboBox" row="0" column="1"> <widget class="TQComboBox" row="0" column="1">
<item> <item>
<property name="text"> <property name="text">
<string>full size</string> <string>full size</string>
@ -528,7 +528,7 @@
<string>Option to choose whether to use hardware compression and set image size and quality.</string> <string>Option to choose whether to use hardware compression and set image size and quality.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="0" column="2"> <widget class="TQLabel" row="0" column="2">
<property name="name"> <property name="name">
<cstring>l_quality</cstring> <cstring>l_quality</cstring>
</property> </property>
@ -548,7 +548,7 @@
<string>Option to choose whether to use hardware compression and set image size and quality.</string> <string>Option to choose whether to use hardware compression and set image size and quality.</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit" row="0" column="3"> <widget class="TQLineEdit" row="0" column="3">
<property name="name"> <property name="name">
<cstring>c_quality</cstring> <cstring>c_quality</cstring>
</property> </property>
@ -576,7 +576,7 @@
<string>Option to choose whether to use hardware compression and set image size and quality.</string> <string>Option to choose whether to use hardware compression and set image size and quality.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="0" column="4"> <widget class="TQLabel" row="0" column="4">
<property name="name"> <property name="name">
<cstring>l_spacer</cstring> <cstring>l_spacer</cstring>
</property> </property>

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1"> <!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>KPlayerPropertiesAudioPage</class> <class>KPlayerPropertiesAudioPage</class>
<widget class="QFrame"> <widget class="TQFrame">
<property name="name"> <property name="name">
<cstring>KPlayerPropertiesAudioPage</cstring> <cstring>KPlayerPropertiesAudioPage</cstring>
</property> </property>
@ -28,7 +28,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QFrame" row="0" column="0"> <widget class="TQFrame" row="0" column="0">
<property name="name"> <property name="name">
<cstring>frame1</cstring> <cstring>frame1</cstring>
</property> </property>
@ -50,7 +50,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLayoutWidget" row="0" column="0"> <widget class="TQLayoutWidget" row="0" column="0">
<property name="name"> <property name="name">
<cstring>layout3</cstring> <cstring>layout3</cstring>
</property> </property>
@ -58,7 +58,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLabel" row="0" column="0"> <widget class="TQLabel" row="0" column="0">
<property name="name"> <property name="name">
<cstring>l_track</cstring> <cstring>l_track</cstring>
</property> </property>
@ -78,7 +78,7 @@
<string>Option to choose the audio track to play.</string> <string>Option to choose the audio track to play.</string>
</property> </property>
</widget> </widget>
<widget class="QComboBox" row="0" column="1"> <widget class="TQComboBox" row="0" column="1">
<item> <item>
<property name="text"> <property name="text">
<string>auto</string> <string>auto</string>
@ -107,7 +107,7 @@
<string>Option to choose the audio track to play.</string> <string>Option to choose the audio track to play.</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit" row="0" column="2"> <widget class="TQLineEdit" row="0" column="2">
<property name="name"> <property name="name">
<cstring>c_track</cstring> <cstring>c_track</cstring>
</property> </property>
@ -132,7 +132,7 @@
<string>Option to choose the audio track to play.</string> <string>Option to choose the audio track to play.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="1" column="0"> <widget class="TQLabel" row="1" column="0">
<property name="name"> <property name="name">
<cstring>l_volume</cstring> <cstring>l_volume</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QComboBox" row="1" column="1"> <widget class="TQComboBox" row="1" column="1">
<item> <item>
<property name="text"> <property name="text">
<string>default</string> <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> <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> </property>
</widget> </widget>
<widget class="QLineEdit" row="1" column="2"> <widget class="TQLineEdit" row="1" column="2">
<property name="name"> <property name="name">
<cstring>c_volume</cstring> <cstring>c_volume</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="2" column="0"> <widget class="TQLabel" row="2" column="0">
<property name="name"> <property name="name">
<cstring>l_delay</cstring> <cstring>l_delay</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QComboBox" row="2" column="1"> <widget class="TQComboBox" row="2" column="1">
<item> <item>
<property name="text"> <property name="text">
<string>default</string> <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> <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> </property>
</widget> </widget>
<widget class="QLineEdit" row="2" column="2"> <widget class="TQLineEdit" row="2" column="2">
<property name="name"> <property name="name">
<cstring>c_delay</cstring> <cstring>c_delay</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="2" column="3"> <widget class="TQLabel" row="2" column="3">
<property name="name"> <property name="name">
<cstring>l_seconds</cstring> <cstring>l_seconds</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="3" column="0"> <widget class="TQLabel" row="3" column="0">
<property name="name"> <property name="name">
<cstring>l_codec</cstring> <cstring>l_codec</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QComboBox" row="3" column="1" colspan="3"> <widget class="TQComboBox" row="3" column="1" colspan="3">
<property name="name"> <property name="name">
<cstring>c_codec</cstring> <cstring>c_codec</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="4" column="0"> <widget class="TQLabel" row="4" column="0">
<property name="name"> <property name="name">
<cstring>l_bitrate</cstring> <cstring>l_bitrate</cstring>
</property> </property>
@ -374,7 +374,7 @@
<string>Property that shows audio bitrate of this file.</string> <string>Property that shows audio bitrate of this file.</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit" row="4" column="1"> <widget class="TQLineEdit" row="4" column="1">
<property name="name"> <property name="name">
<cstring>c_bitrate</cstring> <cstring>c_bitrate</cstring>
</property> </property>
@ -396,7 +396,7 @@
<string>Property that shows audio bitrate of this file.</string> <string>Property that shows audio bitrate of this file.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="4" column="2"> <widget class="TQLabel" row="4" column="2">
<property name="name"> <property name="name">
<cstring>l_kbps</cstring> <cstring>l_kbps</cstring>
</property> </property>
@ -421,7 +421,7 @@
<string>Property that shows audio bitrate of this file.</string> <string>Property that shows audio bitrate of this file.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="5" column="0"> <widget class="TQLabel" row="5" column="0">
<property name="name"> <property name="name">
<cstring>l_samplerate</cstring> <cstring>l_samplerate</cstring>
</property> </property>
@ -441,7 +441,7 @@
<string>Property that shows audio sample rate of this file.</string> <string>Property that shows audio sample rate of this file.</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit" row="5" column="1"> <widget class="TQLineEdit" row="5" column="1">
<property name="name"> <property name="name">
<cstring>c_samplerate</cstring> <cstring>c_samplerate</cstring>
</property> </property>
@ -463,7 +463,7 @@
<string>Property that shows audio sample rate of this file.</string> <string>Property that shows audio sample rate of this file.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="5" column="2"> <widget class="TQLabel" row="5" column="2">
<property name="name"> <property name="name">
<cstring>l_hz</cstring> <cstring>l_hz</cstring>
</property> </property>
@ -488,7 +488,7 @@
<string>Property that shows audio sample rate of this file.</string> <string>Property that shows audio sample rate of this file.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="6" column="0"> <widget class="TQLabel" row="6" column="0">
<property name="name"> <property name="name">
<cstring>l_mode</cstring> <cstring>l_mode</cstring>
</property> </property>
@ -508,7 +508,7 @@
<string>Option to choose the audio mode to request from the device.</string> <string>Option to choose the audio mode to request from the device.</string>
</property> </property>
</widget> </widget>
<widget class="QComboBox" row="6" column="1"> <widget class="TQComboBox" row="6" column="1">
<item> <item>
<property name="text"> <property name="text">
<string>auto</string> <string>auto</string>
@ -552,7 +552,7 @@
<string>Option to choose the audio mode to request from the device.</string> <string>Option to choose the audio mode to request from the device.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="7" column="0"> <widget class="TQLabel" row="7" column="0">
<property name="name"> <property name="name">
<cstring>l_input</cstring> <cstring>l_input</cstring>
</property> </property>
@ -572,7 +572,7 @@
<string>Option to specify the audio card input ID to use for capturing audio.</string> <string>Option to specify the audio card input ID to use for capturing audio.</string>
</property> </property>
</widget> </widget>
<widget class="QComboBox" row="7" column="1"> <widget class="TQComboBox" row="7" column="1">
<item> <item>
<property name="text"> <property name="text">
<string>auto</string> <string>auto</string>
@ -601,7 +601,7 @@
<string>Option to specify the audio card input ID to use for capturing audio.</string> <string>Option to specify the audio card input ID to use for capturing audio.</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit" row="7" column="2"> <widget class="TQLineEdit" row="7" column="2">
<property name="name"> <property name="name">
<cstring>c_input</cstring> <cstring>c_input</cstring>
</property> </property>
@ -618,7 +618,7 @@
<string>Option to specify the audio card input ID to use for capturing audio.</string> <string>Option to specify the audio card input ID to use for capturing audio.</string>
</property> </property>
</widget> </widget>
<widget class="QCheckBox" row="7" column="3"> <widget class="TQCheckBox" row="7" column="3">
<property name="name"> <property name="name">
<cstring>c_immediate</cstring> <cstring>c_immediate</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="8" column="0"> <widget class="TQLabel" row="8" column="0">
<property name="name"> <property name="name">
<cstring>l_capture</cstring> <cstring>l_capture</cstring>
</property> </property>
@ -660,7 +660,7 @@
<string>Option to specify the audio capture system and device.</string> <string>Option to specify the audio capture system and device.</string>
</property> </property>
</widget> </widget>
<widget class="QComboBox" row="8" column="1"> <widget class="TQComboBox" row="8" column="1">
<item> <item>
<property name="text"> <property name="text">
<string>ALSA</string> <string>ALSA</string>
@ -689,7 +689,7 @@
<string>Option to specify the audio capture system and device.</string> <string>Option to specify the audio capture system and device.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="8" column="2"> <widget class="TQLabel" row="8" column="2">
<property name="name"> <property name="name">
<cstring>l_device</cstring> <cstring>l_device</cstring>
</property> </property>
@ -717,7 +717,7 @@
<string>Option to specify the audio capture system and device.</string> <string>Option to specify the audio capture system and device.</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit" row="8" column="3"> <widget class="TQLineEdit" row="8" column="3">
<property name="name"> <property name="name">
<cstring>c_device</cstring> <cstring>c_device</cstring>
</property> </property>

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

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

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

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

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1"> <!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>KPlayerPropertiesSizePage</class> <class>KPlayerPropertiesSizePage</class>
<widget class="QFrame"> <widget class="TQFrame">
<property name="name"> <property name="name">
<cstring>KPlayerPropertiesSizePage</cstring> <cstring>KPlayerPropertiesSizePage</cstring>
</property> </property>
@ -28,7 +28,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QFrame" row="0" column="0"> <widget class="TQFrame" row="0" column="0">
<property name="name"> <property name="name">
<cstring>frame1</cstring> <cstring>frame1</cstring>
</property> </property>
@ -50,7 +50,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout1</cstring> <cstring>layout1</cstring>
</property> </property>
@ -58,7 +58,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLabel" row="0" column="0"> <widget class="TQLabel" row="0" column="0">
<property name="name"> <property name="name">
<cstring>l_resolution</cstring> <cstring>l_resolution</cstring>
</property> </property>
@ -78,7 +78,7 @@
<string>Property that shows the video resolution in pixels.</string> <string>Property that shows the video resolution in pixels.</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit" row="0" column="1"> <widget class="TQLineEdit" row="0" column="1">
<property name="name"> <property name="name">
<cstring>c_resolution_width</cstring> <cstring>c_resolution_width</cstring>
</property> </property>
@ -98,7 +98,7 @@
<string>Property that shows the video resolution in pixels.</string> <string>Property that shows the video resolution in pixels.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="0" column="2"> <widget class="TQLabel" row="0" column="2">
<property name="name"> <property name="name">
<cstring>l_resolution_by</cstring> <cstring>l_resolution_by</cstring>
</property> </property>
@ -118,7 +118,7 @@
<string>Property that shows the video resolution in pixels.</string> <string>Property that shows the video resolution in pixels.</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit" row="0" column="3"> <widget class="TQLineEdit" row="0" column="3">
<property name="name"> <property name="name">
<cstring>c_resolution_height</cstring> <cstring>c_resolution_height</cstring>
</property> </property>
@ -138,7 +138,7 @@
<string>Property that shows the video resolution in pixels.</string> <string>Property that shows the video resolution in pixels.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="1" column="0"> <widget class="TQLabel" row="1" column="0">
<property name="name"> <property name="name">
<cstring>l_original_size</cstring> <cstring>l_original_size</cstring>
</property> </property>
@ -158,7 +158,7 @@
<string>Property that shows the original video size in pixels.</string> <string>Property that shows the original video size in pixels.</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit" row="1" column="1"> <widget class="TQLineEdit" row="1" column="1">
<property name="name"> <property name="name">
<cstring>c_original_width</cstring> <cstring>c_original_width</cstring>
</property> </property>
@ -178,7 +178,7 @@
<string>Property that shows the original video size in pixels.</string> <string>Property that shows the original video size in pixels.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="1" column="2"> <widget class="TQLabel" row="1" column="2">
<property name="name"> <property name="name">
<cstring>l_original_by</cstring> <cstring>l_original_by</cstring>
</property> </property>
@ -198,7 +198,7 @@
<string>Property that shows the original video size in pixels.</string> <string>Property that shows the original video size in pixels.</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit" row="1" column="3"> <widget class="TQLineEdit" row="1" column="3">
<property name="name"> <property name="name">
<cstring>c_original_height</cstring> <cstring>c_original_height</cstring>
</property> </property>
@ -218,7 +218,7 @@
<string>Property that shows the original video size in pixels.</string> <string>Property that shows the original video size in pixels.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="2" column="0"> <widget class="TQLabel" row="2" column="0">
<property name="name"> <property name="name">
<cstring>l_current_size</cstring> <cstring>l_current_size</cstring>
</property> </property>
@ -238,7 +238,7 @@
<string>Property that shows the current video size in pixels.</string> <string>Property that shows the current video size in pixels.</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit" row="2" column="1"> <widget class="TQLineEdit" row="2" column="1">
<property name="name"> <property name="name">
<cstring>c_current_width</cstring> <cstring>c_current_width</cstring>
</property> </property>
@ -258,7 +258,7 @@
<string>Property that shows the current video size in pixels.</string> <string>Property that shows the current video size in pixels.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="2" column="2"> <widget class="TQLabel" row="2" column="2">
<property name="name"> <property name="name">
<cstring>l_current_by</cstring> <cstring>l_current_by</cstring>
</property> </property>
@ -278,7 +278,7 @@
<string>Property that shows the current video size in pixels.</string> <string>Property that shows the current video size in pixels.</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit" row="2" column="3"> <widget class="TQLineEdit" row="2" column="3">
<property name="name"> <property name="name">
<cstring>c_current_height</cstring> <cstring>c_current_height</cstring>
</property> </property>
@ -298,7 +298,7 @@
<string>Property that shows the current video size in pixels.</string> <string>Property that shows the current video size in pixels.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="3" column="0"> <widget class="TQLabel" row="3" column="0">
<property name="name"> <property name="name">
<cstring>l_display_size</cstring> <cstring>l_display_size</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QComboBox" row="3" column="1" colspan="3"> <widget class="TQComboBox" row="3" column="1" colspan="3">
<item> <item>
<property name="text"> <property name="text">
<string>auto</string> <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> <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> </property>
</widget> </widget>
<widget class="QLineEdit" row="4" column="1"> <widget class="TQLineEdit" row="4" column="1">
<property name="name"> <property name="name">
<cstring>c_display_width</cstring> <cstring>c_display_width</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="4" column="2"> <widget class="TQLabel" row="4" column="2">
<property name="name"> <property name="name">
<cstring>l_display_by</cstring> <cstring>l_display_by</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLineEdit" row="4" column="3"> <widget class="TQLineEdit" row="4" column="3">
<property name="name"> <property name="name">
<cstring>c_display_height</cstring> <cstring>c_display_height</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="5" column="0"> <widget class="TQLabel" row="5" column="0">
<property name="name"> <property name="name">
<cstring>l_full_screen</cstring> <cstring>l_full_screen</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QComboBox" row="5" column="1" colspan="3"> <widget class="TQComboBox" row="5" column="1" colspan="3">
<item> <item>
<property name="text"> <property name="text">
<string>default</string> <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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="6" column="0"> <widget class="TQLabel" row="6" column="0">
<property name="name"> <property name="name">
<cstring>l_maximized</cstring> <cstring>l_maximized</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QComboBox" row="6" column="1" colspan="3"> <widget class="TQComboBox" row="6" column="1" colspan="3">
<item> <item>
<property name="text"> <property name="text">
<string>default</string> <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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="7" column="0"> <widget class="TQLabel" row="7" column="0">
<property name="name"> <property name="name">
<cstring>l_maintain_aspect</cstring> <cstring>l_maintain_aspect</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QComboBox" row="7" column="1" colspan="3"> <widget class="TQComboBox" row="7" column="1" colspan="3">
<item> <item>
<property name="text"> <property name="text">
<string>default</string> <string>default</string>

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1"> <!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>KPlayerPropertiesSubtitlesPage</class> <class>KPlayerPropertiesSubtitlesPage</class>
<widget class="QFrame"> <widget class="TQFrame">
<property name="name"> <property name="name">
<cstring>KPlayerPropertiesSubtitlesPage</cstring> <cstring>KPlayerPropertiesSubtitlesPage</cstring>
</property> </property>
@ -28,7 +28,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QFrame" row="0" column="0"> <widget class="TQFrame" row="0" column="0">
<property name="name"> <property name="name">
<cstring>frame1</cstring> <cstring>frame1</cstring>
</property> </property>
@ -50,7 +50,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout1</cstring> <cstring>layout1</cstring>
</property> </property>
@ -58,7 +58,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLabel" row="0" column="0"> <widget class="TQLabel" row="0" column="0">
<property name="name"> <property name="name">
<cstring>l_track</cstring> <cstring>l_track</cstring>
</property> </property>
@ -78,7 +78,7 @@
<string>Option to choose the subtitle track to play.</string> <string>Option to choose the subtitle track to play.</string>
</property> </property>
</widget> </widget>
<widget class="QComboBox" row="0" column="1"> <widget class="TQComboBox" row="0" column="1">
<item> <item>
<property name="text"> <property name="text">
<string>none</string> <string>none</string>
@ -112,7 +112,7 @@
<string>Option to choose the subtitle track to play.</string> <string>Option to choose the subtitle track to play.</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit" row="0" column="2"> <widget class="TQLineEdit" row="0" column="2">
<property name="name"> <property name="name">
<cstring>c_track</cstring> <cstring>c_track</cstring>
</property> </property>
@ -137,7 +137,7 @@
<string>Option to choose the subtitle track to play.</string> <string>Option to choose the subtitle track to play.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="1" column="0" colspan="4"> <widget class="TQLabel" row="1" column="0" colspan="4">
<property name="name"> <property name="name">
<cstring>l_url</cstring> <cstring>l_url</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLineEdit" row="2" column="0" colspan="4"> <widget class="TQLineEdit" row="2" column="0" colspan="4">
<property name="name"> <property name="name">
<cstring>c_url</cstring> <cstring>c_url</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="3" column="0"> <widget class="TQLabel" row="3" column="0">
<property name="name"> <property name="name">
<cstring>l_vobsub</cstring> <cstring>l_vobsub</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QComboBox" row="3" column="1"> <widget class="TQComboBox" row="3" column="1">
<item> <item>
<property name="text"> <property name="text">
<string>auto</string> <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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="4" column="0"> <widget class="TQLabel" row="4" column="0">
<property name="name"> <property name="name">
<cstring>l_encoding</cstring> <cstring>l_encoding</cstring>
</property> </property>
@ -245,7 +245,7 @@
<string>Option to specify the encoding of the subtitle file.</string> <string>Option to specify the encoding of the subtitle file.</string>
</property> </property>
</widget> </widget>
<widget class="QComboBox" row="4" column="1" colspan="3"> <widget class="TQComboBox" row="4" column="1" colspan="3">
<item> <item>
<property name="text"> <property name="text">
<string>default</string> <string>default</string>
@ -277,7 +277,7 @@
<string>Option to specify the encoding of the subtitle file.</string> <string>Option to specify the encoding of the subtitle file.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="5" column="0"> <widget class="TQLabel" row="5" column="0">
<property name="name"> <property name="name">
<cstring>l_framerate</cstring> <cstring>l_framerate</cstring>
</property> </property>
@ -297,7 +297,7 @@
<string>Option to specify the frame rate of the subtitle file.</string> <string>Option to specify the frame rate of the subtitle file.</string>
</property> </property>
</widget> </widget>
<widget class="QComboBox" row="5" column="1"> <widget class="TQComboBox" row="5" column="1">
<item> <item>
<property name="text"> <property name="text">
<string>auto</string> <string>auto</string>
@ -324,7 +324,7 @@
<string>Option to specify the frame rate of the subtitle file.</string> <string>Option to specify the frame rate of the subtitle file.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="6" column="0"> <widget class="TQLabel" row="6" column="0">
<property name="name"> <property name="name">
<cstring>l_autoload</cstring> <cstring>l_autoload</cstring>
</property> </property>
@ -344,7 +344,7 @@
<string>Option to automatically load subtitles for this file. Default uses options from Subtitles page in KPlayer Settings.</string> <string>Option to automatically load subtitles for this file. Default uses options from Subtitles page in KPlayer Settings.</string>
</property> </property>
</widget> </widget>
<widget class="QComboBox" row="6" column="1"> <widget class="TQComboBox" row="6" column="1">
<item> <item>
<property name="text"> <property name="text">
<string>default</string> <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> <string>Option to automatically load subtitles for this file. Default uses options from Subtitles page in KPlayer Settings.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="7" column="0"> <widget class="TQLabel" row="7" column="0">
<property name="name"> <property name="name">
<cstring>l_position</cstring> <cstring>l_position</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QComboBox" row="7" column="1"> <widget class="TQComboBox" row="7" column="1">
<item> <item>
<property name="text"> <property name="text">
<string>default</string> <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> <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> </property>
</widget> </widget>
<widget class="QLineEdit" row="7" column="2"> <widget class="TQLineEdit" row="7" column="2">
<property name="name"> <property name="name">
<cstring>c_position</cstring> <cstring>c_position</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="8" column="0"> <widget class="TQLabel" row="8" column="0">
<property name="name"> <property name="name">
<cstring>l_delay</cstring> <cstring>l_delay</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QComboBox" row="8" column="1"> <widget class="TQComboBox" row="8" column="1">
<item> <item>
<property name="text"> <property name="text">
<string>default</string> <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> <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> </property>
</widget> </widget>
<widget class="QLineEdit" row="8" column="2"> <widget class="TQLineEdit" row="8" column="2">
<property name="name"> <property name="name">
<cstring>c_delay</cstring> <cstring>c_delay</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="8" column="3"> <widget class="TQLabel" row="8" column="3">
<property name="name"> <property name="name">
<cstring>l_delay_seconds</cstring> <cstring>l_delay_seconds</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="9" column="0"> <widget class="TQLabel" row="9" column="0">
<property name="name"> <property name="name">
<cstring>l_closed_caption</cstring> <cstring>l_closed_caption</cstring>
</property> </property>
@ -531,7 +531,7 @@
<string>Option to display closed caption subtitles if they are available.</string> <string>Option to display closed caption subtitles if they are available.</string>
</property> </property>
</widget> </widget>
<widget class="QComboBox" row="9" column="1"> <widget class="TQComboBox" row="9" column="1">
<item> <item>
<property name="text"> <property name="text">
<string>default</string> <string>default</string>

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1"> <!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>KPlayerPropertiesVideoPage</class> <class>KPlayerPropertiesVideoPage</class>
<widget class="QFrame"> <widget class="TQFrame">
<property name="name"> <property name="name">
<cstring>KPlayerPropertiesVideoPage</cstring> <cstring>KPlayerPropertiesVideoPage</cstring>
</property> </property>
@ -28,7 +28,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QFrame" row="0" column="0"> <widget class="TQFrame" row="0" column="0">
<property name="name"> <property name="name">
<cstring>frame1</cstring> <cstring>frame1</cstring>
</property> </property>
@ -50,7 +50,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout1</cstring> <cstring>layout1</cstring>
</property> </property>
@ -58,7 +58,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLabel" row="0" column="0"> <widget class="TQLabel" row="0" column="0">
<property name="name"> <property name="name">
<cstring>l_track</cstring> <cstring>l_track</cstring>
</property> </property>
@ -78,7 +78,7 @@
<string>Option to choose the video track to play.</string> <string>Option to choose the video track to play.</string>
</property> </property>
</widget> </widget>
<widget class="QComboBox" row="0" column="1"> <widget class="TQComboBox" row="0" column="1">
<item> <item>
<property name="text"> <property name="text">
<string>auto</string> <string>auto</string>
@ -107,7 +107,7 @@
<string>Option to choose the video track to play.</string> <string>Option to choose the video track to play.</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit" row="0" column="2"> <widget class="TQLineEdit" row="0" column="2">
<property name="name"> <property name="name">
<cstring>c_track</cstring> <cstring>c_track</cstring>
</property> </property>
@ -132,7 +132,7 @@
<string>Option to choose the video track to play.</string> <string>Option to choose the video track to play.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="1" column="0"> <widget class="TQLabel" row="1" column="0">
<property name="name"> <property name="name">
<cstring>l_contrast</cstring> <cstring>l_contrast</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QComboBox" row="1" column="1"> <widget class="TQComboBox" row="1" column="1">
<item> <item>
<property name="text"> <property name="text">
<string>default</string> <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> <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> </property>
</widget> </widget>
<widget class="QLineEdit" row="1" column="2"> <widget class="TQLineEdit" row="1" column="2">
<property name="name"> <property name="name">
<cstring>c_contrast</cstring> <cstring>c_contrast</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="1" column="3"> <widget class="TQLabel" row="1" column="3">
<property name="name"> <property name="name">
<cstring>l_empty</cstring> <cstring>l_empty</cstring>
</property> </property>
@ -224,7 +224,7 @@
<string></string> <string></string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="2" column="0"> <widget class="TQLabel" row="2" column="0">
<property name="name"> <property name="name">
<cstring>l_brightness</cstring> <cstring>l_brightness</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QComboBox" row="2" column="1"> <widget class="TQComboBox" row="2" column="1">
<item> <item>
<property name="text"> <property name="text">
<string>default</string> <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> <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> </property>
</widget> </widget>
<widget class="QLineEdit" row="2" column="2"> <widget class="TQLineEdit" row="2" column="2">
<property name="name"> <property name="name">
<cstring>c_brightness</cstring> <cstring>c_brightness</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="3" column="0"> <widget class="TQLabel" row="3" column="0">
<property name="name"> <property name="name">
<cstring>l_hue</cstring> <cstring>l_hue</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QComboBox" row="3" column="1"> <widget class="TQComboBox" row="3" column="1">
<item> <item>
<property name="text"> <property name="text">
<string>default</string> <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> <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> </property>
</widget> </widget>
<widget class="QLineEdit" row="3" column="2"> <widget class="TQLineEdit" row="3" column="2">
<property name="name"> <property name="name">
<cstring>c_hue</cstring> <cstring>c_hue</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="4" column="0"> <widget class="TQLabel" row="4" column="0">
<property name="name"> <property name="name">
<cstring>l_saturation</cstring> <cstring>l_saturation</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QComboBox" row="4" column="1"> <widget class="TQComboBox" row="4" column="1">
<item> <item>
<property name="text"> <property name="text">
<string>default</string> <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> <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> </property>
</widget> </widget>
<widget class="QLineEdit" row="4" column="2"> <widget class="TQLineEdit" row="4" column="2">
<property name="name"> <property name="name">
<cstring>c_saturation</cstring> <cstring>c_saturation</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="5" column="0"> <widget class="TQLabel" row="5" column="0">
<property name="name"> <property name="name">
<cstring>l_codec</cstring> <cstring>l_codec</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QComboBox" row="5" column="1" colspan="3"> <widget class="TQComboBox" row="5" column="1" colspan="3">
<property name="name"> <property name="name">
<cstring>c_codec</cstring> <cstring>c_codec</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="6" column="0"> <widget class="TQLabel" row="6" column="0">
<property name="name"> <property name="name">
<cstring>l_bitrate</cstring> <cstring>l_bitrate</cstring>
</property> </property>
@ -511,7 +511,7 @@
<string>Property that shows video bitrate of this file.</string> <string>Property that shows video bitrate of this file.</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit" row="6" column="1"> <widget class="TQLineEdit" row="6" column="1">
<property name="name"> <property name="name">
<cstring>c_bitrate</cstring> <cstring>c_bitrate</cstring>
</property> </property>
@ -533,7 +533,7 @@
<string>Property that shows video bitrate of this file.</string> <string>Property that shows video bitrate of this file.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="6" column="2"> <widget class="TQLabel" row="6" column="2">
<property name="name"> <property name="name">
<cstring>l_kbps</cstring> <cstring>l_kbps</cstring>
</property> </property>
@ -550,7 +550,7 @@
<string>Property that shows video bitrate of this file.</string> <string>Property that shows video bitrate of this file.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="7" column="0"> <widget class="TQLabel" row="7" column="0">
<property name="name"> <property name="name">
<cstring>l_framerate</cstring> <cstring>l_framerate</cstring>
</property> </property>
@ -570,7 +570,7 @@
<string>Property that shows video frame rate of this file.</string> <string>Property that shows video frame rate of this file.</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit" row="7" column="1"> <widget class="TQLineEdit" row="7" column="1">
<property name="name"> <property name="name">
<cstring>c_framerate</cstring> <cstring>c_framerate</cstring>
</property> </property>
@ -592,7 +592,7 @@
<string>Property that shows video frame rate of this file.</string> <string>Property that shows video frame rate of this file.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="7" column="2"> <widget class="TQLabel" row="7" column="2">
<property name="name"> <property name="name">
<cstring>l_fps</cstring> <cstring>l_fps</cstring>
</property> </property>
@ -609,7 +609,7 @@
<string>Property that shows video frame rate of this file.</string> <string>Property that shows video frame rate of this file.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="8" column="0"> <widget class="TQLabel" row="8" column="0">
<property name="name"> <property name="name">
<cstring>l_input</cstring> <cstring>l_input</cstring>
</property> </property>
@ -629,7 +629,7 @@
<string>Option to specify the video card input ID to use for capturing video.</string> <string>Option to specify the video card input ID to use for capturing video.</string>
</property> </property>
</widget> </widget>
<widget class="QComboBox" row="8" column="1"> <widget class="TQComboBox" row="8" column="1">
<item> <item>
<property name="text"> <property name="text">
<string>auto</string> <string>auto</string>
@ -658,7 +658,7 @@
<string>Option to specify the video card input ID to use for capturing video.</string> <string>Option to specify the video card input ID to use for capturing video.</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit" row="8" column="2"> <widget class="TQLineEdit" row="8" column="2">
<property name="name"> <property name="name">
<cstring>c_input</cstring> <cstring>c_input</cstring>
</property> </property>
@ -675,7 +675,7 @@
<string>Option to specify the video card input ID to use for capturing video.</string> <string>Option to specify the video card input ID to use for capturing video.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="9" column="0"> <widget class="TQLabel" row="9" column="0">
<property name="name"> <property name="name">
<cstring>l_format</cstring> <cstring>l_format</cstring>
</property> </property>
@ -695,7 +695,7 @@
<string>Option to specify the output format to request from the device.</string> <string>Option to specify the output format to request from the device.</string>
</property> </property>
</widget> </widget>
<widget class="QComboBox" row="9" column="1"> <widget class="TQComboBox" row="9" column="1">
<item> <item>
<property name="text"> <property name="text">
<string>auto</string> <string>auto</string>
@ -899,7 +899,7 @@
<string>Option to specify the output format to request from the device.</string> <string>Option to specify the output format to request from the device.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="10" column="0"> <widget class="TQLabel" row="10" column="0">
<property name="name"> <property name="name">
<cstring>l_norm</cstring> <cstring>l_norm</cstring>
</property> </property>
@ -919,7 +919,7 @@
<string>Option to specify the video norm to request from the device.</string> <string>Option to specify the video norm to request from the device.</string>
</property> </property>
</widget> </widget>
<widget class="QComboBox" row="10" column="1"> <widget class="TQComboBox" row="10" column="1">
<item> <item>
<property name="text"> <property name="text">
<string>auto</string> <string>auto</string>
@ -1003,7 +1003,7 @@
<string>Option to specify the video norm to request from the device.</string> <string>Option to specify the video norm to request from the device.</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit" row="10" column="2"> <widget class="TQLineEdit" row="10" column="2">
<property name="name"> <property name="name">
<cstring>c_norm_id</cstring> <cstring>c_norm_id</cstring>
</property> </property>

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

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

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1"> <!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>KPlayerSettingsAdvancedPage</class> <class>KPlayerSettingsAdvancedPage</class>
<widget class="QFrame"> <widget class="TQFrame">
<property name="name"> <property name="name">
<cstring>KPlayerSettingsAdvancedPage</cstring> <cstring>KPlayerSettingsAdvancedPage</cstring>
</property> </property>
@ -36,7 +36,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QFrame" row="0" column="0"> <widget class="TQFrame" row="0" column="0">
<property name="name"> <property name="name">
<cstring>frame1</cstring> <cstring>frame1</cstring>
</property> </property>
@ -58,7 +58,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>l_executable_path</cstring> <cstring>l_executable_path</cstring>
</property> </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> <string>Path to MPlayer executable, either absolute path or a name to look for in the current environment path.</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit"> <widget class="TQLineEdit">
<property name="name"> <property name="name">
<cstring>c_executable_path</cstring> <cstring>c_executable_path</cstring>
</property> </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> <string>Path to MPlayer executable, either absolute path or a name to look for in the current environment path.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>l_command_line</cstring> <cstring>l_command_line</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLineEdit"> <widget class="TQLineEdit">
<property name="name"> <property name="name">
<cstring>c_command_line</cstring> <cstring>c_command_line</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout2</cstring> <cstring>layout2</cstring>
</property> </property>
@ -150,7 +150,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLabel" row="0" column="0"> <widget class="TQLabel" row="0" column="0">
<property name="name"> <property name="name">
<cstring>l_demuxer</cstring> <cstring>l_demuxer</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QComboBox" row="0" column="1" colspan="3"> <widget class="TQComboBox" row="0" column="1" colspan="3">
<property name="name"> <property name="name">
<cstring>c_demuxer</cstring> <cstring>c_demuxer</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="1" column="0"> <widget class="TQLabel" row="1" column="0">
<property name="name"> <property name="name">
<cstring>l_frame_drop</cstring> <cstring>l_frame_drop</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QComboBox" row="1" column="1"> <widget class="TQComboBox" row="1" column="1">
<item> <item>
<property name="text"> <property name="text">
<string>none</string> <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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="2" column="0"> <widget class="TQLabel" row="2" column="0">
<property name="name"> <property name="name">
<cstring>l_use_cache</cstring> <cstring>l_use_cache</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QComboBox" row="2" column="1"> <widget class="TQComboBox" row="2" column="1">
<item> <item>
<property name="text"> <property name="text">
<string>auto</string> <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> <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> </property>
</widget> </widget>
<widget class="QLineEdit" row="2" column="2"> <widget class="TQLineEdit" row="2" column="2">
<property name="name"> <property name="name">
<cstring>c_cache_size</cstring> <cstring>c_cache_size</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="2" column="3"> <widget class="TQLabel" row="2" column="3">
<property name="name"> <property name="name">
<cstring>l_cache_size_kb</cstring> <cstring>l_cache_size_kb</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="3" column="0"> <widget class="TQLabel" row="3" column="0">
<property name="name"> <property name="name">
<cstring>l_build_index</cstring> <cstring>l_build_index</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QComboBox" row="3" column="1"> <widget class="TQComboBox" row="3" column="1">
<item> <item>
<property name="text"> <property name="text">
<string>yes</string> <string>yes</string>
@ -382,7 +382,7 @@
</widget> </widget>
</grid> </grid>
</widget> </widget>
<widget class="QCheckBox"> <widget class="TQCheckBox">
<property name="name"> <property name="name">
<cstring>c_use_temporary_file</cstring> <cstring>c_use_temporary_file</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout4</cstring> <cstring>layout4</cstring>
</property> </property>
@ -404,7 +404,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>l_use_kioslave</cstring> <cstring>l_use_kioslave</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QCheckBox"> <widget class="TQCheckBox">
<property name="name"> <property name="name">
<cstring>c_use_kioslave_for_http</cstring> <cstring>c_use_kioslave_for_http</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QCheckBox"> <widget class="TQCheckBox">
<property name="name"> <property name="name">
<cstring>c_use_kioslave_for_ftp</cstring> <cstring>c_use_kioslave_for_ftp</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QCheckBox"> <widget class="TQCheckBox">
<property name="name"> <property name="name">
<cstring>c_use_kioslave_for_smb</cstring> <cstring>c_use_kioslave_for_smb</cstring>
</property> </property>
@ -473,7 +473,7 @@
</widget> </widget>
</hbox> </hbox>
</widget> </widget>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>l_osd_level</cstring> <cstring>l_osd_level</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QComboBox"> <widget class="TQComboBox">
<item> <item>
<property name="text"> <property name="text">
<string>subtitles only</string> <string>subtitles only</string>

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1"> <!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>KPlayerSettingsAudioPage</class> <class>KPlayerSettingsAudioPage</class>
<widget class="QFrame"> <widget class="TQFrame">
<property name="name"> <property name="name">
<cstring>KPlayerSettingsAudioPage</cstring> <cstring>KPlayerSettingsAudioPage</cstring>
</property> </property>
@ -28,7 +28,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QFrame" row="0" column="0"> <widget class="TQFrame" row="0" column="0">
<property name="name"> <property name="name">
<cstring>frame1</cstring> <cstring>frame1</cstring>
</property> </property>
@ -50,7 +50,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLayoutWidget" row="0" column="0"> <widget class="TQLayoutWidget" row="0" column="0">
<property name="name"> <property name="name">
<cstring>layout0</cstring> <cstring>layout0</cstring>
</property> </property>
@ -58,7 +58,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLabel" row="0" column="0"> <widget class="TQLabel" row="0" column="0">
<property name="name"> <property name="name">
<cstring>l_driver</cstring> <cstring>l_driver</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QComboBox" row="0" column="1" colspan="2"> <widget class="TQComboBox" row="0" column="1" colspan="2">
<property name="name"> <property name="name">
<cstring>c_driver</cstring> <cstring>c_driver</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="1" column="0"> <widget class="TQLabel" row="1" column="0">
<property name="name"> <property name="name">
<cstring>l_device</cstring> <cstring>l_device</cstring>
</property> </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> <string>Option to specify audio device to use for the chosen audio output. Leave blank to use the default device.</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit" row="1" column="1" colspan="2"> <widget class="TQLineEdit" row="1" column="1" colspan="2">
<property name="name"> <property name="name">
<cstring>c_device</cstring> <cstring>c_device</cstring>
</property> </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> <string>Option to specify audio device to use for the chosen audio output. Leave blank to use the default device.</string>
</property> </property>
</widget> </widget>
<widget class="QCheckBox" row="2" column="0" colspan="3"> <widget class="TQCheckBox" row="2" column="0" colspan="3">
<property name="name"> <property name="name">
<cstring>c_softvol</cstring> <cstring>c_softvol</cstring>
</property> </property>
@ -150,7 +150,7 @@
<string>Option to choose whether to control volume in software independently of other programs.</string> <string>Option to choose whether to control volume in software independently of other programs.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="3" column="0"> <widget class="TQLabel" row="3" column="0">
<property name="name"> <property name="name">
<cstring>l_maximum</cstring> <cstring>l_maximum</cstring>
</property> </property>
@ -170,7 +170,7 @@
<string>Option to specify the maximum sound volume in percents of the normal volume level.</string> <string>Option to specify the maximum sound volume in percents of the normal volume level.</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit" row="3" column="1"> <widget class="TQLineEdit" row="3" column="1">
<property name="name"> <property name="name">
<cstring>c_maximum</cstring> <cstring>c_maximum</cstring>
</property> </property>
@ -195,7 +195,7 @@
<string>Option to specify the maximum sound volume in percents of the normal volume level.</string> <string>Option to specify the maximum sound volume in percents of the normal volume level.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="3" column="2"> <widget class="TQLabel" row="3" column="2">
<property name="name"> <property name="name">
<cstring>l_percent</cstring> <cstring>l_percent</cstring>
</property> </property>
@ -212,7 +212,7 @@
<string>Option to specify the maximum sound volume in percents of the normal volume level.</string> <string>Option to specify the maximum sound volume in percents of the normal volume level.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="4" column="0"> <widget class="TQLabel" row="4" column="0">
<property name="name"> <property name="name">
<cstring>l_mixer</cstring> <cstring>l_mixer</cstring>
</property> </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> <string>Option to specify the mixer device to be used to control audio output volume. Leave blank to use the default device.</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit" row="4" column="1" colspan="2"> <widget class="TQLineEdit" row="4" column="1" colspan="2">
<property name="name"> <property name="name">
<cstring>c_mixer</cstring> <cstring>c_mixer</cstring>
</property> </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> <string>Option to specify the mixer device to be used to control audio output volume. Leave blank to use the default device.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="5" column="0"> <widget class="TQLabel" row="5" column="0">
<property name="name"> <property name="name">
<cstring>l_channel</cstring> <cstring>l_channel</cstring>
</property> </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> <string>Option to specify the mixer channel to be used to control audio output volume. Leave blank to use the default channel.</string>
</property> </property>
</widget> </widget>
<widget class="QComboBox" row="5" column="1" colspan="2"> <widget class="TQComboBox" row="5" column="1" colspan="2">
<property name="name"> <property name="name">
<cstring>c_channel</cstring> <cstring>c_channel</cstring>
</property> </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> <string>Option to specify the mixer channel to be used to control audio output volume. Leave blank to use the default channel.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="6" column="0"> <widget class="TQLabel" row="6" column="0">
<property name="name"> <property name="name">
<cstring>l_codec</cstring> <cstring>l_codec</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QComboBox" row="6" column="1" colspan="2"> <widget class="TQComboBox" row="6" column="1" colspan="2">
<property name="name"> <property name="name">
<cstring>c_codec</cstring> <cstring>c_codec</cstring>
</property> </property>
@ -334,7 +334,7 @@
</widget> </widget>
</grid> </grid>
</widget> </widget>
<widget class="QLayoutWidget" row="1" column="0"> <widget class="TQLayoutWidget" row="1" column="0">
<property name="name"> <property name="name">
<cstring>layout1</cstring> <cstring>layout1</cstring>
</property> </property>
@ -342,7 +342,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>l_delay_step</cstring> <cstring>l_delay_step</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLineEdit"> <widget class="TQLineEdit">
<property name="name"> <property name="name">
<cstring>c_delay_step</cstring> <cstring>c_delay_step</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>l_delay_seconds</cstring> <cstring>l_delay_seconds</cstring>
</property> </property>
@ -419,15 +419,15 @@
</connection> </connection>
<connection> <connection>
<sender>c_device</sender> <sender>c_device</sender>
<signal>textChanged(const QString&amp;)</signal> <signal>textChanged(const TQString&amp;)</signal>
<receiver>KPlayerSettingsAudioPage</receiver> <receiver>KPlayerSettingsAudioPage</receiver>
<slot>deviceChanged(const QString&amp;)</slot> <slot>deviceChanged(const TQString&amp;)</slot>
</connection> </connection>
<connection> <connection>
<sender>c_mixer</sender> <sender>c_mixer</sender>
<signal>textChanged(const QString&amp;)</signal> <signal>textChanged(const TQString&amp;)</signal>
<receiver>KPlayerSettingsAudioPage</receiver> <receiver>KPlayerSettingsAudioPage</receiver>
<slot>mixerChanged(const QString&amp;)</slot> <slot>mixerChanged(const TQString&amp;)</slot>
</connection> </connection>
<connection> <connection>
<sender>c_softvol</sender> <sender>c_softvol</sender>
@ -438,8 +438,8 @@
</connections> </connections>
<slots> <slots>
<slot access="protected">driverChanged(int)</slot> <slot access="protected">driverChanged(int)</slot>
<slot access="protected">deviceChanged(const QString&amp;)</slot> <slot access="protected">deviceChanged(const TQString&amp;)</slot>
<slot access="protected">mixerChanged(const QString&amp;)</slot> <slot access="protected">mixerChanged(const TQString&amp;)</slot>
<slot access="protected">softvolChanged(bool)</slot> <slot access="protected">softvolChanged(bool)</slot>
</slots> </slots>
<layoutdefaults spacing="6" margin="0"/> <layoutdefaults spacing="6" margin="0"/>

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

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

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1"> <!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>KPlayerSettingsControlsPage</class> <class>KPlayerSettingsControlsPage</class>
<widget class="QFrame"> <widget class="TQFrame">
<property name="name"> <property name="name">
<cstring>KPlayerSettingsControlsPage</cstring> <cstring>KPlayerSettingsControlsPage</cstring>
</property> </property>
@ -28,7 +28,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QFrame" row="0" column="0"> <widget class="TQFrame" row="0" column="0">
<property name="name"> <property name="name">
<cstring>frame1</cstring> <cstring>frame1</cstring>
</property> </property>
@ -50,7 +50,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QCheckBox"> <widget class="TQCheckBox">
<property name="name"> <property name="name">
<cstring>c_shift</cstring> <cstring>c_shift</cstring>
</property> </property>
@ -66,7 +66,7 @@
</widget> </widget>
</vbox> </vbox>
</widget> </widget>
<widget class="QFrame" row="1" column="0"> <widget class="TQFrame" row="1" column="0">
<property name="name"> <property name="name">
<cstring>frame1</cstring> <cstring>frame1</cstring>
</property> </property>
@ -88,7 +88,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </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"> <property name="name">
<cstring>l_remember</cstring> <cstring>l_remember</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="1" column="0"> <widget class="TQLabel" row="1" column="0">
<property name="name"> <property name="name">
<cstring>c_spacer</cstring> <cstring>c_spacer</cstring>
</property> </property>
@ -130,7 +130,7 @@
<string></string> <string></string>
</property> </property>
</widget> </widget>
<widget class="QCheckBox" row="1" column="1"> <widget class="TQCheckBox" row="1" column="1">
<property name="name"> <property name="name">
<cstring>c_size</cstring> <cstring>c_size</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QCheckBox" row="2" column="1"> <widget class="TQCheckBox" row="2" column="1">
<property name="name"> <property name="name">
<cstring>c_aspect</cstring> <cstring>c_aspect</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QCheckBox" row="3" column="1"> <widget class="TQCheckBox" row="3" column="1">
<property name="name"> <property name="name">
<cstring>c_full_screen</cstring> <cstring>c_full_screen</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QCheckBox" row="4" column="1"> <widget class="TQCheckBox" row="4" column="1">
<property name="name"> <property name="name">
<cstring>c_maximized</cstring> <cstring>c_maximized</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QCheckBox" row="5" column="1"> <widget class="TQCheckBox" row="5" column="1">
<property name="name"> <property name="name">
<cstring>c_maintain_aspect</cstring> <cstring>c_maintain_aspect</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QCheckBox" row="6" column="1"> <widget class="TQCheckBox" row="6" column="1">
<property name="name"> <property name="name">
<cstring>c_volume</cstring> <cstring>c_volume</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QCheckBox" row="7" column="1"> <widget class="TQCheckBox" row="7" column="1">
<property name="name"> <property name="name">
<cstring>c_audio_delay</cstring> <cstring>c_audio_delay</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QCheckBox" row="1" column="2"> <widget class="TQCheckBox" row="1" column="2">
<property name="name"> <property name="name">
<cstring>c_contrast</cstring> <cstring>c_contrast</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QCheckBox" row="2" column="2"> <widget class="TQCheckBox" row="2" column="2">
<property name="name"> <property name="name">
<cstring>c_brightness</cstring> <cstring>c_brightness</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QCheckBox" row="3" column="2"> <widget class="TQCheckBox" row="3" column="2">
<property name="name"> <property name="name">
<cstring>c_hue</cstring> <cstring>c_hue</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QCheckBox" row="4" column="2"> <widget class="TQCheckBox" row="4" column="2">
<property name="name"> <property name="name">
<cstring>c_saturation</cstring> <cstring>c_saturation</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QCheckBox" row="5" column="2"> <widget class="TQCheckBox" row="5" column="2">
<property name="name"> <property name="name">
<cstring>c_subtitle_position</cstring> <cstring>c_subtitle_position</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QCheckBox" row="6" column="2"> <widget class="TQCheckBox" row="6" column="2">
<property name="name"> <property name="name">
<cstring>c_subtitle_delay</cstring> <cstring>c_subtitle_delay</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QCheckBox" row="7" column="2"> <widget class="TQCheckBox" row="7" column="2">
<property name="name"> <property name="name">
<cstring>c_frame_drop</cstring> <cstring>c_frame_drop</cstring>
</property> </property>

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

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

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1"> <!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>KPlayerSettingsGeneralPage</class> <class>KPlayerSettingsGeneralPage</class>
<widget class="QFrame"> <widget class="TQFrame">
<property name="name"> <property name="name">
<cstring>KPlayerSettingsGeneralPage</cstring> <cstring>KPlayerSettingsGeneralPage</cstring>
</property> </property>
@ -28,7 +28,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QFrame" row="0" column="0"> <widget class="TQFrame" row="0" column="0">
<property name="name"> <property name="name">
<cstring>frame1</cstring> <cstring>frame1</cstring>
</property> </property>
@ -50,7 +50,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QCheckBox"> <widget class="TQCheckBox">
<property name="name"> <property name="name">
<cstring>c_resize_automatically</cstring> <cstring>c_resize_automatically</cstring>
</property> </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> <string>Option to choose whether to automatically resize main KPlayer window so that the video area is of the desired size.</string>
</property> </property>
</widget> </widget>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout4</cstring> <cstring>layout4</cstring>
</property> </property>
@ -72,7 +72,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLabel" row="0" column="0"> <widget class="TQLabel" row="0" column="0">
<property name="name"> <property name="name">
<cstring>l_minimum_initial_width</cstring> <cstring>l_minimum_initial_width</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLineEdit" row="0" column="1"> <widget class="TQLineEdit" row="0" column="1">
<property name="name"> <property name="name">
<cstring>c_minimum_initial_width</cstring> <cstring>c_minimum_initial_width</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="0" column="2"> <widget class="TQLabel" row="0" column="2">
<property name="name"> <property name="name">
<cstring>l_minimum_initial_width_pixels</cstring> <cstring>l_minimum_initial_width_pixels</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="1" column="0"> <widget class="TQLabel" row="1" column="0">
<property name="name"> <property name="name">
<cstring>l_playlist_menu_size</cstring> <cstring>l_playlist_menu_size</cstring>
</property> </property>
@ -181,7 +181,7 @@
<string>Option to specify the maximum number of entries on Play List and Add To Playlist menus.</string> <string>Option to specify the maximum number of entries on Play List and Add To Playlist menus.</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit" row="1" column="1"> <widget class="TQLineEdit" row="1" column="1">
<property name="name"> <property name="name">
<cstring>c_playlist_menu_size</cstring> <cstring>c_playlist_menu_size</cstring>
</property> </property>
@ -209,7 +209,7 @@
<string>Option to specify the maximum number of entries on Play List and Add To Playlist menus.</string> <string>Option to specify the maximum number of entries on Play List and Add To Playlist menus.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="2" column="0"> <widget class="TQLabel" row="2" column="0">
<property name="name"> <property name="name">
<cstring>l_recent_menu_size</cstring> <cstring>l_recent_menu_size</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLineEdit" row="2" column="1"> <widget class="TQLineEdit" row="2" column="1">
<property name="name"> <property name="name">
<cstring>c_recent_menu_size</cstring> <cstring>c_recent_menu_size</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="3" column="0"> <widget class="TQLabel" row="3" column="0">
<property name="name"> <property name="name">
<cstring>l_recent_list_size</cstring> <cstring>l_recent_list_size</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLineEdit" row="3" column="1"> <widget class="TQLineEdit" row="3" column="1">
<property name="name"> <property name="name">
<cstring>c_recent_list_size</cstring> <cstring>c_recent_list_size</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="4" column="0"> <widget class="TQLabel" row="4" column="0">
<property name="name"> <property name="name">
<cstring>l_cache_size_limit</cstring> <cstring>l_cache_size_limit</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLineEdit" row="4" column="1"> <widget class="TQLineEdit" row="4" column="1">
<property name="name"> <property name="name">
<cstring>c_cache_size_limit</cstring> <cstring>c_cache_size_limit</cstring>
</property> </property>
@ -379,7 +379,7 @@
</widget> </widget>
</grid> </grid>
</widget> </widget>
<widget class="QCheckBox"> <widget class="TQCheckBox">
<property name="name"> <property name="name">
<cstring>c_allow_duplicate_entries</cstring> <cstring>c_allow_duplicate_entries</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QCheckBox"> <widget class="TQCheckBox">
<property name="name"> <property name="name">
<cstring>c_show_messages_on_error</cstring> <cstring>c_show_messages_on_error</cstring>
</property> </property>

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

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1"> <!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>KPlayerSettingsProgressPage</class> <class>KPlayerSettingsProgressPage</class>
<widget class="QFrame"> <widget class="TQFrame">
<property name="name"> <property name="name">
<cstring>KPlayerSettingsProgressPage</cstring> <cstring>KPlayerSettingsProgressPage</cstring>
</property> </property>
@ -28,7 +28,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QFrame" row="0" column="0"> <widget class="TQFrame" row="0" column="0">
<property name="name"> <property name="name">
<cstring>frame4</cstring> <cstring>frame4</cstring>
</property> </property>
@ -50,7 +50,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLayoutWidget" row="0" column="0"> <widget class="TQLayoutWidget" row="0" column="0">
<property name="name"> <property name="name">
<cstring>layout2</cstring> <cstring>layout2</cstring>
</property> </property>
@ -58,7 +58,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLabel" row="0" column="0"> <widget class="TQLabel" row="0" column="0">
<property name="name"> <property name="name">
<cstring>l_progress_seek</cstring> <cstring>l_progress_seek</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLineEdit" row="0" column="1"> <widget class="TQLineEdit" row="0" column="1">
<property name="name"> <property name="name">
<cstring>c_progress_seek</cstring> <cstring>c_progress_seek</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QComboBox" row="0" column="2"> <widget class="TQComboBox" row="0" column="2">
<item> <item>
<property name="text"> <property name="text">
<string>percent</string> <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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="1" column="0"> <widget class="TQLabel" row="1" column="0">
<property name="name"> <property name="name">
<cstring>l_progress_fast</cstring> <cstring>l_progress_fast</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLineEdit" row="1" column="1"> <widget class="TQLineEdit" row="1" column="1">
<property name="name"> <property name="name">
<cstring>c_progress_fast</cstring> <cstring>c_progress_fast</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QComboBox" row="1" column="2"> <widget class="TQComboBox" row="1" column="2">
<item> <item>
<property name="text"> <property name="text">
<string>percent</string> <string>percent</string>

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

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

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1"> <!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>KPlayerSettingsSubtitlesPage</class> <class>KPlayerSettingsSubtitlesPage</class>
<widget class="QFrame"> <widget class="TQFrame">
<property name="name"> <property name="name">
<cstring>KPlayerSettingsSubtitlesPage</cstring> <cstring>KPlayerSettingsSubtitlesPage</cstring>
</property> </property>
@ -28,7 +28,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QFrame" row="0" column="0"> <widget class="TQFrame" row="0" column="0">
<property name="name"> <property name="name">
<cstring>frame1</cstring> <cstring>frame1</cstring>
</property> </property>
@ -50,7 +50,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLabel" row="0" column="0"> <widget class="TQLabel" row="0" column="0">
<property name="name"> <property name="name">
<cstring>l_font_name</cstring> <cstring>l_font_name</cstring>
</property> </property>
@ -92,7 +92,7 @@
<string>Option to specify the name of the font for displaying subtitles and other OSD text.</string> <string>Option to specify the name of the font for displaying subtitles and other OSD text.</string>
</property> </property>
</widget> </widget>
<widget class="QCheckBox" row="0" column="2"> <widget class="TQCheckBox" row="0" column="2">
<property name="name"> <property name="name">
<cstring>c_bold</cstring> <cstring>c_bold</cstring>
</property> </property>
@ -106,7 +106,7 @@
<string>Option to choose bold font for displaying subtitles and other OSD text.</string> <string>Option to choose bold font for displaying subtitles and other OSD text.</string>
</property> </property>
</widget> </widget>
<widget class="QCheckBox" row="0" column="3"> <widget class="TQCheckBox" row="0" column="3">
<property name="name"> <property name="name">
<cstring>c_italic</cstring> <cstring>c_italic</cstring>
</property> </property>
@ -120,7 +120,7 @@
<string>Option to choose italic font for displaying subtitles and other OSD text.</string> <string>Option to choose italic font for displaying subtitles and other OSD text.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="1" column="0"> <widget class="TQLabel" row="1" column="0">
<property name="name"> <property name="name">
<cstring>l_text_size</cstring> <cstring>l_text_size</cstring>
</property> </property>
@ -140,7 +140,7 @@
<string>Option to specify the size of subtitle text.</string> <string>Option to specify the size of subtitle text.</string>
</property> </property>
</widget> </widget>
<widget class="QComboBox" row="1" column="1"> <widget class="TQComboBox" row="1" column="1">
<item> <item>
<property name="text"> <property name="text">
<string>auto</string> <string>auto</string>
@ -167,7 +167,7 @@
<string>Option to specify the size of subtitle text.</string> <string>Option to specify the size of subtitle text.</string>
</property> </property>
</widget> </widget>
<widget class="QCheckBox" row="1" column="2" colspan="2"> <widget class="TQCheckBox" row="1" column="2" colspan="2">
<property name="name"> <property name="name">
<cstring>c_autoscale</cstring> <cstring>c_autoscale</cstring>
</property> </property>
@ -181,7 +181,7 @@
<string>Option to automatically scale subtitles and other OSD elements.</string> <string>Option to automatically scale subtitles and other OSD elements.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="2" column="0"> <widget class="TQLabel" row="2" column="0">
<property name="name"> <property name="name">
<cstring>l_outline</cstring> <cstring>l_outline</cstring>
</property> </property>
@ -201,7 +201,7 @@
<string>Option to specify the outline of the font for displaying subtitles and other OSD text.</string> <string>Option to specify the outline of the font for displaying subtitles and other OSD text.</string>
</property> </property>
</widget> </widget>
<widget class="QSlider" row="2" column="1"> <widget class="TQSlider" row="2" column="1">
<property name="name"> <property name="name">
<cstring>c_outline_slider</cstring> <cstring>c_outline_slider</cstring>
</property> </property>
@ -235,7 +235,7 @@
<string>Option to specify the outline of the font for displaying subtitles and other OSD text.</string> <string>Option to specify the outline of the font for displaying subtitles and other OSD text.</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit" row="2" column="2"> <widget class="TQLineEdit" row="2" column="2">
<property name="name"> <property name="name">
<cstring>c_outline</cstring> <cstring>c_outline</cstring>
</property> </property>
@ -252,7 +252,7 @@
<string>Option to specify the width of the subtitle area in percent of the video width.</string> <string>Option to specify the width of the subtitle area in percent of the video width.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="3" column="0"> <widget class="TQLabel" row="3" column="0">
<property name="name"> <property name="name">
<cstring>l_width</cstring> <cstring>l_width</cstring>
</property> </property>
@ -272,7 +272,7 @@
<string>Option to specify the width of the subtitle area in percent of the video width.</string> <string>Option to specify the width of the subtitle area in percent of the video width.</string>
</property> </property>
</widget> </widget>
<widget class="QSlider" row="3" column="1"> <widget class="TQSlider" row="3" column="1">
<property name="name"> <property name="name">
<cstring>c_width_slider</cstring> <cstring>c_width_slider</cstring>
</property> </property>
@ -306,7 +306,7 @@
<string>Option to specify the width of the subtitle area in percent of the video width.</string> <string>Option to specify the width of the subtitle area in percent of the video width.</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit" row="3" column="2"> <widget class="TQLineEdit" row="3" column="2">
<property name="name"> <property name="name">
<cstring>c_width</cstring> <cstring>c_width</cstring>
</property> </property>
@ -323,7 +323,7 @@
<string>Option to specify the width of the subtitle area in percent of the video width.</string> <string>Option to specify the width of the subtitle area in percent of the video width.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="3" column="3"> <widget class="TQLabel" row="3" column="3">
<property name="name"> <property name="name">
<cstring>l_width_percent</cstring> <cstring>l_width_percent</cstring>
</property> </property>
@ -340,7 +340,7 @@
<string>Option to specify the width of the subtitle area in percent of the video width.</string> <string>Option to specify the width of the subtitle area in percent of the video width.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="4" column="0" colspan="2"> <widget class="TQLabel" row="4" column="0" colspan="2">
<property name="name"> <property name="name">
<cstring>l_position_step</cstring> <cstring>l_position_step</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLineEdit" row="4" column="2"> <widget class="TQLineEdit" row="4" column="2">
<property name="name"> <property name="name">
<cstring>c_position_step</cstring> <cstring>c_position_step</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="4" column="3"> <widget class="TQLabel" row="4" column="3">
<property name="name"> <property name="name">
<cstring>l_position_percent</cstring> <cstring>l_position_percent</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="5" column="0" colspan="2"> <widget class="TQLabel" row="5" column="0" colspan="2">
<property name="name"> <property name="name">
<cstring>l_delay_step</cstring> <cstring>l_delay_step</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLineEdit" row="5" column="2"> <widget class="TQLineEdit" row="5" column="2">
<property name="name"> <property name="name">
<cstring>c_delay_step</cstring> <cstring>c_delay_step</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="5" column="3"> <widget class="TQLabel" row="5" column="3">
<property name="name"> <property name="name">
<cstring>l_delay_seconds</cstring> <cstring>l_delay_seconds</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="6" column="0"> <widget class="TQLabel" row="6" column="0">
<property name="name"> <property name="name">
<cstring>l_encoding</cstring> <cstring>l_encoding</cstring>
</property> </property>
@ -468,7 +468,7 @@
<string>Option to specify the encoding of the subtitle file.</string> <string>Option to specify the encoding of the subtitle file.</string>
</property> </property>
</widget> </widget>
<widget class="QComboBox" row="6" column="1" colspan="3"> <widget class="TQComboBox" row="6" column="1" colspan="3">
<item> <item>
<property name="text"> <property name="text">
<string>auto</string> <string>auto</string>
@ -495,7 +495,7 @@
<string>Option to specify the encoding of the subtitle file.</string> <string>Option to specify the encoding of the subtitle file.</string>
</property> </property>
</widget> </widget>
<widget class="QCheckBox" row="7" column="0" colspan="4"> <widget class="TQCheckBox" row="7" column="0" colspan="4">
<property name="name"> <property name="name">
<cstring>c_embedded_fonts</cstring> <cstring>c_embedded_fonts</cstring>
</property> </property>
@ -509,7 +509,7 @@
<string>Option to use embedded fonts if they are available to display subtitles.</string> <string>Option to use embedded fonts if they are available to display subtitles.</string>
</property> </property>
</widget> </widget>
<widget class="QCheckBox" row="8" column="0" colspan="4"> <widget class="TQCheckBox" row="8" column="0" colspan="4">
<property name="name"> <property name="name">
<cstring>c_closed_caption</cstring> <cstring>c_closed_caption</cstring>
</property> </property>
@ -523,7 +523,7 @@
<string>Option to display closed caption subtitles if they are available.</string> <string>Option to display closed caption subtitles if they are available.</string>
</property> </property>
</widget> </widget>
<widget class="QCheckBox" row="9" column="0" colspan="2"> <widget class="TQCheckBox" row="9" column="0" colspan="2">
<property name="name"> <property name="name">
<cstring>c_subtitles_autoexpand</cstring> <cstring>c_subtitles_autoexpand</cstring>
</property> </property>
@ -537,7 +537,7 @@
<string>Option to automatically expand the video area to fit subtitles below the video.</string> <string>Option to automatically expand the video area to fit subtitles below the video.</string>
</property> </property>
</widget> </widget>
<widget class="QComboBox" row="9" column="2"> <widget class="TQComboBox" row="9" column="2">
<item> <item>
<property name="text"> <property name="text">
<cstring>1:1</cstring> <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> <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> </property>
</widget> </widget>
<widget class="QCheckBox" row="10" column="0" colspan="4"> <widget class="TQCheckBox" row="10" column="0" colspan="4">
<property name="name"> <property name="name">
<cstring>c_subtitles_autoload</cstring> <cstring>c_subtitles_autoload</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="11" column="0"> <widget class="TQLabel" row="11" column="0">
<property name="name"> <property name="name">
<cstring>l_extensions</cstring> <cstring>l_extensions</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLineEdit" row="11" column="1" colspan="3"> <widget class="TQLineEdit" row="11" column="1" colspan="3">
<property name="name"> <property name="name">
<cstring>c_subtitles_list</cstring> <cstring>c_subtitles_list</cstring>
</property> </property>
@ -629,9 +629,9 @@
</connection> </connection>
<connection> <connection>
<sender>c_width</sender> <sender>c_width</sender>
<signal>textChanged(const QString&amp;)</signal> <signal>textChanged(const TQString&amp;)</signal>
<receiver>KPlayerSettingsSubtitlesPage</receiver> <receiver>KPlayerSettingsSubtitlesPage</receiver>
<slot>widthEditChanged(const QString&amp;)</slot> <slot>widthEditChanged(const TQString&amp;)</slot>
</connection> </connection>
<connection> <connection>
<sender>c_outline_slider</sender> <sender>c_outline_slider</sender>
@ -641,9 +641,9 @@
</connection> </connection>
<connection> <connection>
<sender>c_outline</sender> <sender>c_outline</sender>
<signal>textChanged(const QString&amp;)</signal> <signal>textChanged(const TQString&amp;)</signal>
<receiver>KPlayerSettingsSubtitlesPage</receiver> <receiver>KPlayerSettingsSubtitlesPage</receiver>
<slot>outlineEditChanged(const QString&amp;)</slot> <slot>outlineEditChanged(const TQString&amp;)</slot>
</connection> </connection>
<connection> <connection>
<sender>c_subtitles_autoexpand</sender> <sender>c_subtitles_autoexpand</sender>
@ -660,9 +660,9 @@
</connections> </connections>
<slots> <slots>
<slot access="protected">widthSliderChanged(int)</slot> <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">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">autoexpandChanged(bool)</slot>
<slot access="protected">autoloadSubtitlesChanged(bool)</slot> <slot access="protected">autoloadSubtitlesChanged(bool)</slot>
</slots> </slots>

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1"> <!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>KPlayerSettingsVideoPage</class> <class>KPlayerSettingsVideoPage</class>
<widget class="QFrame"> <widget class="TQFrame">
<property name="name"> <property name="name">
<cstring>KPlayerSettingsVideoPage</cstring> <cstring>KPlayerSettingsVideoPage</cstring>
</property> </property>
@ -28,7 +28,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QFrame" row="0" column="0"> <widget class="TQFrame" row="0" column="0">
<property name="name"> <property name="name">
<cstring>frame1</cstring> <cstring>frame1</cstring>
</property> </property>
@ -50,7 +50,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout1</cstring> <cstring>layout1</cstring>
</property> </property>
@ -58,7 +58,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLabel" row="0" column="0"> <widget class="TQLabel" row="0" column="0">
<property name="name"> <property name="name">
<cstring>l_driver</cstring> <cstring>l_driver</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QComboBox" row="0" column="1"> <widget class="TQComboBox" row="0" column="1">
<property name="name"> <property name="name">
<cstring>c_driver</cstring> <cstring>c_driver</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="1" column="0"> <widget class="TQLabel" row="1" column="0">
<property name="name"> <property name="name">
<cstring>l_device</cstring> <cstring>l_device</cstring>
</property> </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> <string>Option to specify video device to use for the chosen video output. Leave blank to use the default device.</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit" row="1" column="1"> <widget class="TQLineEdit" row="1" column="1">
<property name="name"> <property name="name">
<cstring>c_device</cstring> <cstring>c_device</cstring>
</property> </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> <string>Option to specify video device to use for the chosen video output. Leave blank to use the default device.</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="2" column="0"> <widget class="TQLabel" row="2" column="0">
<property name="name"> <property name="name">
<cstring>l_codec</cstring> <cstring>l_codec</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QComboBox" row="2" column="1"> <widget class="TQComboBox" row="2" column="1">
<property name="name"> <property name="name">
<cstring>c_codec</cstring> <cstring>c_codec</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QLabel" row="3" column="0"> <widget class="TQLabel" row="3" column="0">
<property name="name"> <property name="name">
<cstring>l_scaler</cstring> <cstring>l_scaler</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QComboBox" row="3" column="1"> <widget class="TQComboBox" row="3" column="1">
<property name="name"> <property name="name">
<cstring>c_scaler</cstring> <cstring>c_scaler</cstring>
</property> </property>
@ -280,7 +280,7 @@
</widget> </widget>
</grid> </grid>
</widget> </widget>
<widget class="QCheckBox"> <widget class="TQCheckBox">
<property name="name"> <property name="name">
<cstring>c_doublebuffering</cstring> <cstring>c_doublebuffering</cstring>
</property> </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> <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> </property>
</widget> </widget>
<widget class="QCheckBox"> <widget class="TQCheckBox">
<property name="name"> <property name="name">
<cstring>c_direct_rendering</cstring> <cstring>c_direct_rendering</cstring>
</property> </property>

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

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

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

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

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

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

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

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

Loading…
Cancel
Save