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.
More...
#include <ArmarXGui/gui-plugins/ScenarioManager/controller/SettingsController.h>
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.
Definition at line 51 of file SettingsController.h.
◆ 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 |
Definition at line 49 of file SettingsController.cpp.
◆ ~SettingsController()
◆ addPackage
void addPackage |
( |
std::string |
name | ) |
|
|
slot |
◆ 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 |
Definition at line 166 of file SettingsController.cpp.
◆ 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" |
Definition at line 203 of file SettingsController.cpp.
◆ showPackageAdderView
void showPackageAdderView |
( |
| ) |
|
|
slot |
◆ showSettings
◆ updateModel
Updates the packages displayed in the settingsview by reloading all packages into the model.
Definition at line 248 of file SettingsController.cpp.
The documentation for this class was generated from the following files: