Skip to content

Commit

Permalink
added: SetTitle() to progress bar handle
Browse files Browse the repository at this point in the history
useful when you want to change the title of the task using it
  • Loading branch information
spiff committed Oct 6, 2012
1 parent 776252b commit 779a390
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions xbmc/dialogs/GUIDialogExtendedProgressBar.cpp
Expand Up @@ -45,6 +45,12 @@ void CGUIDialogProgressBarHandle::SetText(const string &strText)
m_strText = strText;
}

void CGUIDialogProgressBarHandle::SetTitle(const string &strTitle)
{
CSingleLock lock(m_critSection);
m_strTitle = strTitle;
}

void CGUIDialogProgressBarHandle::SetProgress(int currentItem, int itemCount)
{
float fPercentage = (float)((currentItem*100)/itemCount);
Expand Down
1 change: 1 addition & 0 deletions xbmc/dialogs/GUIDialogExtendedProgressBar.h
Expand Up @@ -31,6 +31,7 @@ class CGUIDialogProgressBarHandle
virtual ~CGUIDialogProgressBarHandle(void) {}

const std::string &Title(void) { return m_strTitle; }
void SetTitle(const std::string &strTitle);

std::string Text(void) const;
void SetText(const std::string &strText);
Expand Down

0 comments on commit 779a390

Please sign in to comment.