PapersView.SearchContext¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
class  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/en  | 
search is actively ongoing  | 
||
w/co  | 
The document model  | 
||
r/w/en  | 
search term for the current context  | 
Signals¶
- Inherited:
 
Name  | 
Short Description  | 
|---|---|
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent_instance  | 
r  | 
Class Details¶
- class PapersView.SearchContext(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
- classmethod new(model)¶
 - Parameters:
 model (
PapersView.DocumentModel) –- Return type:
 
- activate()¶
 New in version 48.0.
- autoselect_result(result)¶
 - Parameters:
 result (
PapersView.SearchResult) – aPapersView.SearchResultto be the auto-selected one
New in version 48.0.
- get_options()¶
 - Return type:
 
- get_result_model()¶
 - Returns:
 the returned
Gtk.SingleSelection- Return type:
 
- get_results_on_page(page)¶
 - Parameters:
 page (
int) –- Returns:
 GLib.PtrArrayofPapersView.SearchResulton the current page- Return type:
 
New in version 48.0.
- release()¶
 New in version 48.0.
- restart()¶
 
- set_options(options)¶
 - Parameters:
 options (
PapersDocument.FindOptions) –
Signal Details¶
- PapersView.SearchContext.signals.cleared(search_context)¶
 - Signal Name:
 cleared- Flags:
 - Parameters:
 search_context (
PapersView.SearchContext) – The object which received the signal
- PapersView.SearchContext.signals.finished(search_context, object)¶
 - Signal Name:
 finished- Flags:
 - Parameters:
 search_context (
PapersView.SearchContext) – The object which received the signalobject (
int) –
- PapersView.SearchContext.signals.result_activated(search_context, object)¶
 - Signal Name:
 result-activated- Flags:
 - Parameters:
 search_context (
PapersView.SearchContext) – The object which received the signalobject (
PapersView.SearchResult) –
- PapersView.SearchContext.signals.started(search_context)¶
 - Signal Name:
 started- Flags:
 - Parameters:
 search_context (
PapersView.SearchContext) – The object which received the signal
Property Details¶
- PapersView.SearchContext.props.active¶
 - Name:
 active- Type:
 - Default Value:
 - Flags:
 
search is actively ongoing
- PapersView.SearchContext.props.document_model¶
 - Name:
 document-model- Type:
 - Default Value:
 - Flags:
 
The document model
- PapersView.SearchContext.props.search_term¶
 - Name:
 search-term- Type:
 - Default Value:
 ''- Flags:
 
search term for the current context