profile-image

mmj

Anno Nym

QScale

Qt Widgets Jan 07 2012
Score 59%
59 Likes
41 Dislikes
QScale

Qt Widgets 17 comments

by mmj
Score 59%
59 Likes
41 Dislikes
Jan 07 2012
Hi Totoxa,

it's awesome to see, that people are using this code. Tanks for the Python port.
I think it will be my preferred way to use it, in case I have to implement a new GUI for lab devices. - Sep 05 2014
Hi,
thanks for your comments.
1) I've quickly looked into the code to see, why it does not work with switches max/min values. Here is a quick patch:
289c289
< for(int i = 0; i <= (int)(minorSteps * valueSpan / majorStep); i++){
---
> for(int i = 0; i <= (int)(minorSteps * abs(valueSpan) / majorStep); i++){
295c295
< painter->rotate(majorStep * angleSpan / (-valueSpan * minorSteps));
---
> painter->rotate(majorStep * angleSpan / (-fabs(valueSpan) * minorSteps));
302,303c302,303
< for(int i = (int)ceil(m_minimum / majorStep);
< i <= (int)(m_maximum / majorStep); i++){
---
> for(int i = (int)ceil(fmin(m_minimum, m_maximum) / majorStep);
> i <= (int)(fmax(m_minimum, m_maximum) / majorStep); i++){

I've done this in quite short time, and I don't know the code anymore, as I have written it years ago. So it is not unlikely, that it has inintended side effects.

2) I initially planned to do that, but I think you are more flexible, when using a extra widget. In my applications I did it that way. The reason is, that it looks too tiny, if you use the standard font. In case you make it bold and bigger, it does not line up with the other fonts in the GUI. So the only option is to provide full font formatting options in the API. This produces code and you still are less flexible (can not use QLCDNumber).

3) This should be easy to add (filling some circle with a QConicalGradient brush). The only effort is to write a sensible API to define the velues for that.

Well, while these things are no big deal, I'm not shure, If I find time in near future to add them, as I did not program in C++ for years now. - Jul 24 2012
> By the way , can you please elaborate , how you have decided the formula for radius and other parameters? This will help me to add some more feature for my work.

I've uploades some scratches at http://www.2shared.com/file/lZOLuK_e/QScale-construction.html
This are some geometrical scratches, as I don't have the derivation of the formulars at hand.
This explains the derivation of the rotation point. The label bounding box is the bounding box from the labelSample as derived in updateLabelSample() - Mar 27 2012
Oh, I did not knew this yet. Nice hint. (especially as I have currently can't effort the time to write the plugin) - Feb 11 2012
Hi, to integrate it in your project you can copy qscale.h and qscale.cpp into your project. Then include this two files in your project file as you see it in QScale.pro. Now you can include qscale.h in your program and create a instance. This you can see in the main.cpp file. - Feb 01 2012
Py-Cashew

Plasma 4 Widgets 28 comments

Score 76%
76 Likes
24 Dislikes
Aug 31 2013
Is my interpretation correct, that your OSS contribution basically sums up to this post?

You are free to make suggestions, but do not attack devs personally.

I don’t know the architectural backgrounds to the FAQ response, but as a developer, I see, that some simple things may violate archtectural guidelines. Braking the guidelines may increase the bug count and complicates debugging.

So without knowing the code, the only question is, why they don't ship the plasmoid script with the SC. Either it is something personal, or they just think kde-apps is as good, and this way they don't have to care for the code. I think it is a legitim decission. - Sep 02 2013
Codie

Developer Tools 11 comments

Score 52%
52 Likes
48 Dislikes
Sep 08 2010
You have not mentioned what's the address of the website. - Sep 08 2010
Yakuake

System Software

by Sho
Score 92%
92 Likes
8 Dislikes
Mar 05 2016
Losungen

Plasma 4 Widgets

Score 67%
67 Likes
33 Dislikes
Dec 04 2012
Kminicom

System Software

Score 52%
52 Likes
48 Dislikes
Feb 21 2016
Score 58%
58 Likes
42 Dislikes
Mar 05 2015
Christian Fish

Cliparts

Score 57%
57 Likes
43 Dislikes
Mar 05 2015
Grey Cross

Cliparts

Score 57%
57 Likes
43 Dislikes
Mar 05 2015
Shit Happens! (de)

Plasma Comic Sources

by l3u
Score 52%
52 Likes
48 Dislikes
Mar 05 2015
Feast

Cursors

Score 63%
63 Likes
37 Dislikes
Oct 11 2013
yesirosa

Plasma Color Schemes

by yesi
Score 52%
52 Likes
48 Dislikes
Sep 23 2013
line of nice goats

Wallpaper Other

Score 54%
54 Likes
46 Dislikes
Sep 23 2013
Getreide im Wind

Wallpaper Other

Score 53%
53 Likes
47 Dislikes
Sep 18 2013
Pauline

Wallpaper Other

Score 50%
50 Likes
50 Dislikes
Sep 02 2013
Py-Cashew

Plasma 4 Widgets

Score 76%
76 Likes
24 Dislikes
Sep 02 2013
Windows 7

Plasma Themes

by PaKoX
Score 41%
41 Likes
59 Dislikes
Aug 27 2013
Ultimate Edition KDE

Wallpapers KDE Plasma

Score 46%
46 Likes
54 Dislikes
Aug 23 2013
ENLIGHT THE LINUX KERNEL!

Wallpaper Other

Score 44%
44 Likes
56 Dislikes
Aug 23 2013
Score 41%
41 Likes
59 Dislikes
Aug 22 2013
launchSwitch

Plasma 4 Widgets

by bege
Score 57%
57 Likes
43 Dislikes
Mar 12 2013
Idea: Save Amarok 1.4

KDE 1.-4. Improvements

Score 31%
31 Likes
69 Dislikes
Oct 24 2012
Oxygen KDE (Firefox Theme)

KDE 1.-4. Improvements

Score 95%
95 Likes
5 Dislikes
Feb 28 2012
Konversation

Chat & Messenging

by Sho
Score 87%
87 Likes
13 Dislikes
Nov 15 2011
Eckernfoerde

Wallpaper Other

Score 58%
58 Likes
42 Dislikes
Nov 14 2011
Autumn in Germany

Wallpaper Other

Score 54%
54 Likes
46 Dislikes
Nov 12 2011
wacom tablet

System Software

by Etric
Score 81%
81 Likes
19 Dislikes
Oct 24 2011
rekonq Web Browser

Web & Browser

by adjam
Score 89%
89 Likes
11 Dislikes
Oct 15 2011
Yakuake

System Software

by Sho
Score 92%
92 Likes
8 Dislikes
Sep 02 2011
Old Boat

Wallpaper Other

Score 52%
52 Likes
48 Dislikes
Jul 02 2011
Akt II

Wallpaper Other

Score 50%
50 Likes
50 Dislikes
Jun 27 2011
Purogrey by LMolr

Plasma Color Schemes

by LMolr
Score 67%
67 Likes
33 Dislikes
Jun 22 2011
Losungen

Plasma 4 Widgets

Score 67%
67 Likes
33 Dislikes
May 31 2011
A Rainy Day in Istanbul

Wallpaper Other

Score 66%
66 Likes
34 Dislikes
May 21 2011
Score 59%
59 Likes
41 Dislikes
May 02 2011
Kubuntu 11.04 KDE SC4.6.2 Desktop

Plasma/KDE Screenshots

Score 48%
48 Likes
52 Dislikes
Apr 30 2011
simply

Wallpaper Other

Score 54%
54 Likes
46 Dislikes
Apr 21 2011
Prophet LinuxLex OS II.

Wallpaper Other

Score 48%
48 Likes
52 Dislikes
Jan 06 2011
Oxygen Gtk

QtCurve

Score 78%
78 Likes
22 Dislikes
Dec 14 2010
Africa_Sabana

Wallpaper Other

Score 58%
58 Likes
42 Dislikes
Dec 09 2010
The Amazing View

Wallpaper Other

by ipad
Score 47%
47 Likes
53 Dislikes
Dec 08 2010
by ipad
Score 48%
48 Likes
52 Dislikes
Dec 03 2010
Hakassya

Wallpaper Other

Score 60%
60 Likes
40 Dislikes
Nov 27 2010
Over The Hills

Wallpaper Other

by ipad
Score 48%
48 Likes
52 Dislikes
Nov 27 2010
Reflection

Wallpaper Other

Score 59%
59 Likes
41 Dislikes
Nov 24 2010
NIGHTFeaR 4

Wallpaper Other

Score 81%
81 Likes
19 Dislikes
Nov 18 2010
I and my body

People

Score 37%
37 Likes
63 Dislikes
Nov 18 2010
night desktop

Plasma/KDE Screenshots

Score 66%
66 Likes
34 Dislikes
Nov 18 2010
I and my body

People

Score 68%
68 Likes
32 Dislikes
Nov 18 2010
Guitar

Wallpaper Other

Score 54%
54 Likes
46 Dislikes
Nov 18 2010
Facebook Login

KDM4 Themes

Score 56%
56 Likes
44 Dislikes
Nov 18 2010
HolyServices

Qt Stuff

by jst
Score 50%
50 Likes
50 Dislikes
Nov 18 2010
KEncFS

System Software

Score 68%
68 Likes
32 Dislikes
Oct 25 2010
OxySeasons: OxyAutumn

Icon Themes

by janet
Score 67%
67 Likes
33 Dislikes
Oct 25 2010
4 seasons

Wallpaper Other

Score 59%
59 Likes
41 Dislikes
Oct 18 2010
Score 45%
45 Likes
55 Dislikes
Oct 18 2010
Alben, layers & gradients

Wallpaper Other

Score 58%
58 Likes
42 Dislikes
Oct 13 2010
Milky

Icon Themes

Score 77%
77 Likes
23 Dislikes
Sep 30 2010
Linux wallpaper

Wallpaper Other

Score 48%
48 Likes
52 Dislikes
Sep 30 2010
arch linux orbit

Individual Icons/-sets

Score 50%
50 Likes
50 Dislikes
Sep 28 2010
nuclear start

Individual Icons/-sets

Score 48%
48 Likes
52 Dislikes
Sep 28 2010
ubuntu start

Individual Icons/-sets

Score 48%
48 Likes
52 Dislikes
Sep 28 2010
debian start

Individual Icons/-sets

Score 48%
48 Likes
52 Dislikes
Sep 28 2010
debian orbit

Individual Icons/-sets

Score 48%
48 Likes
52 Dislikes
Sep 28 2010
Dreamcatcher

Wallpaper Other

Score 57%
57 Likes
43 Dislikes
Sep 28 2010
Logo Debian+KDE icon (Kickoff)

Individual Icons/-sets

Score 46%
46 Likes
54 Dislikes
Sep 27 2010
Tux

Cliparts

Score 75%
75 Likes
25 Dislikes
Sep 27 2010
by plcl
Score 61%
61 Likes
39 Dislikes
Sep 27 2010
Sword

Drawings

Score 57%
57 Likes
43 Dislikes
Sep 22 2010