Debugger: UserInterface enhancements.
Add hook to UserInterface to query if Debugger is currently being run interactively or not. Add corresponding implementations in {CommandLine,Graphical}UserInterface.
This commit is contained in:
parent
778ef3f92b
commit
bbf320ecfe
@ -53,6 +53,8 @@ public:
|
||||
// shut down the UI *now* -- no more user
|
||||
// feedback
|
||||
|
||||
virtual bool IsInteractive() const = 0;
|
||||
|
||||
virtual status_t LoadSettings(const TeamUiSettings* settings)
|
||||
= 0;
|
||||
virtual status_t SaveSettings(TeamUiSettings*& settings)
|
||||
|
@ -171,6 +171,15 @@ CommandLineUserInterface::Terminate()
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
CommandLineUserInterface::IsInteractive() const
|
||||
{
|
||||
// if we were invoked solely for the purpose of saving a crash report,
|
||||
// then we're not taking user input into account.
|
||||
return !fSaveReport;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
CommandLineUserInterface::LoadSettings(const TeamUiSettings* settings)
|
||||
{
|
||||
|
@ -34,6 +34,8 @@ public:
|
||||
// shut down the UI *now* -- no more user
|
||||
// feedback
|
||||
|
||||
virtual bool IsInteractive() const;
|
||||
|
||||
virtual status_t LoadSettings(const TeamUiSettings* settings);
|
||||
virtual status_t SaveSettings(TeamUiSettings*& settings) const;
|
||||
|
||||
|
@ -191,6 +191,13 @@ GraphicalUserInterface::Terminate()
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
GraphicalUserInterface::IsInteractive() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
GraphicalUserInterface::LoadSettings(const TeamUiSettings* settings)
|
||||
{
|
||||
|
@ -30,6 +30,8 @@ public:
|
||||
// shut down the UI *now* -- no more user
|
||||
// feedback
|
||||
|
||||
virtual bool IsInteractive() const;
|
||||
|
||||
virtual status_t LoadSettings(const TeamUiSettings* settings);
|
||||
virtual status_t SaveSettings(TeamUiSettings*& settings) const;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user