Use "#pragma once" instead of "#ifndef"

This commit is contained in:
Don HO 2019-11-16 03:38:11 +01:00
parent 2b0f5dd6fd
commit ebe0b1b189
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E
51 changed files with 55 additions and 232 deletions

View File

@ -29,8 +29,7 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef MDUMP_H
#define MDUMP_H
#pragma once
#include <windows.h>
#include <dbghelp.h>
@ -49,4 +48,3 @@ public:
bool writeDump(EXCEPTION_POINTERS * pExceptionInfo);
};
#endif //MDUMP_H

View File

@ -31,8 +31,7 @@
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef WIN32_EXCEPTION_H
#define WIN32_EXCEPTION_H
#pragma once
#include <exception>
#include <windows.h>
@ -75,5 +74,3 @@ private:
friend void Win32Exception::translate(unsigned code, EXCEPTION_POINTERS* info);
};
#endif // WIN32_EXCEPTION_H

View File

@ -28,8 +28,7 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef IDALLOCATOR_H
#define IDALLOCATOR_H
#pragma once
class IDAllocator
{
@ -47,4 +46,3 @@ private:
int _maximumID;
};
#endif

View File

@ -26,8 +26,7 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef NOTEPAD_PLUS_MSGS_H
#define NOTEPAD_PLUS_MSGS_H
#pragma once
#include <windows.h>
#include <tchar.h>
@ -611,5 +610,3 @@ enum Platform { PF_UNKNOWN, PF_X86, PF_X64, PF_IA64 };
//scnNotification->nmhdr.code = NPPN_FILEDELETED;
//scnNotification->nmhdr.hwndFrom = hwndNpp;
//scnNotification->nmhdr.idFrom = BufferID;
#endif //NOTEPAD_PLUS_MSGS_H

View File

@ -26,16 +26,10 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef PLUGININTERFACE_H
#define PLUGININTERFACE_H
#pragma once
#ifndef SCINTILLA_H
#include "Scintilla.h"
#endif //SCINTILLA_H
#ifndef NOTEPAD_PLUS_MSGS_H
#include "Notepad_plus_msgs.h"
#endif //NOTEPAD_PLUS_MSGS_H
const int nbChar = 64;
@ -83,5 +77,3 @@ extern "C" __declspec(dllexport) LRESULT messageProc(UINT Message, WPARAM wParam
// This API return always true now, since Notepad++ isn't compiled in ANSI mode anymore
extern "C" __declspec(dllexport) BOOL isUnicode();
#endif //PLUGININTERFACE_H

View File

@ -26,8 +26,7 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef PROCESSUS_H
#define PROCESSUS_H
#pragma once
#include "Common.h"
@ -48,5 +47,3 @@ protected:
generic_string _curDir;
};
#endif //PROCESSUS_H

View File

@ -26,8 +26,7 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef REG_EXT_DLG_H
#define REG_EXT_DLG_H
#pragma once
#include "regExtDlgRc.h"
#include "StaticDialog.h"
@ -65,5 +64,3 @@ private :
return (result == ERROR_SUCCESS)?nbSubValue:0;
}
};
#endif //REG_EXT_DLG_H

View File

@ -26,8 +26,7 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef REGEXTDLGRC_H
#define REGEXTDLGRC_H
#pragma once
#define IDD_REGEXT_BOX 4000
@ -42,4 +41,3 @@
#define IDC_SUPPORTEDEXTS_STATIC (IDD_REGEXT_BOX + 9)
#define IDC_REGISTEREDEXTS_STATIC (IDD_REGEXT_BOX + 10)
#endif //REGEXTDLGRC_H

View File

@ -1,5 +1,4 @@
#ifndef MD5_H
#define MD5_H
#pragma once
// Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
// rights reserved.
@ -388,5 +387,3 @@ public:
return digestChars ;
}
} ;
#endif

View File

