TVProgramme

Plasma 4 Extensions

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

2
5 .0
Description:

Simple XMLTV reader plasmoid.
Last changelog:

11 years ago

1.2.0: works with KDE 4.2
shows channel icons
nicer configuration dialog
1.1.0: added the possibility to choose which channels should be shown
appearance improvements
redesigned configuration dialog
1.0.2: now uses first display-name
1.0.1: fixed plasma crash bug

Emerich45

11 years ago

Hello

When I tried ' ' cmake don't work, but cmake gui is my friend and now is work.

Linking CXX shared module lib/plasma_applet_tvprogramme.so
[100%] Built target plasma_applet_tvprogramme
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /usr/local/lib/kde4/plasma_applet_tvprogramme.so
-- Set runtime path of "/usr/local/lib/kde4/plasma_applet_tvprogramme.so" to "/usr/local/lib"
-- Installing: /usr/local/share/kde4/services/plasma-applet-tvprogramme.desktop


I cant see in the plasmoid list.
I tried kbuilsycoca4, restart plasma, restart my computer.

Idea?

Report

C

jrepan

11 years ago

Set install prefix to /usr instead of /usr/local

Report

Emerich45

11 years ago

I compile with cmake -DCMAKE_INSTALL_PREFIX='kde4-config –prefix'

make, make install

The Libs, usr and other important directory, put in the original folder.

Example. /home/Xy/Tvprogramme/usr and libs..... not in /usr/share/....

And I can't see in plasmoid list, after install. I try reboot the plasmoid and logout my user.

You saw its work, please write it, how does it.

Thanks

Report

Emerich45

11 years ago

-- Uninstalling "/home/XY/plasma-tvprogramme-1.2.0/kde4-config --prefix/lib/kde4/plasma_applet_tvprogramme.so"

-- Uninstalling "/home/XY/plasma-tvprogramme-1.2.0/kde4-config --prefix/share/kde4/services/plasma-applet-tvprogramme.desktop"

Built target uninstall

Report

C

jrepan

11 years ago

