Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
151 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
require "yast" | ||
require "cwm/widget" | ||
|
||
# FIXME: these are mock only | ||
|
||
# move this to: yast2-registration | ||
module Widgets | ||
class RegistrationCode < CWM::InputField | ||
def initialize | ||
textdomain "FIXME" | ||
end | ||
|
||
def label | ||
_("Registration Code") | ||
end | ||
end | ||
end | ||
|
||
# move this to: stays in installation | ||
module Widgets | ||
class SystemRole < CWM::ComboBox | ||
def initialize | ||
textdomain "FIXME" | ||
end | ||
|
||
def label | ||
_("System Role") | ||
end | ||
|
||
def items | ||
[ | ||
["Romeo", _("Romeo")], # DUH, find the real ones | ||
["Juliet", _("Juliet")] | ||
] | ||
end | ||
end | ||
end | ||
|
||
module Widgets | ||
class SystemInformation < CWM::PushButton | ||
include Yast::Logger | ||
def initialize | ||
textdomain "FIXME" | ||
end | ||
|
||
def label | ||
_("System Information") | ||
end | ||
|
||
def handle | ||
log.info "The system is a system" | ||
# doc? | ||
nil | ||
end | ||
end | ||
end | ||
|
||
module Widgets | ||
class Overview < CWM::CustomWidget | ||
def contents | ||
VBox( | ||
PushButton(Id(button_id), self.label), | ||
Label("* foo"), | ||
Label("* bar") | ||
) | ||
end | ||
|
||
private | ||
|
||
def button_id | ||
self.class.to_s | ||
end | ||
end | ||
|
||
class PartitioningOverview < Overview | ||
def initialize | ||
textdomain "FIXME" | ||
end | ||
|
||
def label | ||
_("Partitioning") | ||
end | ||
end | ||
|
||
class BootloaderOverview < Overview | ||
def initialize | ||
textdomain "FIXME" | ||
end | ||
|
||
def label | ||
_("Booting") | ||
end | ||
end | ||
class NetworkOverview < Overview | ||
def initialize | ||
textdomain "FIXME" | ||
end | ||
def label | ||
_("Network") | ||
end | ||
end | ||
class KdumpOverview < Overview | ||
def initialize | ||
textdomain "FIXME" | ||
end | ||
def label | ||
_("Kdump") # FIXME: spelling | ||
end | ||
end | ||
end |