.. currentmodule:: qte Document ======== .. autoclass:: Document Members ------- Inherits ^^^^^^^^ - :qtgui:`QObject` Properties ^^^^^^^^^^ .. attribute:: Document.currentPath Return or set the path at which open and save dialogs open. This defaults to the user home directory. .. autoattribute:: Document.ext .. autoattribute:: Document.fullName .. attribute:: Document.hasChanged `True` if the document has changed since the last save. By default, this is always `True`. It is up to the implementation to change it as necessary. .. autoattribute:: Document.name .. attribute:: Document.openFilters A list of filters to apply to the open dialog. .. autoattribute:: Document.path .. attribute:: Document.saveFilters A list of filters to apply to the save dialog. New Methods ^^^^^^^^^^^ .. automethod:: Document.close .. automethod:: Document.closeDocument .. automethod:: Document.isOpen .. automethod:: Document.new .. automethod:: Document.newDocument .. automethod:: Document.open .. automethod:: Document.openDocument(path) .. automethod:: Document.save .. automethod:: Document.saveAs .. automethod:: Document.saveDocument(path) Signals ^^^^^^^ .. automethod:: Document.documentOpened() .. automethod:: Document.documentClosed()