first commit
This commit is contained in:
108
project/fm_viewer/ui/title_widget.h
Normal file
108
project/fm_viewer/ui/title_widget.h
Normal file
@@ -0,0 +1,108 @@
|
||||
#ifndef TITLE_WIDGET_H
|
||||
#define TITLE_WIDGET_H
|
||||
|
||||
// fm_frame_title 사용
|
||||
// 팝업 캡쳐 등이 사용하고 있어 제거하지 못함
|
||||
|
||||
#include <QWidget>
|
||||
#include <QHBoxLayout>
|
||||
#include <QShortcut>
|
||||
#include "../rm_include.h"
|
||||
#include "rm_button.h"
|
||||
|
||||
#include "../fm_event_types.h"
|
||||
|
||||
|
||||
class RMVideoItem;
|
||||
class FMButton;
|
||||
// DIALOG 등에서만 사용되고 실제 메인 윈도우의 타이틀로는 사용되지 않는다.
|
||||
#define REMOVE_UNUSED_TITLE 1
|
||||
class TitleWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
||||
#if !(REMOVE_UNUSED_TITLE)
|
||||
|
||||
#if (MODEL_STANDARD)
|
||||
|
||||
#if (LIVE_LANGUAGE_CHANGE && (!FIXED_ENGLISH))
|
||||
RMButton* languageButton;
|
||||
#endif
|
||||
|
||||
#if !(REMOVE_REPORT)
|
||||
RMButton* reportButton;
|
||||
#endif // REMOVE_REPORT
|
||||
RMButton* settingsButton;
|
||||
|
||||
#if !(RM_MODEL == RM_MODEL_TYPE_TB4000)
|
||||
RMButton* infoButton;
|
||||
RMButton* captureButton;
|
||||
#endif // RM_MODEL_TYPE_TB4000
|
||||
|
||||
#if !(REMOVE_ALL_SHORT_CUTS)
|
||||
#if !(REMOVE_REPORT)
|
||||
QShortcut* reportShortcut;
|
||||
#endif // REMOVE_REPORT
|
||||
QShortcut* settingsShortcut;
|
||||
QShortcut* infoShortcut;
|
||||
QShortcut* captureShortcut;
|
||||
#endif // REMOVE_ALL_SHORT_CUTS
|
||||
|
||||
#if (DUAL_VIEWER)
|
||||
RMButton* panoramaButton;
|
||||
RMButton* mirrorButton;
|
||||
RMButton* mapButton;
|
||||
#endif
|
||||
#endif // MODEL_STANDARD
|
||||
#if(MODEL_WATEX) // WATEX [언어,홈페이지,정보] + [최소화,닫기]
|
||||
RMButton* languageButton;
|
||||
RMButton* manualButton;
|
||||
RMButton* infoButton;
|
||||
#else // FD500 과 달리 FS 는 툴바에 있음
|
||||
RMButton* fullScreenButton;
|
||||
#endif
|
||||
#endif // #if !(REMOVE_UNUSED_TITLE)
|
||||
QHBoxLayout* layout;
|
||||
QLabel* titleLabel;
|
||||
RMButton* minimizeButton;
|
||||
FMButton* closeButton;
|
||||
|
||||
|
||||
explicit TitleWidget(QWidget *parent = nullptr, QString title = "", QString icon = "", bool isPopup = false);
|
||||
//~TitleWidget();
|
||||
QWidget* _toolBar;
|
||||
QHBoxLayout* _toolBarLayout;
|
||||
private:
|
||||
void paintEvent(QPaintEvent *pe);
|
||||
static void _addSpacer(QHBoxLayout* layout, int width);
|
||||
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
|
||||
#if!(REMOVE_UNUSED_TITLE)
|
||||
#if !(SETUP_ONLY_BUILD)
|
||||
void onPlayEvent(PLAY_EVENT event,RMVideoItem* item);
|
||||
#endif
|
||||
#endif // #if!(REMOVE_UNUSED_TITLE)
|
||||
|
||||
#if(MODEL_WATEX)
|
||||
void onManual();
|
||||
#endif //
|
||||
|
||||
#if (DUAL_VIEWER)
|
||||
void onMap();
|
||||
#endif
|
||||
|
||||
#if !(REMOVE_OLD_C)
|
||||
#if (LIVE_LANGUAGE_CHANGE && (!FIXED_ENGLISH))
|
||||
void onLanguage();
|
||||
#endif
|
||||
#endif // #if !(REMOVE_OLD_C)
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif // TITLE_WIDGET_H
|
||||
Reference in New Issue
Block a user