Debugger: Add work notification hook to UserInterface.
UserInterface: - Add new hook function used to notify the UI that some form of background work is taking place for informational purposes, i.e. no interaction required. Implement accordingly in GraphicalUserInterface.
This commit is contained in:
parent
0324fc408c
commit
7f77789d5b
|
@ -66,6 +66,15 @@ public:
|
|||
virtual void NotifyUser(const char* title,
|
||||
const char* message,
|
||||
user_notification_type type) = 0;
|
||||
virtual void NotifyBackgroundWorkStatus(const char* message)
|
||||
= 0;
|
||||
// this is used to inform the user about
|
||||
// background processing work, but doesn't
|
||||
// otherwise require any form of
|
||||
// user interaction, i.e. for a status bar
|
||||
// to indicate that debug information is
|
||||
// being parsed.
|
||||
|
||||
virtual int32 SynchronouslyAskUser(const char* title,
|
||||
const char* message, const char* choice1,
|
||||
const char* choice2, const char* choice3)
|
||||
|
|
|
@ -203,6 +203,12 @@ CommandLineUserInterface::NotifyUser(const char* title, const char* message,
|
|||
}
|
||||
|
||||
|
||||
void
|
||||
CommandLineUserInterface::NotifyBackgroundWorkStatus(const char* message)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
int32
|
||||
CommandLineUserInterface::SynchronouslyAskUser(const char* title,
|
||||
const char* message, const char* choice1, const char* choice2,
|
||||
|
|
|
@ -42,6 +42,8 @@ public:
|
|||
virtual void NotifyUser(const char* title,
|
||||
const char* message,
|
||||
user_notification_type type);
|
||||
virtual void NotifyBackgroundWorkStatus(
|
||||
const char* message);
|
||||
virtual int32 SynchronouslyAskUser(const char* title,
|
||||
const char* message, const char* choice1,
|
||||
const char* choice2, const char* choice3);
|
||||
|
|
|
@ -248,6 +248,13 @@ GraphicalUserInterface::NotifyUser(const char* title, const char* message,
|
|||
}
|
||||
|
||||
|
||||
void
|
||||
GraphicalUserInterface::NotifyBackgroundWorkStatus(const char* message)
|
||||
{
|
||||
fTeamWindow->DisplayBackgroundStatus(message);
|
||||
}
|
||||
|
||||
|
||||
int32
|
||||
GraphicalUserInterface::SynchronouslyAskUser(const char* title,
|
||||
const char* message, const char* choice1, const char* choice2,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
|
||||
* Copyright 2014, Rene Gollent, rene@gollent.com.
|
||||
* Copyright 2014-2015, Rene Gollent, rene@gollent.com.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef GRAPHICAL_USER_INTERFACE_H
|
||||
|
@ -38,6 +38,8 @@ public:
|
|||
virtual void NotifyUser(const char* title,
|
||||
const char* message,
|
||||
user_notification_type type);
|
||||
virtual void NotifyBackgroundWorkStatus(
|
||||
const char* message);
|
||||
virtual int32 SynchronouslyAskUser(const char* title,
|
||||
const char* message, const char* choice1,
|
||||
const char* choice2, const char* choice3);
|
||||
|
|
Loading…
Reference in New Issue