1 # Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
9 require_bundle 'ics', 'config'
13 class Preferences < KDE::Dialog
14 def initialize(parent)
16 @gui = KDE::autogui(:preferences,
17 :caption => KDE::i18n("Configure ICS")) do |b|
18 b.layout(:type => :vertical) do |vl|
19 vl.layout(:type => :horizontal) do |l|
20 l.label(:text => KDE::i18n("&Username:"),
22 l.line_edit(:username)
25 vl.layout(:type => :horizontal) do |l|
26 l.label(:text => KDE::i18n("&Password:"),
28 l.line_edit(:password)
36 username.text = data[:username]
37 password.text = data[:password]
40 Config.save :username => username.text,
41 :password => password.text