ArmarXManagerRepositoryDialog.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 ArmarX::Gui
19  * @author Jan Issac ( jan.issac at gmail dot com)
20  * @date 2012
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 <QDialog>
29 #include <QItemSelectionModel>
30 #include <QListView>
31 #include <QModelIndex>
32 #include <QStandardItemModel>
33 
36 
37 #include "ArmarXManagerModel.h"
38 
39 namespace Ui
40 {
41  class ArmarXManagerRepositoryDialog;
42 }
43 
44 namespace armarx
45 {
47  {
48  Q_OBJECT
49 
50  public:
51  explicit ArmarXManagerRepositoryDialog(ArmarXManagerModel* managerRepositoryModel,
52  ArmarXManagerModel* monitoredManagerModel,
53  QWidget* parent = 0);
54 
56 
57  void addOnlineManagers(const QStringList& managers);
58 
59  public slots:
60  void addNewManager();
61  void removeSelectedManagers();
62  void moveToMonitoredManagers();
63  void moveToManagerRepository();
64  void scanForManagers();
65  void clearRepository();
66 
67  ArmarXManagerModel* getManagerRepositoryModel();
68  ArmarXManagerModel* getMonitoredManagersModel();
69 
70  signals:
71  void requestedManagerScan();
72 
73  protected:
74  void setupView();
75 
76  private:
77  Ui::ArmarXManagerRepositoryDialog* ui;
78  QWidget* parent;
79  ArmarXManagerModel* managerRepositoryModel;
80  ArmarXManagerModel* monitoredManagerModel;
81  };
82 } // namespace armarx
ArmarXManagerModel.h
armarx::ArmarXManagerModel
Definition: ArmarXManagerModel.h:48
armarx::ArmarXManagerRepositoryDialog
Definition: ArmarXManagerRepositoryDialog.h:46
ARMARXCOMPONENT_IMPORT_EXPORT
#define ARMARXCOMPONENT_IMPORT_EXPORT
Definition: ImportExportComponent.h:38
Ui
ArmarX Headers.
Definition: ArmarXMainWindow.h:54
IceManager.h
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:27
ImportExportComponent.h