Module: Yast::NetworkServicesRoutingInclude

Includes:
I18n, Logger, UIShortcuts
Defined in:
src/include/network/services/routing.rb

Instance Method Summary collapse

Instance Method Details

#initialize_network_services_routing(_include_target) ⇒ Object



43
44
45
46
47
48
49
50
# File 'src/include/network/services/routing.rb', line 43

def initialize_network_services_routing(_include_target)
  textdomain "network"

  Yast.import "Label"
  Yast.import "Wizard"
  Yast.import "CWM"
  Yast.import "Lan"
end

#ReallyAbortObject

TODO: just for CWM fallback function



63
64
65
# File 'src/include/network/services/routing.rb', line 63

def ReallyAbort
  Popup.ReallyAbort(true)
end

#route_tdObject



52
53
54
55
56
57
58
59
60
# File 'src/include/network/services/routing.rb', line 52

def route_td
  {
    "route" => {
      "header"       => _("Routing"),
      "contents"     => content,
      "widget_names" => widgets.keys
    }
  }
end

#RoutingMainDialogObject

Main routing dialog

Returns:

  • dialog result



69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# File 'src/include/network/services/routing.rb', line 69

def RoutingMainDialog
  caption = _("Routing Configuration")

  functions = {
    abort: Yast::FunRef.new(method(:ReallyAbort), "boolean ()")
  }

  Wizard.HideBackButton

  CWM.ShowAndRun(
    "widget_descr"       => widgets,
    "contents"           => content,
    "caption"            => caption,
    "back_button"        => Label.BackButton,
    "next_button"        => Label.NextButton,
    "fallback_functions" => functions
  )
end