applicationdatabaseview.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 "treemodel.h"
31 
32 #include <QWidget>
33 
34 #include <memory>
35 #include <mutex>
36 
37 namespace Ui
38 {
40 }
41 
42 /**
43 * @class ApplicationDatabaseView
44 * @brief View containing the packages and their Applications. The user can select applications and drag them into another view.
45 */
46 class ApplicationDatabaseView : public QWidget
47 {
48  Q_OBJECT
49 
50 public:
51  /**
52  * Constructor setting up the UI.
53  * @param parent sets the parent of this view
54  */
55  explicit ApplicationDatabaseView(QWidget* parent = 0);
56  ~ApplicationDatabaseView() override;
57 
58  std::mutex& getMutex();
59 
60 signals:
61  void testSignal();
62  void openSettings();
63  void itemClicked(const QModelIndex& index);
64 
65 public slots:
66  /**
67  * Sets the model of this view.
68  * @param model the underlying model
69  */
71 
72 private slots:
73  void on_lineEdit_textEdited(const QString& arg1);
74 
75  void on_treeView_clicked(const QModelIndex& index);
76 
77 private:
78  Ui::ApplicationDatabaseView* ui;
80 
81  std::mutex mutex;
82 };
ApplicationDatabaseView::getMutex
std::mutex & getMutex()
Definition: applicationdatabaseview.cpp:81
index
uint8_t index
Definition: EtherCATFrame.h:59
ApplicationDatabaseView::openSettings
void openSettings()
filterabletreemodelsortfilterproxymodel.h
ApplicationDatabaseView::testSignal
void testSignal()
ApplicationDatabaseView::~ApplicationDatabaseView
~ApplicationDatabaseView() override
Definition: applicationdatabaseview.cpp:52
ApplicationDatabaseView
View containing the packages and their Applications. The user can select applications and drag them i...
Definition: applicationdatabaseview.h:46
Ui
ArmarX Headers.
Definition: ArmarXMainWindow.h:58
ApplicationDatabaseView::ApplicationDatabaseView
ApplicationDatabaseView(QWidget *parent=0)
Constructor setting up the UI.
Definition: applicationdatabaseview.cpp:33
FilterableTreeModelSortFilterProxyModelPtr
std::shared_ptr< FilterableTreeModelSortFilterProxyModel > FilterableTreeModelSortFilterProxyModelPtr
Definition: filterabletreemodelsortfilterproxymodel.h:65
ApplicationDatabaseView::setModel
void setModel(FilterableTreeModelSortFilterProxyModelPtr model)
Sets the model of this view.
Definition: applicationdatabaseview.cpp:57
ApplicationDatabaseView::itemClicked
void itemClicked(const QModelIndex &index)
treemodel.h
applicationdatabasemodel.h