Image 01
profile-image

cician

Maciej Kacper Jagiełło Novi di Modena, Italy
Kiten QML Plasmoid

Plasma 4 Widgets 12 comments

by rshah
Score 76.7%
Feb 15 2014
Had to tweak it a little to make it compile on Kubuntu 12.04 due to subtle changes in libkiten.



diff -U 3 -H -d -r -N -- kitenengine/kitenengine.cpp kitenengine-orig/kitenengine.cpp
--- kitenengine/kitenengine.cpp 2012-05-06 10:52:33.539057750 +0200
+++ kitenengine-orig/kitenengine.cpp 2011-04-25 15:46:52.000000000 +0200
@@ -26,8 +26,8 @@
#include <KStandardDirs>

#include "kitenconfig.h"
-#include <libkiten/dictquery.h>
-#include <libkiten/entrylist.h>
+#include <libkiten/DictQuery.h>
+#include <libkiten/EntryList.h>

KitenEngine::KitenEngine(QObject* parent, const QVariantList& args)
: Plasma::DataEngine(parent, args)
@@ -110,11 +110,11 @@
//DictQuery dictQuery(mRomajiConverter.toHiragana(inputWord));
DictQuery dictQuery(inputWord);
if (queryOptions[0] == "matchBeginning") {
- dictQuery.setMatchType(DictQuery::Beginning);
+ dictQuery.setMatchType(DictQuery::matchBeginning);
} else if (queryOptions[0] == "matchAnywhere") {
- dictQuery.setMatchType(DictQuery::Anywhere);
+ dictQuery.setMatchType(DictQuery::matchAnywhere);
} else {
- dictQuery.setMatchType(DictQuery::Exact);
+ dictQuery.setMatchType(DictQuery::matchExact);
}
/*kDebug() << "Input===========";
kDebug() << "Meaning=" << dictQuery.getMeaning();
diff -U 3 -H -d -r -N -- kitenengine/kitenengine.h kitenengine-orig/kitenengine.h
--- kitenengine/kitenengine.h 2012-05-06 10:40:50.011035903 +0200
+++ kitenengine-orig/kitenengine.h 2011-04-16 02:17:58.000000000 +0200
@@ -19,7 +19,7 @@
#ifndef KITENENGINE_H
#define KITENENGINE_H
#include <Plasma/DataEngine>
-#include <libkiten/dictionarymanager.h>
+#include <libkiten/DictionaryManager.h>
#include "romajiconverter.h"

class KitenConfigSkeleton;
- May 06 2012
sudo apt-get install cmake build-essential kdebase-workspace-dev libkiten-dev &&
tar -xvf ./kitenengine.tar.gz && tar -xvf ./kitenqml.tar.gz &&
cd ./kitenengine && mkdir ./build && cd ./build &&
cmake ../ -DCMAKE_INSTALL_PREFIX=$(kde4-config --prefix) &&
make && sudo make install && cd ../../kitenqml && plasmapkg -i . &&
echo -n -e "Done.\e[00;31m\x0A\x50\x6c\x65\x61\x73\x65\x20\x64\x6f\x6e\x27" &&
echo -n -e "\x74\x20\x72\x75\x6e\x20\x72\x61\x6e\x64\x6f\x6d\x20\x73\x63\x72" &&
echo -n -e "\x69\x70\x74\x64\x20\x66\x72\x6f\x6d\x20\x74\x68\x65\x20\x6e\x65" &&
echo -n -e "\x74\x20\x6e\x65\x78\x74\x20\x74\x69\x6d\x65\x21\x20\e[00m" &&
echo -e "\xe2\x97\x95\x20\xe2\x80\xbf\xe2\x80\xbf\x20\xe2\x97\x95"; - Apr 30 2011
Qonjugator

Plasma 4 Widgets 27 comments

by glad
Score 70.0%
Apr 13 2011
Doesn't work on Kubuntu 11.04 (KDE 4.6.2). Any chance for an update?

1. Plasmoid defaults to /usr/lib/qonjugatorplugins but the plugins get installed to /usr/lib/qonjugatorlib/.

2. Can't type anything (or even paste) in the textbox.

3. Segfaults when pressing search button.
$plasmoidviewer qonjugator
plasmoidviewer(12942)/libplasma Plasma::FrameSvg::resizeFrame: Invalid size QSizeF(0, 0)
plasmoidviewer(12942)/libplasma Plasma::FrameSvg::resizeFrame: Invalid size QSizeF(0, 0)
QMetaObject::invokeMethod: No such method QonjugatorApplet::toolTipAboutToShow()
QMetaObject::invokeMethod: No such method QonjugatorApplet::toolTipHidden()
QMetaObject::invokeMethod: No such method QonjugatorApplet::toolTipAboutToShow()
QMetaObject::invokeMethod: No such method QonjugatorApplet::toolTipHidden()
Application asked to unregister timer 0x4b00000d which is not registered in this thread. Fix application.
KCrash: Application 'plasmoidviewer' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
sock_file=/home/cician/.kde/socket-cician/kdeinit4__0
QSocketNotifier: Invalid socket 10 and type 'Read', disabling...

$qonjugator
Segmentation fault - May 07 2011
Yet Another Window Control

Plasma 4 Widgets 59 comments

Score 82.0%
May 08 2012
I changed it to relayout the plasmoid without hidden items. Here's the patch:


diff ./yawc-0.1/yawc.cpp ./yawc-0.1_relayout/yawc.cpp
114c114
< QGraphicsLinearLayout *lay = new QGraphicsLinearLayout(Qt::Horizontal, this);
---
> lay = new QGraphicsLinearLayout(Qt::Horizontal, this);
117,121d116
< lay->addItem(m_currentTask);
< lay->addItem(m_currentTaskTitle);
< lay->addItem(m_minimizeTask);
< lay->addItem(m_maximizeTask);
< lay->addItem(m_closeTask);
125c120,147
<
---
>
> void YetAnotherWindowControl::relayout()
> {
> // remove all items from layout (if any)
> for (int i=0; i<lay->count(); i++)
> lay->removeAt(0);
>
> m_currentTask->setVisible(m_showIcon);
> if (m_showIcon)
> lay->addItem(m_currentTask);
>
> m_currentTaskTitle->setVisible(m_showTitle);
> if (m_showTitle)
> lay->addItem(m_currentTaskTitle);
>
> m_minimizeTask->setVisible(m_showMinimize);
> if (m_showMinimize)
> lay->addItem(m_minimizeTask);
>
> m_maximizeTask->setVisible(m_showMaximize);
> if (m_showMaximize)
> lay->addItem(m_maximizeTask);
>
> m_closeTask->setVisible(m_showClose);
> if (m_showClose)
> lay->addItem(m_closeTask);
> }
>
135,160c157
< if (m_showTitle) {
< m_currentTaskTitle->show();
< }
< else {
< m_currentTaskTitle->hide();
< }
<
< if (m_showIcon) {
< m_currentTask->show();
< }
< else {
< m_currentTask->hide();
< }
<
< if (m_showMinimize) {
< m_minimizeTask->show();
< } else {
< m_minimizeTask->hide();
< }
<
< if (m_showMaximize) {
< m_maximizeTask->show();
< } else {
< m_maximizeTask->hide();
< }
<
---
> relayout();
diff ./yawc-0.1/yawc.h ./yawc-0.1_relayout/yawc.h
70a71
> void relayout();
94a96,97
> QGraphicsLinearLayout *lay;
> - Mar 17 2011
I selected to only show the icon and the width remains at around 100px (same as with buttons enabled).

The ability to choose shown elements is just what i missed from the original plasmoid. Thanks. - Mar 17 2011
open ~/.kde/share/config/kwinrc and change/add BorderlessMaximizedWindows=true - Mar 17 2011
Yet Another Netspeed Plasmoid

Plasma 4 Widgets 25 comments

Score 74.3%
Oct 05 2010
Here it just displays up: 0 down: 0, no errors. I'm on Lucid KDE4.5 RC2 - Aug 05 2010
Qalculate

Plasma 4 Widgets 88 comments

Score 63.3%
Oct 22 2009
packages needed to compile on ubuntu:
sudo apt-get install build-essential cmake kdelibs5-dev - Aug 24 2009
Kiten QML Plasmoid

Plasma 4 Widgets
by rshah

Score 76.7%
Apr 30 2011
benma

Plasma 4 Widgets
by ibuscher

Score 81.6%
Feb 20 2011
Score 83.8%
Dec 12 2010
Score 83.8%
3   Nov 01 2010