@ -201,7 +201,7 @@ void Notepad_plus_Window::init(HINSTANCE hInst, HWND parent, const TCHAR *cmdLin
_notepad_plus_plus_core.getMatchedFileNames(localizationDir.c_str(), patterns, fileNames, false, false);
for (size_t i = 0, len = fileNames.size(); i < len; ++i)
localizationSwitcher.addLanguageFromXml(fileNames[i].c_str());
localizationSwitcher.addLanguageFromXml(fileNames[i]);
fileNames.clear();
ThemeSwitcher & themeSwitcher = nppParams.getThemeSwitcher();
@ -217,7 +217,7 @@ void Notepad_plus_Window::init(HINSTANCE hInst, HWND parent, const TCHAR *cmdLin
_notepad_plus_plus_core.getMatchedFileNames(themeDir.c_str(), patterns, fileNames, false, false);
for (size_t i = 0, len = fileNames.size() ; i < len ; ++i)
{
themeSwitcher.addThemeFromXml(fileNames[i].c_str());
themeSwitcher.addThemeFromXml(fileNames[i]);
}
}
@ -231,7 +231,7 @@ void Notepad_plus_Window::init(HINSTANCE hInst, HWND parent, const TCHAR *cmdLin
generic_string themeName( themeSwitcher.getThemeFromXmlFileName(fileNames[i].c_str()) );
if (! themeSwitcher.themeNameExists(themeName.c_str()) )
{
themeSwitcher.addThemeFromXml(fileNames[i].c_str());
themeSwitcher.addThemeFromXml(fileNames[i]);
}
}

View File

@ -26,8 +26,8 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef FIND_REPLACE_DLG_RC
#define FIND_REPLACE_DLG_RC
#pragma once
#include <windows.h>
#include "FindReplaceDlg_rc.h"
@ -132,6 +132,4 @@ BEGIN
CONTROL "&. matches newline",IDREDOTMATCHNL_FIFOLDER,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,93,167,68,9
PUSHBUTTON "Find All",IDOK,268,20,90,14,WS_GROUP
PUSHBUTTON "Close",IDCANCEL,268,38,90,14
END
#endif //FIND_REPLACE_DLG_RC
END

View File

@ -25,12 +25,9 @@
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef FUNCTIONCALLTIP_H
#define FUNCTIONCALLTIP_H
#pragma once
#ifndef SCINTILLA_EDIT_VIEW_H
#include "ScintillaEditView.h"
#endif //SCINTILLA_EDIT_VIEW_H
typedef std::vector<const TCHAR *> stringVec;
@ -88,5 +85,3 @@ private:
return false;
};
};
#endif// FUNCTIONCALLTIP_H

View File

@ -26,12 +26,9 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef PRINTER_H
#define PRINTER_H
#pragma once
#ifndef SCINTILLA_EDIT_VIEW_H
#include "ScintillaEditView.h"
#endif //SCINTILLA_EDIT_VIEW_H
struct NPP_RangeToFormat {
@ -65,4 +62,3 @@ private :
bool _isRTL = false;
};
#endif //PRINTER_H

View File

@ -26,8 +26,7 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef SCINTILLACTRLS_H
#define SCINTILLACTRLS_H
#pragma once
#include <vector>
#include <windows.h>
@ -53,4 +52,3 @@ private:
int getIndexFrom(HWND handle2Find);
};
#endif //SCINTILLACTRLS_H

View File

@ -25,8 +25,7 @@
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef SMARTHIGHLIGHTER_H
#define SMARTHIGHLIGHTER_H
#pragma once
#include "Common.h"
@ -42,5 +41,3 @@ public:
private:
FindReplaceDlg * _pFRDlg;
};
#endif //SMARTHIGHLIGHTER_H

View File

@ -26,8 +26,7 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef USERDEFINEDIALOG_RC
#define USERDEFINEDIALOG_RC
#pragma once
#include <windows.h>
#include "UserDefineResource.h"
@ -304,5 +303,3 @@ BEGIN
CONTROL "Operators 2",IDC_STYLER_CHECK_NESTING_OPERATORS2,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,209,183,76,13
CONTROL "Numbers",IDC_STYLER_CHECK_NESTING_NUMBERS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,209,200,76,13
END
#endif //USERDEFINEDIALOG_RC

View File

@ -26,15 +26,10 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef USER_DEFINE_LANG_REFERENCE_H
#define USER_DEFINE_LANG_REFERENCE_H
#pragma once
#include "SciLexer.h"
const int langNameLenMax = 64;
const int extsLenMax = 256;
const int max_char = 1024*30;
#endif //USER_DEFINE_LANG_REFERENCE_H

View File

