|
AuboStudio SDK
0.6.3
|
#include <keyboard_manager.h>
Public Member Functions | |
| KeyboardManager (KeyboardManager &f) | |
| KeyboardManager (KeyboardManager &&f) | |
| virtual | ~KeyboardManager () |
| ARCS_DEPRECATED void | registerStandardKeyboard (QWidget *wd, std::function< std::string(void)> init_cb=nullptr, const std::shared_ptr< InputValidator > &validator=nullptr, std::function< void(std::string)> result_cb=nullptr) |
| registerStandardKeyboard 注册标准键盘 More... | |
| void | registerStandardKeyboard (QWidget *wd, std::function< ExpressionPtr(void)> init_cb, std::function< void(ExpressionPtr)> result_cb, const std::shared_ptr< InputValidator > &validator=nullptr) |
| registerStandardKeyboard More... | |
| ARCS_DEPRECATED void | registerStringKeyboard (QWidget *wd, std::function< std::string(void)> init_cb=nullptr, const std::shared_ptr< InputValidator > &validator=nullptr, std::function< void(std::string)> result_cb=nullptr) |
| 注册字符串键盘 More... | |
| void | registerStringKeyboard (QWidget *wd, std::function< ExpressionPtr(void)> init_cb, std::function< void(ExpressionPtr)> result_cb, const std::shared_ptr< InputValidator > &validator=nullptr) |
| ARCS_DEPRECATED void | registerPasswordKeyboard (QWidget *wd, std::function< std::string(void)> init_cb=nullptr, const std::shared_ptr< InputValidator > &validator=nullptr, std::function< void(std::string)> result_cb=nullptr) |
| 注册密码键盘 More... | |
| void | registerPasswordKeyboard (QWidget *wd, std::function< ExpressionPtr(void)> init_cb, std::function< void(ExpressionPtr)> result_cb, const std::shared_ptr< InputValidator > &validator=nullptr) |
| ARCS_DEPRECATED void | registerCodeEditerKeyboard (QWidget *wd, std::function< std::string(void)> init_cb=nullptr, const std::shared_ptr< InputValidator > &validator=nullptr, std::function< void(std::string)> result_cb=nullptr) |
| 注册多行代码编辑键盘 More... | |
| void | registerCodeEditerKeyboard (QWidget *wd, std::function< ExpressionPtr(void)> init_cb, std::function< void(ExpressionPtr)> result_cb, const std::shared_ptr< InputValidator > &validator=nullptr) |
| void | registerNumberKeyboard (QWidget *wd, std::function< std::string(void)> init_cb=nullptr, const std::shared_ptr< InputValidator > &validator=nullptr, std::function< void(std::string)> result_cb=nullptr) |
| void | registerDoubleKeyboard (QWidget *wd, std::function< std::string(void)> init_cb=nullptr, const std::shared_ptr< InputValidator > &validator=nullptr, std::function< void(std::string)> result_cb=nullptr) |
| void | registerPositiveDoubleKeyboard (QWidget *wd, std::function< std::string(void)> init_cb=nullptr, const std::shared_ptr< InputValidator > &validator=nullptr, std::function< void(std::string)> result_cb=nullptr) |
| void | registerIntegerKeyboard (QWidget *wd, std::function< std::string(void)> init_cb=nullptr, const std::shared_ptr< InputValidator > &validator=nullptr, std::function< void(std::string)> result_cb=nullptr) |
| void | registerPositiveIntegerKeyboard (QWidget *wd, std::function< std::string(void)> init_cb=nullptr, const std::shared_ptr< InputValidator > &validator=nullptr, std::function< void(std::string)> result_cb=nullptr) |
| void | registerIPAddressKeyboard (QWidget *wd, std::function< std::string(void)> init_cb=nullptr, std::function< void(std::string)> result_cb=nullptr) |
| void | registerExpressionKeyboard (QWidget *wd, std::function< ExpressionPtr(void)> init_cb=nullptr, std::function< void(ExpressionPtr result_value)> result_cb=nullptr, std::shared_ptr< InputValidator > validator=nullptr) |
Private Member Functions | |
| KeyboardManager () | |
Private Attributes | |
| void * | d_ { nullptr } |
Friends | |
| class | DataSwitch |
Definition at line 18 of file keyboard_manager.h.
| arcs::aubo_scope::KeyboardManager::KeyboardManager | ( | KeyboardManager & | f | ) |
| arcs::aubo_scope::KeyboardManager::KeyboardManager | ( | KeyboardManager && | f | ) |
|
virtual |
|
private |
| ARCS_DEPRECATED void arcs::aubo_scope::KeyboardManager::registerCodeEditerKeyboard | ( | QWidget * | wd, |
| std::function< std::string(void)> | init_cb = nullptr, |
||
| const std::shared_ptr< InputValidator > & | validator = nullptr, |
||
| std::function< void(std::string)> | result_cb = nullptr |
||
| ) |
注册多行代码编辑键盘
| void arcs::aubo_scope::KeyboardManager::registerCodeEditerKeyboard | ( | QWidget * | wd, |
| std::function< ExpressionPtr(void)> | init_cb, | ||
| std::function< void(ExpressionPtr)> | result_cb, | ||
| const std::shared_ptr< InputValidator > & | validator = nullptr |
||
| ) |
| void arcs::aubo_scope::KeyboardManager::registerDoubleKeyboard | ( | QWidget * | wd, |
| std::function< std::string(void)> | init_cb = nullptr, |
||
| const std::shared_ptr< InputValidator > & | validator = nullptr, |
||
| std::function< void(std::string)> | result_cb = nullptr |
||
| ) |
| void arcs::aubo_scope::KeyboardManager::registerExpressionKeyboard | ( | QWidget * | wd, |
| std::function< ExpressionPtr(void)> | init_cb = nullptr, |
||
| std::function< void(ExpressionPtr result_value)> | result_cb = nullptr, |
||
| std::shared_ptr< InputValidator > | validator = nullptr |
||
| ) |
| void arcs::aubo_scope::KeyboardManager::registerIntegerKeyboard | ( | QWidget * | wd, |
| std::function< std::string(void)> | init_cb = nullptr, |
||
| const std::shared_ptr< InputValidator > & | validator = nullptr, |
||
| std::function< void(std::string)> | result_cb = nullptr |
||
| ) |
| void arcs::aubo_scope::KeyboardManager::registerIPAddressKeyboard | ( | QWidget * | wd, |
| std::function< std::string(void)> | init_cb = nullptr, |
||
| std::function< void(std::string)> | result_cb = nullptr |
||
| ) |
| void arcs::aubo_scope::KeyboardManager::registerNumberKeyboard | ( | QWidget * | wd, |
| std::function< std::string(void)> | init_cb = nullptr, |
||
| const std::shared_ptr< InputValidator > & | validator = nullptr, |
||
| std::function< void(std::string)> | result_cb = nullptr |
||
| ) |
| ARCS_DEPRECATED void arcs::aubo_scope::KeyboardManager::registerPasswordKeyboard | ( | QWidget * | wd, |
| std::function< std::string(void)> | init_cb = nullptr, |
||
| const std::shared_ptr< InputValidator > & | validator = nullptr, |
||
| std::function< void(std::string)> | result_cb = nullptr |
||
| ) |
注册密码键盘
| void arcs::aubo_scope::KeyboardManager::registerPasswordKeyboard | ( | QWidget * | wd, |
| std::function< ExpressionPtr(void)> | init_cb, | ||
| std::function< void(ExpressionPtr)> | result_cb, | ||
| const std::shared_ptr< InputValidator > & | validator = nullptr |
||
| ) |
| void arcs::aubo_scope::KeyboardManager::registerPositiveDoubleKeyboard | ( | QWidget * | wd, |
| std::function< std::string(void)> | init_cb = nullptr, |
||
| const std::shared_ptr< InputValidator > & | validator = nullptr, |
||
| std::function< void(std::string)> | result_cb = nullptr |
||
| ) |
| void arcs::aubo_scope::KeyboardManager::registerPositiveIntegerKeyboard | ( | QWidget * | wd, |
| std::function< std::string(void)> | init_cb = nullptr, |
||
| const std::shared_ptr< InputValidator > & | validator = nullptr, |
||
| std::function< void(std::string)> | result_cb = nullptr |
||
| ) |
| ARCS_DEPRECATED void arcs::aubo_scope::KeyboardManager::registerStandardKeyboard | ( | QWidget * | wd, |
| std::function< std::string(void)> | init_cb = nullptr, |
||
| const std::shared_ptr< InputValidator > & | validator = nullptr, |
||
| std::function< void(std::string)> | result_cb = nullptr |
||
| ) |
registerStandardKeyboard 注册标准键盘
| wd | 当前要书写的控件,比如 ui->lineedit |
| init_cb | 初始 edit 自带的字符串输出到键盘 |
| validator | 键盘的过滤器 |
| result_cb | 把当前键盘中的值发送到 edit |
| void arcs::aubo_scope::KeyboardManager::registerStandardKeyboard | ( | QWidget * | wd, |
| std::function< ExpressionPtr(void)> | init_cb, | ||
| std::function< void(ExpressionPtr)> | result_cb, | ||
| const std::shared_ptr< InputValidator > & | validator = nullptr |
||
| ) |
registerStandardKeyboard
| wd | 当前要书写的控件,比如 ui->lineedit |
| init_cb | 当前控件存储的内容以表达式指针的形式表示 将指针指向的内容发送到键盘 |
| result_cb 将当前键盘的内容的 | Expression 存储 然后已 string 的格式显示到控件 |
| validator | 键盘的过滤器 |
| ARCS_DEPRECATED void arcs::aubo_scope::KeyboardManager::registerStringKeyboard | ( | QWidget * | wd, |
| std::function< std::string(void)> | init_cb = nullptr, |
||
| const std::shared_ptr< InputValidator > & | validator = nullptr, |
||
| std::function< void(std::string)> | result_cb = nullptr |
||
| ) |
注册字符串键盘
| void arcs::aubo_scope::KeyboardManager::registerStringKeyboard | ( | QWidget * | wd, |
| std::function< ExpressionPtr(void)> | init_cb, | ||
| std::function< void(ExpressionPtr)> | result_cb, | ||
| const std::shared_ptr< InputValidator > & | validator = nullptr |
||
| ) |
|
friend |
Definition at line 109 of file keyboard_manager.h.
|
private |
Definition at line 111 of file keyboard_manager.h.
1.8.11