-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflightform.h
More file actions
46 lines (34 loc) · 825 Bytes
/
flightform.h
File metadata and controls
46 lines (34 loc) · 825 Bytes
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
#ifndef FLIGHTFORM_H
#define FLIGHTFORM_H
#include <QWidget>
#include <MyStructs.h>
namespace Ui {
class FlightForm;
}
class FlightForm : public QWidget
{
Q_OBJECT
public:
explicit FlightForm(Flight curFly,
AVL<Flight>* flys,
List<Ticket>* ticks,
HashTable<std::string, Passanger>* passes,
QWidget *parent = nullptr);
~FlightForm();
public slots:
void refreshTickets();
signals:
private:
Flight fly_;
AVL<Flight>* flys;
List<Ticket>* ticks;
HashTable<std::string, Passanger> *passes_;
private:
Ui::FlightForm *ui;
private:
void createTable();
void refreshTable();
void fillForms();
Ticket* ticketsOfFlight(std::string fly_num, int* size);
};
#endif // FLIGHTFORM_H