mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 17:31:20 +02:00
CKeyboardInput: add signal OnAfterSave()
supplementing for notifier handling
This commit is contained in:
@@ -578,8 +578,13 @@ int CKeyboardInput::exec(CMenuTarget* parent, const std::string &)
|
||||
delete inputString;
|
||||
inputString = NULL;
|
||||
|
||||
if ((observ) && (msg == CRCInput::RC_red))
|
||||
observ->changeNotify(title, (void *) valueString->c_str());
|
||||
if (msg == CRCInput::RC_red)
|
||||
{
|
||||
if (observ)
|
||||
observ->changeNotify(title, (void *) valueString->c_str());
|
||||
if (msg == CRCInput::RC_red)
|
||||
OnAfterSave();
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
@@ -29,6 +29,7 @@
|
||||
#include <system/localize.h>
|
||||
|
||||
#include <string>
|
||||
#include <sigc++/signal.h>
|
||||
|
||||
#define KEY_ROWS 4
|
||||
#define KEY_COLUMNS 14
|
||||
@@ -59,7 +60,7 @@ class CInputString
|
||||
std::string &getValue();
|
||||
};
|
||||
|
||||
class CKeyboardInput : public CMenuTarget
|
||||
class CKeyboardInput : public CMenuTarget, public sigc::trackable
|
||||
{
|
||||
protected:
|
||||
CFrameBuffer *frameBuffer;
|
||||
@@ -137,6 +138,7 @@ class CKeyboardInput : public CMenuTarget
|
||||
int exec( CMenuTarget* parent, const std::string & actionKey );
|
||||
|
||||
void forceSaveScreen(bool enable);
|
||||
sigc::signal<void> OnAfterSave;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user