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