Proposal: kde-libs.org, a repository of contributed libraries

kdea k.dea at mail.com
Fri May 6 17:19:35 UTC 2016


On Tue May 3 00:59:23 UTC 2016, Martin Klapetek wrote:

> What does it actually do? There is a similar thing in QML
> called TextMetrics and FontMetrics btw, maybe they could
> be of use to you.

In fact "TextSize.qml" uses TextMetrics, if available, to get the real
width and real height of a text. If TextMetrics is not available, then the 
standard Text.width and Text.height are used to get a not-so-real size. 
That is the added value of "TextSize.qml": The caller will work both with
TextMetrics (QtQuick >= 2.5) or without TextMetrics (QtQuick < 2.5). It
will be transparent for the developer.

Anyway the main objetive of my mail is not to solve a programming problem
for my library. The main objetive is to propose the creation of a
repository (a bazaar) where developers can upload their little-but-useful
libraries, and other developers can easily browse/find them to be reused
in their plasmoids.

> You could in theory put it in Plasma extra/components, more
> on that below.

I prefer practice than theory :-)

> For developing a Plasmoid, you should ideally use what Plasma
> offers, ie. the components that are parts of it. So when you're
> developing a Plasmoid, you should search its components found
> in our apidocs [1]. If you think your addition would be a good addition
> for other Plasma developers, it is of course welcome to join the
> Plasma framework. Just note that Plasma tries to not become
> a collection of everything, so maybe there won't be a place for
> your little stuff.

That is why we need a repository/bazaar: Because everything can't be
included into the standard Plasma libraries.

It is the same reason why we need "http://kde-apps.org": Because everything
can't be included into the standard KDE applications/plasmoids.

Developers need a repository where to upload their little-but-useful
applications/plasmoids. And developers need a repository where to upload 
their little-but-useful libraries. 

> Alternatively, QtQuick should have most of other generic things
> you might need.

Most, but not everything.

> In any case, we could really use a quick overview of what your
> TextSize.qml does and why do you think it's useful for other
> Plasmoid developers, then we'll advise you on next steps :)

I think that is not the way. I really would prefer a repository/bazaar,
easy to use by all developers, and without any filtering.

The reason of the success of "http://kde-apps.org" is the freedom of use. 
Same would apply to a repository of libraries.

kdea


More information about the Plasma-devel mailing list