CShellWindow: add members to set/get commands and get current mode

This allows to use shellwindow objects with existing instance.
This commit is contained in:
2016-06-29 20:38:21 +02:00
parent 61105699d4
commit e8a758ac61
2 changed files with 11 additions and 3 deletions

View File

@@ -51,10 +51,14 @@ CShellWindow::CShellWindow(const std::string &Command, const int Mode, int *Res,
textBox = NULL;
frameBuffer = CFrameBuffer::getInstance();
command = Command;
mode = Mode;
res = Res;
setCommand(Command, Mode, Res, auto_exec);
}
void CShellWindow::setCommand(const std::string &Command, const int Mode, int* Res, bool auto_exec)
{
command = Command;
mode = Mode;
res = Res;
if (auto_exec)
exec();
}