
Tasklist rotated in vertical panels
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
This is a modified version of the default task list plasmoid from KDE 4.3 beta. It has a new configuration option "Show vertically" and shows tasks 90 degree rotated when in a vertical panel. This way it fits as much text as in a horizontal panel. In horizontal panels it is displayed normally. Tasks are rotated -90 degrees in panels on the left and 90 degrees in panels on the right (see screenshots). Grouped tasks are also rotated.
Hope you like it. Comments are appreciated :-)
I didn't change much in the default tasks plasmoid, just added a few lines. Added an offscreen pixmap to draw the tasks normally and then draw them 90 degree rotated to screen. And I swapped the width/height of the preferred size of the tasks.
mkbiker
11 years ago
[ 71%] Building CXX object CMakeFiles/plasma_applet_tasks_vertical.dir/taskitemlayout.o
[ 85%] Building CXX object CMakeFiles/plasma_applet_tasks_vertical.dir/abstracttaskitem.o
[100%] Building CXX object CMakeFiles/plasma_applet_tasks_vertical.dir/taskgroupitem.o
.../Task-Rotated-In-Vertical-Panels-0.1/taskgroupitem.cpp: In member function ‘virtual void TaskGroupItem::updateToolTip()’:
.../Task-Rotated-In-Vertical-Panels-0.1/taskgroupitem.cpp:276: erreur: ‘class Plasma::ToolTipContent’ has no member named ‘setWindowsToPreview’
.../Task-Rotated-In-Vertical-Panels-0.1/taskgroupitem.cpp: In member function ‘void TaskGroupItem::popupMenu()’:
.../Task-Rotated-In-Vertical-Panels-0.1/taskgroupitem.cpp:582: erreur: ‘class Plasma::Dialog’ has no member named ‘animatedHide’
.../Task-Rotated-In-Vertical-Panels-0.1/taskgroupitem.cpp:582: erreur: ‘locationToInverseDirection’ is not a member of ‘Plasma’
.../Task-Rotated-In-Vertical-Panels-0.1/taskgroupitem.cpp:595: erreur: ‘class Plasma::Dialog’ has no member named ‘animatedShow’
.../Task-Rotated-In-Vertical-Panels-0.1/taskgroupitem.cpp: In member function ‘virtual bool TaskGroupItem::eventFilter(QObject*, QEvent*)’:
.../Task-Rotated-In-Vertical-Panels-0.1/taskgroupitem.cpp:611: erreur: ‘class Plasma::Dialog’ has no member named ‘animatedHide’
.../Task-Rotated-In-Vertical-Panels-0.1/taskgroupitem.cpp:611: erreur: ‘locationToInverseDirection’ is not a member of ‘Plasma’
make[2]: *** [CMakeFiles/plasma_applet_tasks_vertical.dir/taskgroupitem.o] Erreur 1
make[1]: *** [CMakeFiles/plasma_applet_tasks_vertical.dir/all] Erreur 2
make: *** [all] Erreur 2
I have Mandriva 2009.1 with Kde 4.2.4
Report
cauch
11 years ago
When I compile, I get:
abstracttaskitem.h:127: error: ‘AbstractItemPtr’ in namespace ‘TaskManager’ does not name a type
I succeed to compile by changing each "AbstractItemPtr" by "AbstractGroupableItem *"
It compiles and runs.
Hoping this can help other people (or used to patch the release ?)
Report
TheBlackCat
11 years ago
Report
furumaro
11 years ago
Report
kent57
11 years ago
[ 85%] Building CXX object CMakeFiles/plasma_applet_tasks_vertical.dir/abstracttaskitem.o
/home/ian/Downloads/105287-tasks_vertical/abstracttaskitem.cpp: In member function ‘virtual void AbstractTaskItem::hoverLeaveEvent(QGraphicsSceneHoverEvent*)’:
/home/ian/Downloads/105287-tasks_vertical/abstracttaskitem.cpp:307: error: ‘Atom’ was not declared in this scope
/home/ian/Downloads/105287-tasks_vertical/abstracttaskitem.cpp:307: error: expected `;' before ‘atom’
/home/ian/Downloads/105287-tasks_vertical/abstracttaskitem.cpp:308: error: ‘atom’ was not declared in this scope
/home/ian/Downloads/105287-tasks_vertical/abstracttaskitem.cpp:308: error: ‘XDeleteProperty’ was not declared in this scope
/home/ian/Downloads/105287-tasks_vertical/abstracttaskitem.cpp: In member function ‘virtual void AbstractTaskItem::timerEvent(QTimerEvent*)’:
/home/ian/Downloads/105287-tasks_vertical/abstracttaskitem.cpp:442: error: ‘Atom’ was not declared in this scope
/home/ian/Downloads/105287-tasks_vertical/abstracttaskitem.cpp:442: error: expected `;' before ‘atom’
/home/ian/Downloads/105287-tasks_vertical/abstracttaskitem.cpp:443: error: ‘atom’ was not declared in this scope
/home/ian/Downloads/105287-tasks_vertical/abstracttaskitem.cpp:443: error: ‘PropModeReplace’ was not declared in this scope
/home/ian/Downloads/105287-tasks_vertical/abstracttaskitem.cpp:444: error: ‘XChangeProperty’ was not declared in this scope
make[2]: *** [CMakeFiles/plasma_applet_tasks_vertical.dir/abstracttaskitem.o] Error 1
make[1]: *** [CMakeFiles/plasma_applet_tasks_vertical.dir/all] Error 2
make: *** [all] Error 2
Any suggestions to correct errors would be helpful
KDE 4.3 Kubuntu
Report
fpuelz
11 years ago
Report
srog
11 years ago
Working fine with the Kubuntu 9.10 (alpha-1) / KDE 4.2.85.
When building there was an error: "abstracttaskitem.cpp:307: error: ‘Atom’ was not declared in this scope". That was fixed by "#include <X11/Xlib.h>" at the abstracttaskitem.cpp.
Maybe it is the GCC 4.4: http://www.cyrius.com/journal/gcc/gcc-4.4-include
Thank you of the fine plasmoid !
Report
DevastatorPC
11 years ago
Report
fpuelz
11 years ago
I also thought about integrating this idea with vertical plasma panels, so that all plasmoids in vertical panels are rotated automatically. Maybe it's worth adding a config option in the panel controller (and maybe only shown when the panel is vertical)?
Report
jackiebrown
11 years ago
Report
megabigbug
11 years ago
Report