-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnavogator.h
73 lines (52 loc) · 1.29 KB
/
navogator.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
66
67
68
69
70
71
72
73
#ifndef NAVOGATOR_H
#define NAVOGATOR_H
#include <QMainWindow>
#include <QWidget>
#include <QDebug>
#include <QIntValidator>
#include <QTableView>
#include "my_scene.h"
//#include "my_size.h"
#include "tablemodel.h"
#include "my_way.h"
QT_BEGIN_NAMESPACE
namespace Ui { class Navogator; }
QT_END_NAMESPACE
class Navogator : public /*QWidget*/QMainWindow
{
Q_OBJECT
public:
Navogator(QWidget *parent = nullptr);
~Navogator();
private:
My_scene *scene;
Ui::Navogator *ui;
QMenuBar* m_bar;
QMenu *info;
QMenu *open;
QAction *help_action;
QAction *about_action;
QAction *open_table_action;
QAction *open_map_action;
QAction *save_table_action;
public:
QMenuBar* createmenubar(QFrame*);
signals:
void mySignal(QString);
//-работа с файлами
void toSaveInFile(QTextStream&);
void toOpenFromFile(QTextStream&);
void sendMap(QString&);
//--
public slots:
void on_about_action_triggered();
void on_help_action_triggered();
void on_save_table_action_triggered();
void on_open_table_action_triggered();
void on_open_map_action_triggered();
//void many_points(int);
// QWidget interface
protected:
virtual void paintEvent(QPaintEvent *event);
};
#endif // NAVOGATOR_H