Module: Ig3tool

Defined in:
lib/lib/errors.rb,
lib/ui/interne.rb,
lib/ui/protjes.rb,
lib/ui/messagebox.rb,
lib/ui/toolwindow.rb,
lib/ui/gladehelper.rb,
lib/ui/loginwindow.rb,
lib/ui/peoplewindow.rb,
lib/ui/automaatwindow.rb,
lib/ui/bibliotheekwindow.rb

Defined Under Namespace

Classes: Afgesloten, AliasNotFound, BibSectionNotFound, BibliotheekWindow, BookNotAvaible, GladeHelper, IG3Error, InternalError, InterneWindow, InvalidISBN, LoginWindow, NeedDebugger, Needed, NoPositiveAmount, NoPrintAccount, NotADebugger, NotAMember, NotEnoughCredit, NotFound, PeopleWindow, PermissionDenied, PrintBackend, PrintUserNotFound, ProductNotFound, ProtjesGlade, SaldoNotZero, SaveFailed, StillHaveLoans, Token, ToolWindow, TransactionFailed, TransactionLogFailed, TransactionNotFound, VendingMachineWindow, WrongPrintlogType, WrongRequestType

Class Method Summary collapse

Class Method Details

.messagebox(title, message) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/ui/messagebox.rb', line 5

def messagebox(title,message)

	overwrite = false
	dialog = Gtk::MessageDialog.new(nil,
																	Gtk::Dialog::DESTROY_WITH_PARENT | Gtk::Dialog::MODAL,
																	Gtk::MessageDialog::QUESTION,
																	Gtk::MessageDialog::BUTTONS_YES_NO,
																	message)
	dialog.title = title
	dialog.run do |response|
		case response
		when Gtk::Dialog::RESPONSE_YES
			overwrite = true
		end
		dialog.destroy
	end
	overwrite # Return overwrite? boolean -> true indien 'YES'
end