-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmygroupsform.h
54 lines (41 loc) · 1.07 KB
/
mygroupsform.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/**
* @author Saef Taher
* @date 14/01/2018
*/
#ifndef MYGROUPSFORM_H
#define MYGROUPSFORM_H
#include "costumelightlistmodel.h"
#include "mygrouplistmodel.h"
#include <QWidget>
namespace Ui {
class MyGroupsForm;
}
/**
* @brief The MyGroupsForm class handels updating the grouplistmodel connected with the form
*/
class MyGroupsForm : public QWidget
{
Q_OBJECT
public:
explicit MyGroupsForm(QWidget *parent = 0);
~MyGroupsForm();
bool allready_contained(std::shared_ptr<Light> l);
private slots:
void on_addGroup_clicked();
void on_removeGroup_clicked();
void on_listView_clicked(const QModelIndex &index);
void on_pushToMy_clicked();
void on_removeFromMy_clicked();
private:
Ui::MyGroupsForm *ui;
MyGroupListModel *myGroupModel_;
std::weak_ptr<Group> group_;
QModelIndex index_;
CostumeLightListModel *llMY_;
LightListModel *llAll_;
void checkForEmptyList();
void showForm();
void removeLight();
void addLight();
};
#endif // MYGROUPSFORM_H