|
|
@@ -13,11 +13,11 @@
|
|
|
|
|
|
struct ndd_proc_data
|
|
|
{
|
|
|
- QString m_strPlugName; //²å¼þÃû³Æ ±ØÑ¡
|
|
|
- QString m_strFilePath; //lib ²å¼þµÄÈ«¾Ö·¾¶¡£±ØÑ¡
|
|
|
- QString m_strComment; //²å¼þ˵Ã÷
|
|
|
- QString m_version; //°æ±¾ºÅÂë¡£¿ÉÑ¡
|
|
|
- QString m_auther;//×÷ÕßÃû³Æ¡£¿ÉÑ¡
|
|
|
+ QString m_strPlugName; //�件�称 必选
|
|
|
+ QString m_strFilePath; //lib �件的全局路径。必选
|
|
|
+ QString m_strComment; //�件说明
|
|
|
+ QString m_version; //版本å�·ç �。å�¯é€‰
|
|
|
+ QString m_auther;//作者�称。�选
|
|
|
};
|
|
|
|
|
|
|
|
|
@@ -25,3 +25,32 @@ typedef struct ndd_proc_data NDD_PROC_DATA;
|
|
|
|
|
|
typedef bool (*NDD_PROC_IDENTIFY_CALLBACK)(NDD_PROC_DATA* pProcData);
|
|
|
typedef void (*NDD_PROC_FOUND_CALLBACK)(NDD_PROC_DATA* pProcData, void* pUserData);
|
|
|
+
|
|
|
+
|
|
|
+/***********在编译�件时�供的内容**************/
|
|
|
+
|
|
|
+#ifdef NOTEPAD_PLUGIN_MANAGER
|
|
|
+
|
|
|
+#if defined(Q_OS_WIN)
|
|
|
+#if defined(NDD_EXPORTDLL)
|
|
|
+#define NDD_EXPORT __declspec(dllexport)
|
|
|
+#else
|
|
|
+#define NDD_EXPORT __declspec(dllimport)
|
|
|
+#endif
|
|
|
+#endif
|
|
|
+
|
|
|
+#include <Qsci/qsciscintilla.h>
|
|
|
+
|
|
|
+#ifdef __cplusplus
|
|
|
+ extern "C" {
|
|
|
+#endif
|
|
|
+
|
|
|
+ NDD_EXPORT bool NDD_PROC_IDENTIFY(NDD_PROC_DATA* pProcData);
|
|
|
+ NDD_EXPORT int NDD_PROC_MAIN(QWidget* pNotepad, const QString& strFileName, std::function<QsciScintilla* ()>getCurEdit);
|
|
|
+
|
|
|
+#ifdef __cplusplus
|
|
|
+ }
|
|
|
+#endif
|
|
|
+
|
|
|
+#endif //NOTEPAD_PLUGIN_MANAGER
|
|
|
+/***********在编译�件时�供的内容**************/
|