@ -202,21 +202,21 @@ KDE_NO_CDTOR_EXPORT Preferences::~Preferences() {
KDE_NO_CDTOR_EXPORT PrefGeneralPageGeneral : : PrefGeneralPageGeneral ( TQWidget * parent , Settings * )
KDE_NO_CDTOR_EXPORT PrefGeneralPageGeneral : : PrefGeneralPageGeneral ( TQWidget * parent , Settings * )
: TQFrame ( parent , " GeneralPage " )
: TQFrame ( parent , " GeneralPage " )
{
{
TQVBoxLayout * tq layout = new TQVBoxLayout ( this , 5 , 2 ) ;
TQVBoxLayout * layout = new TQVBoxLayout ( this , 5 , 2 ) ;
TQGroupBox * windowbox = new TQGroupBox ( 1 , Qt : : Vertical , i18n ( " Window " ) , this ) ;
TQGroupBox * windowbox = new TQGroupBox ( 1 , Qt : : Vertical , i18n ( " Window " ) , this ) ;
TQWidget * wbox = new TQWidget ( windowbox ) ;
TQWidget * wbox = new TQWidget ( windowbox ) ;
TQWidget * bbox = new TQWidget ( wbox ) ;
TQWidget * bbox = new TQWidget ( wbox ) ;
TQGridLayout * grid tq layout = new TQGridLayout ( bbox , 2 , 2 ) ;
TQGridLayout * grid layout = new TQGridLayout ( bbox , 2 , 2 ) ;
keepSizeRatio = new TQCheckBox ( i18n ( " Keep size ratio " ) , bbox , 0 ) ;
keepSizeRatio = new TQCheckBox ( i18n ( " Keep size ratio " ) , bbox , 0 ) ;
TQWhatsThis : : add ( keepSizeRatio , i18n ( " When checked, movie will keep its aspect ratio \n when window is resized " ) ) ;
TQWhatsThis : : add ( keepSizeRatio , i18n ( " When checked, movie will keep its aspect ratio \n when window is resized " ) ) ;
dockSysTray = new TQCheckBox ( i18n ( " Dock in system tray " ) , bbox , 0 ) ;
dockSysTray = new TQCheckBox ( i18n ( " Dock in system tray " ) , bbox , 0 ) ;
TQWhatsThis : : add ( dockSysTray , i18n ( " When checked, an icon of KMPlayer will be added to the system tray. \n When clicked it will hide KMPlayer's main window and removing KMPlayer's taskbar button. " ) ) ;
TQWhatsThis : : add ( dockSysTray , i18n ( " When checked, an icon of KMPlayer will be added to the system tray. \n When clicked it will hide KMPlayer's main window and removing KMPlayer's taskbar button. " ) ) ;
autoResize = new TQCheckBox ( i18n ( " Auto resize to video sizes " ) , bbox ) ;
autoResize = new TQCheckBox ( i18n ( " Auto resize to video sizes " ) , bbox ) ;
TQWhatsThis : : add ( autoResize , i18n ( " When checked, KMPlayer will resize to movie sizes \n when video starts " ) ) ;
TQWhatsThis : : add ( autoResize , i18n ( " When checked, KMPlayer will resize to movie sizes \n when video starts " ) ) ;
grid tq layout- > addWidget ( keepSizeRatio , 0 , 0 ) ;
grid layout- > addWidget ( keepSizeRatio , 0 , 0 ) ;
grid tq layout- > addWidget ( dockSysTray , 1 , 0 ) ;
grid layout- > addWidget ( dockSysTray , 1 , 0 ) ;
grid tq layout- > addWidget ( autoResize , 0 , 1 ) ;
grid layout- > addWidget ( autoResize , 0 , 1 ) ;
sizesChoice = new TQButtonGroup ( 2 , Qt : : Vertical , wbox ) ;
sizesChoice = new TQButtonGroup ( 2 , Qt : : Vertical , wbox ) ;
new TQRadioButton ( i18n ( " Remember window size on exit " ) , sizesChoice ) ;
new TQRadioButton ( i18n ( " Remember window size on exit " ) , sizesChoice ) ;
new TQRadioButton ( i18n ( " Always start with fixed size " ) , sizesChoice ) ;
new TQRadioButton ( i18n ( " Always start with fixed size " ) , sizesChoice ) ;
@ -237,7 +237,7 @@ KDE_NO_CDTOR_EXPORT PrefGeneralPageGeneral::PrefGeneralPageGeneral(TQWidget *par
TQGroupBox * gbox = new TQGroupBox ( 1 , Qt : : Vertical , i18n ( " Control Panel " ) , this ) ;
TQGroupBox * gbox = new TQGroupBox ( 1 , Qt : : Vertical , i18n ( " Control Panel " ) , this ) ;
bbox = new TQWidget ( gbox ) ;
bbox = new TQWidget ( gbox ) ;
//TQGroupBox * bbox = gbox;
//TQGroupBox * bbox = gbox;
grid tq layout = new TQGridLayout ( bbox , 3 , 2 ) ;
grid layout = new TQGridLayout ( bbox , 3 , 2 ) ;
showConfigButton = new TQCheckBox ( i18n ( " Show config button " ) , bbox ) ;
showConfigButton = new TQCheckBox ( i18n ( " Show config button " ) , bbox ) ;
TQWhatsThis : : add ( showConfigButton , i18n ( " Add a button that will popup a config menu " ) ) ;
TQWhatsThis : : add ( showConfigButton , i18n ( " Add a button that will popup a config menu " ) ) ;
showPlaylistButton = new TQCheckBox ( i18n ( " Show playlist button " ) , bbox ) ;
showPlaylistButton = new TQCheckBox ( i18n ( " Show playlist button " ) , bbox ) ;
@ -246,10 +246,10 @@ KDE_NO_CDTOR_EXPORT PrefGeneralPageGeneral::PrefGeneralPageGeneral(TQWidget *par
TQWhatsThis : : add ( showRecordButton , i18n ( " Add a record button to the control buttons " ) ) ;
TQWhatsThis : : add ( showRecordButton , i18n ( " Add a record button to the control buttons " ) ) ;
showBroadcastButton = new TQCheckBox ( i18n ( " Show broadcast button " ) , bbox ) ;
showBroadcastButton = new TQCheckBox ( i18n ( " Show broadcast button " ) , bbox ) ;
TQWhatsThis : : add ( showBroadcastButton , i18n ( " Add a broadcast button to the control buttons " ) ) ;
TQWhatsThis : : add ( showBroadcastButton , i18n ( " Add a broadcast button to the control buttons " ) ) ;
grid tq layout- > addWidget ( showConfigButton , 0 , 0 ) ;
grid layout- > addWidget ( showConfigButton , 0 , 0 ) ;
grid tq layout- > addWidget ( showPlaylistButton , 0 , 1 ) ;
grid layout- > addWidget ( showPlaylistButton , 0 , 1 ) ;
grid tq layout- > addWidget ( showRecordButton , 1 , 0 ) ;
grid layout- > addWidget ( showRecordButton , 1 , 0 ) ;
grid tq layout- > addWidget ( showBroadcastButton , 1 , 1 ) ;
grid layout- > addWidget ( showBroadcastButton , 1 , 1 ) ;
//TQWidget *seekingWidget = new TQWidget (bbox);
//TQWidget *seekingWidget = new TQWidget (bbox);
TQHBoxLayout * seekLayout = new TQHBoxLayout ( bbox ) ;
TQHBoxLayout * seekLayout = new TQHBoxLayout ( bbox ) ;
seekLayout - > addWidget ( new TQLabel ( i18n ( " Forward/backward seek time: " ) , bbox ) ) ;
seekLayout - > addWidget ( new TQLabel ( i18n ( " Forward/backward seek time: " ) , bbox ) ) ;
@ -257,20 +257,20 @@ KDE_NO_CDTOR_EXPORT PrefGeneralPageGeneral::PrefGeneralPageGeneral(TQWidget *par
seekTime = new TQSpinBox ( 1 , 600 , 1 , bbox ) ;
seekTime = new TQSpinBox ( 1 , 600 , 1 , bbox ) ;
seekLayout - > addWidget ( seekTime ) ;
seekLayout - > addWidget ( seekTime ) ;
seekLayout - > addItem ( new TQSpacerItem ( 0 , 0 , TQSizePolicy : : Minimum , TQSizePolicy : : Minimum ) ) ;
seekLayout - > addItem ( new TQSpacerItem ( 0 , 0 , TQSizePolicy : : Minimum , TQSizePolicy : : Minimum ) ) ;
grid tq layout- > addMultiCellLayout ( seekLayout , 2 , 2 , 0 , 1 ) ;
grid layout- > addMultiCellLayout ( seekLayout , 2 , 2 , 0 , 1 ) ;
tq layout- > addWidget ( windowbox ) ;
layout- > addWidget ( windowbox ) ;
tq layout- > addWidget ( playbox ) ;
layout- > addWidget ( playbox ) ;
tq layout- > addWidget ( gbox ) ;
layout- > addWidget ( gbox ) ;
// tq layout->addWidget(autoHideSlider);
// layout->addWidget(autoHideSlider);
tq layout- > addItem ( new TQSpacerItem ( 0 , 0 , TQSizePolicy : : Minimum , TQSizePolicy : : Expanding ) ) ;
layout- > addItem ( new TQSpacerItem ( 0 , 0 , TQSizePolicy : : Minimum , TQSizePolicy : : Expanding ) ) ;
}
}
KDE_NO_CDTOR_EXPORT PrefGeneralPageLooks : : PrefGeneralPageLooks ( TQWidget * parent , Settings * settings )
KDE_NO_CDTOR_EXPORT PrefGeneralPageLooks : : PrefGeneralPageLooks ( TQWidget * parent , Settings * settings )
: TQFrame ( parent , " LooksPage " ) ,
: TQFrame ( parent , " LooksPage " ) ,
colors ( settings - > colors ) ,
colors ( settings - > colors ) ,
fonts ( settings - > fonts ) {
fonts ( settings - > fonts ) {
TQVBoxLayout * tq layout = new TQVBoxLayout ( this , 5 , 2 ) ;
TQVBoxLayout * layout = new TQVBoxLayout ( this , 5 , 2 ) ;
TQGroupBox * colorbox = new TQGroupBox ( 2 , Qt : : Horizontal , i18n ( " Colors " ) , this ) ;
TQGroupBox * colorbox = new TQGroupBox ( 2 , Qt : : Horizontal , i18n ( " Colors " ) , this ) ;
colorscombo = new TQComboBox ( colorbox ) ;
colorscombo = new TQComboBox ( colorbox ) ;
@ -296,9 +296,9 @@ KDE_NO_CDTOR_EXPORT PrefGeneralPageLooks::PrefGeneralPageLooks (TQWidget *parent
fontbutton - > setFont ( fonts [ 0 ] . font ) ;
fontbutton - > setFont ( fonts [ 0 ] . font ) ;
connect ( fontbutton , TQT_SIGNAL ( clicked ( ) ) , this , TQT_SLOT ( fontClicked ( ) ) ) ;
connect ( fontbutton , TQT_SIGNAL ( clicked ( ) ) , this , TQT_SLOT ( fontClicked ( ) ) ) ;
tq layout- > addWidget ( colorbox ) ;
layout- > addWidget ( colorbox ) ;
tq layout- > addWidget ( fontbox ) ;
layout- > addWidget ( fontbox ) ;
tq layout- > addItem ( new TQSpacerItem ( 0 , 0 , TQSizePolicy : : Minimum , TQSizePolicy : : Expanding ) ) ;
layout- > addItem ( new TQSpacerItem ( 0 , 0 , TQSizePolicy : : Minimum , TQSizePolicy : : Expanding ) ) ;
}
}
KDE_NO_EXPORT void PrefGeneralPageLooks : : colorItemChanged ( int c ) {
KDE_NO_EXPORT void PrefGeneralPageLooks : : colorItemChanged ( int c ) {
@ -330,9 +330,9 @@ KDE_NO_EXPORT void PrefGeneralPageLooks::fontClicked () {
KDE_NO_CDTOR_EXPORT PrefSourcePageURL : : PrefSourcePageURL ( TQWidget * parent )
KDE_NO_CDTOR_EXPORT PrefSourcePageURL : : PrefSourcePageURL ( TQWidget * parent )
: TQFrame ( parent , " URLPage " )
: TQFrame ( parent , " URLPage " )
{
{
TQVBoxLayout * tq layout = new TQVBoxLayout ( this , 5 , 5 ) ;
TQVBoxLayout * layout = new TQVBoxLayout ( this , 5 , 5 ) ;
TQHBoxLayout * url tq layout = new TQHBoxLayout ( ) ;
TQHBoxLayout * url layout = new TQHBoxLayout ( ) ;
TQHBoxLayout * sub_url tq layout = new TQHBoxLayout ( ) ;
TQHBoxLayout * sub_url layout = new TQHBoxLayout ( ) ;
TQLabel * urlLabel = new TQLabel ( i18n ( " Location: " ) , this , 0 ) ;
TQLabel * urlLabel = new TQLabel ( i18n ( " Location: " ) , this , 0 ) ;
urllist = new KComboBox ( true , this ) ;
urllist = new KComboBox ( true , this ) ;
urllist - > setMaxCount ( 20 ) ;
urllist - > setMaxCount ( 20 ) ;
@ -351,36 +351,36 @@ KDE_NO_CDTOR_EXPORT PrefSourcePageURL::PrefSourcePageURL (TQWidget *parent)
backend = new TQListBox ( this ) ;
backend = new TQListBox ( this ) ;
allowhref = new TQCheckBox ( i18n ( " Enable 'Click to Play' support " ) , this ) ;
allowhref = new TQCheckBox ( i18n ( " Enable 'Click to Play' support " ) , this ) ;
TQWhatsThis : : add ( allowhref , i18n ( " Support for WEB pages having a start image " ) ) ;
TQWhatsThis : : add ( allowhref , i18n ( " Support for WEB pages having a start image " ) ) ;
tq layout- > addWidget ( allowhref ) ;
layout- > addWidget ( allowhref ) ;
url tq layout- > addWidget ( urlLabel ) ;
url layout- > addWidget ( urlLabel ) ;
url tq layout- > addWidget ( url ) ;
url layout- > addWidget ( url ) ;
tq layout- > addLayout ( url tq layout) ;
layout- > addLayout ( url layout) ;
sub_url tq layout- > addWidget ( sub_urlLabel ) ;
sub_url layout- > addWidget ( sub_urlLabel ) ;
sub_url tq layout- > addWidget ( sub_url ) ;
sub_url layout- > addWidget ( sub_url ) ;
tq layout- > addLayout ( sub_url tq layout) ;
layout- > addLayout ( sub_url layout) ;
tq layout- > addItem ( new TQSpacerItem ( 0 , 10 , TQSizePolicy : : Minimum , TQSizePolicy : : Minimum ) ) ;
layout- > addItem ( new TQSpacerItem ( 0 , 10 , TQSizePolicy : : Minimum , TQSizePolicy : : Minimum ) ) ;
TQGridLayout * grid tq layout = new TQGridLayout ( 2 , 2 ) ;
TQGridLayout * grid layout = new TQGridLayout ( 2 , 2 ) ;
TQLabel * backendLabel = new TQLabel ( i18n ( " Use movie player: " ) , this , 0 ) ;
TQLabel * backendLabel = new TQLabel ( i18n ( " Use movie player: " ) , this , 0 ) ;
//TQWhatsThis::add (allowhref, i18n ("Explain this in a few lines"));
//TQWhatsThis::add (allowhref, i18n ("Explain this in a few lines"));
grid tq layout- > addWidget ( backendLabel , 0 , 0 ) ;
grid layout- > addWidget ( backendLabel , 0 , 0 ) ;
grid tq layout- > addWidget ( backend , 1 , 0 ) ;
grid layout- > addWidget ( backend , 1 , 0 ) ;
grid tq layout- > addMultiCell ( new TQSpacerItem ( 0 , 0 , TQSizePolicy : : Expanding , TQSizePolicy : : Minimum ) , 0 , 1 , 1 , 1 ) ;
grid layout- > addMultiCell ( new TQSpacerItem ( 0 , 0 , TQSizePolicy : : Expanding , TQSizePolicy : : Minimum ) , 0 , 1 , 1 , 1 ) ;
TQGroupBox * cbox = new TQGroupBox ( 1 , Qt : : Vertical , i18n ( " Network bandwidth " ) , this ) ;
TQGroupBox * cbox = new TQGroupBox ( 1 , Qt : : Vertical , i18n ( " Network bandwidth " ) , this ) ;
TQWidget * wbox = new TQWidget ( cbox ) ;
TQWidget * wbox = new TQWidget ( cbox ) ;
TQGridLayout * bitrate tq layout = new TQGridLayout ( wbox , 2 , 3 , 5 ) ;
TQGridLayout * bitrate layout = new TQGridLayout ( wbox , 2 , 3 , 5 ) ;
prefBitRate = new TQLineEdit ( wbox ) ;
prefBitRate = new TQLineEdit ( wbox ) ;
TQWhatsThis : : add ( prefBitRate , i18n ( " Sometimes it is possible to choose between various streams given a particular bitrate. \n This option sets how much bandwidth you would prefer to allocate to video. " ) ) ;
TQWhatsThis : : add ( prefBitRate , i18n ( " Sometimes it is possible to choose between various streams given a particular bitrate. \n This option sets how much bandwidth you would prefer to allocate to video. " ) ) ;
maxBitRate = new TQLineEdit ( wbox ) ;
maxBitRate = new TQLineEdit ( wbox ) ;
TQWhatsThis : : add ( maxBitRate , i18n ( " Sometimes it is possible to choose between various streams given a particular bitrate. \n This option sets the maximum bandwidth you have available for video. " ) ) ;
TQWhatsThis : : add ( maxBitRate , i18n ( " Sometimes it is possible to choose between various streams given a particular bitrate. \n This option sets the maximum bandwidth you have available for video. " ) ) ;
bitrate tq layout- > addWidget ( new TQLabel ( i18n ( " Preferred bitrate: " ) , wbox ) , 0 , 0 ) ;
bitrate layout- > addWidget ( new TQLabel ( i18n ( " Preferred bitrate: " ) , wbox ) , 0 , 0 ) ;
bitrate tq layout- > addWidget ( prefBitRate , 0 , 1 ) ;
bitrate layout- > addWidget ( prefBitRate , 0 , 1 ) ;
bitrate tq layout- > addWidget ( new TQLabel ( i18n ( " kbit/s " ) , wbox ) , 0 , 2 ) ;
bitrate layout- > addWidget ( new TQLabel ( i18n ( " kbit/s " ) , wbox ) , 0 , 2 ) ;
bitrate tq layout- > addWidget ( new TQLabel ( i18n ( " Maximum bitrate: " ) , wbox ) , 1 , 0 ) ;
bitrate layout- > addWidget ( new TQLabel ( i18n ( " Maximum bitrate: " ) , wbox ) , 1 , 0 ) ;
bitrate tq layout- > addWidget ( maxBitRate , 1 , 1 ) ;
bitrate layout- > addWidget ( maxBitRate , 1 , 1 ) ;
bitrate tq layout- > addWidget ( new TQLabel ( i18n ( " kbit/s " ) , wbox ) , 1 , 2 ) ;
bitrate layout- > addWidget ( new TQLabel ( i18n ( " kbit/s " ) , wbox ) , 1 , 2 ) ;
tq layout- > addLayout ( grid tq layout) ;
layout- > addLayout ( grid layout) ;
tq layout- > addWidget ( cbox ) ;
layout- > addWidget ( cbox ) ;
tq layout- > addItem ( new TQSpacerItem ( 0 , 0 , TQSizePolicy : : Minimum , TQSizePolicy : : Expanding ) ) ;
layout- > addItem ( new TQSpacerItem ( 0 , 0 , TQSizePolicy : : Minimum , TQSizePolicy : : Expanding ) ) ;
connect ( urllist , TQT_SIGNAL ( textChanged ( const TQString & ) ) ,
connect ( urllist , TQT_SIGNAL ( textChanged ( const TQString & ) ) ,
this , TQT_SLOT ( slotTextChanged ( const TQString & ) ) ) ;
this , TQT_SLOT ( slotTextChanged ( const TQString & ) ) ) ;
connect ( sub_urllist , TQT_SIGNAL ( textChanged ( const TQString & ) ) ,
connect ( sub_urllist , TQT_SIGNAL ( textChanged ( const TQString & ) ) ,
@ -395,18 +395,18 @@ KDE_NO_EXPORT void PrefSourcePageURL::slotTextChanged (const TQString &) {
}
}
KDE_NO_CDTOR_EXPORT PrefRecordPage : : PrefRecordPage ( TQWidget * parent , PartBase * player , RecorderPage * rl , int rec_len ) : TQFrame ( parent , " RecordPage " ) , m_player ( player ) , m_recorders ( rl ) , m_recorders_length ( rec_len ) {
KDE_NO_CDTOR_EXPORT PrefRecordPage : : PrefRecordPage ( TQWidget * parent , PartBase * player , RecorderPage * rl , int rec_len ) : TQFrame ( parent , " RecordPage " ) , m_player ( player ) , m_recorders ( rl ) , m_recorders_length ( rec_len ) {
TQVBoxLayout * tq layout = new TQVBoxLayout ( this , 5 , 5 ) ;
TQVBoxLayout * layout = new TQVBoxLayout ( this , 5 , 5 ) ;
TQHBoxLayout * url tq layout = new TQHBoxLayout ( ) ;
TQHBoxLayout * url layout = new TQHBoxLayout ( ) ;
TQLabel * urlLabel = new TQLabel ( i18n ( " Output file: " ) , this ) ;
TQLabel * urlLabel = new TQLabel ( i18n ( " Output file: " ) , this ) ;
url = new KURLRequester ( " " , this ) ;
url = new KURLRequester ( " " , this ) ;
url - > setShowLocalProtocol ( true ) ;
url - > setShowLocalProtocol ( true ) ;
url tq layout- > addWidget ( urlLabel ) ;
url layout- > addWidget ( urlLabel ) ;
url tq layout- > addWidget ( url ) ;
url layout- > addWidget ( url ) ;
recordButton = new TQPushButton ( i18n ( " Start &Recording " ) , this ) ;
recordButton = new TQPushButton ( i18n ( " Start &Recording " ) , this ) ;
connect ( recordButton , TQT_SIGNAL ( clicked ( ) ) , this , TQT_SLOT ( slotRecord ( ) ) ) ;
connect ( recordButton , TQT_SIGNAL ( clicked ( ) ) , this , TQT_SLOT ( slotRecord ( ) ) ) ;
TQHBoxLayout * button tq layout = new TQHBoxLayout ;
TQHBoxLayout * button layout = new TQHBoxLayout ;
button tq layout- > addItem ( new TQSpacerItem ( 0 , 0 , TQSizePolicy : : Minimum , TQSizePolicy : : Minimum ) ) ;
button layout- > addItem ( new TQSpacerItem ( 0 , 0 , TQSizePolicy : : Minimum , TQSizePolicy : : Minimum ) ) ;
button tq layout- > addWidget ( recordButton ) ;
button layout- > addWidget ( recordButton ) ;
source = new TQLabel ( i18n ( " Current source: " ) + m_player - > source ( ) - > prettyName ( ) , this ) ;
source = new TQLabel ( i18n ( " Current source: " ) + m_player - > source ( ) - > prettyName ( ) , this ) ;
recorder = new TQButtonGroup ( m_recorders_length , Qt : : Vertical , i18n ( " Recorder " ) , this ) ;
recorder = new TQButtonGroup ( m_recorders_length , Qt : : Vertical , i18n ( " Recorder " ) , this ) ;
for ( RecorderPage * p = m_recorders ; p ; p = p - > next )
for ( RecorderPage * p = m_recorders ; p ; p = p - > next )
@ -420,20 +420,20 @@ KDE_NO_CDTOR_EXPORT PrefRecordPage::PrefRecordPage (TQWidget *parent, PartBase *
new TQRadioButton ( i18n ( " A&fter " ) , replay ) ;
new TQRadioButton ( i18n ( " A&fter " ) , replay ) ;
TQWidget * customreplay = new TQWidget ( replay ) ;
TQWidget * customreplay = new TQWidget ( replay ) ;
replaytime = new TQLineEdit ( customreplay ) ;
replaytime = new TQLineEdit ( customreplay ) ;
TQHBoxLayout * replay tq layout = new TQHBoxLayout ( customreplay ) ;
TQHBoxLayout * replay layout = new TQHBoxLayout ( customreplay ) ;
replay tq layout- > addWidget ( new TQLabel ( i18n ( " Time (seconds): " ) , customreplay ) ) ;
replay layout- > addWidget ( new TQLabel ( i18n ( " Time (seconds): " ) , customreplay ) ) ;
replay tq layout- > addWidget ( replaytime ) ;
replay layout- > addWidget ( replaytime ) ;
replay tq layout- > addItem ( new TQSpacerItem ( 0 , 0 , TQSizePolicy : : Expanding , TQSizePolicy : : Minimum ) ) ;
replay layout- > addItem ( new TQSpacerItem ( 0 , 0 , TQSizePolicy : : Expanding , TQSizePolicy : : Minimum ) ) ;
tq layout- > addWidget ( source ) ;
layout- > addWidget ( source ) ;
tq layout- > addItem ( new TQSpacerItem ( 5 , 0 , TQSizePolicy : : Minimum , TQSizePolicy : : Minimum ) ) ;
layout- > addItem ( new TQSpacerItem ( 5 , 0 , TQSizePolicy : : Minimum , TQSizePolicy : : Minimum ) ) ;
tq layout- > addLayout ( url tq layout) ;
layout- > addLayout ( url layout) ;
tq layout- > addItem ( new TQSpacerItem ( 5 , 0 , TQSizePolicy : : Minimum , TQSizePolicy : : Minimum ) ) ;
layout- > addItem ( new TQSpacerItem ( 5 , 0 , TQSizePolicy : : Minimum , TQSizePolicy : : Minimum ) ) ;
tq layout- > addWidget ( recorder ) ;
layout- > addWidget ( recorder ) ;
tq layout- > addItem ( new TQSpacerItem ( 5 , 0 , TQSizePolicy : : Minimum , TQSizePolicy : : Minimum ) ) ;
layout- > addItem ( new TQSpacerItem ( 5 , 0 , TQSizePolicy : : Minimum , TQSizePolicy : : Minimum ) ) ;
tq layout- > addWidget ( replay ) ;
layout- > addWidget ( replay ) ;
tq layout- > addItem ( new TQSpacerItem ( 5 , 0 , TQSizePolicy : : Minimum , TQSizePolicy : : Minimum ) ) ;
layout- > addItem ( new TQSpacerItem ( 5 , 0 , TQSizePolicy : : Minimum , TQSizePolicy : : Minimum ) ) ;
tq layout- > addLayout ( button tq layout) ;
layout- > addLayout ( button layout) ;
tq layout- > addItem ( new TQSpacerItem ( 5 , 0 , TQSizePolicy : : Minimum , TQSizePolicy : : Expanding ) ) ;
layout- > addItem ( new TQSpacerItem ( 5 , 0 , TQSizePolicy : : Minimum , TQSizePolicy : : Expanding ) ) ;
connect ( m_player , TQT_SIGNAL ( sourceChanged ( KMPlayer : : Source * , KMPlayer : : Source * ) ) , this , TQT_SLOT ( sourceChanged ( KMPlayer : : Source * , KMPlayer : : Source * ) ) ) ;
connect ( m_player , TQT_SIGNAL ( sourceChanged ( KMPlayer : : Source * , KMPlayer : : Source * ) ) , this , TQT_SLOT ( sourceChanged ( KMPlayer : : Source * , KMPlayer : : Source * ) ) ) ;
# ifdef HAVE_XINE
# ifdef HAVE_XINE
connect ( recorder , TQT_SIGNAL ( clicked ( int ) ) , this , TQT_SLOT ( recorderClicked ( int ) ) ) ;
connect ( recorder , TQT_SIGNAL ( clicked ( int ) ) , this , TQT_SLOT ( recorderClicked ( int ) ) ) ;
@ -538,18 +538,18 @@ KDE_NO_EXPORT void RecorderPage::record () {
}
}
KDE_NO_CDTOR_EXPORT PrefMEncoderPage : : PrefMEncoderPage ( TQWidget * parent , PartBase * player ) : RecorderPage ( parent , player ) {
KDE_NO_CDTOR_EXPORT PrefMEncoderPage : : PrefMEncoderPage ( TQWidget * parent , PartBase * player ) : RecorderPage ( parent , player ) {
TQVBoxLayout * tq layout = new TQVBoxLayout ( this , 5 , 5 ) ;
TQVBoxLayout * layout = new TQVBoxLayout ( this , 5 , 5 ) ;
format = new TQButtonGroup ( 3 , Qt : : Vertical , i18n ( " Format " ) , this ) ;
format = new TQButtonGroup ( 3 , Qt : : Vertical , i18n ( " Format " ) , this ) ;
new TQRadioButton ( i18n ( " Same as source " ) , format ) ;
new TQRadioButton ( i18n ( " Same as source " ) , format ) ;
new TQRadioButton ( i18n ( " Custom " ) , format ) ;
new TQRadioButton ( i18n ( " Custom " ) , format ) ;
TQWidget * customopts = new TQWidget ( format ) ;
TQWidget * customopts = new TQWidget ( format ) ;
TQGridLayout * grid tq layout = new TQGridLayout ( customopts , 1 , 2 , 2 ) ;
TQGridLayout * grid layout = new TQGridLayout ( customopts , 1 , 2 , 2 ) ;
TQLabel * argLabel = new TQLabel ( i18n ( " Mencoder arguments: " ) , customopts , 0 ) ;
TQLabel * argLabel = new TQLabel ( i18n ( " Mencoder arguments: " ) , customopts , 0 ) ;
arguments = new TQLineEdit ( " " , customopts ) ;
arguments = new TQLineEdit ( " " , customopts ) ;
grid tq layout- > addWidget ( argLabel , 0 , 0 ) ;
grid layout- > addWidget ( argLabel , 0 , 0 ) ;
grid tq layout- > addWidget ( arguments , 0 , 1 ) ;
grid layout- > addWidget ( arguments , 0 , 1 ) ;
tq layout- > addWidget ( format ) ;
layout- > addWidget ( format ) ;
tq layout- > addItem ( new TQSpacerItem ( 0 , 0 , TQSizePolicy : : Minimum , TQSizePolicy : : Expanding ) ) ;
layout- > addItem ( new TQSpacerItem ( 0 , 0 , TQSizePolicy : : Minimum , TQSizePolicy : : Expanding ) ) ;
connect ( format , TQT_SIGNAL ( clicked ( int ) ) , this , TQT_SLOT ( formatClicked ( int ) ) ) ;
connect ( format , TQT_SIGNAL ( clicked ( int ) ) , this , TQT_SLOT ( formatClicked ( int ) ) ) ;
}
}
@ -580,14 +580,14 @@ KDE_NO_EXPORT TQString PrefMPlayerDumpstreamPage::name () {
}
}
KDE_NO_CDTOR_EXPORT PrefFFMpegPage : : PrefFFMpegPage ( TQWidget * parent , PartBase * player ) : RecorderPage ( parent , player ) {
KDE_NO_CDTOR_EXPORT PrefFFMpegPage : : PrefFFMpegPage ( TQWidget * parent , PartBase * player ) : RecorderPage ( parent , player ) {
TQVBoxLayout * tq layout = new TQVBoxLayout ( this , 5 , 5 ) ;
TQVBoxLayout * layout = new TQVBoxLayout ( this , 5 , 5 ) ;
TQGridLayout * grid tq layout = new TQGridLayout ( 1 , 2 , 2 ) ;
TQGridLayout * grid layout = new TQGridLayout ( 1 , 2 , 2 ) ;
TQLabel * argLabel = new TQLabel ( i18n ( " FFMpeg arguments: " ) , this ) ;
TQLabel * argLabel = new TQLabel ( i18n ( " FFMpeg arguments: " ) , this ) ;
arguments = new TQLineEdit ( " " , this ) ;
arguments = new TQLineEdit ( " " , this ) ;
grid tq layout- > addWidget ( argLabel , 0 , 0 ) ;
grid layout- > addWidget ( argLabel , 0 , 0 ) ;
grid tq layout- > addWidget ( arguments , 0 , 1 ) ;
grid layout- > addWidget ( arguments , 0 , 1 ) ;
tq layout- > addLayout ( grid tq layout) ;
layout- > addLayout ( grid layout) ;
tq layout- > addItem ( new TQSpacerItem ( 0 , 0 , TQSizePolicy : : Minimum , TQSizePolicy : : Expanding ) ) ;
layout- > addItem ( new TQSpacerItem ( 0 , 0 , TQSizePolicy : : Minimum , TQSizePolicy : : Expanding ) ) ;
}
}
KDE_NO_EXPORT void PrefFFMpegPage : : record ( ) {
KDE_NO_EXPORT void PrefFFMpegPage : : record ( ) {
@ -611,28 +611,28 @@ KDE_NO_EXPORT TQString PrefXinePage::name () {
KDE_NO_CDTOR_EXPORT PrefGeneralPageOutput : : PrefGeneralPageOutput ( TQWidget * parent , OutputDriver * ad , OutputDriver * vd )
KDE_NO_CDTOR_EXPORT PrefGeneralPageOutput : : PrefGeneralPageOutput ( TQWidget * parent , OutputDriver * ad , OutputDriver * vd )
: TQFrame ( parent ) {
: TQFrame ( parent ) {
TQGridLayout * tq layout = new TQGridLayout ( this , 2 , 2 , 5 ) ;
TQGridLayout * layout = new TQGridLayout ( this , 2 , 2 , 5 ) ;
videoDriver = new TQListBox ( this ) ;
videoDriver = new TQListBox ( this ) ;
for ( int i = 0 ; vd [ i ] . driver ; i + + )
for ( int i = 0 ; vd [ i ] . driver ; i + + )
videoDriver - > insertItem ( vd [ i ] . description , i ) ;
videoDriver - > insertItem ( vd [ i ] . description , i ) ;
TQWhatsThis : : add ( videoDriver , i18n ( " Sets video driver. Recommended is XVideo, or, if it is not supported, X11, which is slower. " ) ) ;
TQWhatsThis : : add ( videoDriver , i18n ( " Sets video driver. Recommended is XVideo, or, if it is not supported, X11, which is slower. " ) ) ;
tq layout- > addWidget ( new TQLabel ( i18n ( " Video driver: " ) , this ) , 0 , 0 ) ;
layout- > addWidget ( new TQLabel ( i18n ( " Video driver: " ) , this ) , 0 , 0 ) ;
tq layout- > addWidget ( videoDriver , 1 , 0 ) ;
layout- > addWidget ( videoDriver , 1 , 0 ) ;
audioDriver = new TQListBox ( this ) ;
audioDriver = new TQListBox ( this ) ;
for ( int i = 0 ; ad [ i ] . driver ; i + + )
for ( int i = 0 ; ad [ i ] . driver ; i + + )
audioDriver - > insertItem ( ad [ i ] . description , i ) ;
audioDriver - > insertItem ( ad [ i ] . description , i ) ;
tq layout- > addWidget ( new TQLabel ( i18n ( " Audio driver: " ) , this ) , 0 , 1 ) ;
layout- > addWidget ( new TQLabel ( i18n ( " Audio driver: " ) , this ) , 0 , 1 ) ;
tq layout- > addWidget ( audioDriver , 1 , 1 ) ;
layout- > addWidget ( audioDriver , 1 , 1 ) ;
tq layout- > addItem ( new TQSpacerItem ( 0 , 0 , TQSizePolicy : : Minimum , TQSizePolicy : : Expanding ) ) ;
layout- > addItem ( new TQSpacerItem ( 0 , 0 , TQSizePolicy : : Minimum , TQSizePolicy : : Expanding ) ) ;
}
}
KDE_NO_CDTOR_EXPORT PrefOPPageGeneral : : PrefOPPageGeneral ( TQWidget * parent )
KDE_NO_CDTOR_EXPORT PrefOPPageGeneral : : PrefOPPageGeneral ( TQWidget * parent )
: TQFrame ( parent )
: TQFrame ( parent )
{
{
TQVBoxLayout * tq layout = new TQVBoxLayout ( this , 5 ) ;
TQVBoxLayout * layout = new TQVBoxLayout ( this , 5 ) ;
tq layout- > setAutoAdd ( true ) ;
layout- > setAutoAdd ( true ) ;
}
}
KDE_NO_CDTOR_EXPORT PrefOPPagePostProc : : PrefOPPagePostProc ( TQWidget * parent ) : TQFrame ( parent )
KDE_NO_CDTOR_EXPORT PrefOPPagePostProc : : PrefOPPagePostProc ( TQWidget * parent ) : TQFrame ( parent )
@ -686,8 +686,8 @@ KDE_NO_CDTOR_EXPORT PrefOPPagePostProc::PrefOPPagePostProc(TQWidget *parent) : T
customFilters - > setEnabled ( false ) ;
customFilters - > setEnabled ( false ) ;
customFilters - > setInsideSpacing ( 7 ) ;
customFilters - > setInsideSpacing ( 7 ) ;
TQLayout * customFiltersLayout = customFilters - > tq layout( ) ;
TQLayout * customFiltersLayout = customFilters - > layout( ) ;
TQHBoxLayout * customFiltersLayout1 = new TQHBoxLayout ( customFilters - > tq layout( ) ) ;
TQHBoxLayout * customFiltersLayout1 = new TQHBoxLayout ( customFilters - > layout( ) ) ;
HzDeblockFilter = new TQCheckBox ( i18n ( " Horizontal deblocking " ) , customFilters ) ;
HzDeblockFilter = new TQCheckBox ( i18n ( " Horizontal deblocking " ) , customFilters ) ;
HzDeblockAQuality = new TQCheckBox ( i18n ( " Auto quality " ) , customFilters ) ;
HzDeblockAQuality = new TQCheckBox ( i18n ( " Auto quality " ) , customFilters ) ;
@ -706,7 +706,7 @@ KDE_NO_CDTOR_EXPORT PrefOPPagePostProc::PrefOPPagePostProc(TQWidget *parent) : T
line1 - > setFrameShadow ( TQFrame : : Sunken ) ;
line1 - > setFrameShadow ( TQFrame : : Sunken ) ;
customFiltersLayout - > add ( line1 ) ;
customFiltersLayout - > add ( line1 ) ;
TQHBoxLayout * customFiltersLayout2 = new TQHBoxLayout ( customFilters - > tq layout( ) ) ;
TQHBoxLayout * customFiltersLayout2 = new TQHBoxLayout ( customFilters - > layout( ) ) ;
VtDeblockFilter = new TQCheckBox ( i18n ( " Vertical deblocking " ) , customFilters ) ;
VtDeblockFilter = new TQCheckBox ( i18n ( " Vertical deblocking " ) , customFilters ) ;
VtDeblockAQuality = new TQCheckBox ( i18n ( " Auto quality " ) , customFilters ) ;
VtDeblockAQuality = new TQCheckBox ( i18n ( " Auto quality " ) , customFilters ) ;
@ -726,7 +726,7 @@ KDE_NO_CDTOR_EXPORT PrefOPPagePostProc::PrefOPPagePostProc(TQWidget *parent) : T
line2 - > setFrameShadow ( TQFrame : : Sunken ) ;
line2 - > setFrameShadow ( TQFrame : : Sunken ) ;
customFiltersLayout - > add ( line2 ) ;
customFiltersLayout - > add ( line2 ) ;
TQHBoxLayout * customFiltersLayout3 = new TQHBoxLayout ( customFilters - > tq layout( ) ) ;
TQHBoxLayout * customFiltersLayout3 = new TQHBoxLayout ( customFilters - > layout( ) ) ;
DeringFilter = new TQCheckBox ( i18n ( " Dering filter " ) , customFilters ) ;
DeringFilter = new TQCheckBox ( i18n ( " Dering filter " ) , customFilters ) ;
DeringAQuality = new TQCheckBox ( i18n ( " Auto quality " ) , customFilters ) ;
DeringAQuality = new TQCheckBox ( i18n ( " Auto quality " ) , customFilters ) ;
@ -746,7 +746,7 @@ KDE_NO_CDTOR_EXPORT PrefOPPagePostProc::PrefOPPagePostProc(TQWidget *parent) : T
customFiltersLayout - > add ( line3 ) ;
customFiltersLayout - > add ( line3 ) ;
TQHBoxLayout * customFiltersLayout4 = new TQHBoxLayout ( customFilters - > tq layout( ) ) ;
TQHBoxLayout * customFiltersLayout4 = new TQHBoxLayout ( customFilters - > layout( ) ) ;
AutolevelsFilter = new TQCheckBox ( i18n ( " Auto brightness/contrast " ) , customFilters ) ;
AutolevelsFilter = new TQCheckBox ( i18n ( " Auto brightness/contrast " ) , customFilters ) ;
AutolevelsFullrange = new TQCheckBox ( i18n ( " Stretch luminance to full range " ) , customFilters ) ;
AutolevelsFullrange = new TQCheckBox ( i18n ( " Stretch luminance to full range " ) , customFilters ) ;
@ -756,7 +756,7 @@ KDE_NO_CDTOR_EXPORT PrefOPPagePostProc::PrefOPPagePostProc(TQWidget *parent) : T
customFiltersLayout4 - > addItem ( new TQSpacerItem ( 0 , 0 , TQSizePolicy : : Minimum , TQSizePolicy : : Minimum ) ) ;
customFiltersLayout4 - > addItem ( new TQSpacerItem ( 0 , 0 , TQSizePolicy : : Minimum , TQSizePolicy : : Minimum ) ) ;
customFiltersLayout4 - > addWidget ( AutolevelsFullrange ) ;
customFiltersLayout4 - > addWidget ( AutolevelsFullrange ) ;
TQHBoxLayout * customFiltersLayout5 = new TQHBoxLayout ( customFilters - > tq layout( ) ) ;
TQHBoxLayout * customFiltersLayout5 = new TQHBoxLayout ( customFilters - > layout( ) ) ;
TmpNoiseFilter = new TQCheckBox ( i18n ( " Temporal noise reducer " ) , customFilters ) ;
TmpNoiseFilter = new TQCheckBox ( i18n ( " Temporal noise reducer " ) , customFilters ) ;
/* Note: Change TmpNoiseFilter text back to "Label:" if this slider gets reactivated
/* Note: Change TmpNoiseFilter text back to "Label:" if this slider gets reactivated