summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-06-17 12:25:12 +0200
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-06-17 14:36:03 +0200
commit5b1e1743161b75da73cd987d67593fb89f43e50d (patch)
treeef3844153c241b05b862956e2d8c91782bc5b842
parent1a2da2da0a3d9144db1fc1ecb993bb2b40fc4229 (diff)
downloadvdr-plugin-tvguide-5b1e1743161b75da73cd987d67593fb89f43e50d.tar.gz
vdr-plugin-tvguide-5b1e1743161b75da73cd987d67593fb89f43e50d.tar.bz2
Move some inits to cRecMenuSearchTimerEdit::cRecMenuSearchTimerEdit
-rw-r--r--recmenus.c13
-rw-r--r--recmenus.h8
2 files changed, 14 insertions, 7 deletions
diff --git a/recmenus.c b/recmenus.c
index c664e93..4bd9bf5 100644
--- a/recmenus.c
+++ b/recmenus.c
@@ -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));
diff --git a/recmenus.h b/recmenus.h
index e506a9e..17e5517 100644
--- a/recmenus.h
+++ b/recmenus.h
@@ -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;