@ -26,8 +26,7 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef USERDEFINE_RC_H
#define USERDEFINE_RC_H
#pragma once
#define IDD_GLOBAL_USERDEFINE_DLG 20000
#define IDC_DOCK_BUTTON (IDD_GLOBAL_USERDEFINE_DLG + 1 )
@ -310,4 +309,3 @@
#define IDC_STRING_STATIC (IDD_STRING_DLG + 1)
#define IDC_STRING_EDIT (IDD_STRING_DLG + 2)
#endif //USERDEFIN_RC_H

View File

@ -26,8 +26,7 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef COLORS_H
#define COLORS_H
#pragma once
const COLORREF red = RGB(0xFF, 0, 0);
const COLORREF darkRed = RGB(0x80, 0, 0);
@ -64,6 +63,3 @@ const COLORREF extremeLitePurple = RGB(0xF8, 0xE8, 0xFF);
const COLORREF veryLitePurple = RGB(0xE7, 0xD8, 0xE9);
const COLORREF liteBerge = RGB(0xFE, 0xFC, 0xF5);
const COLORREF berge = RGB(0xFD, 0xF8, 0xE3);
#endif //COLORS_H

View File

@ -26,8 +26,7 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef XMLMATCHEDTAGSHIGHLIGHTER_H
#define XMLMATCHEDTAGSHIGHLIGHTER_H
#pragma once
#include <string>
#include <vector>
@ -72,5 +71,4 @@ private:
};
#endif //XMLMATCHEDTAGSHIGHLIGHTER_H

View File

@ -5,8 +5,7 @@
// Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
#ifndef UNICONVERSION_H
#define UNICONVERSION_H
#pragma once
unsigned int UTF8Length(const wchar_t * uptr, unsigned int tlen);
void UTF8FromUCS2(const wchar_t * uptr, unsigned int tlen, char * putf, unsigned int len);
@ -15,4 +14,3 @@ unsigned int UCS2FromUTF8(const char * s, unsigned int len, wchar_t * tbuf, unsi
unsigned int ascii_to_utf8(const char * pszASCII, unsigned int lenASCII, char * pszUTF8);
int utf8_to_ascii(const char * pszUTF8, unsigned int lenUTF8, char * pszASCII);
#endif //UNICONVERSION_H

View File

@ -19,13 +19,9 @@
// - Add convert function in Utf8_16_Write
////////////////////////////////////////////////////////////////////////////////
#ifndef UTF8_16_H
#pragma once
#ifndef PARAMETERS_H
#include "Parameters.h"
#endif// PARAMETERS_H
#ifdef _MSC_VER
#pragma warning(disable: 4514) // nreferenced inline function has been removed
@ -161,4 +157,3 @@ protected:
bool m_bFirstWrite;
};
#endif// UTF8_16_H

View File

@ -26,8 +26,7 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef URLCTRL_INCLUDED
#define URLCTRL_INCLUDED
#pragma once
#include "Window.h"
#include "Common.h"
@ -61,4 +60,3 @@ protected :
LRESULT runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam);
};
#endif //URLCTRL_INCLUDED

View File

@ -26,14 +26,9 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef CLIPBOARDHISTORYPANEL_H
#define CLIPBOARDHISTORYPANEL_H
#pragma once
//#include <windows.h>
#ifndef DOCKINGDLGINTERFACE_H
#include "DockingDlgInterface.h"
#endif //DOCKINGDLGINTERFACE_H
#include "clipboardHistoryPanel_rc.h"
#include <vector>
@ -73,17 +68,11 @@ public:
DockingDlgInterface::init(hInst, hPere);
_ppEditView = ppEditView;
};
/*
virtual void display(bool toShow = true) const {
DockingDlgInterface::display(toShow);
};
*/
void setParent(HWND parent2set){
_hParent = parent2set;
};
//void switchEncoding();
ClipboardData getClipboadData();
void addToClipboadHistory(ClipboardData cbd);
int getClipboardDataIndex(ClipboardData cbd);
@ -108,4 +97,4 @@ private:
int _lbFgColor;
};
#endif // CLIPBOARDHISTORYPANEL_H

View File

@ -26,11 +26,8 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef IDD_CLIPBOARDHISTORYPANEL_RC_H
#define IDD_CLIPBOARDHISTORYPANEL_RC_H
#pragma once
#define IDD_CLIPBOARDHISTORY_PANEL 2800
#define IDC_LIST_CLIPBOARD (IDD_CLIPBOARDHISTORY_PANEL + 1)
#endif //IDD_CLIPBOARDHISTORYPANEL_RC_H

