gui/channellist.cpp: add getActiveChannel;

remove old and commented code;
add left key as backspace in numericZap;
simplify numericZap and virtual zap;
This commit is contained in:
[CST] Focus
2012-03-16 14:18:40 +04:00
parent 008940a3b7
commit 521486229c
2 changed files with 45 additions and 149 deletions

View File

@@ -123,6 +123,7 @@ public:
t_satellite_position getActiveSatellitePosition(void) const;
int getActiveChannelNumber (void) const;
t_channel_id getActiveChannel_ChannelID(void) const;
CZapitChannel* getActiveChannel (void) const;
void zapTo(int pos, bool forceStoreToLastChannels = false);
void zapToChannel(CZapitChannel *channel);
@@ -154,7 +155,7 @@ public:
CLastChannel & getLastChannels() { return lastChList; }
bool showEmptyError();
int getSelected() { return selected; }
CZapitChannel* getPrevNextChannelNumber(int key, unsigned int &sl);
CZapitChannel* getPrevNextChannel(int key, unsigned int &sl);
//friend class CZapitChannel;
};
#endif