FOSSredder 0.5.0
Loading...
Searching...
No Matches
ui::WorkspaceSelection Class Reference

Tracks the currently selected workspace entities. More...

#include <WorkspaceSelection.h>

Inheritance diagram for ui::WorkspaceSelection:
Collaboration diagram for ui::WorkspaceSelection:

Signals

void selectedActorIdChanged ()
 Emitted when the selected actor id changed.
void selectedPropertyIdChanged ()
 Emitted when the selected property id changed.
void selectedContractIdChanged ()
 Emitted when the selected contract id changed.
void selectedStatementIdChanged ()
 Emitted when the selected statement id changed.
void selectedTransactionIdChanged ()
 Emitted when the selected transaction id changed.
void selectedAnalysisIdChanged ()
 Emitted when the selected analysis id changed.
void selectedAnnualIdChanged ()
 Emitted when the selected annual id changed.

Public Member Functions

 WorkspaceSelection (WorkspaceStore &store, WorkspaceSelectors &selectors, QObject *parent=nullptr)
 Creates the selection state for the supplied workspace roles.
void loadFromState ()
 Refreshes selection objects after the underlying store reloaded.
QString selectedActorId () const
 Returns the selected actor id.
QString selectedPropertyId () const
 Returns the selected property id.
QString selectedContractId () const
 Returns the selected contract id.
QString selectedStatementId () const
 Returns the selected statement id.
QString selectedTransactionId () const
 Returns the selected transaction id.
QString selectedAnalysisId () const
 Returns the selected analysis id.
QString selectedAnnualId () const
 Returns the selected annual id.
void setSelectedActorId (const QString &id)
 Selects an actor id.
void setSelectedPropertyId (const QString &id)
 Selects a property id.
void setSelectedContractId (const QString &id)
 Selects a contract id.
void setSelectedStatementId (const QString &id)
 Selects a statement id.
void setSelectedAnalysisId (const QString &id)
 Selects an analysis id.
void setSelectedAnnualId (const QString &id)
 Selects an annual id.
void selectActor (const QString &id)
 Selects an actor.
void selectProperty (const QString &id)
 Selects a property.
void selectContract (const QString &id)
 Selects a contract.
void selectStatement (const QString &id)
 Selects a statement.
void selectTransaction (const QString &statementId, const QString &id)
 Selects a statement and transaction.
void selectAnalysis (const QString &id)
 Selects an analysis.
void selectAnnual (const QString &id)
 Selects an annual.

Detailed Description

Tracks the currently selected workspace entities.

Definition at line 19 of file WorkspaceSelection.h.

Constructor & Destructor Documentation

◆ WorkspaceSelection()

ui::WorkspaceSelection::WorkspaceSelection ( WorkspaceStore & store,
WorkspaceSelectors & selectors,
QObject * parent = nullptr )
explicit

Creates the selection state for the supplied workspace roles.

Parameters
storeWorkspace store used for selection validation.
selectorsWorkspace selectors used for existence checks.
parentOptional Qt parent.

Definition at line 58 of file WorkspaceSelection.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ loadFromState()

void ui::WorkspaceSelection::loadFromState ( )

Refreshes selection objects after the underlying store reloaded.

Definition at line 194 of file WorkspaceSelection.cpp.

◆ selectActor()

void ui::WorkspaceSelection::selectActor ( const QString & id)

Selects an actor.

Parameters
idActor id.

Definition at line 130 of file WorkspaceSelection.cpp.

Here is the call graph for this function:

◆ selectAnalysis()

void ui::WorkspaceSelection::selectAnalysis ( const QString & id)

Selects an analysis.

Parameters
idAnalysis id.

Definition at line 155 of file WorkspaceSelection.cpp.

Here is the call graph for this function:

◆ selectAnnual()

void ui::WorkspaceSelection::selectAnnual ( const QString & id)

Selects an annual.

Parameters
idAnnual id.

Definition at line 159 of file WorkspaceSelection.cpp.

Here is the call graph for this function:

◆ selectContract()

void ui::WorkspaceSelection::selectContract ( const QString & id)

Selects a contract.

Parameters
idContract id.

Definition at line 138 of file WorkspaceSelection.cpp.

Here is the call graph for this function:

◆ selectedActorId()

QString ui::WorkspaceSelection::selectedActorId ( ) const

Returns the selected actor id.

Returns
Actor id or empty.

Definition at line 66 of file WorkspaceSelection.cpp.

◆ selectedActorIdChanged

void ui::WorkspaceSelection::selectedActorIdChanged ( )
signal

Emitted when the selected actor id changed.