View File

@ -26,18 +26,11 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef DOCKINGSPLITTER_H
#define DOCKINGSPLITTER_H
#pragma once
#include "Window.h"
#ifndef DOCKING_H
#include "Docking.h"
#endif //DOCKING_H
#ifndef DOCKING_RESOURCE_H
#include "dockingResource.h"
#endif //DOCKING_RESOURCE_H
#define DMS_VERTICAL 0x00000001
#define DMS_HORIZONTAL 0x00000002
@ -69,4 +62,3 @@ private:
static BOOL _isHoriReg;
};
#endif // DOCKINGSPLITTER_H

View File

@ -26,27 +26,19 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef GRIPPER_H
#define GRIPPER_H
#pragma once
#include <windows.h>
#include <commctrl.h>
#include "Common.h"
#ifndef DOCKING_H
#include "Docking.h"
#endif //DOCKING_H
#ifndef DOCKING_RESOURCE_H
#include "dockingResource.h"
#endif //DOCKING_RESOURCE_H
class DockingCont;
class DockingManager;
// For the following #define see the comments at drawRectangle() definition. (jg)
#define USE_LOCKWINDOWUPDATE
//#undef USE_LOCKWINDOWUPDATE
// Used by getRectAndStyle() to draw the drag rectangle
@ -163,4 +155,3 @@ private:
static BOOL _isRegistered;
};
#endif // GRIPPER_H

View File

@ -26,8 +26,7 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef DOCKING_RESOURCE_H
#define DOCKING_RESOURCE_H
#pragma once
#define DM_NOFOCUSWHILECLICKINGCAPTION TEXT("NOFOCUSWHILECLICKINGCAPTION")
@ -77,5 +76,3 @@
//nmhdr.hwndFrom = DockingCont::_hself;
//nmhdr.idFrom = 0;
#endif //DOCKING_RESOURCE_H

View File

@ -28,11 +28,7 @@
#pragma once
//#include <windows.h>
#ifndef DOCKINGDLGINTERFACE_H
#include "DockingDlgInterface.h"
#endif //DOCKINGDLGINTERFACE_H
#include "TreeView.h"
#include "fileBrowser_rc.h"

View File

@ -26,8 +26,7 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef FILEBROWSER_RC_H
#define FILEBROWSER_RC_H
#pragma once
#define IDD_FILEBROWSER 3500
@ -48,6 +47,3 @@
#define IDD_FILEBROWSER_CTRL (IDD_FILEBROWSER + 30)
#define ID_FILEBROWSERTREEVIEW (IDD_FILEBROWSER_CTRL + 1)
#endif // FILEBROWSER_RC_H

View File

@ -26,16 +26,10 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef FINDCHARSINRANGE_DLG_H
#define FINDCHARSINRANGE_DLG_H
#pragma once
#ifndef FINDCHARSINRANGE_RC_H
#include "findCharsInRange_rc.h"
#endif //FINDCHARSINRANGE_RC_H
#ifndef SCINTILLA_EDIT_VIEW_H
#include "ScintillaEditView.h"
#endif //SCINTILLA_EDIT_VIEW_H
class FindCharsInRangeDlg : public StaticDialog
{
@ -73,4 +67,3 @@ private :
void getDirectionFromUI(bool & whichDirection, bool & isWrap);
};
#endif //FINDCHARSINRANGE_DLG_H

View File

@ -26,8 +26,7 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef IDD_FUNCLISTPANEL_RC_H
#define IDD_FUNCLISTPANEL_RC_H
#pragma once
#define IDD_FUNCLIST_PANEL 3400
#define IDC_LIST_FUNCLIST (IDD_FUNCLIST_PANEL + 1)
@ -36,5 +35,3 @@
#define IDC_RELOADBUTTON_FUNCLIST (IDD_FUNCLIST_PANEL + 4)
#define IDC_SORTBUTTON_FUNCLIST (IDD_FUNCLIST_PANEL + 5)
#endif //IDD_FUNCLISTPANEL_RC_H

View File

@ -5,13 +5,10 @@
//Printed BABYGRID message reference and tutorial available.
//email: mudcat@mis.net for more information.
#ifndef BABYGRID_H
#pragma once
#include <windows.h>
#ifndef RESOURCE_H
#include "resource.h"
#endif// RESOURCE_H
#ifndef WM_MOUSEWHEEL
#define WM_MOUSEWHEEL 0x020A
@ -110,5 +107,3 @@ ATOM RegisterGridClass(HINSTANCE);
LRESULT CALLBACK GridProc(HWND, UINT, WPARAM, LPARAM);
void SetCell(_BGCELL *cell,int row, int col);
#endif// BABYGRID_H

View File

@ -26,8 +26,7 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef SHORTCUTMAPPER_RC_H
#define SHORTCUTMAPPER_RC_H
#pragma once
#define IDD_SHORTCUTMAPPER_DLG 2600
#define IDD_BABYGRID_ID1 (IDD_SHORTCUTMAPPER_DLG + 1)
@ -38,5 +37,3 @@
#define IDM_BABYGRID_CLEAR (IDD_SHORTCUTMAPPER_DLG + 6)
#define IDC_BABYGRID_STATIC (IDD_SHORTCUTMAPPER_DLG + 7)
#define IDC_BABYGRID_FILTER (IDD_SHORTCUTMAPPER_DLG + 8)
#endif// SHORTCUTMAPPER_RC_H

View File

@ -26,8 +26,7 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef FILE_DIALOG_H
#define FILE_DIALOG_H
#pragma once
#include "Common.h"
#include "Notepad_plus_msgs.h"
@ -78,4 +77,3 @@ private:
static FileDialog *staticThis;
};
#endif //FILE_DIALOG_H

View File

@ -26,8 +26,7 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef PROJECTPANEL_RC_H
#define PROJECTPANEL_RC_H
#pragma once
#define IDD_PROJECTPANEL 3100
@ -60,5 +59,4 @@
#define IDD_FILERELOCALIZER_DIALOG 3200
#define IDC_EDIT_FILEFULLPATHNAME (IDD_FILERELOCALIZER_DIALOG + 1)
#endif // PROJECTPANEL_RC_H

View File

@ -25,8 +25,7 @@
// 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
#pragma once
#include <windows.h>
#include <commctrl.h>
@ -142,5 +141,3 @@ protected:
bool canDropIn(HTREEITEM targetItem);
};
#endif // TREE_VIEW_H

View File

@ -26,10 +26,8 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef TASKLISTDLGRC_H
#define TASKLISTDLGRC_H
#pragma once
#define IDD_TASKLIST_DLG 2450
#define ID_PICKEDUP (IDD_TASKLIST_DLG + 1)
#endif // TASKLISTDLGRC_H

View File

@ -26,8 +26,7 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef TOOL_BAR_H
#define TOOL_BAR_H
#pragma once
#include "Common.h"
#include "Window.h"
@ -174,5 +173,3 @@ private:
void releaseID(int id);
bool isIDTaken(int id);
};
#endif // TOOL_BAR_H

View File

@ -26,8 +26,7 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef TRAY_ICON_CONTROLER_H
#define TRAY_ICON_CONTROLER_H
#pragma once
#include <windows.h>
@ -50,4 +49,3 @@ private:
bool _isIconShowed;
};
#endif //TRAY_ICON_CONTROLER_H

View File

@ -26,8 +26,7 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef VERTICALFILESWITCHER_H
#define VERTICALFILESWITCHER_H
#pragma once
#include "DockingDlgInterface.h"
#include "VerticalFileSwitcher_rc.h"
@ -120,4 +119,3 @@ private:
VerticalFileSwitcherListView _fileListView;
HIMAGELIST _hImaLst = nullptr;
};
#endif // VERTICALFILESWITCHER_H

View File

@ -26,8 +26,7 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef VERTICALFILESWITCHERLISTVIEW_H
#define VERTICALFILESWITCHERLISTVIEW_H
#pragma once
#include "Window.h"
#include "TaskListDlg.h"
@ -103,6 +102,3 @@ protected:
void remove(int index);
void removeAll();
};
#endif // VERTICALFILESWITCHERLISTVIEW_H

View File

@ -26,11 +26,9 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef VERTICALFILESWITCHER_RC_H
#define VERTICALFILESWITCHER_RC_H
#pragma once
#define IDD_FILESWITCHER_PANEL 3000
#define IDC_LIST_FILESWITCHER (IDD_FILESWITCHER_PANEL + 1)
#endif // VERTICALFILESWITCHER_RC_H

