openMSX
|
#include <GlobalCommandController.hh>
Public Member Functions | |
GlobalCommandController (EventDistributor &eventDistributor, GlobalCliComm &cliComm, Reactor &reactor) | |
GlobalCommandController (const GlobalCommandController &)=delete | |
GlobalCommandController (GlobalCommandController &&)=delete | |
GlobalCommandController & | operator= (const GlobalCommandController &)=delete |
GlobalCommandController & | operator= (GlobalCommandController &&)=delete |
~GlobalCommandController () | |
InfoCommand & | getOpenMSXInfoCommand () |
void | source (const std::string &script) |
Executes all defined auto commands. | |
void | registerProxyCommand (std::string_view name) |
void | unregisterProxyCommand (std::string_view name) |
void | registerProxySetting (const Setting &setting) |
void | unregisterProxySetting (const Setting &setting) |
void | registerCompleter (CommandCompleter &completer, std::string_view str) override |
(Un)register a command completer, used to complete build-in Tcl cmds | |
void | unregisterCompleter (CommandCompleter &completer, std::string_view str) override |
void | registerCommand (Command &command, zstring_view str) override |
(Un)register a command | |
void | unregisterCommand (Command &command, std::string_view str) override |
TclObject | executeCommand (zstring_view command, CliConnection *connection=nullptr) override |
Execute the given command. | |
void | registerSetting (Setting &setting) override |
TODO. | |
void | unregisterSetting (Setting &setting) override |
CliComm & | getCliComm () override |
Interpreter & | getInterpreter () override |
std::string | tabCompletion (std::string_view command) |
Complete the given command. | |
bool | isComplete (zstring_view command) |
Returns true iff the command is complete (all braces, quotes etc. | |
SettingsConfig & | getSettingsConfig () |
SettingsManager & | getSettingsManager () |
CliConnection * | getConnection () const |
Reactor & | getReactor () const |
const HotKey & | getHotKey () const |
Additional Inherited Members | |
Protected Member Functions inherited from openmsx::CommandController | |
CommandController ()=default | |
~CommandController ()=default | |
Definition at line 38 of file GlobalCommandController.hh.
openmsx::GlobalCommandController::GlobalCommandController | ( | EventDistributor & | eventDistributor, |
GlobalCliComm & | cliComm, | ||
Reactor & | reactor | ||
) |
Definition at line 34 of file GlobalCommandController.cc.
|
delete |
|
delete |
|
default |
|
overridevirtual |
Execute the given command.
Implements openmsx::CommandController.
Definition at line 304 of file GlobalCommandController.cc.
References openmsx::Interpreter::execute().
Referenced by openmsx::MSXCommandController::executeCommand().
|
overridevirtual |
Implements openmsx::CommandController.
Definition at line 121 of file GlobalCommandController.cc.
Referenced by source().
|
inline |
Definition at line 93 of file GlobalCommandController.hh.
|
inline |
Definition at line 95 of file GlobalCommandController.hh.
|
overridevirtual |
Implements openmsx::CommandController.
Definition at line 126 of file GlobalCommandController.cc.
Referenced by openmsx::Reactor::getInterpreter(), openmsx::MSXCommandController::getInterpreter(), openmsx::HotKey::loadBind(), openmsx::HotKey::loadUnbind(), openmsx::MSXCommandController::MSXCommandController(), registerProxySetting(), openmsx::MSXCommandController::registerSetting(), unregisterProxySetting(), openmsx::MSXCommandController::unregisterSetting(), and openmsx::MSXCommandController::~MSXCommandController().
|
inline |
Definition at line 51 of file GlobalCommandController.hh.
|
inline |
Definition at line 94 of file GlobalCommandController.hh.
|
inline |
Definition at line 91 of file GlobalCommandController.hh.
Referenced by openmsx::CommandLineParser::parse(), and openmsx::GlobalSettings::~GlobalSettings().
|
inline |
Definition at line 92 of file GlobalCommandController.hh.
References openmsx::SettingsConfig::getSettingsManager().
Referenced by registerProxySetting(), registerSetting(), openmsx::MSXCommandController::registerSetting(), openmsx::ImGuiReverseBar::showMenu(), openmsx::MSXCommandController::transferSettings(), unregisterProxySetting(), unregisterSetting(), and openmsx::MSXCommandController::unregisterSetting().
bool openmsx::GlobalCommandController::isComplete | ( | zstring_view | command | ) |
Returns true iff the command is complete (all braces, quotes etc.
are balanced).
Definition at line 299 of file GlobalCommandController.cc.
References openmsx::Interpreter::isComplete().
|
delete |
|
delete |
|
overridevirtual |
(Un)register a command
Implements openmsx::CommandController.
Definition at line 131 of file GlobalCommandController.cc.
References openmsx::Interpreter::registerCommand().
Referenced by openmsx::MSXCommandController::registerCommand().
|
overridevirtual |
(Un)register a command completer, used to complete build-in Tcl cmds
Implements openmsx::CommandController.
Definition at line 153 of file GlobalCommandController.cc.
References openmsx::GlobalCommandControllerBase::commandCompleters.
Referenced by openmsx::MSXCommandController::registerCompleter().
void openmsx::GlobalCommandController::registerProxyCommand | ( | std::string_view | name | ) |
Definition at line 63 of file GlobalCommandController.cc.
References end().
Referenced by openmsx::MSXCommandController::registerCommand().
void openmsx::GlobalCommandController::registerProxySetting | ( | const Setting & | setting | ) |
Definition at line 91 of file GlobalCommandController.cc.
References end(), getInterpreter(), getSettingsManager(), openmsx::SettingsManager::registerSetting(), openmsx::Interpreter::registerSetting(), and setting.
Referenced by openmsx::MSXCommandController::registerSetting().
|
overridevirtual |
TODO.
Implements openmsx::CommandController.
Definition at line 170 of file GlobalCommandController.cc.
References getSettingsManager(), openmsx::SettingsManager::registerSetting(), openmsx::Interpreter::registerSetting(), and setting.
void openmsx::GlobalCommandController::source | ( | const std::string & | script | ) |
Executes all defined auto commands.
Definition at line 311 of file GlobalCommandController.cc.
References openmsx::Interpreter::executeFile(), getCliComm(), openmsx::LocalFileReference::getFilename(), and openmsx::CliComm::printWarning().
string openmsx::GlobalCommandController::tabCompletion | ( | std::string_view | command | ) |
Complete the given command.
Definition at line 322 of file GlobalCommandController.cc.
References TclParser::getLast(), join(), openmsx::Interpreter::parse(), strCat(), and tabCompletion().
Referenced by tabCompletion().
|
overridevirtual |
Implements openmsx::CommandController.
Definition at line 141 of file GlobalCommandController.cc.
References openmsx::Interpreter::unregisterCommand().
Referenced by openmsx::MSXCommandController::unregisterCommand().
|
overridevirtual |
Implements openmsx::CommandController.
Definition at line 161 of file GlobalCommandController.cc.
References openmsx::GlobalCommandControllerBase::commandCompleters.
Referenced by openmsx::MSXCommandController::unregisterCompleter().
void openmsx::GlobalCommandController::unregisterProxyCommand | ( | std::string_view | name | ) |
Definition at line 73 of file GlobalCommandController.cc.
References end().
Referenced by openmsx::MSXCommandController::unregisterCommand().
void openmsx::GlobalCommandController::unregisterProxySetting | ( | const Setting & | setting | ) |
Definition at line 107 of file GlobalCommandController.cc.
References end(), getInterpreter(), getSettingsManager(), move_pop_back(), setting, openmsx::SettingsManager::unregisterSetting(), and openmsx::Interpreter::unregisterSetting().
Referenced by openmsx::MSXCommandController::unregisterSetting().
|
overridevirtual |
Implements openmsx::CommandController.
Definition at line 176 of file GlobalCommandController.cc.
References getSettingsManager(), setting, openmsx::SettingsManager::unregisterSetting(), and openmsx::Interpreter::unregisterSetting().