iCub-main
mainwindow.h
Go to the documentation of this file.
1 #ifndef MAINWINDOW_H
2 #define MAINWINDOW_H
3 
4 #include <QMainWindow>
5 #include <QtConcurrent>
6 #include "loadingwidget.h"
7 #include "dc1394thread.h"
8 
9 
10 namespace Ui {
11 class MainWindow;
12 }
13 
14 class MainWindow : public QMainWindow
15 {
16  Q_OBJECT
17 
18 
19 public:
20  explicit MainWindow(char* loc, char* rem,QWidget *parent = 0);
22 
23 
24  void initFeatureTab();
25  void initFeatureAdvTab();
26 
27  void initCameraTab();
28 
29 private:
30  void initMainWindow();
31  void connectWidgets();
32  void disconnectWidgets();
33 
34 private:
35  Ui::MainWindow *ui;
36  unsigned int m_VideoModeLut[32];
37  unsigned int m_ColorCodingLut[32];
38  unsigned int m_FPSLut[8];
39  QList <QWidget*>m_pSli;
40 
41 
42  LoadingWidget loadingWidget;
43  DC1394Thread dc1394Thread; // --> dinamico o può rimanere lo stesso?
44  QMutex sliderInitMutex;
45 
46 
47 signals:
48  void internalFormatTab(unsigned int videoModeMaskDC1394,
49  unsigned int fPSMaskDC1394,
50  unsigned int colorCodingMaskDC1394);
51 private slots:
52  //void onInitFeatureTab();
53  //void onInitFeatureAdvTab();
54 
55  void initFormatTab(unsigned int videoModeMaskDC1394, unsigned int fPSMaskDC1394, unsigned int colorCodingMaskDC1394);
56  void Init(uint, uint fPSDC1394, uint iSOSpeedDC1394,
57  bool operationModeDC1394, uint colorCodingDC1394, QSize max, QSize step, QSize offset,
58  QSize dim, QSize pos, uint bytesPerPacketDC1394, bool transmissionDC1394);
59 
60  void Reload(uint, uint, QSize max, QSize step, QSize offset, QSize dim, QSize pos, uint colorCodingDC1394, uint bytesPerPacketDC1394, uint fPSMaskDC1394, uint fPSDC1394, uint iSOSpeedDC1394);
61  void loadDefault(uint bytesPerPacketDC1394,uint colorCodingMaskDC1394,bool transmissionDC1394);
62  void reset(uint bytesPerPacketDC1394,uint colorCodingMaskDC1394,bool transmissionDC1394);
63  void onTransmissionOnoffDone();
64  void onPowerOnoffDone();
65  void onFormat7WindowDone();
66  void onVideoFormatCurrentDone();
67  void onColorCodingDone();
68  void onFramerateDone();
69  void onISOSpeedDone();
70  void onSizeByteDone();
71  void onOpModeDone();
72 
73  void onVideoFormatCurrentIndexChanged(int);
74  void onColorCodingCurrentIndexChanged(int);
75  void onFramerateCurrentIndexChanged(int);
76  void onISOSpeedCurrentIndexChanged(int);
77  void onOpModeCurrentIndexChanged(int);
78  void onSizeByteValueChanged(int);
79  void onFormat7WindowChange(int);
80  void onPowerOnoffChange(bool value);
81  void onTransmissionOnoffChange(bool value);
82  void onLoadDefaultsChange();
83  void onResetChange();
84 
85  void onStartLoading();
86  void onStopLoading();
87 
88  void onSliderDisabled(QObject *slider);
89 
90  void onReloadClicked();
91 
92  void onTabClicked(int index);
93 
94 
95 
96 };
97 
98 #endif // MAINWINDOW_H
void initCameraTab()
Definition: mainwindow.cpp:273
void internalFormatTab(unsigned int videoModeMaskDC1394, unsigned int fPSMaskDC1394, unsigned int colorCodingMaskDC1394)
void initFeatureAdvTab()
Definition: mainwindow.cpp:199
MainWindow(FirmwareUpdaterCore *core, bool adminMode, QWidget *parent=0)
Definition: mainwindow.cpp:13
void initFeatureTab()
Definition: mainwindow.cpp:209
const FSC max
Definition: strain.h:48
degrees offset
Definition: sine.m:4