itom
Loading...
Searching...
No Matches
userManagement.h
1/* ********************************************************************
2 itom software
3 URL: http://www.uni-stuttgart.de/ito
4 Copyright (C) 2020, Institut für Technische Optik (ITO),
5 Universität Stuttgart, Germany
6
7 This file is part of itom.
8
9 itom is free software; you can redistribute it and/or modify it
10 under the terms of the GNU Library General Public Licence as published by
11 the Free Software Foundation; either version 2 of the Licence, or (at
12 your option) any later version.
13
14 itom is distributed in the hope that it will be useful, but
15 WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
17 General Public Licence for more details.
18
19 You should have received a copy of the GNU Library General Public License
20 along with itom. If not, see <http://www.gnu.org/licenses/>.
21*********************************************************************** */
22
23#ifndef USERMANAGEMENTWIDGET_H
24#define USERMANAGEMENTWIDGET_H
25
26#include "../models/UserModel.h"
27
28#include <qdialog.h>
29
30#include "ui_userManagement.h"
31
32namespace ito {
33
34class DialogUserManagement : public QDialog
35{
36 Q_OBJECT
37
38 public:
39
40 DialogUserManagement(QWidget* parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
41
43 Ui::userManagement ui;
44
45 private:
46 UserModel *m_userModel;
47 QString m_currentUserName;
48 void readModel(const QModelIndex &index);
49 void loadUserList();
50
51 protected:
52 void init();
53
54 private slots:
55 void userListCurrentChanged(const QModelIndex &current, const QModelIndex &previous);
56 void on_pushButton_newUser_clicked();
57 void on_pushButton_delUser_clicked();
58 void on_pushButton_editUser_clicked();
59 void on_userList_doubleClicked(const QModelIndex & index);
60};
61
62} //end namespace ito
63
64#endif //USERMANAGEMENTWIDGET_H
Definition userManagement.h:35
class for for visualizing the available users
Definition UserModel.h:81
Definition apiFunctionsGraph.cpp:40