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