|
Lines 721-727
Link Here
|
| 721 |
} |
721 |
} |
| 722 |
case TIMER_EVENT_NEW_STATUS: |
722 |
case TIMER_EVENT_NEW_STATUS: |
| 723 |
{ |
723 |
{ |
| 724 |
emit signalXinetqStatus(m_statusString); |
724 |
emit signalXineStatus(m_statusString); |
| 725 |
break; |
725 |
break; |
| 726 |
} |
726 |
} |
| 727 |
case TIMER_EVENT_CHANGE_CURSOR: |
727 |
case TIMER_EVENT_CHANGE_CURSOR: |
|
Lines 1109-1115
Link Here
|
| 1109 |
if (isXineReady()) |
1109 |
if (isXineReady()) |
| 1110 |
return true; |
1110 |
return true; |
| 1111 |
|
1111 |
|
| 1112 |
emit signalXinetqStatus(i18n("Init xine...")); |
1112 |
emit signalXineStatus(i18n("Init xine...")); |
| 1113 |
globalPosChanged(); /* get global pos of the window */ |
1113 |
globalPosChanged(); /* get global pos of the window */ |
| 1114 |
|
1114 |
|
| 1115 |
/**** INIT XINE DISPLAY ****/ |
1115 |
/**** INIT XINE DISPLAY ****/ |
|
Lines 1377-1383
Link Here
|
| 1377 |
|
1377 |
|
| 1378 |
debugOut("xine init successful"); |
1378 |
debugOut("xine init successful"); |
| 1379 |
|
1379 |
|
| 1380 |
emit signalXinetqStatus(i18n("Ready")); |
1380 |
emit signalXineStatus(i18n("Ready")); |
| 1381 |
emit signalXineReady(); |
1381 |
emit signalXineReady(); |
| 1382 |
|
1382 |
|
| 1383 |
/** something to play? **/ |
1383 |
/** something to play? **/ |
|
Lines 1508-1514
Link Here
|
| 1508 |
m_posTimer.start(1000); |
1508 |
m_posTimer.start(1000); |
| 1509 |
|
1509 |
|
| 1510 |
emit signalXinePlaying(); |
1510 |
emit signalXinePlaying(); |
| 1511 |
emit signalXinetqStatus(i18n("Playing")); |
1511 |
emit signalXineStatus(i18n("Playing")); |
| 1512 |
|
1512 |
|
| 1513 |
return true; |
1513 |
return true; |
| 1514 |
} |
1514 |
} |
|
Lines 1882-1888
Link Here
|
| 1882 |
} |
1882 |
} |
| 1883 |
else fprintf(stderr,"xine pipe opened %s\n", m_trackURL.ascii()); |
1883 |
else fprintf(stderr,"xine pipe opened %s\n", m_trackURL.ascii()); |
| 1884 |
m_trackURL = "DVB"; |
1884 |
m_trackURL = "DVB"; |
| 1885 |
emit signalXinetqStatus(i18n("DVB: opening...")); |
1885 |
emit signalXineStatus(i18n("DVB: opening...")); |
| 1886 |
TQTimer::singleShot( 0, this, TQT_SLOT(playDvb()) ); |
1886 |
TQTimer::singleShot( 0, this, TQT_SLOT(playDvb()) ); |
| 1887 |
|
1887 |
|
| 1888 |
return true; |
1888 |
return true; |
|
Lines 1936-1942
Link Here
|
| 1936 |
m_queue.remove(m_queue.find(m_trackURL)); |
1936 |
m_queue.remove(m_queue.find(m_trackURL)); |
| 1937 |
|
1937 |
|
| 1938 |
if (m_trackURL != m_logoFile) |
1938 |
if (m_trackURL != m_logoFile) |
| 1939 |
emit signalXinetqStatus(i18n("Opening...")); |
1939 |
emit signalXineStatus(i18n("Opening...")); |
| 1940 |
|
1940 |
|
| 1941 |
/* check for external subtitle file or save url */ |
1941 |
/* check for external subtitle file or save url */ |
| 1942 |
m_trackSubtitleURL = TQString(); |
1942 |
m_trackSubtitleURL = TQString(); |
|
Lines 2157-2165
Link Here
|
| 2157 |
{ |
2157 |
{ |
| 2158 |
emit signalXinePlaying(); |
2158 |
emit signalXinePlaying(); |
| 2159 |
if (hasSaveURL()) |
2159 |
if (hasSaveURL()) |
| 2160 |
emit signalXinetqStatus(i18n("Recording")); |
2160 |
emit signalXineStatus(i18n("Recording")); |
| 2161 |
else |
2161 |
else |
| 2162 |
emit signalXinetqStatus(i18n("Playing")); |
2162 |
emit signalXineStatus(i18n("Playing")); |
| 2163 |
} |
2163 |
} |
| 2164 |
} |
2164 |
} |
| 2165 |
|
2165 |
|
|
Lines 2239-2245
Link Here
|
| 2239 |
{ |
2239 |
{ |
| 2240 |
if (m_trackURL != m_logoFile) |
2240 |
if (m_trackURL != m_logoFile) |
| 2241 |
{ |
2241 |
{ |
| 2242 |
emit signalXinetqStatus(i18n("Error")); |
2242 |
emit signalXineStatus(i18n("Error")); |
| 2243 |
emit signalXineError(error); |
2243 |
emit signalXineError(error); |
| 2244 |
} |
2244 |
} |
| 2245 |
else |
2245 |
else |
|
Lines 2671-2677
Link Here
|
| 2671 |
//debugOut(TQString("Set audio mixer volume: %1").tqarg(vol)); |
2671 |
//debugOut(TQString("Set audio mixer volume: %1").tqarg(vol)); |
| 2672 |
xine_set_param(m_xineStream, XINE_PARAM_AUDIO_VOLUME, vol); |
2672 |
xine_set_param(m_xineStream, XINE_PARAM_AUDIO_VOLUME, vol); |
| 2673 |
} |
2673 |
} |
| 2674 |
emit signalXinetqStatus(i18n("Volume") + ": " + TQString::number(vol) +"%"); |
2674 |
emit signalXineStatus(i18n("Volume") + ": " + TQString::number(vol) +"%"); |
| 2675 |
} |
2675 |
} |
| 2676 |
|
2676 |
|
| 2677 |
uint KXineWidget::getVolume() const |
2677 |
uint KXineWidget::getVolume() const |
|
Lines 2707-2718
Link Here
|
| 2707 |
if (xine_get_param(m_xineStream, muteParam)) |
2707 |
if (xine_get_param(m_xineStream, muteParam)) |
| 2708 |
{ |
2708 |
{ |
| 2709 |
xine_set_param(m_xineStream, muteParam, 0); /* mute off */ |
2709 |
xine_set_param(m_xineStream, muteParam, 0); /* mute off */ |
| 2710 |
emit signalXinetqStatus(i18n("Mute Off")); |
2710 |
emit signalXineStatus(i18n("Mute Off")); |
| 2711 |
} |
2711 |
} |
| 2712 |
else |
2712 |
else |
| 2713 |
{ |
2713 |
{ |
| 2714 |
xine_set_param(m_xineStream, muteParam, 1); /* mute on */ |
2714 |
xine_set_param(m_xineStream, muteParam, 1); /* mute on */ |
| 2715 |
emit signalXinetqStatus(i18n("Mute On")); |
2715 |
emit signalXineStatus(i18n("Mute On")); |
| 2716 |
} |
2716 |
} |
| 2717 |
} |
2717 |
} |
| 2718 |
|
2718 |
|
|
Lines 2867-2873
Link Here
|
| 2867 |
TQTimer::singleShot(0, this, TQT_SLOT(slotPlay())); |
2867 |
TQTimer::singleShot(0, this, TQT_SLOT(slotPlay())); |
| 2868 |
} |
2868 |
} |
| 2869 |
|
2869 |
|
| 2870 |
emit signalXinetqStatus(i18n("Stop")); |
2870 |
emit signalXineStatus(i18n("Stop")); |
| 2871 |
} |
2871 |
} |
| 2872 |
|
2872 |
|
| 2873 |
void KXineWidget::slotSetAudiocdDevice(const TQString& device) |
2873 |
void KXineWidget::slotSetAudiocdDevice(const TQString& device) |
|
Lines 2997-3003
Link Here
|
| 2997 |
xine_set_param(m_xineStream, XINE_PARAM_SPEED, XINE_SPEED_PAUSE); |
2997 |
xine_set_param(m_xineStream, XINE_PARAM_SPEED, XINE_SPEED_PAUSE); |
| 2998 |
m_posTimer.stop(); |
2998 |
m_posTimer.stop(); |
| 2999 |
if (m_currentSpeed != Undefined) |
2999 |
if (m_currentSpeed != Undefined) |
| 3000 |
emit signalXinetqStatus(i18n("Pause")); |
3000 |
emit signalXineStatus(i18n("Pause")); |
| 3001 |
m_currentSpeed = Pause; |
3001 |
m_currentSpeed = Pause; |
| 3002 |
} |
3002 |
} |
| 3003 |
} |
3003 |
} |
|
Lines 3007-3013
Link Here
|
| 3007 |
xine_set_param(m_xineStream, XINE_PARAM_SPEED, XINE_SPEED_NORMAL); |
3007 |
xine_set_param(m_xineStream, XINE_PARAM_SPEED, XINE_SPEED_NORMAL); |
| 3008 |
m_posTimer.start(200); |
3008 |
m_posTimer.start(200); |
| 3009 |
m_currentSpeed = Normal; |
3009 |
m_currentSpeed = Normal; |
| 3010 |
emit signalXinetqStatus(i18n("Playing") + " "); |
3010 |
emit signalXineStatus(i18n("Playing") + " "); |
| 3011 |
} |
3011 |
} |
| 3012 |
|
3012 |
|
| 3013 |
void KXineWidget::slotSpeedFaster() |
3013 |
void KXineWidget::slotSpeedFaster() |
|
Lines 3018-3024
Link Here
|
| 3018 |
{ |
3018 |
{ |
| 3019 |
xine_set_param(m_xineStream, XINE_PARAM_SPEED, XINE_SPEED_FAST_4); |
3019 |
xine_set_param(m_xineStream, XINE_PARAM_SPEED, XINE_SPEED_FAST_4); |
| 3020 |
m_currentSpeed = Fast2; |
3020 |
m_currentSpeed = Fast2; |
| 3021 |
emit signalXinetqStatus(i18n("Fast Forward %1").tqarg("x2")); |
3021 |
emit signalXineStatus(i18n("Fast Forward %1").tqarg("x2")); |
| 3022 |
break; |
3022 |
break; |
| 3023 |
} |
3023 |
} |
| 3024 |
case Fast2: |
3024 |
case Fast2: |
|
Lines 3035-3048
Link Here
|
| 3035 |
{ |
3035 |
{ |
| 3036 |
xine_set_param(m_xineStream, XINE_PARAM_SPEED, XINE_SPEED_SLOW_2); |
3036 |
xine_set_param(m_xineStream, XINE_PARAM_SPEED, XINE_SPEED_SLOW_2); |
| 3037 |
m_currentSpeed = Slow1; |
3037 |
m_currentSpeed = Slow1; |
| 3038 |
emit signalXinetqStatus(i18n("Slow Motion %1").tqarg("x1")); |
3038 |
emit signalXineStatus(i18n("Slow Motion %1").tqarg("x1")); |
| 3039 |
break; |
3039 |
break; |
| 3040 |
} |
3040 |
} |
| 3041 |
default: |
3041 |
default: |
| 3042 |
{ |
3042 |
{ |
| 3043 |
xine_set_param(m_xineStream, XINE_PARAM_SPEED, XINE_SPEED_FAST_2); |
3043 |
xine_set_param(m_xineStream, XINE_PARAM_SPEED, XINE_SPEED_FAST_2); |
| 3044 |
m_currentSpeed = Fast1; |
3044 |
m_currentSpeed = Fast1; |
| 3045 |
emit signalXinetqStatus(i18n("Fast Forward %1").tqarg("x1")); |
3045 |
emit signalXineStatus(i18n("Fast Forward %1").tqarg("x1")); |
| 3046 |
break; |
3046 |
break; |
| 3047 |
} |
3047 |
} |
| 3048 |
} |
3048 |
} |
|
Lines 3056-3062
Link Here
|
| 3056 |
{ |
3056 |
{ |
| 3057 |
xine_set_param(m_xineStream, XINE_PARAM_SPEED, XINE_SPEED_SLOW_4); |
3057 |
xine_set_param(m_xineStream, XINE_PARAM_SPEED, XINE_SPEED_SLOW_4); |
| 3058 |
m_currentSpeed = Slow2; |
3058 |
m_currentSpeed = Slow2; |
| 3059 |
emit signalXinetqStatus(i18n("Slow Motion %1").tqarg("x2")); |
3059 |
emit signalXineStatus(i18n("Slow Motion %1").tqarg("x2")); |
| 3060 |
break; |
3060 |
break; |
| 3061 |
} |
3061 |
} |
| 3062 |
case Slow2: |
3062 |
case Slow2: |
|
Lines 3073-3086
Link Here
|
| 3073 |
{ |
3073 |
{ |
| 3074 |
xine_set_param(m_xineStream, XINE_PARAM_SPEED, XINE_SPEED_FAST_2); |
3074 |
xine_set_param(m_xineStream, XINE_PARAM_SPEED, XINE_SPEED_FAST_2); |
| 3075 |
m_currentSpeed = Fast1; |
3075 |
m_currentSpeed = Fast1; |
| 3076 |
emit signalXinetqStatus(i18n("Fast Forward %1").tqarg("x1")); |
3076 |
emit signalXineStatus(i18n("Fast Forward %1").tqarg("x1")); |
| 3077 |
break; |
3077 |
break; |
| 3078 |
} |
3078 |
} |
| 3079 |
default: |
3079 |
default: |
| 3080 |
{ |
3080 |
{ |
| 3081 |
xine_set_param(m_xineStream, XINE_PARAM_SPEED, XINE_SPEED_SLOW_2); |
3081 |
xine_set_param(m_xineStream, XINE_PARAM_SPEED, XINE_SPEED_SLOW_2); |
| 3082 |
m_currentSpeed = Slow1; |
3082 |
m_currentSpeed = Slow1; |
| 3083 |
emit signalXinetqStatus(i18n("Slow Motion %1").tqarg("x1")); |
3083 |
emit signalXineStatus(i18n("Slow Motion %1").tqarg("x1")); |
| 3084 |
break; |
3084 |
break; |
| 3085 |
} |
3085 |
} |
| 3086 |
} |
3086 |
} |
|
Lines 3343-3373
Link Here
|
| 3343 |
void KXineWidget::slotAspectRatioAuto() |
3343 |
void KXineWidget::slotAspectRatioAuto() |
| 3344 |
{ |
3344 |
{ |
| 3345 |
xine_set_param(m_xineStream, XINE_PARAM_VO_ASPECT_RATIO, XINE_VO_ASPECT_AUTO); |
3345 |
xine_set_param(m_xineStream, XINE_PARAM_VO_ASPECT_RATIO, XINE_VO_ASPECT_AUTO); |
| 3346 |
emit signalXinetqStatus(i18n("Aspect Ratio") + ": " + i18n("Auto")); |
3346 |
emit signalXineStatus(i18n("Aspect Ratio") + ": " + i18n("Auto")); |
| 3347 |
} |
3347 |
} |
| 3348 |
|
3348 |
|
| 3349 |
void KXineWidget::slotAspectRatio4_3() |
3349 |
void KXineWidget::slotAspectRatio4_3() |
| 3350 |
{ |
3350 |
{ |
| 3351 |
xine_set_param(m_xineStream, XINE_PARAM_VO_ASPECT_RATIO, XINE_VO_ASPECT_4_3); |
3351 |
xine_set_param(m_xineStream, XINE_PARAM_VO_ASPECT_RATIO, XINE_VO_ASPECT_4_3); |
| 3352 |
emit signalXinetqStatus(i18n("Aspect Ratio") + ": " + i18n("4:3")); |
3352 |
emit signalXineStatus(i18n("Aspect Ratio") + ": " + i18n("4:3")); |
| 3353 |
} |
3353 |
} |
| 3354 |
|
3354 |
|
| 3355 |
void KXineWidget::slotAspectRatioAnamorphic() |
3355 |
void KXineWidget::slotAspectRatioAnamorphic() |
| 3356 |
{ |
3356 |
{ |
| 3357 |
xine_set_param(m_xineStream, XINE_PARAM_VO_ASPECT_RATIO, XINE_VO_ASPECT_ANAMORPHIC); |
3357 |
xine_set_param(m_xineStream, XINE_PARAM_VO_ASPECT_RATIO, XINE_VO_ASPECT_ANAMORPHIC); |
| 3358 |
emit signalXinetqStatus(i18n("Aspect Ratio") + ": " + i18n("16:9")); |
3358 |
emit signalXineStatus(i18n("Aspect Ratio") + ": " + i18n("16:9")); |
| 3359 |
} |
3359 |
} |
| 3360 |
|
3360 |
|
| 3361 |
void KXineWidget::slotAspectRatioSquare() |
3361 |
void KXineWidget::slotAspectRatioSquare() |
| 3362 |
{ |
3362 |
{ |
| 3363 |
xine_set_param(m_xineStream, XINE_PARAM_VO_ASPECT_RATIO, XINE_VO_ASPECT_SQUARE); |
3363 |
xine_set_param(m_xineStream, XINE_PARAM_VO_ASPECT_RATIO, XINE_VO_ASPECT_SQUARE); |
| 3364 |
emit signalXinetqStatus(i18n("Aspect Ratio") + ": " + i18n("1:1")); |
3364 |
emit signalXineStatus(i18n("Aspect Ratio") + ": " + i18n("1:1")); |
| 3365 |
} |
3365 |
} |
| 3366 |
|
3366 |
|
| 3367 |
void KXineWidget::slotAspectRatioDVB() |
3367 |
void KXineWidget::slotAspectRatioDVB() |
| 3368 |
{ |
3368 |
{ |
| 3369 |
xine_set_param(m_xineStream, XINE_PARAM_VO_ASPECT_RATIO, XINE_VO_ASPECT_DVB); |
3369 |
xine_set_param(m_xineStream, XINE_PARAM_VO_ASPECT_RATIO, XINE_VO_ASPECT_DVB); |
| 3370 |
emit signalXinetqStatus(i18n("Aspect Ratio") + ": " + i18n("2.11:1")); |
3370 |
emit signalXineStatus(i18n("Aspect Ratio") + ": " + i18n("2.11:1")); |
| 3371 |
} |
3371 |
} |
| 3372 |
|
3372 |
|
| 3373 |
void KXineWidget::slotZoomOutX() |
3373 |
void KXineWidget::slotZoomOutX() |
|
Lines 3376-3382
Link Here
|
| 3376 |
{ |
3376 |
{ |
| 3377 |
m_currentZoomX -= 5; |
3377 |
m_currentZoomX -= 5; |
| 3378 |
xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_X, m_currentZoomX); |
3378 |
xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_X, m_currentZoomX); |
| 3379 |
emit signalXinetqStatus(i18n("Zoom X") + ": " + TQString::number(m_currentZoomX) + "%"); |
3379 |
emit signalXineStatus(i18n("Zoom X") + ": " + TQString::number(m_currentZoomX) + "%"); |
| 3380 |
} |
3380 |
} |
| 3381 |
} |
3381 |
} |
| 3382 |
|
3382 |
|
|
Lines 3386-3392
Link Here
|
| 3386 |
{ |
3386 |
{ |
| 3387 |
m_currentZoomX += 5; |
3387 |
m_currentZoomX += 5; |
| 3388 |
xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_X, m_currentZoomX); |
3388 |
xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_X, m_currentZoomX); |
| 3389 |
emit signalXinetqStatus(i18n("Zoom X") + ": " + TQString::number(m_currentZoomX) + "%"); |
3389 |
emit signalXineStatus(i18n("Zoom X") + ": " + TQString::number(m_currentZoomX) + "%"); |
| 3390 |
} |
3390 |
} |
| 3391 |
} |
3391 |
} |
| 3392 |
|
3392 |
|
|
Lines 3396-3402
Link Here
|
| 3396 |
{ |
3396 |
{ |
| 3397 |
m_currentZoomY -= 5; |
3397 |
m_currentZoomY -= 5; |
| 3398 |
xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_Y, m_currentZoomY); |
3398 |
xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_Y, m_currentZoomY); |
| 3399 |
emit signalXinetqStatus(i18n("Zoom Y") + ": " + TQString::number(m_currentZoomY) + "%"); |
3399 |
emit signalXineStatus(i18n("Zoom Y") + ": " + TQString::number(m_currentZoomY) + "%"); |
| 3400 |
} |
3400 |
} |
| 3401 |
} |
3401 |
} |
| 3402 |
|
3402 |
|
|
Lines 3406-3412
Link Here
|
| 3406 |
{ |
3406 |
{ |
| 3407 |
m_currentZoomY += 5; |
3407 |
m_currentZoomY += 5; |
| 3408 |
xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_Y, m_currentZoomY); |
3408 |
xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_Y, m_currentZoomY); |
| 3409 |
emit signalXinetqStatus(i18n("Zoom Y") + ": " + TQString::number(m_currentZoomY) + "%"); |
3409 |
emit signalXineStatus(i18n("Zoom Y") + ": " + TQString::number(m_currentZoomY) + "%"); |
| 3410 |
} |
3410 |
} |
| 3411 |
} |
3411 |
} |
| 3412 |
|
3412 |
|
|
Lines 3418-3424
Link Here
|
| 3418 |
m_currentZoomX = m_currentZoomY = m_currentZoom; |
3418 |
m_currentZoomX = m_currentZoomY = m_currentZoom; |
| 3419 |
xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_X, m_currentZoom); |
3419 |
xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_X, m_currentZoom); |
| 3420 |
xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_Y, m_currentZoom); |
3420 |
xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_Y, m_currentZoom); |
| 3421 |
emit signalXinetqStatus(i18n("Zoom") + ": " + TQString::number(m_currentZoom) + "%"); |
3421 |
emit signalXineStatus(i18n("Zoom") + ": " + TQString::number(m_currentZoom) + "%"); |
| 3422 |
} |
3422 |
} |
| 3423 |
} |
3423 |
} |
| 3424 |
|
3424 |
|
|
Lines 3430-3436
Link Here
|
| 3430 |
m_currentZoomX = m_currentZoomY = m_currentZoom; |
3430 |
m_currentZoomX = m_currentZoomY = m_currentZoom; |
| 3431 |
xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_X, m_currentZoom); |
3431 |
xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_X, m_currentZoom); |
| 3432 |
xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_Y, m_currentZoom); |
3432 |
xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_Y, m_currentZoom); |
| 3433 |
emit signalXinetqStatus(i18n("Zoom") + ": " + TQString::number(m_currentZoom) + "%"); |
3433 |
emit signalXineStatus(i18n("Zoom") + ": " + TQString::number(m_currentZoom) + "%"); |
| 3434 |
} |
3434 |
} |
| 3435 |
} |
3435 |
} |
| 3436 |
|
3436 |
|
|
Lines 3440-3446
Link Here
|
| 3440 |
xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_Y, 100); |
3440 |
xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_Y, 100); |
| 3441 |
m_currentZoom = 100; |
3441 |
m_currentZoom = 100; |
| 3442 |
m_currentZoomX = m_currentZoomY = m_currentZoom; |
3442 |
m_currentZoomX = m_currentZoomY = m_currentZoom; |
| 3443 |
emit signalXinetqStatus(i18n("Zoom") + ": " + TQString::number(m_currentZoom) + "%"); |
3443 |
emit signalXineStatus(i18n("Zoom") + ": " + TQString::number(m_currentZoom) + "%"); |
| 3444 |
} |
3444 |
} |
| 3445 |
|
3445 |
|
| 3446 |
TQTime KXineWidget::getLengthInfo() |
3446 |
TQTime KXineWidget::getLengthInfo() |
|
Lines 3513-3549
Link Here
|
| 3513 |
void KXineWidget::slotSetHue(int hue) |
3513 |
void KXineWidget::slotSetHue(int hue) |
| 3514 |
{ |
3514 |
{ |
| 3515 |
xine_set_param(m_xineStream, XINE_PARAM_VO_HUE, hue); |
3515 |
xine_set_param(m_xineStream, XINE_PARAM_VO_HUE, hue); |
| 3516 |
emit signalXinetqStatus(i18n("Hue") + ": " + TQString::number((hue*100)/65535) + "%"); |
3516 |
emit signalXineStatus(i18n("Hue") + ": " + TQString::number((hue*100)/65535) + "%"); |
| 3517 |
} |
3517 |
} |
| 3518 |
|
3518 |
|
| 3519 |
void KXineWidget::slotSetSaturation(int sat) |
3519 |
void KXineWidget::slotSetSaturation(int sat) |
| 3520 |
{ |
3520 |
{ |
| 3521 |
xine_set_param(m_xineStream, XINE_PARAM_VO_SATURATION, sat); |
3521 |
xine_set_param(m_xineStream, XINE_PARAM_VO_SATURATION, sat); |
| 3522 |
emit signalXinetqStatus(i18n("Saturation") + ": " + TQString::number((sat*100)/65535) + "%"); |
3522 |
emit signalXineStatus(i18n("Saturation") + ": " + TQString::number((sat*100)/65535) + "%"); |
| 3523 |
} |
3523 |
} |
| 3524 |
|
3524 |
|
| 3525 |
void KXineWidget::slotSetContrast(int contrast) |
3525 |
void KXineWidget::slotSetContrast(int contrast) |
| 3526 |
{ |
3526 |
{ |
| 3527 |
xine_set_param(m_xineStream, XINE_PARAM_VO_CONTRAST, contrast); |
3527 |
xine_set_param(m_xineStream, XINE_PARAM_VO_CONTRAST, contrast); |
| 3528 |
emit signalXinetqStatus(i18n("Contrast") + ": " + TQString::number((contrast*100)/65535) + "%"); |
3528 |
emit signalXineStatus(i18n("Contrast") + ": " + TQString::number((contrast*100)/65535) + "%"); |
| 3529 |
} |
3529 |
} |
| 3530 |
|
3530 |
|
| 3531 |
void KXineWidget::slotSetBrightness(int bright) |
3531 |
void KXineWidget::slotSetBrightness(int bright) |
| 3532 |
{ |
3532 |
{ |
| 3533 |
xine_set_param(m_xineStream, XINE_PARAM_VO_BRIGHTNESS, bright); |
3533 |
xine_set_param(m_xineStream, XINE_PARAM_VO_BRIGHTNESS, bright); |
| 3534 |
emit signalXinetqStatus(i18n("Brightness") + ": " + TQString::number((bright*100)/65535) + "%"); |
3534 |
emit signalXineStatus(i18n("Brightness") + ": " + TQString::number((bright*100)/65535) + "%"); |
| 3535 |
} |
3535 |
} |
| 3536 |
|
3536 |
|
| 3537 |
void KXineWidget::slotSetAVOffset(int av) |
3537 |
void KXineWidget::slotSetAVOffset(int av) |
| 3538 |
{ |
3538 |
{ |
| 3539 |
xine_set_param(m_xineStream, XINE_PARAM_AV_OFFSET, av); |
3539 |
xine_set_param(m_xineStream, XINE_PARAM_AV_OFFSET, av); |
| 3540 |
emit signalXinetqStatus(i18n("Audio/Video Offset") + ": " + TQString::number(av/90) + i18n("msec")); |
3540 |
emit signalXineStatus(i18n("Audio/Video Offset") + ": " + TQString::number(av/90) + i18n("msec")); |
| 3541 |
} |
3541 |
} |
| 3542 |
|
3542 |
|
| 3543 |
void KXineWidget::slotSetSpuOffset(int spu) |
3543 |
void KXineWidget::slotSetSpuOffset(int spu) |
| 3544 |
{ |
3544 |
{ |
| 3545 |
xine_set_param(m_xineStream, XINE_PARAM_SPU_OFFSET, spu); |
3545 |
xine_set_param(m_xineStream, XINE_PARAM_SPU_OFFSET, spu); |
| 3546 |
emit signalXinetqStatus(i18n("Subtitle Offset") + ": " + TQString::number(spu/90) + i18n("msec")); |
3546 |
emit signalXineStatus(i18n("Subtitle Offset") + ": " + TQString::number(spu/90) + i18n("msec")); |
| 3547 |
} |
3547 |
} |
| 3548 |
|
3548 |
|
| 3549 |
|
3549 |
|