Browse Source

Add "Plugin Communication" reference

and update copyright year for plugin header files.
pull/14653/head
Don Ho 10 months ago
parent
commit
c0eaf544a6
  1. 5
      PowerEditor/src/MISC/PluginsManager/Notepad_plus_msgs.h
  2. 11
      PowerEditor/src/MISC/PluginsManager/PluginInterface.h
  3. 2
      PowerEditor/src/WinControls/DockingWnd/Docking.h
  4. 2
      PowerEditor/src/WinControls/StaticDialog/StaticDialog.cpp
  5. 2
      PowerEditor/src/WinControls/StaticDialog/StaticDialog.h
  6. 2
      PowerEditor/src/WinControls/Window.h
  7. 2
      PowerEditor/src/menuCmdID.h

5
PowerEditor/src/MISC/PluginsManager/Notepad_plus_msgs.h

@ -15,6 +15,11 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// For more comprehensive information on plugin communication, please refer to the following resource:
// https://npp-user-manual.org/docs/plugin-communication/
#pragma once
#include <windows.h>

11
PowerEditor/src/MISC/PluginsManager/PluginInterface.h

@ -1,5 +1,5 @@
// This file is part of Notepad++ project
// Copyright (C)2021 Don HO <don.h@free.fr>
// Copyright (C)2024 Don HO <don.h@free.fr>
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@ -15,12 +15,15 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// For more comprehensive information on plugin communication, please refer to the following resource:
// https://npp-user-manual.org/docs/plugin-communication/
#pragma once
#include "Scintilla.h"
#include "Notepad_plus_msgs.h"
const int nbChar = 64;
typedef const TCHAR * (__cdecl * PFUNCGETNAME)();
@ -45,9 +48,11 @@ struct ShortcutKey
UCHAR _key = 0;
};
const int menuItemSize = 64;
struct FuncItem
{
TCHAR _itemName[nbChar] = { '\0' };
TCHAR _itemName[menuItemSize] = { '\0' };
PFUNCPLUGINCMD _pFunc = nullptr;
int _cmdID = 0;
bool _init2Check = false;

2
PowerEditor/src/WinControls/DockingWnd/Docking.h

@ -1,5 +1,5 @@
// This file is part of Notepad++ project
// Copyright (C)2021 Don HO <don.h@free.fr>
// Copyright (C)2024 Don HO <don.h@free.fr>
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by

2
PowerEditor/src/WinControls/StaticDialog/StaticDialog.cpp

@ -1,5 +1,5 @@
// This file is part of Notepad++ project
// Copyright (C)2021 Don HO <don.h@free.fr>
// Copyright (C)2024 Don HO <don.h@free.fr>
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by

2
PowerEditor/src/WinControls/StaticDialog/StaticDialog.h

@ -1,5 +1,5 @@
// This file is part of Notepad++ project
// Copyright (C)2021 Don HO <don.h@free.fr>
// Copyright (C)2024 Don HO <don.h@free.fr>
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by

2
PowerEditor/src/WinControls/Window.h

@ -1,5 +1,5 @@
// This file is part of Notepad++ project
// Copyright (C)2021 Don HO <don.h@free.fr>
// Copyright (C)2024 Don HO <don.h@free.fr>
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by

2
PowerEditor/src/menuCmdID.h

@ -1,5 +1,5 @@
// This file is part of Notepad++ project
// Copyright (C)2021 Don HO <don.h@free.fr>
// Copyright (C)2024 Don HO <don.h@free.fr>
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by

Loading…
Cancel
Save