Try using ` instead of ' in cmake -DCMAKE_INSTALL_PREFIX='kde4-config –prefix'

Report

Emerich45

11 years ago

Hello

Sorry my bad English!

I would like use this plasmoid in kde 4.3, (Arch linux) but don't work.

When, you have a free time, please port this nicy plasmoid to kde 4.3.

Very, very THX!


Report

C

jrepan

11 years ago

How exactly it doesn't work? I can look at it in the weekend, but IIRC I have tried it with KDE 4.3 rc1 and it worked.

Report

mattepiu

11 years ago

--- CMakeLists.txt.orig 2009-01-26 00:21:33.000000000 +0100
+++ CMakeLists.txt 2009-01-26 00:21:47.000000000 +0100
@@ -1,12 +1,11 @@
project(plasma-tvprogramme)
find_package(KDE4 REQUIRED)
include(KDE4Defaults)
-find_package(Plasma REQUIRED)
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES})
set(tvprogramme_SRCS plasma-tvprogramme.cpp)
kde4_add_ui_files(tvprogramme_SRCS tvprogrammeConfig.ui )
kde4_add_plugin(plasma_applet_tvprogramme ${tvprogramme_SRCS})
-target_link_libraries(plasma_applet_tvprogramme ${PLASMA_LIBS} ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS})
+target_link_libraries(plasma_applet_tvprogramme ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS})
install(TARGETS plasma_applet_tvprogramme DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES plasma-applet-tvprogramme.desktop DESTINATION ${SERVICES_INSTALL_DIR})

Report

C

jrepan

11 years ago

This is already fixed in 1.2.0.

Report

nellery

11 years ago

Hi,

I've packaged this plasmoid for Ubuntu, and it is now available in the archive - https://launchpad.net/ubuntu/+source/plasmoid-tvprogramme.

Thanks,
Nick

Report

C

jrepan

11 years ago

1.1.0 was released thanks to MStegen, who made the main improvoments.

Report

kalaschnikow

11 years ago

could you explain how to choose single channels? i added the list of german channels from xmltv.info, but i want to select just four of them.

and could you maybe add the possibility to replace the channel names with their icons? would be a really nice improvement for your plasmoid ;)

Report

C

jrepan

11 years ago

You can restrict which channels are shown in Channels tab in configuration dialog. Add channels names to "Channels to show" listbox. Names are case sensitive.
If listbox is empty then all channels are shown

I will add icon showing in later(probably in 1.2)

Report

kalaschnikow

11 years ago

thank you for your answer, but i have another problem now.

i deleted the two installed files (the .desktop and the .so file) compiled it again and after i restarted plasma the plasmoid didnt work anymore! if i add it to my desktop there is just a tiny box, no configuration option and the remove option in the right-klick-menu says "remove 'unknown widget'"
i tried deleting and reinstalling the plasmoid three times but nothing changed.

Report

C

jrepan

11 years ago

Have you seen this installing howto: http://www.kde-look.org/help/index.php?type=70
I get 'unkown widget' when .so file is missing. Check if it has the right name(plasma_applet_tvprogramme.so) and is in the right directory.

Report

mattepiu

11 years ago

Xmltv format allows for multiple display-name entries to assign a number to a channel. In this case the real channel name is the first entry while tvprogramme is actually catching the last one. Here a quick patch, hope you don't dislike:

--- plasma-tvprogramme.cpp.orig 2008-10-28 12:06:42.000000000 +0100
+++ plasma-tvprogramme.cpp 2008-10-28 12:04:46.000000000 +0100
@@ -195,11 +195,15 @@
attributes = nodes.at(nodeNumber).attributes();
channel.id = attributes.namedItem("id").nodeValue();
nodes2 = nodes.at(nodeNumber).childNodes();
+ channel.name = "x";
for (int node2Number = 0; node2Number < nodes2.count(); node2Number++)
{
if (nodes2.at(node2Number).nodeName() == "display-name")
{
- channel.name = nodes2.at(node2Number).toElement().text();
+ if (channel.name == "x")
+ {
+ channel.name = nodes2.at(node2Number).toElement().text();
+ }
}
}
channels.append(channel);

Report

C

jrepan

11 years ago

Thanks. This is fixed now.

Report

painkiller101

12 years ago

Hello.

After typing in an url and pressing ok my plasma crashed with signal 11(SIGSEGV) and gave this message:


Anwendung: Plasma-Arbeitsfläche (<unknown>), Signal SIGSEGV
[?1034h[Thread debugging using libthread_db enabled]
[New Thread 0xb4acf6f0 (LWP 17043)]
[New Thread 0xb1458b90 (LWP 17047)]
[New Thread 0xb1c76b90 (LWP 17045)]
[New Thread 0xb2bdfb90 (LWP 17044)]
[KCrash handler]
#6 0xb5de5bc2 in QDomNode::QDomNode () from /usr/lib/libQtXml.so.4
#7 0xb5dee5ee in QDomNodeList::item () from /usr/lib/libQtXml.so.4
#8 0xb22ced2f in PlasmaTvProgramme::reparse (this=0x87eacd0)
at /usr/include/QtXml/qdom.h:267
#9 0xb22d0f3b in PlasmaTvProgramme::configAccepted (this=0x87eacd0)
at /home/daten/DOWNLOADS/plasma-tvprogramme-1.0/plasma-tvprogramme.cpp:126
#10 0xb22d1133 in PlasmaTvProgramme::qt_metacall (this=0x87eacd0,
_c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfa74278)
at /home/daten/DOWNLOADS/plasma-tvprogramme-1.0/build/plasma-tvprogramme.moc:69
#11 0xb6aa23fa in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#12 0xb6aa2972 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#13 0xb78f6f07 in KDialog::okClicked () from /usr/lib/libkdeui.so.5
#14 0xb78f9c38 in KDialog::slotButtonClicked () from /usr/lib/libkdeui.so.5
#15 0xb78fafa4 in KDialog::qt_metacall () from /usr/lib/libkdeui.so.5
#16 0xb79b7bfa in KPageDialog::qt_metacall () from /usr/lib/libkdeui.so.5
#17 0xb78decba in KConfigDialog::qt_metacall () from /usr/lib/libkdeui.so.5
#18 0xb6aa23fa in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#19 0xb6aa2972 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#20 0xb6aa71f3 in QSignalMapper::mapped () from /usr/lib/libQtCore.so.4
#21 0xb6aa72cd in QSignalMapper::map () from /usr/lib/libQtCore.so.4
#22 0xb6aa74be in QSignalMapper::map () from /usr/lib/libQtCore.so.4
#23 0xb6aa83cb in QSignalMapper::qt_metacall () from /usr/lib/libQtCore.so.4
#24 0xb6aa23fa in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#25 0xb6aa26f0 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#26 0xb64d6191 in QAbstractButton::clicked () from /usr/lib/libQtGui.so.4
#27 0xb6267869 in ?? () from /usr/lib/libQtGui.so.4
#28 0xb6268624 in ?? () from /usr/lib/libQtGui.so.4
#29 0xb6268886 in QAbstractButton::mouseReleaseEvent ()
from /usr/lib/libQtGui.so.4
#30 0xb5fc4176 in QWidget::event () from /usr/lib/libQtGui.so.4
#31 0xb626770e in QAbstractButton::event () from /usr/lib/libQtGui.so.4
#32 0xb62fda40 in QPushButton::event () from /usr/lib/libQtGui.so.4
#33 0xb5f71ecc in QApplicationPrivate::notify_helper ()
from /usr/lib/libQtGui.so.4
#34 0xb5f78ca7 in QApplication::notify () from /usr/lib/libQtGui.so.4
#35 0xb798a06d in KApplication::notify () from /usr/lib/libkdeui.so.5
#36 0xb6a90b51 in QCoreApplication::notifyInternal ()
from /usr/lib/libQtCore.so.4
#37 0xb5f79fae in QApplicationPrivate::sendMouseEvent ()
from /usr/lib/libQtGui.so.4
#38 0xb5fd71e8 in ?? () from /usr/lib/libQtGui.so.4
#39 0xb5fd65a4 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#40 0xb5ffc3ae in ?? () from /usr/lib/libQtGui.so.4
#41 0xb6a8f2ca in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#42 0xb6a8f48a in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#43 0xb6a9166d in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#44 0xb5f71d47 in QApplication::exec () from /usr/lib/libQtGui.so.4
#45 0xb7f1db31 in kdemain () from /usr/lib/libkdeinit4_plasma.so
#46 0x08048802 in main ()
#0 0xffffe430 in __kernel_vsyscall ()

Maybe it can help fixing the problem.
keep it up.

Report

C

jrepan

12 years ago

Thanks for reporting bug.
Try if this this works: http://jrepan.pri.ee/plasma-tvprogramme.tar.gz
If this works, then I make bugfix release soon.

Report

painkiller101

12 years ago

Yes, now plasma doesn't crash anymore!

Thank you.

P.S.: Could you give an url for example, because the url i entered doesn't show any data.
Thanks again!

Report

C

jrepan

12 years ago

http://xmltv.kava.ee/files/41_channeldata.xml
I also looked http://xmltv.org/wiki/xmltvfileformat.html

Can you give url you used?

Report

11 years ago

1.2.0: works with KDE 4.2
shows channel icons
nicer configuration dialog
1.1.0: added the possibility to choose which channels should be shown
appearance improvements
redesigned configuration dialog
1.0.2: now uses first display-name
1.0.1: fixed plasma crash bug

12345678910
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
rnc
Mar 20 2012
devport
Jan 03 2010
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
1.2.0
updated Jan 20 2009
added Jul 12 2008
downloads 24h
0
mediaviews 24h 0
pageviews 24h 0