-
Notifications
You must be signed in to change notification settings - Fork 0
/
qtrunnerapp.h
55 lines (40 loc) · 1.48 KB
/
qtrunnerapp.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
#ifndef QTRUNNERAPP_H
#define QTRUNNERAPP_H
#include <QMainWindow>
#include <QTreeWidgetItem>
#include "core/tree/tree.h"
#include "core/employee/employee.h"
#include "core/data_manager/employees_data_manager.h"
QT_BEGIN_NAMESPACE
namespace Ui { class QtRunnerApp; }
QT_END_NAMESPACE
enum EMPLOYEE_PANE_TYPE {
NEW,
CHANGE
};
class QtRunnerApp : public QMainWindow
{
Q_OBJECT
public:
QtRunnerApp(QWidget *parent = nullptr);
~QtRunnerApp();
private slots:
void on_remove_button_clicked();
//void on_treeWidget_customContextMenuRequested(const QPoint &pos);
void hide_property_employee_pane();
void show_employee_pane(TreeElementContainer<Employee> *employeeNode);
void show_new_employee_pane(TreeElementContainer<Employee> *employeeNode);
void on_create_employee_button_clicked();
void on_close_employee_button_clicked();
void on_add_button_clicked();
void show_employees_tree(std::vector<TreeElementContainer<Employee>*>* employees);
void show_employees_tree_node(TreeElementContainer<Employee>* employee, QTreeWidgetItem *treeItem);
void on_treeWidget_itemDoubleClicked(QTreeWidgetItem *item, int column);
private:
TreeElementContainer<Employee> *currentEmployeeNode;
QTreeWidgetItem *currentTreeItem;
Ui::QtRunnerApp *ui;
AbstractEmployeesDataManager<Employee, int>* employDataManager;
EMPLOYEE_PANE_TYPE employeePaneType;
};
#endif // QTRUNNERAPP_H