- epgplus.h: reformat; no binary changes

This commit is contained in:
vanhofen
2017-04-08 14:11:27 +02:00
committed by svenhoefer
parent 6135a827da
commit 491efb3a05

View File

@@ -3,14 +3,7 @@
Copyright (C) 2001 Steffen Hehn 'McClean'
Copyright (C) 2004 Martin Griep 'vivamiga'
Kommentar:
Diese GUI wurde von Grund auf neu programmiert und sollte nun vom
Aufbau und auch den Ausbaumoeglichkeiten gut aussehen. Neutrino basiert
auf der Client-Server Idee, diese GUI ist also von der direkten DBox-
Steuerung getrennt. Diese wird dann von Daemons uebernommen.
Copyright (C) 2017 Sven Hoefer
License: GPL
@@ -29,9 +22,8 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __EPGPLUS_HPP__
#define __EPGPLUS_HPP__
#ifndef __epgplus__
#define __epgplus__
#include "widget/menue.h"
@@ -86,7 +78,6 @@ public:
int size;
};
enum TViewMode
{
ViewMode_Stretch,
@@ -105,7 +96,10 @@ public:
{
//// construction / destruction
public:
Header ( CFrameBuffer* frameBuffer , int x , int y , int width);
Header(CFrameBuffer* frameBuffer,
int x,
int y,
int width);
~Header();
@@ -133,7 +127,12 @@ public:
{
//// construction / destruction
public:
TimeLine ( CFrameBuffer* frameBuffer , int x , int y , int width , int startX , int durationX);
TimeLine(CFrameBuffer* frameBuffer,
int x,
int y,
int width,
int startX,
int durationX);
~TimeLine();
@@ -172,15 +171,13 @@ public:
{
//// construction / destruction
public:
ChannelEventEntry
( const CChannelEvent* channelEvent
, CFrameBuffer* frameBuffer
, TimeLine* timeLine
, Footer* footer
, int x
, int y
, int width
);
ChannelEventEntry(const CChannelEvent* channelEvent,
CFrameBuffer* frameBuffer,
TimeLine* timeLine,
Footer* footer,
int x,
int y,
int width);
~ChannelEventEntry();
@@ -188,14 +185,9 @@ public:
public:
static void init();
bool isSelected
( time_t selectedTime
) const;
bool isSelected(time_t selectedTime) const;
void paint
( bool isSelected
, bool toggleColor
);
void paint(bool isSelected, bool toggleColor);
static int getUsedHeight();
@@ -221,16 +213,14 @@ public:
{
//// construction / destruction
public:
ChannelEntry
( const CZapitChannel* channel
, int index
, CFrameBuffer* frameBuffer
, Footer* footer
, CBouquetList* bouquetList
, int x
, int y
, int width
);
ChannelEntry(const CZapitChannel* channel,
int index,
CFrameBuffer* frameBuffer,
Footer* footer,
CBouquetList* bouquetList,
int x,
int y,
int width);
~ChannelEntry();
@@ -238,10 +228,7 @@ public:
public:
static void init();
void paint
( bool isSelected
, time_t selectedTime
);
void paint(bool isSelected, time_t selectedTime);
static int getUsedHeight();
@@ -271,13 +258,11 @@ public:
{
//// construction / destruction
public:
Footer
( CFrameBuffer* frameBuffer
, int x
, int y
, int width
, int height
);
Footer(CFrameBuffer* frameBuffer,
int x,
int y,
int width,
int height);
~Footer();
@@ -285,20 +270,11 @@ public:
public:
static void init();
void setBouquetChannelName
( const std::string& newBouquetName
, const std::string& newChannelName
);
void setBouquetChannelName(const std::string& newBouquetName, const std::string& newChannelName);
void paintEventDetails
( const std::string& description
, const std::string& shortDescription
);
void paintEventDetails(const std::string& description, const std::string& shortDescription);
void paintButtons
( button_label* buttonLabels
, int numberOfButtons
);
void paintButtons(button_label* buttonLabels, int numberOfButtons);
static int getUsedHeight();
@@ -322,7 +298,6 @@ public:
std::string currentChannelName;
};
class MenuTargetAddReminder : public CMenuTarget
{
public:
@@ -370,13 +345,12 @@ public:
virtual ~MenuOptionChooserSwitchSwapMode();
public:
int exec
( CMenuTarget* parent);
int exec(CMenuTarget* parent);
private:
EpgPlus* epgPlus;
int oldTimingMenuSettings;
TSwapMode oldSwapMode;
EpgPlus* epgPlus;
};
class MenuOptionChooserSwitchViewMode : public CMenuOptionChooser
@@ -424,10 +398,10 @@ public:
static int sizes[NumberOfSizeSettings];
*/
friend class EpgPlus::ChannelEventEntry;
friend class EpgPlus::ChannelEntry;
friend class EpgPlus::MenuOptionChooserSwitchSwapMode;
friend class EpgPlus::MenuOptionChooserSwitchViewMode;
friend class EpgPlus::ChannelEntry;
friend class EpgPlus::ChannelEventEntry;
//// construction / destruction
public:
@@ -547,4 +521,4 @@ class CEPGplusHandler : public CMenuTarget
int exec(CMenuTarget* parent, const std::string &actionKey);
};
#endif
#endif // __epgplus__