-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
55 lines (46 loc) · 1.25 KB
/
mainwindow.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 MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QLabel>
#include <QVBoxLayout>
#include <QPushButton>
#include <QComboBox>
#include <QSpinBox>
#include <QLineEdit>
#include <QTimer>
#include <QMenuBar>
#include <QMenu>
#include <QSignalMapper>
#include <iostream>
#include <yarp/os/all.h>
#include "gstqtwidget.h"
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(yarp::os::Network* yarp, QWidget *parent = 0);
~MainWindow();
WId getWinId(int index);
int getPort(int index);
private Q_SLOTS:
void on_video_switch_clicked(const int& id);
void on_video_saving_clicked(const int& id);
void on_video_fps_changed(const int& id);
void on_save_menu_clicked();
private:
QHBoxLayout out_layout;
QVBoxLayout main_layout1, main_layout2;
std::map<int,QPushButton*> video_switch;
std::map<int,QPushButton*> video_saving;
std::map<int,QLineEdit*> video_timer_edit;
std::map<int,gstqtwidget*> video_display;
std::map<int,int> video_fps;
std::map<int,std::string> command_map;
std::map<int,int> video_port;
std::map<int,yarp::os::Port*> command_port;
QMenuBar menu_bar;
QMenu* file_menu;
QAction save_action;
int glob_id=0;
};
#endif // MAINWINDOW_H