Class: Alexandria::UI::SkipEntryDialog
- Inherits:
-
AlertDialog
- Object
- AlertDialog
- Alexandria::UI::SkipEntryDialog
- Includes:
- Logging, GetText
- Defined in:
- lib/alexandria/ui/skip_entry_dialog.rb
Instance Attribute Summary
Attributes inherited from AlertDialog
Instance Method Summary collapse
- #continue? ⇒ Boolean
-
#initialize(parent, message) ⇒ SkipEntryDialog
constructor
A new instance of SkipEntryDialog.
Methods included from Logging
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, ) super(parent, _("Error while importing"), Gtk::Stock::DIALOG_QUESTION, [[Gtk::Stock::CANCEL, Gtk::ResponseType::CANCEL], [_("_Continue"), Gtk::ResponseType::OK]], ) log.debug { "Opened SkipEntryDialog #{inspect}" } dialog.default_response = Gtk::ResponseType::CANCEL end |
Instance Method Details
#continue? ⇒ 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 |