2016-01-27 09:11:59 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "../Settings/NotificationSettings.h"
|
|
|
|
#include <Project64-core/Notification.h>
|
|
|
|
|
|
|
|
class CSettings;
|
|
|
|
|
|
|
|
class CNotificationImp :
|
|
|
|
public CNotification,
|
|
|
|
CNotificationSettings
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CNotificationImp(void);
|
|
|
|
|
|
|
|
void AppInitDone(void);
|
|
|
|
|
|
|
|
// Make sure we are not in full screen
|
|
|
|
void WindowMode(void) const;
|
|
|
|
|
2021-03-17 08:31:45 +00:00
|
|
|
// Error messages
|
2016-01-27 09:11:59 +00:00
|
|
|
virtual void DisplayError(const char * Message) const;
|
|
|
|
virtual void DisplayError(LanguageStringID StringID) const;
|
|
|
|
|
|
|
|
virtual void FatalError(const char * Message) const;
|
|
|
|
virtual void FatalError(LanguageStringID StringID) const;
|
|
|
|
|
2021-03-17 08:31:45 +00:00
|
|
|
// User feedback
|
2019-03-18 01:04:05 +00:00
|
|
|
virtual void DisplayWarning(const char * Message) const;
|
|
|
|
virtual void DisplayWarning(LanguageStringID StringID) const;
|
|
|
|
|
2016-01-27 09:11:59 +00:00
|
|
|
virtual void DisplayMessage(int DisplayTime, const char * Message) const;
|
|
|
|
virtual void DisplayMessage(int DisplayTime, LanguageStringID StringID) const;
|
|
|
|
|
|
|
|
virtual void DisplayMessage2(const char * Message) const;
|
|
|
|
|
2021-03-17 08:31:45 +00:00
|
|
|
// Ask a yes/no question to the user, yes = true, no = false
|
2016-01-27 09:11:59 +00:00
|
|
|
virtual bool AskYesNoQuestion(const char * Question) const;
|
|
|
|
|
|
|
|
virtual void BreakPoint(const char * FileName, int32_t LineNumber);
|
|
|
|
|
|
|
|
void SetWindowCaption(const wchar_t * Caption);
|
|
|
|
|
2021-03-17 08:31:45 +00:00
|
|
|
// Remember ROMS loaded and ROM directory selected
|
2016-01-27 09:11:59 +00:00
|
|
|
void AddRecentDir(const char * RomDir);
|
|
|
|
|
2021-03-17 08:31:45 +00:00
|
|
|
// GUI for responses
|
2016-01-27 09:11:59 +00:00
|
|
|
void SetMainWindow(CMainGui * Gui);
|
|
|
|
void RefreshMenu(void);
|
|
|
|
void HideRomBrowser(void);
|
|
|
|
void ShowRomBrowser(void);
|
|
|
|
void BringToTop(void);
|
|
|
|
bool ProcessGuiMessages(void) const;
|
|
|
|
void ChangeFullScreen(void) const;
|
|
|
|
void SetGfxPlugin(CGfxPlugin * Plugin);
|
|
|
|
|
|
|
|
private:
|
|
|
|
CNotificationImp(const CNotificationImp&); // Disable copy constructor
|
|
|
|
CNotificationImp& operator=(const CNotificationImp&); // Disable assignment
|
|
|
|
|
|
|
|
CMainGui * m_hWnd;
|
|
|
|
CGfxPlugin * m_gfxPlugin;
|
|
|
|
|
|
|
|
mutable time_t m_NextMsg;
|
|
|
|
};
|
|
|
|
|
|
|
|
CNotificationImp & Notify(void);
|