|
FOSSredder 0.5.0
|
Tracks the currently selected workspace entities. More...
#include <WorkspaceSelection.h>


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. | |
Tracks the currently selected workspace entities.
Definition at line 19 of file WorkspaceSelection.h.
|
explicit |
Creates the selection state for the supplied workspace roles.
| store | Workspace store used for selection validation. |
| selectors | Workspace selectors used for existence checks. |
| parent | Optional Qt parent. |
Definition at line 58 of file WorkspaceSelection.cpp.

| void ui::WorkspaceSelection::loadFromState | ( | ) |
Refreshes selection objects after the underlying store reloaded.
Definition at line 194 of file WorkspaceSelection.cpp.
| void ui::WorkspaceSelection::selectActor | ( | const QString & | id | ) |
Selects an actor.
| id | Actor id. |
Definition at line 130 of file WorkspaceSelection.cpp.

| void ui::WorkspaceSelection::selectAnalysis | ( | const QString & | id | ) |
Selects an analysis.
| id | Analysis id. |
Definition at line 155 of file WorkspaceSelection.cpp.

| void ui::WorkspaceSelection::selectAnnual | ( | const QString & | id | ) |
Selects an annual.
| id | Annual id. |
Definition at line 159 of file WorkspaceSelection.cpp.

| void ui::WorkspaceSelection::selectContract | ( | const QString & | id | ) |
Selects a contract.
| id | Contract id. |
Definition at line 138 of file WorkspaceSelection.cpp.

| QString ui::WorkspaceSelection::selectedActorId | ( | ) | const |
Returns the selected actor id.
Definition at line 66 of file WorkspaceSelection.cpp.
|
signal |
Emitted when the selected actor id changed.

| QString ui::WorkspaceSelection::selectedAnalysisId | ( | ) | const |
Returns the selected analysis id.
Definition at line 81 of file WorkspaceSelection.cpp.
|
signal |
Emitted when the selected analysis id changed.

| QString ui::WorkspaceSelection::selectedAnnualId | ( | ) | const |
Returns the selected annual id.
Definition at line 84 of file WorkspaceSelection.cpp.
|
signal |
Emitted when the selected annual id changed.

| QString ui::WorkspaceSelection::selectedContractId | ( | ) | const |
Returns the selected contract id.
Definition at line 72 of file WorkspaceSelection.cpp.
|
signal |
Emitted when the selected contract id changed.

| QString ui::WorkspaceSelection::selectedPropertyId | ( | ) | const |
Returns the selected property id.
Definition at line 69 of file WorkspaceSelection.cpp.
|
signal |
Emitted when the selected property id changed.

| QString ui::WorkspaceSelection::selectedStatementId | ( | ) | const |
Returns the selected statement id.
Definition at line 75 of file WorkspaceSelection.cpp.
|
signal |
Emitted when the selected statement id changed.

| QString ui::WorkspaceSelection::selectedTransactionId | ( | ) | const |
Returns the selected transaction id.
Definition at line 78 of file WorkspaceSelection.cpp.
|
signal |
Emitted when the selected transaction id changed.
| void ui::WorkspaceSelection::selectProperty | ( | const QString & | id | ) |
Selects a property.
| id | Property id. |
Definition at line 134 of file WorkspaceSelection.cpp.

| void ui::WorkspaceSelection::selectStatement | ( | const QString & | id | ) |
Selects a statement.
| id | Statement id. |
Definition at line 142 of file WorkspaceSelection.cpp.

| void ui::WorkspaceSelection::selectTransaction | ( | const QString & | statementId, |
| const QString & | id ) |
Selects a statement and transaction.
| statementId | Statement id. |
| id | Transaction id. |
Definition at line 146 of file WorkspaceSelection.cpp.
| void ui::WorkspaceSelection::setSelectedActorId | ( | const QString & | id | ) |
Selects an actor id.
| id | Actor id. |
Definition at line 88 of file WorkspaceSelection.cpp.


| void ui::WorkspaceSelection::setSelectedAnalysisId | ( | const QString & | id | ) |
Selects an analysis id.
| id | Analysis id. |
Definition at line 116 of file WorkspaceSelection.cpp.


| void ui::WorkspaceSelection::setSelectedAnnualId | ( | const QString & | id | ) |
Selects an annual id.
| id | Annual id. |
Definition at line 123 of file WorkspaceSelection.cpp.


| void ui::WorkspaceSelection::setSelectedContractId | ( | const QString & | id | ) |
Selects a contract id.
| id | Contract id. |
Definition at line 102 of file WorkspaceSelection.cpp.


| void ui::WorkspaceSelection::setSelectedPropertyId | ( | const QString & | id | ) |
Selects a property id.
| id | Property id. |
Definition at line 95 of file WorkspaceSelection.cpp.


| void ui::WorkspaceSelection::setSelectedStatementId | ( | const QString & | id | ) |
Selects a statement id.
| id | Statement id. |
Definition at line 109 of file WorkspaceSelection.cpp.

