This controller manages the signals and model of the SettingsView.
More...
#include <ArmarXGui/gui-plugins/ScenarioManager/controller/SettingsController.h>
|
| void | packageAdded (std::string name) |
| | Emitted when a package gets added in the settings.
|
| |
| void | packageRemoved () |
| | Emitted when a package gets removed.
|
| |
| void | setExecutorState (int killMethodIndex, int delay, int stopStrategyIndex) |
| |
This controller manages the signals and model of the SettingsView.
Any signals involving the settings need to be connected to the corresponding slots in this controller. This controller also manages settings that get saved between sessions, as well as the Executor configuration.
◆ SettingsController()
Constructor that sets the data structure this controller operates on, the executor which gets configured by this controller and optionally the parent object.
- Parameters
-
| packages | list of packages. Need to contain the Packages displayed in the SettingsView. |
| executor | executor which gets configured by the settings |
| parent | standard QT option to specify a parent |
◆ ~SettingsController()
◆ addPackage
| void addPackage |
( |
std::string | name | ) |
|
|
slot |
Adds a new package to the settings.
◆ clearPidCache
◆ clearXmlCache
◆ closeUnavailablePackages
| void closeUnavailablePackages |
( |
| ) |
|
|
slot |
◆ init()
◆ packageAdded
| void packageAdded |
( |
std::string | name | ) |
|
|
signal |
Emitted when a package gets added in the settings.
Allows other controllers to update their models with the new package.
- Parameters
-
| name | name of the new package |
◆ packageRemoved
Emitted when a package gets removed.
Other packages need to update their models.
◆ removePackage
| void removePackage |
( |
int | row, |
|
|
int | column, |
|
|
QModelIndex | parent ) |
|
slot |
Removes a package from the settings.
- Parameters
-
| row | row of the package |
| column | column of the package |
| parent | index of the package to be removed |
◆ setExecutorState
| void setExecutorState |
( |
int | killMethodIndex, |
|
|
int | delay, |
|
|
int | stopStrategyIndex ) |
|
signal |
◆ setExecutorStopStrategy
| void setExecutorStopStrategy |
( |
std::string | killMethod, |
|
|
int | delay, |
|
|
std::string | stopMethod ) |
|
slot |
Configures the Executor.
- Parameters
-
| killMethod | "StopAndKill" or "Stop" |
| delay | length of the delay in the StopAndKill stop-method |
| stopMethod | "By Name" or "By Pid" |
◆ showPackageAdderView
| void showPackageAdderView |
( |
| ) |
|
|
slot |
Shows a view that allows the user to add new packages.
◆ showSettings
Shows the settings dialog.
◆ updateModel
Updates the packages displayed in the settingsview by reloading all packages into the model.
The documentation for this class was generated from the following files: