AuboStudio SDK 0.6.3

Public 成员函数 | Private 成员函数 | Private 属性 | 友元 | 所有成员列表
arcs::aubo_scope::KeyboardManager类 参考

`#include <keyboard_manager.h>`

## Public 成员函数
| 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 注册标准键盘 更多...
void | registerStandardKeyboard (QWidget *wd, std::function< ExpressionPtr(void)> init_cb, std::function< void(ExpressionPtr)> result_cb, const std::shared_ptr< InputValidator > &validator=nullptr)
| registerStandardKeyboard 更多...
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)
| 注册字符串键盘 更多...
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)
| 注册密码键盘 更多...
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)
| 注册多行代码编辑键盘 更多...
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 成员函数
| KeyboardManager ()

## Private 属性
void * | d_ { nullptr }

## 友元
class | DataSwitch

## 详细描述

在文件 keyboard_manager.h 第 18 行定义.

## 构造及析构函数说明

## ◆ KeyboardManager() [1/3]

arcs::aubo_scope::KeyboardManager::KeyboardManager | ( | KeyboardManager & | f | ) |

## ◆ KeyboardManager() [2/3]

arcs::aubo_scope::KeyboardManager::KeyboardManager | ( | KeyboardManager && | f | ) |

## ◆ ~KeyboardManager()

virtual arcs::aubo_scope::KeyboardManager::~KeyboardManager | ( |  | ) |
| virtual

## ◆ KeyboardManager() [3/3]

arcs::aubo_scope::KeyboardManager::KeyboardManager | ( |  | ) |
| private

## 成员函数说明

## ◆ registerCodeEditerKeyboard() [1/2]

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`
| ) |  |

## ◆ registerCodeEditerKeyboard() [2/2]

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`
| ) |  |

注册多行代码编辑键盘

## ◆ registerDoubleKeyboard()

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`
| ) |  |

## ◆ registerExpressionKeyboard()

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`
| ) |  |

## ◆ registerIntegerKeyboard()

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`
| ) |  |

## ◆ registerIPAddressKeyboard()

void arcs::aubo_scope::KeyboardManager::registerIPAddressKeyboard | ( | QWidget * | wd,
|  | std::function< std::string(void)> | init_cb = `nullptr`,
|  | std::function< void(std::string)> | result_cb = `nullptr`
| ) |  |

## ◆ registerNumberKeyboard()

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`
| ) |  |

## ◆ registerPasswordKeyboard() [1/2]

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`
| ) |  |

## ◆ registerPasswordKeyboard() [2/2]

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`
| ) |  |

注册密码键盘

## ◆ registerPositiveDoubleKeyboard()

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`
| ) |  |

## ◆ registerPositiveIntegerKeyboard()

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`
| ) |  |

## ◆ registerStandardKeyboard() [1/2]

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 | 键盘的过滤器

## ◆ registerStandardKeyboard() [2/2]

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

## ◆ registerStringKeyboard() [1/2]

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`
| ) |  |

## ◆ registerStringKeyboard() [2/2]

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`
| ) |  |

注册字符串键盘

## 友元及相关函数文档

## ◆ DataSwitch

friend class DataSwitch
| friend

在文件 keyboard_manager.h 第 109 行定义.

## 类成员变量说明

## ◆ d_

void* arcs::aubo_scope::KeyboardManager::d_ { nullptr }
| private

在文件 keyboard_manager.h 第 111 行定义.

该类的文档由以下文件生成:

- include/aubo_caps/domain/user_interface/keyboard_manager.h