2012-12-19 09:30:18 +00:00
|
|
|
/****************************************************************************
|
|
|
|
* *
|
2015-11-10 05:21:49 +00:00
|
|
|
* Project64 - A Nintendo 64 emulator. *
|
2012-12-19 09:30:18 +00:00
|
|
|
* http://www.pj64-emu.com/ *
|
|
|
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
|
|
|
* *
|
|
|
|
* License: *
|
|
|
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
|
|
|
* *
|
|
|
|
****************************************************************************/
|
|
|
|
#pragma once
|
2008-09-18 03:15:49 +00:00
|
|
|
|
2015-12-04 06:49:31 +00:00
|
|
|
#include "../Settings/NotificationSettings.h"
|
2015-12-06 09:59:58 +00:00
|
|
|
#include <Project64-core/Notification.h>
|
2008-09-18 03:15:49 +00:00
|
|
|
|
|
|
|
class CSettings;
|
|
|
|
|
2015-12-06 09:59:58 +00:00
|
|
|
class CNotificationImp :
|
|
|
|
public CNotification,
|
2015-11-15 20:07:02 +00:00
|
|
|
CNotificationSettings
|
2008-09-18 03:15:49 +00:00
|
|
|
{
|
|
|
|
public:
|
2015-12-06 09:59:58 +00:00
|
|
|
CNotificationImp(void);
|
2015-11-15 20:07:02 +00:00
|
|
|
|
|
|
|
void AppInitDone(void);
|
|
|
|
|
|
|
|
// Make sure we are not in full screen
|
|
|
|
void WindowMode(void) const;
|
|
|
|
|
|
|
|
//Error Messages
|
2015-12-23 20:04:36 +00:00
|
|
|
virtual void DisplayError(const char * Message) const;
|
2015-11-15 20:07:02 +00:00
|
|
|
virtual void DisplayError(LanguageStringID StringID) const;
|
|
|
|
|
2015-12-23 20:04:36 +00:00
|
|
|
virtual void FatalError(const char * Message) const;
|
2015-11-15 20:07:02 +00:00
|
|
|
virtual void FatalError(LanguageStringID StringID) const;
|
|
|
|
|
|
|
|
//User Feedback
|
2015-12-23 20:04:36 +00:00
|
|
|
virtual void DisplayMessage(int DisplayTime, const char * Message) const;
|
2015-11-15 20:07:02 +00:00
|
|
|
virtual void DisplayMessage(int DisplayTime, LanguageStringID StringID) const;
|
|
|
|
|
2015-12-23 20:04:36 +00:00
|
|
|
virtual void DisplayMessage2(const char * Message) const;
|
2015-12-06 09:59:58 +00:00
|
|
|
|
|
|
|
// Ask a Yes/No Question to the user, yes = true, no = false
|
2015-12-23 20:04:36 +00:00
|
|
|
virtual bool AskYesNoQuestion(const char * Question) const;
|
2015-12-06 09:59:58 +00:00
|
|
|
|
2015-12-09 11:37:58 +00:00
|
|
|
virtual void BreakPoint(const char * FileName, int32_t LineNumber);
|
2015-11-15 20:07:02 +00:00
|
|
|
|
|
|
|
void SetWindowCaption(const wchar_t * Caption);
|
|
|
|
|
|
|
|
//Remember roms loaded and Rom Dir selected
|
|
|
|
void AddRecentDir(const char * RomDir);
|
|
|
|
|
|
|
|
//Gui for responses
|
|
|
|
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);
|
2013-01-03 08:51:00 +00:00
|
|
|
|
|
|
|
private:
|
2015-12-06 09:59:58 +00:00
|
|
|
CNotificationImp(const CNotificationImp&); // Disable copy constructor
|
|
|
|
CNotificationImp& operator=(const CNotificationImp&); // Disable assignment
|
2013-01-03 08:51:00 +00:00
|
|
|
|
2015-11-15 20:07:02 +00:00
|
|
|
CMainGui * m_hWnd;
|
|
|
|
CGfxPlugin * m_gfxPlugin;
|
2013-01-03 08:51:00 +00:00
|
|
|
|
2015-11-15 20:07:02 +00:00
|
|
|
mutable time_t m_NextMsg;
|
2008-09-18 03:15:49 +00:00
|
|
|
};
|
|
|
|
|
2015-12-06 09:59:58 +00:00
|
|
|
CNotificationImp & Notify(void);
|