mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
CShellWindow: add members to set/get commands and get current mode
This allows to use shellwindow objects with existing instance.
Origin commit data
------------------
Commit: e8a758ac61
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-06-29 (Wed, 29 Jun 2016)
This commit is contained in:
@@ -51,10 +51,14 @@ CShellWindow::CShellWindow(const std::string &Command, const int Mode, int *Res,
|
|||||||
textBox = NULL;
|
textBox = NULL;
|
||||||
frameBuffer = CFrameBuffer::getInstance();
|
frameBuffer = CFrameBuffer::getInstance();
|
||||||
|
|
||||||
|
setCommand(Command, Mode, Res, auto_exec);
|
||||||
|
}
|
||||||
|
|
||||||
|
void CShellWindow::setCommand(const std::string &Command, const int Mode, int* Res, bool auto_exec)
|
||||||
|
{
|
||||||
command = Command;
|
command = Command;
|
||||||
mode = Mode;
|
mode = Mode;
|
||||||
res = Res;
|
res = Res;
|
||||||
|
|
||||||
if (auto_exec)
|
if (auto_exec)
|
||||||
exec();
|
exec();
|
||||||
}
|
}
|
||||||
|
@@ -56,6 +56,10 @@ class CShellWindow : public sigc::trackable
|
|||||||
};
|
};
|
||||||
CShellWindow(const std::string &Command, const int Mode = 0, int* Res = NULL, bool auto_exec = true);
|
CShellWindow(const std::string &Command, const int Mode = 0, int* Res = NULL, bool auto_exec = true);
|
||||||
~CShellWindow();
|
~CShellWindow();
|
||||||
|
void setCommand(const std::string &Command, const int Mode = 0, int* Res = NULL, bool auto_exec = true);
|
||||||
|
std::string getCommand(){return command;}
|
||||||
|
int getMode(){return mode;}
|
||||||
|
|
||||||
void exec();
|
void exec();
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
Reference in New Issue
Block a user