View File

@ -26,17 +26,10 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef SIZABLE_DLG_H
#define SIZABLE_DLG_H
#pragma once
#ifndef WINDOWS_DLG_RC_H
#include "WindowsDlgRc.h"
#endif //WINDOWS_DLG_RC_H
#ifndef WINMGR_H
#include "WinMgr.h"
#endif //WINMGR_H
#include "StaticDialog.h"
class SizeableDlg : public StaticDialog {
@ -54,4 +47,3 @@ protected:
virtual LRESULT onWinMgr(WPARAM wp, LPARAM lp);
};
#endif //SIZABLE_DLG_H

View File

@ -9,8 +9,7 @@
//
// Theo - Heavily modified to remove MFC dependencies
// Replaced CWnd*/HWND, CRect/RECT, CSize/SIZE, CPoint/POINT
#ifndef WINMGR_H
#define WINMGR_H
#pragma once
@ -274,7 +273,6 @@ public:
// set TOFIT size for all windows from current window sizes
void InitToFitSizeFromCurrent(HWND hWnd);
// Theo - Removed Tracing
protected:
WINRECT* m_map = nullptr; // THE window map
@ -292,6 +290,3 @@ protected:
private:
CWinMgr() { assert(FALSE); } // no default constructor
};
// Theo - Removed CSizerBar and CSizeableDlg
#endif

View File

@ -26,8 +26,7 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef WINDOWS_DLG_RC_H
#define WINDOWS_DLG_RC_H
#pragma once
#ifdef __GNUC__
#ifndef _WIN32_IE
@ -51,4 +50,3 @@
#define IDM_WINDOW_MRU_FIRST (IDR_WINDOWS_MENU + 20)
#define IDM_WINDOW_MRU_LIMIT (IDR_WINDOWS_MENU + 29)
#endif //WINDOWS_DLG_RC_H

View File

@ -27,8 +27,8 @@
// created by Daniel Volk mordorpost@volkarts.com
#ifndef RUN_MACRO_DLG_RC
#define RUN_MACRO_DLG_RC
#pragma once
#include <windows.h>
#include "RunMacroDlg_rc.h"
@ -48,4 +48,3 @@ BEGIN
RTEXT "Macro to run :",IDC_MACRO2RUN_STATIC,5,12,59,8
LTEXT "times",IDC_TIMES_STATIC,97,38,65,8
END
#endif // RUN_MACRO_DLG_RC

View File

@ -27,8 +27,7 @@
// created by Daniel Volk mordorpost@volkarts.com
#ifndef RUN_MACRO_DLG_RC_H
#define RUN_MACRO_DLG_RC_H
#pragma once
#define IDD_RUN_MACRO_DLG 8000
#define IDC_M_RUN_MULTI 8001
@ -39,4 +38,3 @@
#define IDC_TIMES_STATIC 8005
#define IDC_MACRO2RUN_STATIC 8006
#endif //RUN_MACRO_DLG_RC_H

View File

@ -26,8 +26,7 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef SIZE_DLG_H
#define SIZE_DLG_H
#pragma once
#include "StaticDialog.h"
#include "Common.h"
@ -94,4 +93,3 @@ protected :
int _buttonStatus = buttonStatus_nada;
};
#endif //TABSIZE_DLG_H

View File

@ -26,8 +26,7 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef LOCALIZATION_H
#define LOCALIZATION_H
#pragma once
#include "Common.h"
#include "tinyxmlA.h"
@ -101,4 +100,3 @@ private:
MenuPosition & getMenuPosition(const char *id);
#endif // LOCALIZATION_H

View File

@ -26,8 +26,7 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef MENUCMDID_H
#define MENUCMDID_H
#pragma once
#define IDM 40000
@ -575,5 +574,3 @@
#define IDM_SYSTRAYPOPUP_NEW_AND_PASTE (IDM_SYSTRAYPOPUP + 3)
#define IDM_SYSTRAYPOPUP_OPENFILE (IDM_SYSTRAYPOPUP + 4)
#define IDM_SYSTRAYPOPUP_CLOSE (IDM_SYSTRAYPOPUP + 5)
#endif //MENUCMDID_H