Here is the caller graph for this function:

◆ selectedAnalysisId()

QString ui::WorkspaceSelection::selectedAnalysisId ( ) const

Returns the selected analysis id.

Returns
Analysis id or empty.

Definition at line 81 of file WorkspaceSelection.cpp.

◆ selectedAnalysisIdChanged

void ui::WorkspaceSelection::selectedAnalysisIdChanged ( )
signal

Emitted when the selected analysis id changed.

Here is the caller graph for this function:

◆ selectedAnnualId()

QString ui::WorkspaceSelection::selectedAnnualId ( ) const

Returns the selected annual id.

Returns
Annual id or empty.

Definition at line 84 of file WorkspaceSelection.cpp.

◆ selectedAnnualIdChanged

void ui::WorkspaceSelection::selectedAnnualIdChanged ( )
signal

Emitted when the selected annual id changed.

Here is the caller graph for this function:

◆ selectedContractId()

QString ui::WorkspaceSelection::selectedContractId ( ) const

Returns the selected contract id.

Returns
Contract id or empty.

Definition at line 72 of file WorkspaceSelection.cpp.

◆ selectedContractIdChanged

void ui::WorkspaceSelection::selectedContractIdChanged ( )
signal

Emitted when the selected contract id changed.

Here is the caller graph for this function:

◆ selectedPropertyId()

QString ui::WorkspaceSelection::selectedPropertyId ( ) const

Returns the selected property id.

Returns
Property id or empty.

Definition at line 69 of file WorkspaceSelection.cpp.

◆ selectedPropertyIdChanged

void ui::WorkspaceSelection::selectedPropertyIdChanged ( )
signal

Emitted when the selected property id changed.

Here is the caller graph for this function:

◆ selectedStatementId()

QString ui::WorkspaceSelection::selectedStatementId ( ) const

Returns the selected statement id.

Returns
Statement id or empty.

Definition at line 75 of file WorkspaceSelection.cpp.

◆ selectedStatementIdChanged

void ui::WorkspaceSelection::selectedStatementIdChanged ( )
signal

Emitted when the selected statement id changed.

Here is the caller graph for this function:

◆ selectedTransactionId()

QString ui::WorkspaceSelection::selectedTransactionId ( ) const

Returns the selected transaction id.

Returns
Transaction id or empty.

Definition at line 78 of file WorkspaceSelection.cpp.

◆ selectedTransactionIdChanged

void ui::WorkspaceSelection::selectedTransactionIdChanged ( )
signal

Emitted when the selected transaction id changed.

◆ selectProperty()

void ui::WorkspaceSelection::selectProperty ( const QString & id)

Selects a property.

Parameters
idProperty id.

Definition at line 134 of file WorkspaceSelection.cpp.

Here is the call graph for this function:

◆ selectStatement()

void ui::WorkspaceSelection::selectStatement ( const QString & id)

Selects a statement.

Parameters
idStatement id.

Definition at line 142 of file WorkspaceSelection.cpp.

Here is the call graph for this function:

◆ selectTransaction()

void ui::WorkspaceSelection::selectTransaction ( const QString & statementId,
const QString & id )

Selects a statement and transaction.

Parameters
statementIdStatement id.
idTransaction id.

Definition at line 146 of file WorkspaceSelection.cpp.

◆ setSelectedActorId()

void ui::WorkspaceSelection::setSelectedActorId ( const QString & id)

Selects an actor id.

Parameters
idActor id.

Definition at line 88 of file WorkspaceSelection.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setSelectedAnalysisId()

void ui::WorkspaceSelection::setSelectedAnalysisId ( const QString & id)

Selects an analysis id.

Parameters
idAnalysis id.

Definition at line 116 of file WorkspaceSelection.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setSelectedAnnualId()

void ui::WorkspaceSelection::setSelectedAnnualId ( const QString & id)

Selects an annual id.

Parameters
idAnnual id.

Definition at line 123 of file WorkspaceSelection.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setSelectedContractId()

void ui::WorkspaceSelection::setSelectedContractId ( const QString & id)

Selects a contract id.

Parameters
idContract id.

Definition at line 102 of file WorkspaceSelection.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setSelectedPropertyId()

void ui::WorkspaceSelection::setSelectedPropertyId ( const QString & id)

Selects a property id.

Parameters
idProperty id.

Definition at line 95 of file WorkspaceSelection.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setSelectedStatementId()

void ui::WorkspaceSelection::setSelectedStatementId ( const QString & id)

Selects a statement id.

Parameters
idStatement id.

Definition at line 109 of file WorkspaceSelection.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: