61 lines
1.7 KiB
C++
61 lines
1.7 KiB
C++
#include "rm_frame_video_main.h"
|
|
#include "core/rm_player.h"
|
|
#include "../fm_dimensions.h"
|
|
#include "../core/fm_strings.h"
|
|
#include "../ui/fm_button.h"
|
|
|
|
#if (RM_MODEL == RM_MODEL_TYPE_XLDR_88)
|
|
#include <QFileInfo>
|
|
#include "../data/rm_video_item_2ch.h"
|
|
#endif
|
|
|
|
#if (MODEL_STANDARD)
|
|
#define MAIN_FRAME_BORDER "top_border"
|
|
#else
|
|
#define MAIN_FRAME_BORDER ""
|
|
#endif
|
|
|
|
// MAIN_FRAME_BORDER
|
|
RMFrameVideoMain::RMFrameVideoMain(QWidget *parent) : RMFrameVideoBase(parent,true,true) // "top_border"
|
|
{
|
|
//setFixedHeight(MAIN_VIDEO_CONTROL_HEIGHT);
|
|
//this->setSizePolicy(QSizePolicy::Preferred,QSizePolicy::Fixed);
|
|
|
|
#if !(DO_NOT_USE_ZOOM || ZOOM_SHADER)
|
|
pipRect = QRect(18,17,166,93+1);
|
|
#endif
|
|
|
|
|
|
setVideoWidget(RMPlayer::instance()->playWidgetF());
|
|
#if (DUAL_VIDEO_WIDGET)
|
|
setVideoWidget2(RMPlayer::instance()->playWidgetR());
|
|
#endif
|
|
|
|
#if (TOPDOWN_360_QUAD_MODE)
|
|
setOtherVideoWidgets(RMPlayer::instance()->_videoOutput2->widget(),
|
|
RMPlayer::instance()->_videoOutput3->widget(),
|
|
RMPlayer::instance()->_videoOutput4->widget());
|
|
#endif
|
|
}
|
|
void RMFrameVideoMain::onAppEvent(RMApp::Event event,int param)
|
|
{
|
|
RMFrameVideoBase::onAppEvent(event,param);
|
|
#if (!DUAL_VIEWER)
|
|
if(event == RMApp::WillFullScreen || event == RMApp::WillNormalScreen)
|
|
{
|
|
/*
|
|
bIsFullScreen = event == RMApp::WillFullScreen;
|
|
#if (MODEL_STANDARD)
|
|
titleLabel->setHidden(bIsFullScreen);
|
|
#endif
|
|
*/
|
|
//this->setFixedHeight(bIsFullScreen ? QWIDGETSIZE_MAX : MAIN_VIDEO_CONTROL_HEIGHT);
|
|
//this->setSizePolicy(QSizePolicy::Preferred,bIsFullScreen ? QSizePolicy::Preferred : QSizePolicy::Fixed);
|
|
#if !(DO_NOT_USE_ZOOM || ZOOM_SHADER)
|
|
refreshPIP();
|
|
#endif
|
|
}
|
|
#endif // DUAL_VIEWER
|
|
}
|
|
|