mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-18 05:15:47 -04:00
Common: Add title, modal information to ProgressCallback
This commit is contained in:
@ -18,6 +18,11 @@ void HostInterfaceProgressCallback::SetCancellable(bool cancellable)
|
||||
Redraw(true);
|
||||
}
|
||||
|
||||
void HostInterfaceProgressCallback::SetTitle(const char* title)
|
||||
{
|
||||
// todo?
|
||||
}
|
||||
|
||||
void HostInterfaceProgressCallback::SetStatusText(const char* text)
|
||||
{
|
||||
BaseProgressCallback::SetStatusText(text);
|
||||
@ -64,15 +69,20 @@ void HostInterfaceProgressCallback::DisplayInformation(const char* message) { Lo
|
||||
|
||||
void HostInterfaceProgressCallback::DisplayDebugMessage(const char* message) { Log_DevPrint(message); }
|
||||
|
||||
void HostInterfaceProgressCallback::ModalError(const char* message) { g_host_interface->ReportError(message); }
|
||||
void HostInterfaceProgressCallback::ModalError(const char* message)
|
||||
{
|
||||
Log_ErrorPrint(message);
|
||||
g_host_interface->ReportError(message);
|
||||
}
|
||||
|
||||
bool HostInterfaceProgressCallback::ModalConfirmation(const char* message)
|
||||
{
|
||||
Log_InfoPrint(message);
|
||||
return g_host_interface->ConfirmMessage(message);
|
||||
}
|
||||
|
||||
u32 HostInterfaceProgressCallback::ModalPrompt(const char* message, u32 num_options, ...)
|
||||
void HostInterfaceProgressCallback::ModalInformation(const char* message)
|
||||
{
|
||||
Log_InfoPrint(message);
|
||||
return 0;
|
||||
g_host_interface->ReportMessage(message);
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
#include "common/progress_callback.h"
|
||||
#include "host_interface.h"
|
||||
|
||||
class HostInterfaceProgressCallback : public BaseProgressCallback
|
||||
class HostInterfaceProgressCallback final : public BaseProgressCallback
|
||||
{
|
||||
public:
|
||||
HostInterfaceProgressCallback();
|
||||
@ -11,6 +11,7 @@ public:
|
||||
void PopState() override;
|
||||
|
||||
void SetCancellable(bool cancellable) override;
|
||||
void SetTitle(const char* title) override;
|
||||
void SetStatusText(const char* text) override;
|
||||
void SetProgressRange(u32 range) override;
|
||||
void SetProgressValue(u32 value) override;
|
||||
@ -22,7 +23,7 @@ public:
|
||||
|
||||
void ModalError(const char* message) override;
|
||||
bool ModalConfirmation(const char* message) override;
|
||||
u32 ModalPrompt(const char* message, u32 num_options, ...) override;
|
||||
void ModalInformation(const char* message) override;
|
||||
|
||||
private:
|
||||
void Redraw(bool force);
|
||||
|
Reference in New Issue
Block a user