diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-06-17 12:25:12 +0200 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-06-17 14:36:03 +0200 |
commit | 5b1e1743161b75da73cd987d67593fb89f43e50d (patch) | |
tree | ef3844153c241b05b862956e2d8c91782bc5b842 | |
parent | 1a2da2da0a3d9144db1fc1ecb993bb2b40fc4229 (diff) | |
download | vdr-plugin-tvguide-5b1e1743161b75da73cd987d67593fb89f43e50d.tar.gz vdr-plugin-tvguide-5b1e1743161b75da73cd987d67593fb89f43e50d.tar.bz2 |
Move some inits to cRecMenuSearchTimerEdit::cRecMenuSearchTimerEdit
-rw-r--r-- | recmenus.c | 13 | ||||
-rw-r--r-- | recmenus.h | 8 |
2 files changed, 14 insertions, 7 deletions
@@ -757,6 +757,13 @@ cRecMenuSearchTimerEdit::cRecMenuSearchTimerEdit(cTVGuideSearchTimer searchTimer compareSummary = searchTimer.CompareSummary(); useInFavorites = searchTimer.UseInFavorites(); + searchTimer.GetSearchModes(&searchModes); + searchTimer.GetUseChannelModes(&useChannelModes); + searchTimer.GetCompareDateModes(&compareDateModes); + searchTimer.GetSearchTimerModes(&searchTimerModes); + searchTimer.GetDelModes(&delModes); + channelgroupIndex = SplitChannelGroups(&channelGroups, &channelgroups); + SetWidthPercent(70); cString infoText; if (searchTimer.GetID() > -1) { @@ -806,12 +813,6 @@ void cRecMenuSearchTimerEdit::InitMenuItems(void) { useDayOfWeekPos = 8; avoidRepeatsPos = 14; - std::vector<std::string> searchModes; - searchTimer.GetSearchModes(&searchModes); - std::vector<std::string> useChannelModes; - searchTimer.GetUseChannelModes(&useChannelModes); - channelgroupIndex = SplitChannelGroups(&channelGroups, &channelgroups); - mainMenuItems.push_back(new cRecMenuItemText(tr("Search String"), searchString, TEXTINPUTLENGTH, false, searchString)); mainMenuItems.push_back(new cRecMenuItemBool(tr("Active"), timerActive, false, false, &timerActive, rmsSearchTimerSave)); mainMenuItems.push_back(new cRecMenuItemSelect(tr("Search Mode"), searchModes, mode, false, &mode, rmsSearchTimerSave)); @@ -208,7 +208,14 @@ public: class cRecMenuSearchTimerEdit: public cRecMenu {
private:
cTVGuideSearchTimer searchTimer;
+ cTVGuideSearchTimer sT;
+ std::vector<std::string> searchModes;
+ std::vector<std::string> useChannelModes;
std::vector<std::string> channelGroups;
+ std::vector<std::string> compareDateModes;
+ std::vector<std::string> searchTimerModes;
+ std::vector<std::string> delModes;
+ std::vector<std::string> channelgroups;
std::vector<cRecMenuItem*> mainMenuItems;
std::vector<cRecMenuItem*> currentMenuItems;
int numMenuItems;
@@ -226,7 +233,6 @@ private: int startChannel;
int stopChannel;
std::string channelGroup;
- std::vector<std::string> channelgroups;
int channelgroupIndex;
bool useTime;
int startTime;
|