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


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

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


65
66
67
# File 'src/include/network/services/routing.rb', line 65

def ReallyAbort
  Popup.ReallyAbort(true)
end

#route_tdObject


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

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

#RoutingMainDialogObject

Main routing dialog


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

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