Gfls.UnsavedDocumentTitles¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
class  | 
  | 
class  | 
  | 
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
None
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent  | 
r  | 
Class Details¶
- class Gfls.UnsavedDocumentTitles(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
- classmethod get_default()¶
 - Returns:
 the default instance of
Gfls.UnsavedDocumentTitles.- Return type:
 
New in version 0.1.
- classmethod new()¶
 - Returns:
 a new
Gfls.UnsavedDocumentTitlesobject.- Return type:
 
New in version 0.1.
- allocate_number()¶
 - Returns:
 the allocated number.
- Return type:
 
Allocates a number for an unsaved document. When the document is saved on disk, you need to give back the number with
Gfls.UnsavedDocumentTitles.release_number().The returned number is the lowest available value, starting at 1.
New in version 0.1.
- get_title(number)¶
 - Parameters:
 number (
int) – a number.- Returns:
 a suitable title for the unsaved document with the given number.
- Return type:
 
Generates the title of an unsaved document. To customize the returned string, you can use gfls_unsaved_document_titles_set_title_callback().
New in version 0.1.