114 lines
2.7 KiB
C++
114 lines
2.7 KiB
C++
#ifndef FM_FRAME_TITLE_H
|
|
#define FM_FRAME_TITLE_H
|
|
|
|
#include <QWidget>
|
|
#include <QHBoxLayout>
|
|
#include <QShortcut>
|
|
#include "../rm_include.h"
|
|
#include "rm_widget_base.h"
|
|
//#include "rm_button.h"
|
|
|
|
#include "../fm_event_types.h"
|
|
|
|
class RMVideoItem;
|
|
class FMButton;
|
|
|
|
#if (USER_LOGER)
|
|
class FMClickLabel;
|
|
#endif
|
|
|
|
#if (RM_MODEL_EMT_KR)
|
|
class FMClickURLLabel;
|
|
#endif // RM_MODEL_EMT_KR
|
|
|
|
class FMFrameTitle: public RMWidgetBase
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit FMFrameTitle(QWidget *parent = nullptr, QString title = "", QString icon = "");
|
|
|
|
#if (USE_JP_ADDRESS_TOOL)
|
|
FMButton* _toolButton; // 테스트/변환툴
|
|
#endif
|
|
|
|
#if (SUPPORT_AVI_SPLIT || SPLIT_MULTI_TRACK_VIDEO)
|
|
FMButton* _btnExport; // 2CH 파일 분할
|
|
#endif
|
|
|
|
FMButton* _settingsButton; // 설정 (단말기)
|
|
|
|
#if (USER_LOGER)
|
|
int _clickCount;
|
|
FMClickLabel* _versionLabel;
|
|
QTimer* _clickReset;
|
|
void _clearClickTimer();
|
|
#endif
|
|
|
|
#if (RM_MODEL_EMT_KR)
|
|
QLabel* _modelInfo; // 제품 모델명
|
|
#endif // #if (RM_MODEL_EMT_KR)
|
|
|
|
#if !(RM_MODEL == RM_MODEL_TYPE_TB4000)
|
|
FMButton* _reportButton; // 보고서 생성
|
|
FMButton* _captureButton; // 화면 캡춰
|
|
FMButton* _infoButton; // S/W 정보 보기
|
|
#if !(RM_MODEL_EMT_KR)
|
|
FMButton* _languageButton; // 언어 변경
|
|
#endif // RM_MODEL_EMT_KR
|
|
|
|
#if !(TOGGLE_PLAYER || DO_NOT_USE_MAP)
|
|
FMButton* _mapButton; // 지도 표시
|
|
#endif
|
|
#endif // #if !(RM_MODEL == RM_MODEL_TYPE_TB4000)
|
|
|
|
#if (USE_GOOGLE_MAP_AND_OSM)
|
|
FMButton* _mapOSMButton; // 지도 표시 (OSM)
|
|
#endif // USE_GOOGLE_MAP_AND_OSM
|
|
|
|
FMButton* _minimizeButton; // 윈도우 축소
|
|
FMButton* _closeButton; // 윈도우 닫기
|
|
#if (USE_FILE_NAME_TITLE)
|
|
QLabel* _fileNameTitle;
|
|
#endif
|
|
#if (USE_MAXIMIZE)
|
|
FMButton* maximizeButton;
|
|
#endif
|
|
|
|
#if !(RM_MODEL == RM_MODEL_TYPE_TB4000)
|
|
#if !(REMOVE_ALL_SHORT_CUTS)
|
|
QShortcut* _reportShortcut;
|
|
QShortcut* _settingsShortcut;
|
|
QShortcut* _infoShortcut;
|
|
QShortcut* _captureShortcut;
|
|
#endif // REMOVE_ALL_SHORT_CUTS
|
|
#endif // #if !(RM_MODEL == RM_MODEL_TYPE_TB4000)
|
|
|
|
QHBoxLayout* _layout;
|
|
#if (RM_MODEL_EMT_KR)
|
|
FMClickURLLabel* _titleLabel;
|
|
#else // RM_MODEL_EMT_KR
|
|
QLabel* _titleLabel;
|
|
#endif //RM_MODEL_EMT_KR
|
|
|
|
// QWidget* _toolBar;
|
|
// QHBoxLayout* _toolBarLayout;
|
|
private:
|
|
void paintEvent(QPaintEvent *pe);
|
|
static void _addSpacer(QHBoxLayout* layout, int width);
|
|
|
|
signals:
|
|
|
|
public slots:
|
|
#if (USE_JP_ADDRESS_TOOL)
|
|
void onAddressTool();
|
|
#endif
|
|
void onLanguage();
|
|
void onPlayEvent(PLAY_EVENT event,RMVideoItem* item);
|
|
void onAppEvent(RMApp::Event event,int param) override;
|
|
#if (USER_LOGER)
|
|
void onClickReset();
|
|
void onVersion();
|
|
#endif // #if (USER_LOGER)
|
|
};
|
|
#endif // FM_FRAME_TITLE_H
|