2014-09-27 09:25:14 +02:00
|
|
|
#ifndef __DISPLAYREPLAYVIEW_H
|
|
|
|
#define __DISPLAYREPLAYVIEW_H
|
|
|
|
|
|
|
|
#include "../libtemplate/template.h"
|
|
|
|
#include "view.h"
|
2014-11-29 11:23:54 +01:00
|
|
|
#include "displayreplayonpauseview.h"
|
2014-09-27 09:25:14 +02:00
|
|
|
|
2015-01-06 06:07:48 +01:00
|
|
|
class cDisplayReplayView : public cView, public cViewHelpers {
|
2014-09-27 09:25:14 +02:00
|
|
|
private:
|
2015-03-31 11:53:25 +02:00
|
|
|
int length;
|
2015-05-16 07:57:14 +02:00
|
|
|
bool timeShiftActive;
|
|
|
|
int timeShiftFramesTotal;
|
|
|
|
int timeShiftLength;
|
|
|
|
string timeShiftDuration;
|
2015-03-31 11:53:25 +02:00
|
|
|
string endLast;
|
2014-11-29 11:23:54 +01:00
|
|
|
cDisplayReplayOnPauseView *onPauseView;
|
2014-10-28 18:09:10 +01:00
|
|
|
int numMarksLast;
|
|
|
|
int *lastMarks;
|
|
|
|
int markActive;
|
|
|
|
bool MarksChanged(const cMarks *marks, int current);
|
|
|
|
void RememberMarks(const cMarks *marks);
|
2014-09-27 09:25:14 +02:00
|
|
|
public:
|
|
|
|
cDisplayReplayView(cTemplateView *tmplView);
|
|
|
|
virtual ~cDisplayReplayView();
|
|
|
|
bool createOsd(void);
|
2015-03-31 11:53:25 +02:00
|
|
|
void SetRecordingLength(int length) { this->length = length; };
|
2015-05-16 07:57:14 +02:00
|
|
|
void SetTimeShift(int framesTotal, int timeShiftLength);
|
2014-09-27 09:25:14 +02:00
|
|
|
void DrawBackground(bool modeOnly);
|
2015-01-06 06:07:48 +01:00
|
|
|
void DrawDate(void);
|
|
|
|
void DrawTime(void);
|
2014-09-27 09:25:14 +02:00
|
|
|
void DrawTitle(const cRecording *recording);
|
2015-02-01 14:45:33 +01:00
|
|
|
void DrawTitle(const char *title);
|
2014-09-27 09:25:14 +02:00
|
|
|
void DrawRecordingInformation(const cRecording *recording);
|
|
|
|
void DrawScraperContent(const cRecording *recording);
|
|
|
|
void DrawCurrent(const char *current);
|
|
|
|
void DrawTotal(const char *total);
|
2015-03-31 11:53:25 +02:00
|
|
|
void DrawEndTime(int current, int total);
|
2014-09-27 09:25:14 +02:00
|
|
|
void DrawProgressBar(int current, int total);
|
2014-10-28 18:09:10 +01:00
|
|
|
void DrawMarks(const cMarks *marks, int current, int total);
|
2014-09-27 09:25:14 +02:00
|
|
|
void DrawControlIcons(bool play, bool forward, int speed, bool modeOnly);
|
2015-07-25 14:19:32 +02:00
|
|
|
void DrawProgressModeOnly(double fps, int current, int total);
|
2014-09-27 09:25:14 +02:00
|
|
|
void DrawJump(const char *jump);
|
|
|
|
void DrawMessage(eMessageType type, const char *text);
|
2015-03-19 16:31:39 +01:00
|
|
|
void DrawOnPause(string recFileName, bool modeOnly);
|
2014-11-29 11:23:54 +01:00
|
|
|
void ClearOnPause(void);
|
2015-01-22 18:08:12 +01:00
|
|
|
void DelayOnPause(void);
|
2015-01-06 06:23:36 +01:00
|
|
|
void DrawCustomTokens(void);
|
2015-06-05 14:48:45 +02:00
|
|
|
bool CustomTokenChange(void);
|
2014-09-27 09:25:14 +02:00
|
|
|
void DoFadeIn(void) { Start(); };
|
|
|
|
void Flush(void) { DoFlush(); };
|
|
|
|
};
|
|
|
|
#endif //__DISPLAYREPLAYVIEW_H
|