@@ -11,7 +11,7 @@ namespace slave
11
11
struct cmd : cmd_base {
12
12
cmd () : cmd_base(cmd_) {};
13
13
virtual ~cmd () {};
14
- virtual void operator ()(Widget * w, const fc_light::variant& v) const override {
14
+ virtual void operator ()(keychain_gui_win * w, const fc_light::variant& v) const override {
15
15
throw std::runtime_error (" operation is not implemented" );
16
16
};
17
17
using params_t = void ;
@@ -24,10 +24,10 @@ namespace slave
24
24
virtual ~cmd () {};
25
25
struct params {std::string rawtrx;};
26
26
using params_t = params;
27
- virtual void operator ()(Widget * w, const fc_light::variant& v) const override {
27
+ virtual void operator ()(keychain_gui_win * w, const fc_light::variant& v) const override {
28
28
try {
29
29
auto a = v.as <params_t >();
30
- w->pte ->setText (QString (a.rawtrx .c_str ()));
30
+ // w->pte->setText(QString(a.rawtrx.c_str()));
31
31
}
32
32
catch (const std::exception &e) {throw std::runtime_error (e.what ());}
33
33
catch (const fc_light::exception &e) {throw std::runtime_error (e.what ());}
@@ -39,7 +39,7 @@ namespace slave
39
39
cmd () : cmd_base(cmds::close) {};
40
40
virtual ~cmd () {};
41
41
using params_t = void ;
42
- virtual void operator ()(Widget * w, const fc_light::variant& v) const override {
42
+ virtual void operator ()(keychain_gui_win * w, const fc_light::variant& v) const override {
43
43
try { w->close (); }
44
44
catch (const std::exception &e) {throw std::runtime_error (e.what ());}
45
45
catch (const fc_light::exception &e) {throw std::runtime_error (e.what ());}
@@ -52,12 +52,12 @@ namespace slave
52
52
virtual ~cmd () {};
53
53
struct params { bool caps, num, shift; };
54
54
using params_t = params;
55
- virtual void operator ()(Widget * w, const fc_light::variant& v) const override {
55
+ virtual void operator ()(keychain_gui_win * w, const fc_light::variant& v) const override {
56
56
try {
57
57
auto a = v.as <params_t >();
58
- a.caps ? w->caps ->setText (" caps: on" ) : w->caps ->setText (" caps: off" );
59
- a.num ? w->num ->setText (" num: on" ) : w->num ->setText (" num: off" );
60
- a.shift ? w->shift ->setText (" shift: on" ) : w->shift ->setText (" shift: off" );
58
+ // a.caps ? w->caps->setText("caps: on") : w->caps->setText("caps: off");
59
+ // a.num ? w->num->setText("num: on") : w->num->setText("num: off");
60
+ // a.shift ? w->shift->setText("shift: on") : w->shift->setText("shift: off");
61
61
}
62
62
catch (const std::exception &e) {throw std::runtime_error (e.what ());}
63
63
catch (const fc_light::exception &e) {throw std::runtime_error (e.what ());}
@@ -70,10 +70,10 @@ namespace slave
70
70
virtual ~cmd () {};
71
71
struct params {int len;};
72
72
using params_t = params;
73
- virtual void operator ()(Widget * w, const fc_light::variant& v) const override {
73
+ virtual void operator ()(keychain_gui_win * w, const fc_light::variant& v) const override {
74
74
try {
75
75
auto a = v.as <params_t >();
76
- w->ple ->setText (QString (a.len , ' *' ));
76
+ // w->ple->setText(QString (a.len, '*'));
77
77
}
78
78
catch (const std::exception &e) {throw std::runtime_error (e.what ());}
79
79
catch (const fc_light::exception &e) {throw std::runtime_error (e.what ());}
0 commit comments