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 <memory>
29#include <mutex>
30
31#include <QWidget>
32
35#include "treemodel.h"
36
37namespace Ui
38{
39 class ApplicationDatabaseView;
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*/
46class ApplicationDatabaseView : public QWidget
47{
48 Q_OBJECT
49
50public:
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
60signals:
61 void testSignal();
63 void itemClicked(const QModelIndex& index);
64
65public slots:
66 /**
67 * Sets the model of this view.
68 * @param model the underlying model
69 */
71
72private slots:
73 void on_lineEdit_textEdited(const QString& arg1);
74
75 void on_treeView_clicked(const QModelIndex& index);
76
77private:
78 Ui::ApplicationDatabaseView* ui;
80
81 std::mutex mutex;
82};
uint8_t index
ApplicationDatabaseView(QWidget *parent=0)
Constructor setting up the UI.
void itemClicked(const QModelIndex &index)
void setModel(FilterableTreeModelSortFilterProxyModelPtr model)
Sets the model of this view.
std::shared_ptr< FilterableTreeModelSortFilterProxyModel > FilterableTreeModelSortFilterProxyModelPtr
ArmarX Headers.