From 91e3594836e3ca1936606499ab9a32239b53f571 Mon Sep 17 00:00:00 2001 From: Scott Sumner <30118311+sasumner@users.noreply.github.com> Date: Thu, 29 Oct 2020 13:02:52 -0400 Subject: [PATCH] Remove some unused files from project Close #9075 --- .../MISC/PluginsManager/deprecatedSymbols.h | 80 ------------------ PowerEditor/src/StaticControl.h | 45 ---------- .../src/WinControls/TreeView/TreeView.cpp | 84 ------------------- .../src/WinControls/TreeView/TreeView.h | 55 ------------ PowerEditor/src/WinControls/WindowInterface.h | 44 ---------- 5 files changed, 308 deletions(-) delete mode 100644 PowerEditor/src/MISC/PluginsManager/deprecatedSymbols.h delete mode 100644 PowerEditor/src/StaticControl.h delete mode 100644 PowerEditor/src/WinControls/TreeView/TreeView.cpp delete mode 100644 PowerEditor/src/WinControls/TreeView/TreeView.h delete mode 100644 PowerEditor/src/WinControls/WindowInterface.h diff --git a/PowerEditor/src/MISC/PluginsManager/deprecatedSymbols.h b/PowerEditor/src/MISC/PluginsManager/deprecatedSymbols.h deleted file mode 100644 index 18797e6a..00000000 --- a/PowerEditor/src/MISC/PluginsManager/deprecatedSymbols.h +++ /dev/null @@ -1,80 +0,0 @@ -// This file is part of Notepad++ project -// Copyright (C)2003 Don HO -// -// 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 the Free Software Foundation; either -// version 2 of the License, or (at your option) any later version. -// -// Note that the GPL places important restrictions on "derived works", yet -// it does not provide a detailed definition of that term. To avoid -// misunderstandings, we consider an application to constitute a -// "derivative work" for the purpose of this license if it does any of the -// following: -// 1. Integrates source code from Notepad++. -// 2. Integrates/includes/aggregates Notepad++ into a proprietary executable -// installer, such as those produced by InstallShield. -// 3. Links to a library or executes a program that does any of the above. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - - -#define NOTEPADPLUS_USER (WM_USER + 1000) - -#define WM_GETCURRENTSCINTILLA (NOTEPADPLUS_USER + 4) -#define WM_GETCURRENTLANGTYPE (NOTEPADPLUS_USER + 5) -#define WM_SETCURRENTLANGTYPE (NOTEPADPLUS_USER + 6) -#define WM_NBOPENFILES (NOTEPADPLUS_USER + 7) -#define WM_GETOPENFILENAMES (NOTEPADPLUS_USER + 8) - -#define WM_MODELESSDIALOG (NOTEPADPLUS_USER + 12) -#define WM_NBSESSIONFILES (NOTEPADPLUS_USER + 13) -#define WM_GETSESSIONFILES (NOTEPADPLUS_USER + 14) -#define WM_SAVESESSION (NOTEPADPLUS_USER + 15) -#define WM_SAVECURRENTSESSION (NOTEPADPLUS_USER + 16) -#define WM_GETOPENFILENAMES_PRIMARY (NOTEPADPLUS_USER + 17) -#define WM_GETOPENFILENAMES_SECOND (NOTEPADPLUS_USER + 18) - -#define WM_CREATESCINTILLAHANDLE (NOTEPADPLUS_USER + 20) -#define WM_DESTROYSCINTILLAHANDLE (NOTEPADPLUS_USER + 21) -#define WM_GETNBUSERLANG (NOTEPADPLUS_USER + 22) -#define WM_GETCURRENTDOCINDEX (NOTEPADPLUS_USER + 23) -#define WM_SETSTATUSBAR (NOTEPADPLUS_USER + 24) -#define WM_GETMENUHANDLE (NOTEPADPLUS_USER + 25) -#define WM_ENCODE_SCI (NOTEPADPLUS_USER + 26) -#define WM_DECODE_SCI (NOTEPADPLUS_USER + 27) -#define WM_ACTIVATE_DOC (NOTEPADPLUS_USER + 28) -#define WM_LAUNCH_FINDINFILESDLG (NOTEPADPLUS_USER + 29) -#define WM_DMM_SHOW (NOTEPADPLUS_USER + 30) -#define WM_DMM_HIDE (NOTEPADPLUS_USER + 31) -#define WM_DMM_UPDATEDISPINFO (NOTEPADPLUS_USER + 32) -#define WM_DMM_REGASDCKDLG (NOTEPADPLUS_USER + 33) -#define WM_LOADSESSION (NOTEPADPLUS_USER + 34) -#define WM_DMM_VIEWOTHERTAB (NOTEPADPLUS_USER + 35) -#define WM_RELOADFILE (NOTEPADPLUS_USER + 36) -#define WM_SWITCHTOFILE (NOTEPADPLUS_USER + 37) -#define WM_SAVECURRENTFILE (NOTEPADPLUS_USER + 38) -#define WM_SAVEALLFILES (NOTEPADPLUS_USER + 39) -#define WM_PIMENU_CHECK (NOTEPADPLUS_USER + 40) -#define WM_ADDTOOLBARICON (NOTEPADPLUS_USER + 41) -#define WM_GETWINDOWSVERSION (NOTEPADPLUS_USER + 42) -#define WM_DMM_GETPLUGINHWNDBYNAME (NOTEPADPLUS_USER + 43) - - - -#define RUNCOMMAND_USER_ (WM_USER + 3000) - -#define WM_GET_FULLCURRENTPATH (RUNCOMMAND_USER_ + FULL_CURRENT_PATH) -#define WM_GET_CURRENTDIRECTORY (RUNCOMMAND_USER_ + CURRENT_DIRECTORY) -#define WM_GET_FILENAME (RUNCOMMAND_USER_ + FILE_NAME) -#define WM_GET_NAMEPART (RUNCOMMAND_USER_ + NAME_PART) -#define WM_GET_EXTPART (RUNCOMMAND_USER_ + EXT_PART) -#define WM_GET_CURRENTWORD (RUNCOMMAND_USER_ + CURRENT_WORD) -#define WM_GET_NPPDIRECTORY (RUNCOMMAND_USER_ + NPP_DIRECTORY) diff --git a/PowerEditor/src/StaticControl.h b/PowerEditor/src/StaticControl.h deleted file mode 100644 index 07943e94..00000000 --- a/PowerEditor/src/StaticControl.h +++ /dev/null @@ -1,45 +0,0 @@ -// This file is part of Notepad++ project -// Copyright (C)2003 Don HO -// -// 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 the Free Software Foundation; either -// version 2 of the License, or (at your option) any later version. -// -// Note that the GPL places important restrictions on "derived works", yet -// it does not provide a detailed definition of that term. To avoid -// misunderstandings, we consider an application to constitute a -// "derivative work" for the purpose of this license if it does any of the -// following: -// 1. Integrates source code from Notepad++. -// 2. Integrates/includes/aggregates Notepad++ into a proprietary executable -// installer, such as those produced by InstallShield. -// 3. Links to a library or executes a program that does any of the above. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - - -#ifndef STATIC_CONTROL_H -#define STATIC_CONTROL_H - -#include "Window.h" -class StaticControl : public Window -{ -public : - StaticControl() : Window() {}; - ~StaticControl(){}; - void init(HINSTANCE hInst, HWND parent, int ctrlID) { - Window::init(hInst, parent); - //_hSelf = CreateDialog(hInstance, MAKEINTRESOURCE(IDD_LUNA_DIALOG), NULL, cryptoGUI_dlgProc); - }; - -} - -#endif //STATIC_CONTROL_H \ No newline at end of file diff --git a/PowerEditor/src/WinControls/TreeView/TreeView.cpp b/PowerEditor/src/WinControls/TreeView/TreeView.cpp deleted file mode 100644 index 15856299..00000000 --- a/PowerEditor/src/WinControls/TreeView/TreeView.cpp +++ /dev/null @@ -1,84 +0,0 @@ -// This file is part of Notepad++ project -// Copyright (C)2003 Don HO -// -// 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 the Free Software Foundation; either -// version 2 of the License, or (at your option) any later version. -// -// Note that the GPL places important restrictions on "derived works", yet -// it does not provide a detailed definition of that term. To avoid -// misunderstandings, we consider an application to constitute a -// "derivative work" for the purpose of this license if it does any of the -// following: -// 1. Integrates source code from Notepad++. -// 2. Integrates/includes/aggregates Notepad++ into a proprietary executable -// installer, such as those produced by InstallShield. -// 3. Links to a library or executes a program that does any of the above. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - - -#include "TreeView.h" - -HTREEITEM TreeView::insertTo(HTREEITEM parent, TCHAR *itemStr, int imgIndex) -{ - TV_INSERTSTRUCT tvinsert; - tvinsert.hParent=parent; - tvinsert.hInsertAfter=parent?TVI_LAST:TVI_ROOT; - tvinsert.item.mask=TVIF_TEXT|TVIF_IMAGE|TVIF_SELECTEDIMAGE; - tvinsert.item.pszText=itemStr; - tvinsert.item.iImage=imgIndex; - tvinsert.item.iSelectedImage=0; - return (HTREEITEM)::SendMessage(_hSelf, TVM_INSERTITEM, 0, (LPARAM)&tvinsert); -} - -void TreeView::init(HINSTANCE hInst, HWND pere) -{ - Window::init(hInst, pere); - InitCommonControls(); - - HTREEITEM Parent; // Tree item handle - HTREEITEM Before; // ....... - HTREEITEM Root; - - // Get the dimensions of the parent window's client area, and create - // the tree-view control. - - _hSelf = CreateWindowEx(0, - WC_TREEVIEW, - TEXT("Tree View"), - WS_VISIBLE | WS_CHILD | WS_BORDER | - TVS_HASLINES | TVS_HASBUTTONS | TVS_SHOWSELALWAYS , - 0, 0, 0, 0, - _hParent, - NULL, - _hInst, - NULL); - - if (!_hSelf) - throw int(56); - - Parent = insertTo(NULL, TEXT("MAOCS30 Command"), 0); - Root=Parent; - Before=Parent; - - Parent = insertTo(Parent, TEXT("Native command"), 0); - insertTo(Parent, TEXT("Power On"), 0); - insertTo(Parent, TEXT("Power off"), 0); - insertTo(Parent, TEXT("Entrant"), 0); - insertTo(Parent, TEXT("Sortant"), 0); - Parent = insertTo(Before, TEXT("Macro"), 0); - insertTo(Parent, TEXT("ChangeCode"), 0); - insertTo(Parent, TEXT("CipherData"), 0); - - insertTo(NULL, TEXT("Bla bla bla bla..."), 0); - //display(); -} \ No newline at end of file diff --git a/PowerEditor/src/WinControls/TreeView/TreeView.h b/PowerEditor/src/WinControls/TreeView/TreeView.h deleted file mode 100644 index f5d291f7..00000000 --- a/PowerEditor/src/WinControls/TreeView/TreeView.h +++ /dev/null @@ -1,55 +0,0 @@ -// This file is part of Notepad++ project -// Copyright (C)2003 Don HO -// -// 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 the Free Software Foundation; either -// version 2 of the License, or (at your option) any later version. -// -// Note that the GPL places important restrictions on "derived works", yet -// it does not provide a detailed definition of that term. To avoid -// misunderstandings, we consider an application to constitute a -// "derivative work" for the purpose of this license if it does any of the -// following: -// 1. Integrates source code from Notepad++. -// 2. Integrates/includes/aggregates Notepad++ into a proprietary executable -// installer, such as those produced by InstallShield. -// 3. Links to a library or executes a program that does any of the above. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - - -#ifndef TREE_VIEW_H -#define TREE_VIEW_H - -#include -#include "Window.h" - -#ifndef _WIN32_IE -#define _WIN32_IE 0x0600 -#endif //_WIN32_IE - -#include - -class TreeView : public Window -{ -public : - TreeView(){}; - ~TreeView(){}; - virtual void init(HINSTANCE hInst, HWND pere); - virtual void destroy() { - ::DestroyWindow(_hSelf); - }; - -private : - HTREEITEM insertTo(HTREEITEM parent, TCHAR *itemStr, int imgIndex); -}; - -#endif \ No newline at end of file diff --git a/PowerEditor/src/WinControls/WindowInterface.h b/PowerEditor/src/WinControls/WindowInterface.h deleted file mode 100644 index 1d172d44..00000000 --- a/PowerEditor/src/WinControls/WindowInterface.h +++ /dev/null @@ -1,44 +0,0 @@ -// This file is part of Notepad++ project -// Copyright (C)2003 Don HO -// -// 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 the Free Software Foundation; either -// version 2 of the License, or (at your option) any later version. -// -// Note that the GPL places important restrictions on "derived works", yet -// it does not provide a detailed definition of that term. To avoid -// misunderstandings, we consider an application to constitute a -// "derivative work" for the purpose of this license if it does any of the -// following: -// 1. Integrates source code from Notepad++. -// 2. Integrates/includes/aggregates Notepad++ into a proprietary executable -// installer, such as those produced by InstallShield. -// 3. Links to a library or executes a program that does any of the above. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - - -#ifndef WINDOW_INTERFACE_H -#define WINDOW_INTERFACE_H - -#include "Window.h" - -class WindowInterface : public Window -{ -public : - void init(HINSTANCE hInst, HWND parent, HWND hSelf) { - Window::init(hInst, parent); - _hSelf = hSelf; - }; - virtual void destroy() {}; -}; - -#endif // WINDOW_INTERFACE_H