[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    [Panel-devel] Connection of Sensor and Meter
From:       Vinay Khaitan <vkhaitan () gmail ! com>
Date:       2005-09-19 8:05:46
Message-ID: 56c5347705091901056375f0f () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Sorry, once more I am starting the thread of Sensor and meter.

In old karamba, we use something like

bar x=0 y=0 w=10 h=200 vertical=true path="img.png" sensor=cpu

the bar is connected to sensor cpu. In the new karamba, we will certainly 
have the name of the meter to refernce it.

what about something like this... (writing in old theme format)

bar name="parentbar" x=0 y=0 w=10 h=200 vertical=true path="img.png" 
sensor=cpu
graph name="childgraph" x=0 y=0 w=200 h=60 points=100 meter=parentbar 

This way, a meter can be connected to a meter. whenever the parentbar is 
updated, it emits a signal which updates childgraph too.

It is very simple to implement.
You can find the analogies with Qt signal-slot mechanism in which primarily 
Signal-slot connection happens. but optionally SIGNAL-SIGNAL connection is 
possible.

Dont ask me, why is that idea necessary. In fact, this is being introduced 
to circumvent a trouble.

Vinay Khaitan

[Attachment #5 (text/html)]

Sorry, once more I am starting the thread of Sensor and meter.<br>
<br>
In old karamba, we use something like<br>
<br>
bar x=0 y=0 w=10 h=200 vertical=true path=&quot;img.png&quot; sensor=cpu<br>
<br>
the bar is connected to sensor cpu. In the new karamba, we will certainly have the \
name of the meter to refernce it.<br> <br>
what about something like this... (writing in old theme format)<br>
<br>
bar name=&quot;parentbar&quot; x=0 y=0 w=10 h=200 vertical=true \
path=&quot;img.png&quot; sensor=cpu<br> graph name=&quot;childgraph&quot; x=0 y=0 \
w=200 h=60 points=100 meter=parentbar <br> <br>
This way, a meter can be connected to a meter. whenever the parentbar
is updated, it emits a signal which updates childgraph too.<br>
<br>
It is very simple to implement.<br>
You can find the analogies with Qt signal-slot mechanism in which
primarily Signal-slot connection happens. but optionally SIGNAL-SIGNAL
connection is possible.<br>
<br>
Dont ask me, why is that idea necessary. In fact, this is being introduced to \
circumvent a trouble.<br> <br>
Vinay Khaitan<br>
<br>
<br>



_______________________________________________
Panel-devel mailing list
Panel-devel@kde.org
https://mail.kde.org/mailman/listinfo/panel-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic