MCPcopy Create free account
hub / github.com/SpartanJ/eepp / setCommandPalette

Method setCommandPalette

src/tools/ecode/commandpalette.cpp:33–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31CommandPalette::CommandPalette( const std::shared_ptr<ThreadPool>& pool ) : mPool( pool ) {}
32
33void CommandPalette::setCommandPalette( const std::vector<std::string>& commandList,
34 const UI::KeyBindings& keybindings ) {
35 mCommandPalette = build( commandList, keybindings );
36 mBaseModel = CommandPaletteModel::create( 3, mCommandPalette );
37 if ( !mCurModel )
38 mCurModel = mBaseModel;
39}
40
41const std::vector<std::vector<std::string>>& CommandPalette::getCommandPalette() const {
42 return mCommandPalette;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected