"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/dvb/dvbtab.cpp" between
kaffeine-2.0.16.tar.gz and kaffeine-2.0.17.tar.gz

About: Kaffeine is a full featured Multimedia-Player for KDE (default backend is xine).

dvbtab.cpp  (kaffeine-2.0.16):dvbtab.cpp  (kaffeine-2.0.17)
skipping to change at line 226 skipping to change at line 226
splitter->restoreState(QByteArray::fromBase64( splitter->restoreState(QByteArray::fromBase64(
KSharedConfig::openConfig()->group("DVB").readEntry("TabSplitterS tate", QByteArray()))); KSharedConfig::openConfig()->group("DVB").readEntry("TabSplitterS tate", QByteArray())));
timeShiftCleaner = new DvbTimeShiftCleaner(this); timeShiftCleaner = new DvbTimeShiftCleaner(this);
QTimer *timer = new QTimer(this); QTimer *timer = new QTimer(this);
timer->start(30000); timer->start(30000);
connect(timer, SIGNAL(timeout()), this, SLOT(cleanTimeShiftFiles())); connect(timer, SIGNAL(timeout()), this, SLOT(cleanTimeShiftFiles()));
autoHideMenu = false; autoHideMenu = false;
cursorHideTimer = new QTimer(this);
cursorHideTimer->setInterval(1500);
cursorHideTimer->setSingleShot(true);
connect(cursorHideTimer, SIGNAL(timeout()), this, SLOT(hideCursor()));
} }
DvbTab::~DvbTab() DvbTab::~DvbTab()
{ {
KSharedConfig::openConfig()->group("DVB").writeEntry("TabSplitterState", KSharedConfig::openConfig()->group("DVB").writeEntry("TabSplitterState",
splitter->saveState().toBase64()); splitter->saveState().toBase64());
KSharedConfig::openConfig()->group("DVB").writeEntry("ChannelViewState", KSharedConfig::openConfig()->group("DVB").writeEntry("ChannelViewState",
channelView->header()->saveState().toBase64()); channelView->header()->saveState().toBase64());
if (!currentChannel.isEmpty()) { if (!currentChannel.isEmpty()) {
skipping to change at line 351 skipping to change at line 346
void DvbTab::enableDvbDump() void DvbTab::enableDvbDump()
{ {
manager->enableDvbDump(); manager->enableDvbDump();
} }
void DvbTab::mouse_move(int x, int) void DvbTab::mouse_move(int x, int)
{ {
if (!autoHideMenu) if (!autoHideMenu)
return; return;
cursorHideTimer->stop();
unsetCursor(); unsetCursor();
leftWidget->setVisible(x >= 0 && x < 120); leftWidget->setVisible(x >= 0 && x < 120);
if (leftWidget->isHidden()) {
cursorHideTimer->start();
}
} }
void DvbTab::toggleDisplayMode(MediaWidget::DisplayMode displayMode) void DvbTab::toggleDisplayMode(MediaWidget::DisplayMode displayMode)
{ {
switch (displayMode) { switch (displayMode) {
case MediaWidget::FullScreenMode: case MediaWidget::FullScreenMode:
case MediaWidget::FullScreenReturnToMinimalMode: case MediaWidget::FullScreenReturnToMinimalMode:
case MediaWidget::MinimalMode: case MediaWidget::MinimalMode:
leftWidget->hide(); leftWidget->hide();
autoHideMenu = true; autoHideMenu = true;
cursorHideTimer->start();
break; break;
case MediaWidget::NormalMode: case MediaWidget::NormalMode:
leftWidget->show(); leftWidget->show();
autoHideMenu = false; autoHideMenu = false;
cursorHideTimer->stop();
break; break;
} }
} }
void DvbTab::osdKeyPressed(int key) void DvbTab::osdKeyPressed(int key)
{ {
if ((key >= Qt::Key_0) && (key <= Qt::Key_9)) { if ((key >= Qt::Key_0) && (key <= Qt::Key_9)) {
osdChannel += QString::number(key - Qt::Key_0); osdChannel += QString::number(key - Qt::Key_0);
osdChannelTimer.start(1500); osdChannelTimer.start(1500);
mediaWidget->getOsdWidget()->showText(i18nc("osd", "Channel: %1_" , osdChannel), mediaWidget->getOsdWidget()->showText(i18nc("osd", "Channel: %1_" , osdChannel),
 End of changes. 5 change blocks. 
13 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)