Gnm.App¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
A list of filenames that have been read recently |
||
r/w |
All command-line files open? |
||
r/w |
In the process of shutting down? |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Fields¶
- Inherited:
Class Details¶
- class Gnm.App(**kwargs)¶
- Bases:
- Abstract:
No
- classmethod add_extra_ui(group_name, actions, layout, domain)¶
- Parameters:
group_name (
str
) – action group name.actions ([
Gnm.Action
]) – list of actions.layout (
str
) – the xml string describing the menus and toolbars.domain (
str
) – localization domain.
- Returns:
the newly allocated
Gnm.AppExtraUI
.- Return type:
- classmethod clipboard_area_get()¶
- classmethod clipboard_clear(drop_selection)¶
- Parameters:
drop_selection (
bool
) –
Clear and free the contents of the clipboard if it is not empty.
- classmethod clipboard_contents_get()¶
- Returns:
the current contents of the clipboard.
- Return type:
- classmethod clipboard_cut_copy(wbc, is_cut, sv, area, animate_range)¶
- Parameters:
wbc (
Gnm.WorkbookControl
) – theGOffice.workbook
control that requested the operation.is_cut (
bool
) – is this a cut or a copy.sv (
Gnm.SheetView
) – The source sheet for the copy.area (
Gnm.Range
) – A single rectangular range to be copied.animate_range (
bool
) – Do we want to add an animatedGnm.cursor
around things.
When Cutting we Clear and free the contents of the clipboard and save the sheet and area to be cut. DO NOT ACTUALLY CUT! Paste will move the region if this was a cut operation.
When Copying we Clear and free the contents of the clipboard and COPY the designated region into the clipboard.
we need to pass wbc as a control rather than a simple command-context so that the control can claim the selection.
- classmethod clipboard_cut_copy_obj(wbc, is_cut, sv, objects)¶
- Parameters:
sv (
Gnm.SheetView
) –Gnm.SheetView
objects ([
Gnm.SheetObject
]) – a list ofGnm.SheetObject
Different than copying/cutting a region, this can actually cut an object
- classmethod clipboard_sheet_get()¶
- classmethod clipboard_sheet_view_get()¶
- Returns:
the current clipboard
Gnm.SheetView
.- Return type:
- classmethod clipboard_unant()¶
- classmethod create_opener_filter(openers)¶
- Parameters:
openers ([
GOffice.FileOpener
]) – a list of file openers.- Returns:
the newly allocated
Gtk.FileFilter
.- Return type:
Creates a
Gtk.FileFilter
from the list of file types supported by the openers in the list.
- classmethod flag_windows_changed_()¶
An internal utility routine to flag a regeneration of the window lists
- classmethod foreach_extra_ui(func, *data)¶
-
Applies func to each
Gnm.AppExtraUI
.
- classmethod history_get_list(max_elements)¶
- Parameters:
max_elements (
int
) –- Returns:
the list, which must be freed along with the strings in it.
- Return type:
[
str
]
creating it if necessary.
- classmethod recalc()¶
Recalculate everything dirty in all workbooks that have automatic recalc turned on.
- classmethod recalc_clear_caches()¶
- classmethod recalc_finish()¶
- classmethod recalc_start()¶
- classmethod remove_extra_ui(extra_ui)¶
- Parameters:
extra_ui (
Gnm.AppExtraUI
) –
- classmethod sanity_check()¶
- classmethod workbook_get_by_index(i)¶
- Parameters:
i (
int
) – index- Returns:
the nth
GOffice.workbook
, if any.- Return type:
Gnm.Workbook
orNone
Get nth
GOffice.workbook
. Index is zero-based.
- classmethod workbook_get_by_name(name, ref_uri)¶
- Parameters:
- Returns:
the
Gnm.Workbook
orNone
.- Return type:
- classmethod workbook_list()¶
- Returns:
the
GOffice.workbook
list.- Return type:
- classmethod workbook_list_add(wb)¶
- Parameters:
wb (
Gnm.Workbook
) – AGnm.Workbook
Add wb to the application’s list of workbooks.
- classmethod workbook_list_remove(wb)¶
- Parameters:
wb (
Gnm.Workbook
) – AGnm.Workbook
Remove wb from the application’s list of workbooks.
Signal Details¶
- Gnm.App.signals.clipboard_modified(app)¶
- Gnm.App.signals.custom_ui_added(app, object)¶
- Gnm.App.signals.custom_ui_removed(app, object)¶
- Gnm.App.signals.recalc_clear_caches(app)¶
- Gnm.App.signals.recalc_finished(app)¶
- Gnm.App.signals.window_list_changed(app)¶
- Gnm.App.signals.workbook_added(app, object)¶
- Signal Name:
workbook-added
- Flags:
- Parameters:
app (
Gnm.App
) – The object which received the signalobject (
Gnm.Workbook
) –
Property Details¶
- Gnm.App.props.file_history_list¶
-
A list of filenames that have been read recently
- Gnm.App.props.initial_open_complete¶
-
All command-line files open?