settingsview.h
Go to the documentation of this file.
1 /*
2  * This file is part of ArmarX.
3  *
4  * Copyright (C) 2011-2016, High Performance Humanoid Technologies (H2T), Karlsruhe Institute of Technology (KIT), all rights reserved.
5  *
6  * ArmarX is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  *
10  * ArmarX is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  *
18  * @package ArmarXCore::core
19  * @author Cedric Seehausen (usdnr at kit dot edu)
20  * @date 2016
21  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
22  * GNU General Public License
23  */
24 
25 
26 #pragma once
27 
28 #include "settingsmodel.h"
30 #include "buttondelegate.h"
31 #include <QDialog>
32 
33 namespace Ui
34 {
35  class SettingsView;
36 }
37 
38 class SettingsView : public QDialog
39 {
40  Q_OBJECT
41 
42 public:
43  explicit SettingsView(QWidget* parent = 0);
44  ~SettingsView() override;
45 
47 
48 signals:
49  void openPackageChooser();
50  void removePackage(int row, int column, QModelIndex parent);
51  void changeExecutorSettings(std::string killMethod, int delay, std::string stopMethod);
52  void clearPidCache();
53  void clearXmlCache();
55 
56 private slots:
57  void on_lineEdit_textEdited(const QString& text);
58 
59  void removeButtonClicked(int row, int column, QModelIndex parent);
60 
61  void on_openButton_clicked();
62 
63  void on_applicationStopperChooser_currentIndexChanged(const QString& text);
64 
65  void on_stopMethodChooser_currentIndexChanged(const QString& text);
66 
67  void on_delayChooser_returnPressed();
68 
69  void on_delayChooser_editingFinished();
70 
71  void setExecutorState(int killIndex, int delay, int stopStrategyIndex);
72 
73  void on_clearPidCache_clicked();
74 
75  void on_clearXmlCache_clicked();
76 
77  void on_toolButton_clicked();
78 
79 private:
80  Ui::SettingsView* ui;
82  ButtonDelegate deleteButtonDelegate;
83 };
84 
buttondelegate.h
SettingsView::~SettingsView
~SettingsView() override
Definition: settingsview.cpp:62
settingsmodel.h
filterabletreemodelsortfilterproxymodel.h
SettingsView::changeExecutorSettings
void changeExecutorSettings(std::string killMethod, int delay, std::string stopMethod)
Ui
ArmarX Headers.
Definition: ArmarXMainWindow.h:58
SettingsView::openPackageChooser
void openPackageChooser()
SettingsView::setModel
virtual void setModel(FilterableTreeModelSortFilterProxyModelPtr model)
Definition: settingsview.cpp:67
ButtonDelegate
Manages a button.
Definition: buttondelegate.h:40
FilterableTreeModelSortFilterProxyModelPtr
std::shared_ptr< FilterableTreeModelSortFilterProxyModel > FilterableTreeModelSortFilterProxyModelPtr
Definition: filterabletreemodelsortfilterproxymodel.h:65
SettingsView
Definition: settingsview.h:38
SettingsView::SettingsView
SettingsView(QWidget *parent=0)
Definition: settingsview.cpp:36
SettingsView::clearPidCache
void clearPidCache()
SettingsView::removePackage
void removePackage(int row, int column, QModelIndex parent)
SettingsView::clearXmlCache
void clearXmlCache()
SettingsView::closeUnavailablePackages
void closeUnavailablePackages()