Class: Alexandria::UI::SkipEntryDialog

Inherits:
AlertDialog show all
Includes:
Logging, GetText
Defined in:
lib/alexandria/ui/skip_entry_dialog.rb

Instance Attribute Summary

Attributes inherited from AlertDialog

#dialog

Instance Method Summary collapse

Methods included from Logging

included, #log

Methods inherited from AlertDialog

#default_response=, #destroy, #run, #show_all

Constructor Details

#initialize(parent, message) ⇒ SkipEntryDialog

Returns a new instance of SkipEntryDialog.



16
17
18
19
20
21
22
23
24
# File 'lib/alexandria/ui/skip_entry_dialog.rb', line 16

def initialize(parent, message)
  super(parent, _("Error while importing"),
        Gtk::Stock::DIALOG_QUESTION,
        [[Gtk::Stock::CANCEL, Gtk::ResponseType::CANCEL],
         [_("_Continue"), Gtk::ResponseType::OK]],
        message)
  log.debug { "Opened SkipEntryDialog #{inspect}" }
  dialog.default_response = Gtk::ResponseType::CANCEL
end

Instance Method Details

#continue?Boolean

Returns:

  • (Boolean)


26
27
28
29
30
# File 'lib/alexandria/ui/skip_entry_dialog.rb', line 26

def continue?
  show_all && (@response = run)
  destroy
  @response == Gtk::ResponseType::OK
end