MythTV  master
proglist_helpers.cpp
Go to the documentation of this file.
1 // MythTV
3 #include "libmythbase/mythdate.h"
9 #include "libmythui/mythuitext.h"
11 
12 // MythFrontend
13 #include "proglist.h"
14 #include "proglist_helpers.h"
15 #include "scheduleeditor.h"
16 
18 {
19  if (!LoadWindowFromXML("schedule-ui.xml", "phrasepopup", this))
20  return false;
21 
22  bool err = false;
23  UIUtilE::Assign(this, m_titleText, "title_text", &err);
24  UIUtilE::Assign(this, m_phraseList, "phrase_list", &err);
25  UIUtilE::Assign(this, m_phraseEdit, "phrase_edit", &err);
26  UIUtilE::Assign(this, m_okButton, "ok_button", &err);
27  UIUtilE::Assign(this, m_deleteButton, "delete_button", &err);
28  UIUtilE::Assign(this, m_recordButton, "record_button", &err);
29 
30  if (err)
31  {
32  LOG(VB_GENERAL, LOG_ERR, "Cannot load screen 'phrasepopup'");
33  return false;
34  }
35 
37  {
38  m_titleText->SetText(tr("Select Search"));
39  new MythUIButtonListItem(m_phraseList, tr("<New Search>"), nullptr, false);
40  m_okButton->SetText(tr("Edit"));
41  }
42  else
43  {
44  m_titleText->SetText(tr("Phrase"));
45  new MythUIButtonListItem(m_phraseList, tr("<New Phrase>"), nullptr, false);
46  }
47 
48  for (const QString& item : qAsConst(m_list))
49  {
50  new MythUIButtonListItem(m_phraseList, item, nullptr, false);
51  }
52 
57 
58 
60 
61  m_deleteButton->SetText(tr("Delete"));
62  m_recordButton->SetText(tr("Record"));
63 
67 
69 
71 
73 
74  return true;
75 }
76 
78 {
79  m_okButton->SetEnabled(!m_phraseEdit->GetText().trimmed().isEmpty());
81  (m_list.indexOf(m_phraseEdit->GetText().trimmed()) != -1));
82  m_recordButton->SetEnabled(!m_phraseEdit->GetText().trimmed().isEmpty());
83 }
84 
86 {
87  if (!item)
88  return;
89 
90  int pos = m_phraseList->GetCurrentPos();
91 
92  if (pos == 0)
94  else
95  okClicked();
96 }
97 
99 {
100  if (!item)
101  return;
102 
103  if (m_phraseList->GetCurrentPos() == 0)
104  m_phraseEdit->Reset();
105  else
106  m_phraseEdit->SetText(item->GetText());
107 
111 }
112 
114 {
115  if (m_phraseEdit->GetText().trimmed().isEmpty())
116  return;
117 
118  // check to see if we need to save the phrase
121 
122 // emit haveResult(m_phraseList->GetCurrentPos());
124 
125  Close();
126 }
127 
129 {
130  int view = m_phraseList->GetCurrentPos() - 1;
131 
132  if (view < 0)
133  return;
134 
135  QString text = m_list[view];
136  const QString& qphrase = text;
137 
138  MSqlQuery query(MSqlQuery::InitCon());
139  query.prepare("DELETE FROM keyword "
140  "WHERE phrase = :PHRASE AND searchtype = :TYPE;");
141  query.bindValue(":PHRASE", qphrase);
142  query.bindValue(":TYPE", m_searchType);
143  if (!query.exec())
144  MythDB::DBError("PhrasePopup::deleteClicked", query);
145 
147 
148  m_parent->m_viewList.removeAll(text);
149  m_parent->m_viewTextList.removeAll(text);
150 
151  if (view < m_parent->m_curView)
152  m_parent->m_curView--;
153  else if (view == m_parent->m_curView)
154  m_parent->m_curView = -1;
155 
156  if (m_parent->m_viewList.count() < 1)
158  else
160 }
161 
163 {
164  QString text = m_phraseEdit->GetText();
165  QString what = text;
166  QString fromgenre;
167 
168  if (text.trimmed().isEmpty())
169  return;
170 
171  if (m_searchType == kNoSearch)
172  {
173  LOG(VB_GENERAL, LOG_ERR, "Unknown search in ProgLister");
174  return;
175  }
176 
177  if (m_searchType == kPowerSearch)
178  {
179  if (text == ":::::")
180  return;
181 
182  MSqlBindings bindings;
183  if (ProgLister::PowerStringToSQL(text, what, bindings))
184  {
185  fromgenre = QString("LEFT JOIN programgenres ON "
186  "program.chanid = programgenres.chanid AND "
187  "program.starttime = programgenres.starttime ");
188  }
189 
190  if (what.isEmpty())
191  return;
192 
193  MSqlEscapeAsAQuery(what, bindings);
194  }
195 
196  auto *record = new RecordingRule();
197 
198  record->LoadBySearch(m_searchType, text, what, fromgenre);
199 
201  auto *schededit = new ScheduleEditor(mainStack, record);
202  if (schededit->Create())
203  {
204  mainStack->AddScreen(schededit);
205  okClicked();
206  }
207  else
208  delete schededit;
209 }
210 
212 
214 {
215  if (!LoadWindowFromXML("schedule-ui.xml", "powersearchpopup", this))
216  return false;
217 
218  bool err = false;
219  UIUtilE::Assign(this, m_titleText, "title_text", &err);
220  UIUtilE::Assign(this, m_phraseList, "phrase_list", &err);
221  UIUtilE::Assign(this, m_editButton, "edit_button", &err);
222  UIUtilE::Assign(this, m_deleteButton, "delete_button", &err);
223  UIUtilE::Assign(this, m_recordButton, "record_button", &err);
224 
225  if (err)
226  {
227  LOG(VB_GENERAL, LOG_ERR, "Cannot load screen 'powersearchpopup'");
228  return false;
229  }
230 
231  m_titleText->SetText(tr("Select Search"));
232  new MythUIButtonListItem(m_phraseList, tr("<New Search>"), nullptr, false);
233 
234  for (const QString &item : qAsConst(m_list))
235  {
236  new MythUIButtonListItem(m_phraseList, item, nullptr, false);
237  }
238 
243 
244 
246 
247  m_editButton->SetText(tr("Edit"));
248  m_deleteButton->SetText(tr("Delete"));
249  m_recordButton->SetText(tr("Record"));
250 
254 
255  BuildFocusList();
256 
258 
259  return true;
260 }
261 
263 {
264  if (!item)
265  return;
266 
267  int pos = m_phraseList->GetCurrentPos();
268 
269  if (pos == 0)
270  editClicked();
271  else
272  {
274  Close();
275  }
276 }
277 
279 {
280  if (!item)
281  return;
282 
286 }
287 
289 {
290  MythScreenStack *popupStack = GetMythMainWindow()->GetStack("popup stack");
291 
292  QString currentItem = ":::::";
293 
294  if (m_phraseList->GetCurrentPos() != 0)
295  currentItem = m_phraseList->GetValue();
296 
297  auto *popup = new EditPowerSearchPopup(popupStack, m_parent, currentItem);
298 
299  if (!popup->Create())
300  {
301  delete popup;
302  return;
303  }
304 
305  popupStack->AddScreen(popup);
306 
307  Close();
308 }
309 
311 {
312  int view = m_phraseList->GetCurrentPos() - 1;
313 
314  if (view < 0)
315  return;
316 
317  QString text = m_list[view];
318  const QString& qphrase = text;
319 
320  MSqlQuery query(MSqlQuery::InitCon());
321  query.prepare("DELETE FROM keyword "
322  "WHERE phrase = :PHRASE AND searchtype = :TYPE;");
323  query.bindValue(":PHRASE", qphrase);
324  query.bindValue(":TYPE", m_searchType);
325  if (!query.exec())
326  MythDB::DBError("PowerSearchPopup::deleteClicked", query);
327 
329 
330  m_parent->m_viewList.removeAll(text);
331  m_parent->m_viewTextList.removeAll(text);
332 
333  if (view < m_parent->m_curView)
334  m_parent->m_curView--;
335  else if (view == m_parent->m_curView)
336  m_parent->m_curView = -1;
337 
338  if (m_parent->m_viewList.count() < 1)
340  else
342 }
343 
345 {
346  QString text = m_phraseList->GetValue();
347  QString what = text;
348  QString fromgenre;
349 
350  if (text.trimmed().isEmpty())
351  return;
352 
353  if (m_searchType == kNoSearch)
354  {
355  LOG(VB_GENERAL, LOG_ERR, "Unknown search in ProgLister");
356  return;
357  }
358 
359  if (m_searchType == kPowerSearch)
360  {
361  if (text == ":::::")
362  return;
363 
364  MSqlBindings bindings;
365  if (ProgLister::PowerStringToSQL(text, what, bindings))
366  {
367  fromgenre = QString(
368  "LEFT JOIN programgenres ON "
369  "program.chanid = programgenres.chanid AND "
370  "program.starttime = programgenres.starttime ");
371  }
372 
373  if (what.isEmpty())
374  return;
375 
376  MSqlEscapeAsAQuery(what, bindings);
377  }
378 
379  auto *record = new RecordingRule();
380 
381  record->LoadBySearch(m_searchType, text, what, fromgenre);
382 
384  auto *schededit = new ScheduleEditor(mainStack, record);
385  if (schededit->Create())
386  {
387  mainStack->AddScreen(schededit);
389  Close();
390  }
391  else
392  delete schededit;
393 }
394 
396 
398  ProgLister *parent,
399  QString &currentValue)
400  : MythScreenType(parentStack, "phrasepopup"),
401  m_parent(parent),
402  m_currentValue(std::move(currentValue))
403 {
404  //sanity check currentvalue
405  QStringList field = m_currentValue.split(':');
406  if (field.count() != 6)
407  {
408  LOG(VB_GENERAL, LOG_ERR, QString("Error. PowerSearch %1 has %2 fields")
409  .arg(m_currentValue).arg(field.count()));
410  m_currentValue = ":::::";
411  }
412 }
413 
415 {
416  if (!LoadWindowFromXML("schedule-ui.xml", "editpowersearchpopup", this))
417  return false;
418 
419  bool err = false;
420  UIUtilE::Assign(this, m_titleEdit, "title_edit", &err);
421  UIUtilE::Assign(this, m_subtitleEdit, "subtitle_edit", &err);
422  UIUtilE::Assign(this, m_descEdit, "desc_edit", &err);
423  UIUtilE::Assign(this, m_categoryList, "category_list", &err);
424  UIUtilE::Assign(this, m_genreList, "genre_list", &err);
425  UIUtilE::Assign(this, m_channelList, "channel_list", &err);
426  UIUtilE::Assign(this, m_okButton, "ok_button", &err);
427 
428  if (err)
429  {
430  LOG(VB_GENERAL, LOG_ERR, "Cannot load screen 'editpowersearchpopup'");
431  return false;
432  }
433 
434  QStringList field = m_currentValue.split(':');
435 
436  m_titleEdit->SetText(field[0]);
437  m_subtitleEdit->SetText(field[1]);
438  m_descEdit->SetText(field[2]);
439 
440  initLists();
441 
443 
444  BuildFocusList();
445 
447 
448  return true;
449 }
450 
452 {
453  QString text;
454  text = m_titleEdit->GetText().replace(':','%').replace('*','%') + ':';
455  text += m_subtitleEdit->GetText().replace(':','%').replace('*','%') + ':';
456  text += m_descEdit->GetText().replace(':','%').replace('*','%') + ':';
457 
458  if (m_categoryList->GetCurrentPos() > 0)
460  text += ':';
461  if (m_genreList->GetCurrentPos() > 0)
462  text += m_genres[m_genreList->GetCurrentPos()];
463  text += ':';
464  if (m_channelList->GetCurrentPos() > 0)
466 
467  if (text == ":::::")
468  return;
469 
471  m_parent->FillViewList(text);
472  m_parent->SetViewFromList(text);
473 
474  Close();
475 }
476 
478 {
479  QStringList field = m_currentValue.split(':');
480 
481  // category type
482  m_categories.clear();
484  m_categoryList, tr("(Any Program Type)"), nullptr, false);
485  m_categories << "";
486  new MythUIButtonListItem(m_categoryList, tr("Movies"), nullptr, false);
487  m_categories << "movie";
488  new MythUIButtonListItem(m_categoryList, tr("Series"), nullptr, false);
489  m_categories << "series";
490  new MythUIButtonListItem(m_categoryList, tr("Show"), nullptr, false);
491  m_categories << "libmythtv/tvshow";
492  new MythUIButtonListItem(m_categoryList, tr("Sports"), nullptr, false);
493  m_categories << "sports";
494  m_categoryList->SetItemCurrent(m_categories.indexOf(field[3]));
495 
496  // genre
497  m_genres.clear();
498  new MythUIButtonListItem(m_genreList, tr("(Any Genre)"), nullptr, false);
499  m_genres << "";
500 
501  MSqlQuery query(MSqlQuery::InitCon());
502 
503  query.prepare("SELECT genre FROM programgenres GROUP BY genre;");
504 
505  if (query.exec())
506  {
507  while (query.next())
508  {
509  QString category = query.value(0).toString();
510  if (category.isEmpty() || category.trimmed().isEmpty())
511  continue;
512  category = query.value(0).toString();
513  new MythUIButtonListItem(m_genreList, category, nullptr, false);
514  m_genres << category;
515  if (category == field[4])
517  }
518  }
519 
520  // channel
521  QString channelOrdering = gCoreContext->GetSetting(
522  "ChannelOrdering", "channum");
523 
524  m_channels.clear();
525  new MythUIButtonListItem(m_channelList, tr("(Any Channel)"), nullptr, false);
526  m_channels << "";
527 
528  ChannelInfoList channels = ChannelUtil::GetChannels(0, true, "callsign");
529  ChannelUtil::SortChannels(channels, channelOrdering, true);
530 
531  for (auto & channel : channels)
532  {
533  QString chantext = channel.GetFormatted(ChannelInfo::kChannelShort);
534 
535  m_parent->m_viewList << QString::number(channel.m_chanId);
536  m_parent->m_viewTextList << chantext;
537 
538  auto *item = new MythUIButtonListItem(m_channelList, chantext,
539  nullptr, false);
540 
541  InfoMap chanmap;
542  channel.ToMap(chanmap);
543  item->SetTextFromMap(chanmap);
544 
545  m_channels << channel.m_callSign;
546  if (channel.m_callSign == field[5])
548  }
549 }
MythUITextEdit::Reset
void Reset(void) override
Reset the widget to it's original state, should not reset changes made by the theme.
Definition: mythuitextedit.cpp:54
MythUIButton::Clicked
void Clicked()
scheduleeditor.h
MSqlBindings
QMap< QString, QVariant > MSqlBindings
typedef for a map of string -> string bindings for generic queries.
Definition: mythdbcon.h:101
MSqlQuery::next
bool next(void)
Wrap QSqlQuery::next() so we can display the query results.
Definition: mythdbcon.cpp:811
MSqlQuery
QSqlQuery wrapper that fetches a DB connection from the connection pool.
Definition: mythdbcon.h:128
MythMainWindow::GetMainStack
MythScreenStack * GetMainStack()
Definition: mythmainwindow.cpp:318
PhrasePopup::m_parent
ProgLister * m_parent
Definition: proglist_helpers.h:46
MythUIButtonList::GetItemCurrent
MythUIButtonListItem * GetItemCurrent() const
Definition: mythuibuttonlist.cpp:1587
PhrasePopup::phraseSelected
void phraseSelected(MythUIButtonListItem *item)
Definition: proglist_helpers.cpp:98
mythuitext.h
PowerSearchPopup::m_phraseList
MythUIButtonList * m_phraseList
Definition: proglist_helpers.h:93
EditPowerSearchPopup::m_parent
ProgLister * m_parent
Definition: proglist_helpers.h:116
ChannelInfo::kChannelShort
@ kChannelShort
Definition: channelinfo.h:49
EditPowerSearchPopup::m_subtitleEdit
MythUITextEdit * m_subtitleEdit
Definition: proglist_helpers.h:124
MythScreenType::Close
virtual void Close()
Definition: mythscreentype.cpp:386
PowerSearchPopup::editClicked
void editClicked(void)
Definition: proglist_helpers.cpp:288
EditPowerSearchPopup::m_channelList
MythUIButtonList * m_channelList
Definition: proglist_helpers.h:128
EditPowerSearchPopup::m_genres
QStringList m_genres
Definition: proglist_helpers.h:118
MythUIButtonList::RemoveItem
void RemoveItem(MythUIButtonListItem *item)
Definition: mythuibuttonlist.cpp:1485
ProgLister::m_viewList
QStringList m_viewList
Definition: proglist.h:111
PhrasePopup::m_currentValue
QString m_currentValue
Definition: proglist_helpers.h:49
MythUIButtonList::itemSelected
void itemSelected(MythUIButtonListItem *item)
PhrasePopup::m_titleText
MythUIText * m_titleText
Definition: proglist_helpers.h:51
MSqlQuery::value
QVariant value(int i) const
Definition: mythdbcon.h:205
MythScreenStack
Definition: mythscreenstack.h:16
PhrasePopup::m_okButton
MythUIButton * m_okButton
Definition: proglist_helpers.h:54
ProgLister
Definition: proglist.h:33
RecordingRule
Internal representation of a recording rule, mirrors the record table.
Definition: recordingrule.h:28
MSqlQuery::exec
bool exec(void)
Wrap QSqlQuery::exec() so we can display SQL.
Definition: mythdbcon.cpp:617
PhrasePopup::phraseClicked
void phraseClicked(MythUIButtonListItem *item)
Definition: proglist_helpers.cpp:85
LOG
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
Definition: mythlogging.h:39
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition: mythscreentype.h:45
ProgLister::m_viewTextList
QStringList m_viewTextList
Definition: proglist.h:112
MythUITextEdit::GetText
QString GetText(void) const
Definition: mythuitextedit.h:50
EditPowerSearchPopup::m_descEdit
MythUITextEdit * m_descEdit
Definition: proglist_helpers.h:125
PowerSearchPopup::m_deleteButton
MythUIButton * m_deleteButton
Definition: proglist_helpers.h:96
mythuibuttonlist.h
PowerSearchPopup::recordClicked
void recordClicked(void)
Definition: proglist_helpers.cpp:344
PhrasePopup::Create
bool Create() override
Definition: proglist_helpers.cpp:17
EditPowerSearchPopup::Create
bool Create() override
Definition: proglist_helpers.cpp:414
MythUIButtonList::GetCount
int GetCount() const
Definition: mythuibuttonlist.cpp:1652
PhrasePopup::m_searchType
RecSearchType m_searchType
Definition: proglist_helpers.h:47
PhrasePopup::recordClicked
void recordClicked(void)
Definition: proglist_helpers.cpp:162
proglist.h
ProgLister::UpdateKeywordInDB
void UpdateKeywordInDB(const QString &text, const QString &oldValue)
Definition: proglist.cpp:369
PowerSearchPopup::m_parent
ProgLister * m_parent
Definition: proglist_helpers.h:87
PowerSearchPopup::phraseClicked
void phraseClicked(MythUIButtonListItem *item)
Definition: proglist_helpers.cpp:262
InfoMap
QHash< QString, QString > InfoMap
Definition: mythtypes.h:15
ChannelUtil::SortChannels
static void SortChannels(ChannelInfoList &list, const QString &order, bool eliminate_duplicates=false)
Definition: channelutil.cpp:2322
MythUIButtonListItem
Definition: mythuibuttonlist.h:41
EditPowerSearchPopup::m_categories
QStringList m_categories
Definition: proglist_helpers.h:117
MythUITextEdit::SetText
void SetText(const QString &text, bool moveCursor=true)
Definition: mythuitextedit.cpp:197
proglist_helpers.h
PowerSearchPopup::deleteClicked
void deleteClicked(void)
Definition: proglist_helpers.cpp:310
mythdate.h
EditPowerSearchPopup::m_genreList
MythUIButtonList * m_genreList
Definition: proglist_helpers.h:127
MythUIButtonList::itemClicked
void itemClicked(MythUIButtonListItem *item)
kPowerSearch
@ kPowerSearch
Definition: recordingtypes.h:81
MythUIButtonList::GetCurrentPos
int GetCurrentPos() const
Definition: mythuibuttonlist.h:238
PowerSearchPopup::m_editButton
MythUIButton * m_editButton
Definition: proglist_helpers.h:95
MythScreenType::SetFocusWidget
bool SetFocusWidget(MythUIType *widget=nullptr)
Definition: mythscreentype.cpp:118
PhrasePopup::m_recordButton
MythUIButton * m_recordButton
Definition: proglist_helpers.h:56
MythUIButton::SetText
void SetText(const QString &msg)
Definition: mythuibutton.cpp:227
MSqlQuery::InitCon
static MSqlQueryInfo InitCon(ConnectionReuse _reuse=kNormalConnection)
Only use this in combination with MSqlQuery constructor.
Definition: mythdbcon.cpp:549
ProgLister::m_curView
int m_curView
Definition: proglist.h:110
MythDB::DBError
static void DBError(const QString &where, const MSqlQuery &query)
Definition: mythdb.cpp:226
ProgLister::FillViewList
void FillViewList(const QString &view)
Definition: proglist.cpp:735
MythScreenType::BuildFocusList
void BuildFocusList(void)
Definition: mythscreentype.cpp:206
EditPowerSearchPopup::initLists
void initLists(void)
Definition: proglist_helpers.cpp:477
PhrasePopup::m_list
QStringList m_list
Definition: proglist_helpers.h:48
MythUIType::SetEnabled
void SetEnabled(bool enable)
Definition: mythuitype.cpp:1131
ProgLister::PowerStringToSQL
static bool PowerStringToSQL(const QString &qphrase, QString &output, MSqlBindings &bindings)
Definition: proglist.cpp:537
kNoSearch
@ kNoSearch
Definition: recordingtypes.h:80
ChannelUtil::GetChannels
static ChannelInfoList GetChannels(uint sourceid, bool visible_only, const QString &group_by=QString(), uint channel_groupid=0)
Definition: channelutil.h:251
MSqlEscapeAsAQuery
void MSqlEscapeAsAQuery(QString &query, const MSqlBindings &bindings)
Given a partial query string and a bindings object, escape the string.
Definition: mythdbcon.cpp:1003
gCoreContext
MythCoreContext * gCoreContext
This global variable contains the MythCoreContext instance for the app.
Definition: mythcorecontext.cpp:55
PhrasePopup::editChanged
void editChanged(void)
Definition: proglist_helpers.cpp:77
PhrasePopup::m_phraseEdit
MythUITextEdit * m_phraseEdit
Definition: proglist_helpers.h:53
PowerSearchPopup::m_list
QStringList m_list
Definition: proglist_helpers.h:89
EditPowerSearchPopup::m_titleEdit
MythUITextEdit * m_titleEdit
Definition: proglist_helpers.h:123
UIUtilDisp::Assign
static bool Assign(ContainerType *container, UIType *&item, const QString &name, bool *err=nullptr)
Definition: mythuiutils.h:27
ProgLister::SetViewFromList
void SetViewFromList(const QString &item)
Definition: proglist.cpp:530
channelutil.h
PowerSearchPopup::m_searchType
RecSearchType m_searchType
Definition: proglist_helpers.h:88
PowerSearchPopup::m_recordButton
MythUIButton * m_recordButton
Definition: proglist_helpers.h:97
MythUIButtonListItem::GetText
QString GetText(const QString &name="") const
Definition: mythuibuttonlist.cpp:3315
channelinfo.h
mythcorecontext.h
mythuitextedit.h
XMLParseBase::LoadWindowFromXML
static bool LoadWindowFromXML(const QString &xmlfile, const QString &windowname, MythUIType *parent)
Definition: xmlparsebase.cpp:695
EditPowerSearchPopup::EditPowerSearchPopup
EditPowerSearchPopup(MythScreenStack *parentStack, ProgLister *parent, QString &currentValue)
Definition: proglist_helpers.cpp:397
MSqlQuery::bindValue
void bindValue(const QString &placeholder, const QVariant &val)
Add a single binding.
Definition: mythdbcon.cpp:887
std
Definition: mythchrono.h:23
PowerSearchPopup::Create
bool Create() override
Definition: proglist_helpers.cpp:213
EditPowerSearchPopup::m_currentValue
QString m_currentValue
Definition: proglist_helpers.h:121
MythUIButtonList::GetValue
virtual QString GetValue() const
Definition: mythuibuttonlist.cpp:1606
MythUIText::SetText
virtual void SetText(const QString &text)
Definition: mythuitext.cpp:132
PowerSearchPopup::phraseSelected
void phraseSelected(MythUIButtonListItem *item)
Definition: proglist_helpers.cpp:278
PowerSearchPopup::haveResult
void haveResult(QString item)
GetMythMainWindow
MythMainWindow * GetMythMainWindow(void)
Definition: mythmainwindow.cpp:104
MythUIButtonList::MoveToNamedPosition
bool MoveToNamedPosition(const QString &position_name)
Definition: mythuibuttonlist.cpp:2279
MythUIButtonList::SetItemCurrent
void SetItemCurrent(MythUIButtonListItem *item)
Definition: mythuibuttonlist.cpp:1554
PhrasePopup::m_phraseList
MythUIButtonList * m_phraseList
Definition: proglist_helpers.h:52
EditPowerSearchPopup::m_okButton
MythUIButton * m_okButton
Definition: proglist_helpers.h:130
PhrasePopup::m_deleteButton
MythUIButton * m_deleteButton
Definition: proglist_helpers.h:55
mythuibutton.h
MythMainWindow::GetStack
MythScreenStack * GetStack(const QString &Stackname)
Definition: mythmainwindow.cpp:323
MythUITextEdit::valueChanged
void valueChanged()
PowerSearchPopup::m_phraseEdit
MythUITextEdit * m_phraseEdit
Definition: proglist_helpers.h:94
EditPowerSearchPopup::m_categoryList
MythUIButtonList * m_categoryList
Definition: proglist_helpers.h:126
PhrasePopup::deleteClicked
void deleteClicked(void)
Definition: proglist_helpers.cpp:128
PhrasePopup::haveResult
void haveResult(QString item)
recordingrule.h
EditPowerSearchPopup::m_channels
QStringList m_channels
Definition: proglist_helpers.h:119
PhrasePopup::okClicked
void okClicked(void)
Definition: proglist_helpers.cpp:113
MythScreenStack::AddScreen
virtual void AddScreen(MythScreenType *screen, bool allowFade=true)
Definition: mythscreenstack.cpp:52
ScheduleEditor
Construct a recording schedule.
Definition: scheduleeditor.h:143
PowerSearchPopup::m_titleText
MythUIText * m_titleText
Definition: proglist_helpers.h:92
EditPowerSearchPopup::okClicked
void okClicked(void)
Definition: proglist_helpers.cpp:451
PowerSearchPopup::m_currentValue
QString m_currentValue
Definition: proglist_helpers.h:90
MythCoreContext::GetSetting
QString GetSetting(const QString &key, const QString &defaultval="")
Definition: mythcorecontext.cpp:897
MSqlQuery::prepare
bool prepare(const QString &query)
QSqlQuery::prepare() is not thread safe in Qt <= 3.3.2.
Definition: mythdbcon.cpp:836
ChannelInfoList
std::vector< ChannelInfo > ChannelInfoList
Definition: channelinfo.h:131