Module: Ig3tool

Defined in:
lib/bib.rb,
lib/log.rb,
lib/web.rb,
lib/sales.rb,
lib/config.rb,
lib/people.rb,
lib/billing.rb,
lib/interne.rb,
lib/request.rb,
lib/bitching.rb,
lib/printing.rb,
lib/lib/errors.rb,
lib/membership.rb,
lib/actions/bib.rb,
lib/ui/bibwindow.rb,
lib/ui/messagebox.rb,
lib/ui/newinterne.rb,
lib/ui/toolwindow.rb,
lib/actions/people.rb,
lib/ui/gladehelper.rb,
lib/ui/loginwindow.rb,
lib/actions/cultuur.rb,
lib/actions/interne.rb,
lib/actions/kaching.rb,
lib/actions/product.rb,
lib/ui/peoplewindow.rb,
lib/actions/bitching.rb,
lib/actions/printing.rb,
lib/ui/internewindow.rb,
lib/ui/memberswindow.rb,
lib/ui/printenwindow.rb,
lib/ui/automaatwindow.rb,
lib/ui/productswindow.rb,
lib/ui/bibliotheekwindow.rb

Defined Under Namespace

Classes: Actions, Afgesloten, AliasNotFound, BibBook, BibLoan, BibSection, BibSectionNotFound, BibWindow, BibliotheekWindow, Bitch, BookNotAvaible, Category, Config, GladeHelper, IG3Error, Interne, InterneTransaction, InterneWindow, InvalidISBN, LogEntry, Logger, LoginWindow, MembersWindow, Membership, NeedDebugger, Needed, NoPositiveAmount, NoPrintAccount, NotADebugger, NotAMember, NotEnoughCredit, NotFound, PeopleWindow, PermissionDenied, Person, PrintAlias, PrintBackend, PrintTransaction, PrintUser, PrintUserNotFound, PrintenWindow, Product, ProductNotFound, ProductsWindow, Purchase, Request, SaldoNotZero, Sale, Sales, SaveFailed, StillHaveLoans, Token, ToolWindow, TransactionFailed, TransactionLogFailed, TransactionNotFound, VendingMachineWindow, WebHandler, WrongPrintlogType, WrongRequestType

Constant Summary collapse

CONFIG =
{ 'groff'     => 'groff -ma4 -p -t | gv -',
'groff_alt' => 'groff -ma4 -p -t -l -L-Pigprint@igwe' }

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