diff options
Diffstat (limited to 'src/pref.h')
-rw-r--r-- | src/pref.h | 215 |
1 files changed, 113 insertions, 102 deletions
@@ -24,20 +24,20 @@ #include "kmplayer_def.h" #include <kdialogbase.h> -#include <qframe.h> -#include <qmap.h> - -class QTabWidget; -class QTable; -class QGroupBox; -class QCheckBox; -class QComboBox; -class QLineEdit; -class QRadioButton; -class QSlider; -class QSpinBox; -class QColor; -class QButtonGroup; +#include <tqframe.h> +#include <tqmap.h> + +class TQTabWidget; +class TQTable; +class TQGroupBox; +class TQCheckBox; +class TQComboBox; +class TQLineEdit; +class TQRadioButton; +class TQSlider; +class TQSpinBox; +class TQColor; +class TQButtonGroup; class KHistoryCombo; class KComboBox; class KURLRequester; @@ -68,6 +68,7 @@ class FontSetting; class KMPLAYER_NO_EXPORT Preferences : public KDialogBase { Q_OBJECT + TQ_OBJECT public: Preferences(PartBase *, Settings *); @@ -92,46 +93,48 @@ public: void removePrefPage (PreferencesPage *); RecorderPage * recorders; - QMap<QString, QTabWidget *> entries; + TQMap<TQString, TQTabWidget *> entries; public slots: void confirmDefaults(); }; -class KMPLAYER_NO_EXPORT PrefGeneralPageGeneral : public QFrame +class KMPLAYER_NO_EXPORT PrefGeneralPageGeneral : public TQFrame { Q_OBJECT + TQ_OBJECT public: - PrefGeneralPageGeneral(QWidget *parent, Settings *); + PrefGeneralPageGeneral(TQWidget *tqparent, Settings *); ~PrefGeneralPageGeneral() {} - QCheckBox *keepSizeRatio; - QCheckBox * autoResize; - QButtonGroup *sizesChoice; - QCheckBox *dockSysTray; - QCheckBox *loop; - QCheckBox *showConfigButton; - QCheckBox *showPlaylistButton; - QCheckBox *showRecordButton; - QCheckBox *showBroadcastButton; - QCheckBox *framedrop; - QCheckBox *adjustvolume; - QCheckBox *adjustcolors; - - QSpinBox *seekTime; + TQCheckBox *keepSizeRatio; + TQCheckBox * autoResize; + TQButtonGroup *sizesChoice; + TQCheckBox *dockSysTray; + TQCheckBox *loop; + TQCheckBox *showConfigButton; + TQCheckBox *showPlaylistButton; + TQCheckBox *showRecordButton; + TQCheckBox *showBroadcastButton; + TQCheckBox *framedrop; + TQCheckBox *adjustvolume; + TQCheckBox *adjustcolors; + + TQSpinBox *seekTime; }; -class KMPLAYER_NO_EXPORT PrefGeneralPageLooks : public QFrame { +class KMPLAYER_NO_EXPORT PrefGeneralPageLooks : public TQFrame { Q_OBJECT + TQ_OBJECT public: - PrefGeneralPageLooks (QWidget *parent, Settings *); + PrefGeneralPageLooks (TQWidget *tqparent, Settings *); ~PrefGeneralPageLooks () {} - QComboBox *colorscombo; + TQComboBox *colorscombo; KColorButton *colorbutton; - QComboBox *fontscombo; - QPushButton *fontbutton; + TQComboBox *fontscombo; + TQPushButton *fontbutton; public slots: void colorItemChanged (int); - void colorCanged (const QColor &); + void colorCanged (const TQColor &); void fontItemChanged (int); void fontClicked (); private: @@ -139,11 +142,12 @@ private: FontSetting * fonts; }; -class KMPLAYER_NO_EXPORT PrefSourcePageURL : public QFrame +class KMPLAYER_NO_EXPORT PrefSourcePageURL : public TQFrame { Q_OBJECT + TQ_OBJECT public: - PrefSourcePageURL (QWidget *parent); + PrefSourcePageURL (TQWidget *tqparent); ~PrefSourcePageURL () {} KURLRequester * url; @@ -151,29 +155,30 @@ public: KComboBox * urllist; KURLRequester * sub_url; KComboBox * sub_urllist; - QListBox * backend; - QCheckBox * allowhref; - QLineEdit * prefBitRate; - QLineEdit * maxBitRate; + TQListBox * backend; + TQCheckBox * allowhref; + TQLineEdit * prefBitRate; + TQLineEdit * maxBitRate; bool changed; private slots: void slotBrowse (); - void slotTextChanged (const QString &); + void slotTextChanged (const TQString &); }; -class KMPLAYER_NO_EXPORT PrefRecordPage : public QFrame +class KMPLAYER_NO_EXPORT PrefRecordPage : public TQFrame { Q_OBJECT + TQ_OBJECT public: - PrefRecordPage (QWidget *parent, PartBase *, RecorderPage *, int len); + PrefRecordPage (TQWidget *tqparent, PartBase *, RecorderPage *, int len); ~PrefRecordPage () {} KURLRequester * url; - QButtonGroup * recorder; - QButtonGroup * replay; - QLineEdit * replaytime; - QLabel * source; + TQButtonGroup * recorder; + TQButtonGroup * replay; + TQLineEdit * replaytime; + TQLabel * source; public slots: void replayClicked (int id); void recorderClicked (int id); @@ -186,18 +191,19 @@ private slots: private: PartBase * m_player; RecorderPage * m_recorders; - QPushButton * recordButton; + TQPushButton * recordButton; int m_recorders_length; }; -class KMPLAYER_NO_EXPORT RecorderPage : public QFrame +class KMPLAYER_NO_EXPORT RecorderPage : public TQFrame { Q_OBJECT + TQ_OBJECT public: - RecorderPage (QWidget *parent, PartBase *); + RecorderPage (TQWidget *tqparent, PartBase *); virtual ~RecorderPage () {}; virtual void record (); - virtual QString name () = 0; + virtual TQString name () = 0; virtual const char * recorderName () = 0; RecorderPage * next; protected: @@ -207,16 +213,17 @@ protected: class KMPLAYER_NO_EXPORT PrefMEncoderPage : public RecorderPage { Q_OBJECT + TQ_OBJECT public: - PrefMEncoderPage (QWidget *parent, PartBase *); + PrefMEncoderPage (TQWidget *tqparent, PartBase *); ~PrefMEncoderPage () {} void record (); - QString name (); + TQString name (); const char * recorderName () { return "mencoder"; } - QLineEdit * arguments; - QButtonGroup * format; + TQLineEdit * arguments; + TQButtonGroup * format; public slots: void formatClicked (int id); private: @@ -224,20 +231,20 @@ private: class KMPLAYER_NO_EXPORT PrefMPlayerDumpstreamPage : public RecorderPage { public: - PrefMPlayerDumpstreamPage (QWidget *parent, PartBase *); + PrefMPlayerDumpstreamPage (TQWidget *tqparent, PartBase *); ~PrefMPlayerDumpstreamPage () {} - QString name (); + TQString name (); const char * recorderName () { return "mplayerdumpstream"; } }; #ifdef HAVE_XINE class KMPLAYER_NO_EXPORT PrefXinePage : public RecorderPage { public: - PrefXinePage (QWidget *parent, PartBase *); + PrefXinePage (TQWidget *tqparent, PartBase *); ~PrefXinePage () {} - QString name (); + TQString name (); const char * recorderName () { return "xine"; } }; #endif @@ -245,74 +252,78 @@ public: class KMPLAYER_NO_EXPORT PrefFFMpegPage : public RecorderPage { Q_OBJECT + TQ_OBJECT public: - PrefFFMpegPage (QWidget *parent, PartBase *); + PrefFFMpegPage (TQWidget *tqparent, PartBase *); ~PrefFFMpegPage () {} void record (); - QString name (); + TQString name (); const char * recorderName () { return "ffmpeg"; } - QLineEdit * arguments; - QButtonGroup * format; + TQLineEdit * arguments; + TQButtonGroup * format; private: }; -class KMPLAYER_NO_EXPORT PrefGeneralPageOutput : public QFrame +class KMPLAYER_NO_EXPORT PrefGeneralPageOutput : public TQFrame { Q_OBJECT + TQ_OBJECT public: - PrefGeneralPageOutput (QWidget *parent, OutputDriver * ad, OutputDriver * vd); + PrefGeneralPageOutput (TQWidget *tqparent, OutputDriver * ad, OutputDriver * vd); ~PrefGeneralPageOutput() {} - QListBox *videoDriver; - QListBox *audioDriver; + TQListBox *videoDriver; + TQListBox *audioDriver; }; -class KMPLAYER_NO_EXPORT PrefOPPageGeneral : public QFrame +class KMPLAYER_NO_EXPORT PrefOPPageGeneral : public TQFrame { Q_OBJECT + TQ_OBJECT public: - PrefOPPageGeneral(QWidget *parent = 0); + PrefOPPageGeneral(TQWidget *tqparent = 0); ~PrefOPPageGeneral() {} }; -class KMPLAYER_NO_EXPORT PrefOPPagePostProc : public QFrame +class KMPLAYER_NO_EXPORT PrefOPPagePostProc : public TQFrame { Q_OBJECT + TQ_OBJECT public: - PrefOPPagePostProc(QWidget *parent = 0); + PrefOPPagePostProc(TQWidget *tqparent = 0); ~PrefOPPagePostProc() {} - QCheckBox* postProcessing; - QCheckBox* disablePPauto; - QTabWidget* PostprocessingOptions; - - QRadioButton* defaultPreset; - QRadioButton* customPreset; - QRadioButton* fastPreset; - - QCheckBox* HzDeblockFilter; - QCheckBox* VtDeblockFilter; - QCheckBox* DeringFilter; - QCheckBox* HzDeblockAQuality; - QCheckBox* VtDeblockAQuality; - QCheckBox* DeringAQuality; - - QCheckBox* AutolevelsFilter; - QCheckBox* AutolevelsFullrange; - QCheckBox* HzDeblockCFiltering; - QCheckBox* VtDeblockCFiltering; - QCheckBox* DeringCFiltering; - QCheckBox* TmpNoiseFilter; - QSlider* TmpNoiseSlider; - - QCheckBox* LinBlendDeinterlacer; - QCheckBox* CubicIntDeinterlacer; - QCheckBox* LinIntDeinterlacer; - QCheckBox* MedianDeinterlacer; - QCheckBox* FfmpegDeinterlacer; + TQCheckBox* postProcessing; + TQCheckBox* disablePPauto; + TQTabWidget* PostprocessingOptions; + + TQRadioButton* defaultPreset; + TQRadioButton* customPreset; + TQRadioButton* fastPreset; + + TQCheckBox* HzDeblockFilter; + TQCheckBox* VtDeblockFilter; + TQCheckBox* DeringFilter; + TQCheckBox* HzDeblockAQuality; + TQCheckBox* VtDeblockAQuality; + TQCheckBox* DeringAQuality; + + TQCheckBox* AutolevelsFilter; + TQCheckBox* AutolevelsFullrange; + TQCheckBox* HzDeblockCFiltering; + TQCheckBox* VtDeblockCFiltering; + TQCheckBox* DeringCFiltering; + TQCheckBox* TmpNoiseFilter; + TQSlider* TmpNoiseSlider; + + TQCheckBox* LinBlendDeinterlacer; + TQCheckBox* CubicIntDeinterlacer; + TQCheckBox* LinIntDeinterlacer; + TQCheckBox* MedianDeinterlacer; + TQCheckBox* FfmpegDeinterlacer; }; } // namespace |