YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
mainwindow.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2025-2025 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: LGPL-2.1-or-later
4 */
5
6#ifndef MAINWINDOW_H
7#define MAINWINDOW_H
8
9#include <QMainWindow>
10#include "loadingwidget.h"
11#include "dc1394thread.h"
12
13
14namespace Ui {
15class MainWindow;
16}
17
18class MainWindow : public QMainWindow
19{
20 Q_OBJECT
21
22
23public:
24 explicit MainWindow(std::string loc, std::string rem, QWidget* parent = 0);
26
27
28 void initFeatureTab();
29 void initFeatureAdvTab();
30
31 void initCameraTab();
32
33private:
34 void initMainWindow();
35 void connectWidgets();
36 void disconnectWidgets();
37
38private:
39 Ui::MainWindow *ui;
40 unsigned int m_VideoModeLut[32];
41 unsigned int m_ColorCodingLut[32];
42 unsigned int m_FPSLut[8];
43 QList <QWidget*>m_pSli;
44
45
46 LoadingWidget loadingWidget;
47 DC1394Thread dc1394Thread; // --> dinamico o può rimanere lo stesso?
48 QMutex sliderInitMutex;
49
50
51signals:
52 void internalFormatTab(unsigned int videoModeMaskDC1394,
53 unsigned int fPSMaskDC1394,
54 unsigned int colorCodingMaskDC1394);
55private slots:
56 void initFormatTab(unsigned int videoModeMaskDC1394, unsigned int fPSMaskDC1394, unsigned int colorCodingMaskDC1394);
57 void Init(uint, uint fPSDC1394, uint iSOSpeedDC1394,
58 bool operationModeDC1394, uint colorCodingDC1394, QSize max, QSize step, QSize offset,
59 QSize dim, QSize pos, uint bytesPerPacketDC1394, bool transmissionDC1394);
60
61 void Reload(uint, uint, QSize max, QSize step, QSize offset, QSize dim, QSize pos, uint colorCodingDC1394, uint bytesPerPacketDC1394, uint fPSMaskDC1394, uint fPSDC1394, uint iSOSpeedDC1394);
62 void loadDefault(uint bytesPerPacketDC1394,uint colorCodingMaskDC1394,bool transmissionDC1394);
63 void reset(uint bytesPerPacketDC1394,uint colorCodingMaskDC1394,bool transmissionDC1394);
64 void onTransmissionOnoffDone();
65 void onPowerOnoffDone();
66 void onFormat7WindowDone();
67 void onVideoFormatCurrentDone();
68 void onColorCodingDone();
69 void onFramerateDone();
70 void onISOSpeedDone();
71 void onSizeByteDone();
72 void onOpModeDone();
73
74 void onVideoFormatCurrentIndexChanged(int);
75 void onColorCodingCurrentIndexChanged(int);
76 void onFramerateCurrentIndexChanged(int);
77 void onISOSpeedCurrentIndexChanged(int);
78 void onOpModeCurrentIndexChanged(int);
79 void onSizeByteValueChanged(int);
80 void onFormat7WindowChange(int);
81 void onPowerOnoffChange(bool value);
82 void onTransmissionOnoffChange(bool value);
83 void onLoadDefaultsChange();
84 void onResetChange();
85
86 void onStartLoading();
87 void onStopLoading();
88
89 void onSliderDisabled(QObject *slider);
90
91 void onReloadClicked();
92
93 void onTabClicked(int index);
94};
95
96#endif // MAINWINDOW_H
MainWindow class.
Definition display.h:22
void initCameraTab()
void internalFormatTab(unsigned int videoModeMaskDC1394, unsigned int fPSMaskDC1394, unsigned int colorCodingMaskDC1394)
void initFeatureAdvTab()
void initFeatureTab()
bool step() override
function that that handles an IDL message - step
Definition aboutdlg.h:11