Module: Yast::NisServerUiInclude
- Defined in:
- ../../src/include/nis_server/ui.rb
Instance Method Summary (collapse)
-
- (Object) DetailsPopup
Popup with details error.
-
- (Object) ExitPopup
Popup to confirm vhen exitting without saving.
-
- (Object) FinishPopup
Popup to confirm after finish is pressed.
- - (Object) initialize_nis_server_ui(include_target)
-
- (Object) InstallServer
Checks if the YP server package is installed and calls installation if not.
-
- (Object) ReadDialog
Read settings dialog.
-
- (Object) ResultPopup
Popup displaying configuration result.
-
- (Object) WriteDialog
Write settings dialog.
Instance Method Details
- (Object) DetailsPopup
Popup with details error
103 104 105 106 107 108 109 110 111 112 |
# File '../../src/include/nis_server/ui.rb', line 103 def DetailsPopup # To translators: popup label Popup.LongText( _("Error details"), RichText(NisServer.error_details), 50, 20 ) :ok end |
- (Object) ExitPopup
Popup to confirm vhen exitting without saving
89 90 91 92 93 94 95 96 97 98 99 |
# File '../../src/include/nis_server/ui.rb', line 89 def ExitPopup if Popup.YesNoHeadline( # To translators: YesNo Popup headline _("Exit"), # To translators: YesNo Popup _("Really exit configuration without saving ?") ) return :exit end :back end |
- (Object) FinishPopup
Popup to confirm after finish is pressed
75 76 77 78 79 80 81 82 83 84 85 |
# File '../../src/include/nis_server/ui.rb', line 75 def FinishPopup if Popup.ContinueCancelHeadline( # To translators: ContinueCancel Popup headline _("Finish"), # To translators: ContinueCancel Popup _("Really save configuration ?") ) return :yes end :back end |
- (Object) initialize_nis_server_ui(include_target)
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File '../../src/include/nis_server/ui.rb', line 31 def initialize_nis_server_ui(include_target) Yast.import "UI" textdomain "nis_server" Yast.import "Confirm" Yast.import "Label" Yast.import "Message" Yast.import "NisServer" Yast.import "Package" Yast.import "Popup" Yast.import "Wizard" Yast.include include_target, "nis_server/what.rb" Yast.include include_target, "nis_server/slave.rb" Yast.include include_target, "nis_server/master.rb" Yast.include include_target, "nis_server/details.rb" Yast.include include_target, "nis_server/slaves.rb" Yast.include include_target, "nis_server/maps.rb" Yast.include include_target, "nis_server/securenets.rb" end |
- (Object) InstallServer
Checks if the YP server package is installed and calls installation if not
147 148 149 150 151 152 153 |
# File '../../src/include/nis_server/ui.rb', line 147 def InstallServer if !Package.InstalledAll(NisServer.required_packages) Package.DoInstallAndRemove(NisServer.required_packages, []) end NisServer.ui_what end |
- (Object) ReadDialog
Read settings dialog
54 55 56 57 58 59 60 |
# File '../../src/include/nis_server/ui.rb', line 54 def ReadDialog # checking for root permissions (#158483) return :abort if !Confirm.MustBeRoot ret = NisServer.Read ret ? :next : :abort end |
- (Object) ResultPopup
Popup displaying configuration result
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
# File '../../src/include/nis_server/ui.rb', line 116 def ResultPopup = "" if Ops.greater_than(Builtins.size(NisServer.error_msg), 0) # To translators: popup label = Builtins.sformat( _("Error during configuration:\n%1"), NisServer.error_msg ) # To translators: Error popup return Popup.AnyQuestion( Label.ErrorMsg, , Label.OKButton, _("&Details"), :focus_yes ) ? :ok : :details else if NisServer.start_ypbind && NisServer.old_domainname != "" && NisServer.old_domainname != NisServer.domain # To translators: final popup Popup.Warning(Message.DomainHasChangedMustReboot) end end :ok end |
- (Object) WriteDialog
Write settings dialog
64 65 66 67 68 69 70 71 |
# File '../../src/include/nis_server/ui.rb', line 64 def WriteDialog Wizard.RestoreNextButton Wizard.DisableNextButton UI.ChangeWidget(Id(:abort), :Enabled, false) ret = NisServer.Write ret ? :next : :abort end |