first commit
This commit is contained in:
48
project/fm_viewer/ui/rm_gps_position.h
Normal file
48
project/fm_viewer/ui/rm_gps_position.h
Normal file
@@ -0,0 +1,48 @@
|
||||
#ifndef RM_GPS_POSITION_H
|
||||
#define RM_GPS_POSITION_H
|
||||
#if (MODEL_BBVIEWER)
|
||||
|
||||
#include "../rm_include.h"
|
||||
#include "../core/rm_player_base.h"
|
||||
#include "rm_widget_style_base.h"
|
||||
|
||||
class RMSensorData;
|
||||
|
||||
class RMGPSPosition : public RMWidgetStyleBase
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit RMGPSPosition(QWidget *parent = nullptr, bool map = false);
|
||||
private:
|
||||
RMSensorData* _sensor;
|
||||
QLabel* gpsIcon;
|
||||
|
||||
QWidget* lonLatWidget;
|
||||
|
||||
QLabel* latLabel; // "Lat : N"
|
||||
QLabel* latLabelD;
|
||||
QLabel* latLabelM;
|
||||
QLabel* latLabelS;
|
||||
|
||||
QLabel* lonLabel; // "Lon : E"
|
||||
QLabel* lonLabelD;
|
||||
QLabel* lonLabelM;
|
||||
QLabel* lonLabelS;
|
||||
|
||||
void _addLine(QWidget* parent, QBoxLayout* layout,bool lat);
|
||||
void _clearLabels();
|
||||
void paintEvent(QPaintEvent *pe);
|
||||
|
||||
#if (MODEL_WATEX)
|
||||
void _showLabels(bool bShow);
|
||||
#endif
|
||||
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
void onPositionChanged(qint64 position,qint64 duration);
|
||||
void onPlayEvent(PLAY_EVENT event,RMVideoItem* item);
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif // RM_GPS_POSITION_H
|
||||
Reference in New Issue
Block a user