Skip to content

Commit

Permalink
Remove more unused old ui code from libmyth. There are only a few pla…
Browse files Browse the repository at this point in the history
…ces where old dialogs are still used now
  • Loading branch information
stuartm committed Jan 31, 2012
1 parent 6ce2585 commit 77df65b
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 29 deletions.
3 changes: 0 additions & 3 deletions mythplugins/mythweather/mythweather/main.cpp
Expand Up @@ -119,9 +119,6 @@ static void WeatherCallback(void *data, QString &selection)
mainStack->AddScreen(srcsetup);
else
delete srcsetup;
// MythPopupBox::showOkPopup(GetMythMainWindow(), "no sources",
// QObject::tr("No Sources defined, Sources are defined by"
// " adding screens in Screen Setup."));
}
}

Expand Down
22 changes: 0 additions & 22 deletions mythtv/libs/libmyth/mythdialogs.cpp
Expand Up @@ -713,28 +713,6 @@ bool MythPopupBox::showOkPopup(
return ret;
}

bool MythPopupBox::showOkCancelPopup(MythMainWindow *parent, QString title,
QString message, bool focusOk)
{
MythPopupBox *popup = new MythPopupBox(parent, title.toAscii().constData());

popup->addLabel(message, Medium, true);
QAbstractButton *okButton = popup->addButton(tr("OK"), popup, SLOT(accept()));
QAbstractButton *cancelButton = popup->addButton(tr("Cancel"), popup, SLOT(reject()));

if (focusOk)
okButton->setFocus();
else
cancelButton->setFocus();

bool ok = (Accepted == popup->ExecPopup());

popup->hide();
popup->deleteLater();

return ok;
}

bool MythPopupBox::showGetTextPopup(MythMainWindow *parent, QString title,
QString message, QString& text)
{
Expand Down
3 changes: 0 additions & 3 deletions mythtv/libs/libmyth/mythdialogs.h
Expand Up @@ -153,9 +153,6 @@ class MPUBLIC MythPopupBox : public MythDialog
const QString &message,
QString button_msg = QString());

static bool showOkCancelPopup(MythMainWindow *parent, QString title,
QString message, bool focusOk);

static DialogCode Show2ButtonPopup(
MythMainWindow *parent,
const QString &title, const QString &message,
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/mythversion.h
Expand Up @@ -12,7 +12,7 @@
/// Update this whenever the plug-in API changes.
/// Including changes in the libmythbase, libmyth, libmythtv, libmythav* and
/// libmythui class methods used by plug-ins.
#define MYTH_BINARY_VERSION "0.25.20120130-1"
#define MYTH_BINARY_VERSION "0.25.20120131-1"

/** \brief Increment this whenever the MythTV network protocol changes.
*
Expand Down

0 comments on commit 77df65b

Please sign in to comment.