Skip to content

Commit

Permalink
YCP Killer: Translate YCP files into Ruby
Browse files Browse the repository at this point in the history
The commit is a result of running YCP Killer's "ruby" command.

See also:

  https://github.com/yast/ycp-killer
  • Loading branch information
yast-bot committed Jul 31, 2013
1 parent 153b657 commit 4708612
Show file tree
Hide file tree
Showing 70 changed files with 9,720 additions and 8,679 deletions.
42 changes: 42 additions & 0 deletions src/clients/irc.rb
@@ -0,0 +1,42 @@
# encoding: utf-8

# File: clients/irc.ycp
# Package: TV cards configuration
# Summary: Client for stand-alone IRC configuration
# Authors: Jiri Suchomel <jsuchome@novell.com>
#
# $Id$
#
# Main file for LIRC configuration.
module Yast
class IrcClient < Client
def main
Yast.import "UI"
#**
# <h3>Configuration of IRC</h3>

textdomain "tv"

Yast.import "Tv"
Yast.include self, "tv/irc_ui.rb"

Wizard.CreateDialog
Wizard.SetDesktopIcon("tv") #FIXME need irc icon
Wizard.SetDialogTitle(_("IRC")) #FIXME need irc icon

@callback = lambda { UI.PollInput == :abort }
Tv.Read(@callback)
Tv.ReadIRC

@ret = IRCDialog(true)

Tv.WriteIRC if @ret == :next

deep_copy(@ret)

# EOF
end
end
end

Yast::IrcClient.new.main
40 changes: 0 additions & 40 deletions src/clients/irc.ycp

This file was deleted.

0 comments on commit 4708612

Please sign in to comment.