[KDIALOG] kdialog-0.2

E

Edgardo Hames

Hello dear Rubyists,

I finally managed to complete the implementation of the kdialog
wrapper. This new version includes progress bar and icon support.

"KDialog is a wrapper class for KDE kdialog application. kdialog is a
simple (easy to use) program which lets you build GUIs for your apps
and scripts. The KDialog class tries to bring that simplicity into
your Ruby programs."

For those anxious to try it out, just point your browser to
http://kdialog.rubyforge.org or
http://rubyforge.org/projects/kdialog/

I have developed it under Gentoo + KDE 3.3.1. However, you should be
able to use it on any version of KDE >=3.1 without modifications.

Please, send me suggestions, contributions and feedback.

Hope you enjoy it!
Ed
 
D

David Ross

Edgardo said:
Hello dear Rubyists,

I finally managed to complete the implementation of the kdialog
wrapper. This new version includes progress bar and icon support.

"KDialog is a wrapper class for KDE kdialog application. kdialog is a
simple (easy to use) program which lets you build GUIs for your apps
and scripts. The KDialog class tries to bring that simplicity into
your Ruby programs."

For those anxious to try it out, just point your browser to
http://kdialog.rubyforge.org or
http://rubyforge.org/projects/kdialog/

I have developed it under Gentoo + KDE 3.3.1. However, you should be
able to use it on any version of KDE >=3.1 without modifications.

Please, send me suggestions, contributions and feedback.

Hope you enjoy it!
Ed
Hey, nice work. I was wondering when someone would start hitting the
desktop embedded software. Keep up the good work.

David Ross
 
G

gabriele renzi

Edgardo Hames ha scritto:
Hello dear Rubyists,

I finally managed to complete the implementation of the kdialog
wrapper. This new version includes progress bar and icon support.

"KDialog is a wrapper class for KDE kdialog application. kdialog is a
simple (easy to use) program which lets you build GUIs for your apps
and scripts. The KDialog class tries to bring that simplicity into
your Ruby programs."

For those anxious to try it out, just point your browser to
http://kdialog.rubyforge.org or
http://rubyforge.org/projects/kdialog/

I have developed it under Gentoo + KDE 3.3.1. However, you should be
able to use it on any version of KDE >=3.1 without modifications.

Please, send me suggestions, contributions and feedback.

just a thing. It would be nice it KDialog::NO and KDialog::CANCEL had
false values (i.e false and nil)

so that you could write
if Kdialog.new("Test").yesno('Do you like this class?)
p 'thanks'
else
p 'then go playing with curses'
end
 
E

Edgardo Hames

Edgardo Hames ha scritto:


just a thing. It would be nice it KDialog::NO and KDialog::CANCEL had
false values (i.e false and nil)

so that you could write
if Kdialog.new("Test").yesno('Do you like this class?)
p 'thanks'
else
p 'then go playing with curses'
end

Actually, I did think of that, but I didn't know what to do in the
following scenario:

Kdialog.new("Test").yesnocancel('Save and Quit?)
Yes means save and quit
No means !save and quit
Cancel means !quit

How can I differentiate between No and Cancel if they have the same values?
I know I could make Cancel != No, but then would that make Cancel == true?

Bailing out ;)
Ed
 
G

gabriele renzi

Edgardo Hames ha scritto:
Actually, I did think of that, but I didn't know what to do in the
following scenario:

Kdialog.new("Test").yesnocancel('Save and Quit?)
Yes means save and quit
No means !save and quit
Cancel means !quit

How can I differentiate between No and Cancel if they have the same values?

I'm not suggestint to have the same values :)
I'm suggesting to have false for No and nil for Cancel.
This way you could do:


res=Kdialog.new("Test").yesnocancel('Save and Quit?)
if res
save and quit
else
resume_main_loop if res.nil?
end
# the only other case where res != true is res==false
 
E

Edgardo Hames

Edgardo Hames ha scritto:


I'm not suggestint to have the same values :)
I'm suggesting to have false for No and nil for Cancel.

OK.Now it makes sense to me ;)
# the only other case where res != true is res==false

I guess so... :-S but I didn't understand your idea in the first message.

Thanks for your suggestions,
Ed
 
D

David Ross

Edgardo said:
Hello dear Rubyists,

I finally managed to complete the implementation of the kdialog
wrapper. This new version includes progress bar and icon support.

"KDialog is a wrapper class for KDE kdialog application. kdialog is a
simple (easy to use) program which lets you build GUIs for your apps
and scripts. The KDialog class tries to bring that simplicity into
your Ruby programs."

For those anxious to try it out, just point your browser to
http://kdialog.rubyforge.org or
http://rubyforge.org/projects/kdialog/

I have developed it under Gentoo + KDE 3.3.1. However, you should be
able to use it on any version of KDE >=3.1 without modifications.

Please, send me suggestions, contributions and feedback.

Hope you enjoy it!
Ed
Do you plan on writing other wrappers for more KDE programs?

David Ross
 
E

Edgardo Hames

Do you plan on writing other wrappers for more KDE programs?

I found a kdialog wrapper useful for another project I'm working on.
But depending on your suggestions, I might consider them. Were you
thinking on a specific app?

Feel free to send me any ideas or suggestions.
Ed
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,161
Messages
2,570,891
Members
47,423
Latest member
henerygril

Latest Threads

Top