-
Notifications
You must be signed in to change notification settings - Fork 0
/
location_view.h
65 lines (57 loc) · 1.6 KB
/
location_view.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
55
56
57
58
59
60
61
62
63
64
65
/*
* (c) Picobyte 2017, GPL2
*/
#ifndef LOCATION_VIEW_H
#define LOCATION_VIEW_H
#include <QGridLayout>
#include <QLabel>
#include <QPixmap>
#include <QGraphicsScene>
#include <QGraphicsBlurEffect>
#include <QGraphicsPixmapItem>
#include <QStandardItemModel>
#include <QStringListModel>
#include <QApplication>
#include <QStackedWidget>
#include <QDir>
#include "person_interaction.h"
#include "person.h"
#include "aspectratiopixmaplabel.h"
#include "mainwindow.h"
//yourWidget->setStyleSheet("background-color: transparent;");
namespace HHS {
class Location_view;
}
class MainWindow;
class Location_view : public QWidget
{
Q_OBJECT
private:
QGridLayout grid;
static const unsigned max_alt_locations = 10;
static const unsigned max_alt_views = 10;
static const unsigned nrof_actions = 3;
static const unsigned nrof_controls = 2;
AspectRatioPixmapLabel* siteView;
Person_interaction* pplInterAct;
QStackedWidget* SW;
QListView pplListView;
QStringListModel model;
QItemSelectionModel selectionModel;
QStringList ppl;
QPushButton push_alt_loc[max_alt_locations];
QPushButton push_alt_views[max_alt_views];
QPushButton push_actions[nrof_actions];
QPushButton push_ctl[nrof_controls];
QHBoxLayout horLayout2, horLayout3;
QLabel Calendar_notes, Person_site;
public:
Location_view(QWidget*, QRect);
void addPerson(Person* p);
void rmPerson();
QStringList getPeople() const;
void setImg(QString s);
public slots:
void slot_selectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
};
#endif // LOCATION_VIEW_H