Author: | Neil Wallace (neil@openmolar.com) |
---|
A customised version of QDialog which has an apply and cancel button, and an accesible layout.
Bases: PyQt4.QtGui.QDialog
A base class for all my dialogs provides a button box with ok and cancel buttons, slots connected to accept and reject has a VBoxlayout - accessed by self.layout
call this to enable the apply button (which is disabled by default)
a convenience function to raise a dialog for confirmation of an action
If this is called, then the spacer added at init is removed. sometimes the spacer mucks up dialogs
by default, the text here is “apply”... change as required using this function
if true, then user will be asked if changes should be abandoned if the dialog is rejected, and given the opportunity to continue
by default, the text here is “cancel”... change as required using this function