cmake-plugin: 为 IPluginFramework.h 添加增加部分注释

This commit is contained in:
zinface 2024-04-10 00:43:02 +08:00
parent 169d327485
commit 395336704a
1 changed files with 14 additions and 2 deletions

View File

@ -10,12 +10,19 @@
#define IPluginFramework_IID "com.gitee.ndd.pluginframework"
/**
使 IPluginFramework 使 : public IPluginFramework
使 IPluginFramework
IPluginFramework ndd插件
*/
class IPluginFramework
{
public:
/**
* @brief
* @note None SecondaryMenu
* @since v1.0
*/
enum MenuType {
None = 0,
@ -25,6 +32,7 @@ public:
/**
* @brief
* @note
* @since v2.0
*/
enum Do {
NewEdit = 1,
@ -33,6 +41,7 @@ public:
/**
* @brief
* @since v2.0
*/
enum SyntaxType {
Js = 0,
@ -83,7 +92,7 @@ public:
/********************************************* 插件路径注册*/
/**
* @brief registerStrFileName
* @param str_file_name
* @param str_file_name .dll/so ( .dll/so )
*/
virtual void registerStrFileName(QString str_file_name)
{
@ -102,6 +111,7 @@ public:
* @brief ()
* @param menu
* @note C QAction
* @since v1.0
*/
virtual void registerPluginActions(QMenu *rootMenu) = 0;
@ -111,6 +121,7 @@ public:
* @brief
* @param curEdit
* @note C registerCurrentEditCallback
* @since v2.0
*/
virtual void registerCurrentEditCallback(std::function<QsciScintilla*(QWidget*)> get_cur_edit_callback)
{
@ -121,7 +132,8 @@ public:
/**
* @brief Notepad
* @param plugin_callBack
* @(Do::NewEdit, Do::)
* @note (Do::NewEdit, Do::)
* @since v2.0
*/
virtual void registerPluginCallBack(std::function<bool(QWidget*, int, void*)> plugin_callback)
{