Commit Graph

1177 Commits (259b605e5b5558ef286c449241d6cc49ed93b2d3)

Author SHA1 Message Date
Christian Grasser 311c7d578e Further x86, x64 compatibility fix by reinterpret_cast<LONG_PTR> instead of reinterpret_cast<LONG> for SetWindowLongPtr 2015-05-27 22:47:40 +02:00
Christian Grasser 4d694ea704 Add patch from http://sourceforge.net/p/notepad-plus/patches/648/ by Xileer Torias with comment:
Updated the GetWindowLongPtr and SetWindowLongPtrW nIndex reference as per https://msdn.microsoft.com/en-us/library/windows/desktop/ms633585%28v=vs.85%29.aspx and https://msdn.microsoft.com/en-us/library/windows/desktop/ms644898(v=vs.85).aspx

This alters the function to be compatible with both x86, and x64 as to simplify future x64 builds.
2015-05-27 22:06:53 +02:00
Don HO 084d3c60a8 Update CONTRIBUTING.md 2015-05-27 17:11:08 +02:00
Don HO 2216c19dd0 Update CONTRIBUTING.md 2015-05-27 16:56:49 +02:00
Don HO ad5788d266 Merge pull request #114 from pnedev/findinfiles_1
Enhance FindInFiles - part 1
2015-05-27 02:42:48 +02:00
Andreas Jönsson 5b28e27b3d Add "static" to get internal linkage. 2015-05-26 22:54:11 +02:00
Andreas Jönsson 2a7ef2ecf0 Guard long-running operations with a mutex
The session snapshot feature runs in its own thread and access to
Scintilla etc is not thread-safe. As a *temporary* and *non-exhaustive*
fix we guard some long-running operations (undo, redo, replace, sort)
with a mutex to prevent data corruption.
2015-05-26 15:58:46 +02:00
Don Ho 2beb7e2dfe Update .gitIgnore file 2015-05-26 09:25:36 +02:00
Don HO 56ceaf5546 Merge pull request #117 from NN---/VS2015
[ADD] Add VS2015 project file and make notepad++ project compatible with VS2015.
2015-05-26 09:12:03 +02:00
Don HO 07968d7ed6 Merge pull request #116 from jay1109/master
[UPDATE] Optimize font quality for LCD.
2015-05-26 03:00:03 +02:00
Don HO 805ab2b9ff Merge pull request #86 from andreas-jonsson/decimal_sort
[NEW_FEATURE] Refine sort lines feature: Add Sort Lines Lexicographically/Integer/Decimal (comma) /Decimal (dot) with Ascending and Descending commands.
2015-05-25 22:59:26 +02:00
Andreas Jönsson f43c9875b3 Fix menu options. 2015-05-25 20:50:57 +02:00
NN 7ead0542cc Add special project for VS2015 2015-05-25 13:04:18 +03:00
jay1109 e2472bce88 Optimize font quality for LCD 2015-05-25 11:40:38 +02:00
Pavel Nedev d6b321d2d5 Properly position on screen FindInFiles progress window
Use Search Dialog position as bias for the progress window position to avoid bad appearence on multiple monitors setups.
2015-05-25 11:04:31 +03:00
Pavel Nedev df7ddabff0 Make FindInFiles progress window behave like modal 2015-05-25 11:03:21 +03:00
Pavel Nedev 4409277180 Display find progress status on cancel operation also 2015-05-25 11:01:50 +03:00
Pavel Nedev 43ac186d2b Auto-fit filename in FindInFiles progress window
This way the filename doesn't spread on multiple lines.
2015-05-25 11:01:16 +03:00
Pavel Nedev ccee6ea29d Refresh N++ window on Finder creation
This makes Notepad++ window look clean when starting Find/Replace InFiles operation for the first time.
2015-05-25 11:00:47 +03:00
Don HO a7e00affb4 Merge pull request #110 from andreas-jonsson/remove_struct
[UPDATE] Remove OPENFILENAMENPP structure.
2015-05-25 01:10:53 +02:00
Don Ho bdb06f3861 [UPDATE] Update a quote. 2015-05-25 00:55:00 +02:00
Don HO ec9712665a Merge pull request #104 from NN---/patch-2
[UPDATE] Add more xml file extensions.
2015-05-25 00:45:59 +02:00
Don HO af664e49c5 Merge pull request #112 from Croydon/master
[UPDATE] Add jsm to the Javascript extensions.
2015-05-25 00:36:27 +02:00
Michael b8adf46489 Add jsm to the Javascript extensions
.jsm is short for Javascript module and is at least used in Mozilla Addons for shared code.
2015-05-25 00:03:48 +02:00
Don HO f7e5be4e2b Merge pull request #12 from dail8859/splitlines
[ENHANCEMENT] "Split Lines" uses the edge mode if enabled.
2015-05-24 19:18:59 +02:00
Don HO e70eb054b0 Merge pull request #46 from andreas-jonsson/repeat
[ENHANCEMENT] Add "repeat" option to column editor.
2015-05-24 18:40:04 +02:00
Don Ho 0628508ef0 [REMOVE] Remove solution file from git index. 2015-05-24 01:28:43 +02:00
Don Ho ec105d7b5f [UPDATE] Remove solution file from git index.
VisualStudioVersion could be different.
2015-05-24 01:23:59 +02:00
Don HO 99eca7b1bf Merge pull request #90 from rcdailey/multi-processor-build
[UPDATE] Enable multiprocessor compiling; Remove pre-compiling method.
2015-05-23 20:21:15 +02:00
Don Ho 6870368034 Update gitIgnore file. 2015-05-23 18:57:06 +02:00
Andreas Jönsson 4bd32caa5c Remove OPENFILENAMENPP structure. 2015-05-23 15:48:58 +02:00
Don Ho b85fc02841 [RELEASE] Notepad++ 6.7.8.2 release 2015-05-23 14:14:33 +02:00
Don Ho d3c7ade18c [NEW] Prevent from launching updater under XP due to the obsolet security
layer
2015-05-22 21:11:08 +02:00
Don HO f74bb0813b Merge pull request #95 from NN---/patch-1
[REMOVE] Remove binary file npp.pdb.
2015-05-22 13:20:18 +02:00
Andreas Jönsson 7c3376ae6b Use a rectangular selection as sort key. 2015-05-21 15:53:48 +02:00
NN 3644983bcb Add more xml file extensions 2015-05-20 20:37:08 +03:00
NN f867f40cb9 Add warnings description. 2015-05-20 12:39:28 +03:00
Andreas Jönsson 626dc02c4c Use old-style loop to be compatible with VS2010. 2015-05-20 08:25:14 +02:00
NN 2ef5e5eca3 Support compilation in VS2015.
Changes:
_CRT_NON_CONFORMING_WCSTOK - to have old wcstok behaviour
dbghelp.h doesn't disable warnings, do it manually.
Better casting from pointer to integral.
Disable warnings in tinyXml headers.
Disable warnings 4456;4457;4459 to not touch the source.
More details about the warnings: http://blogs.msdn.com/b/vcblog/archive/2014/11/12/improvements-to-warnings-in-the-c-compiler.aspx
2015-05-19 14:01:27 +03:00
Don Ho a76ff09ac0 [RELEASE] Notepad++ 6.7.8.1 release (WinGup bug-fix: remove the dependency of msvcr120.dll) 2015-05-19 03:40:56 +02:00
NN eca9471ba8 This file is not intended to be committed 2015-05-18 16:18:19 +03:00
Andreas Jönsson 7b9c342bda Fix outdated comment. 2015-05-18 09:32:24 +02:00
Robert Dailey 5c69e59187 Enable multiprocessor build
Project now utilizes the /MP compiler switch to perform
parallelized builds. The number of parallel builds performed
is determined on a per-machine basis based on available
logical CPUs.

Long term this will provide the best performance output to
code maintainability ratio compared to just enabling
precompiled headers.

Using my personal machine (8 cores), I got the following
timings (Debug configuration):

* Normal build           : 89 seconds
* Multi-processor build  : 28 seconds
* PCH enabled            : 27 seconds

Note that the multi-processor build timings can be further
reduced with proper dependency management and removal of
existing precompiled header file (precompiledHeaders.h).

Specific Changes:

* Precompiled header support disabled (not compatible with
  /MP flag).
* precompiledHeader.cpp deleted.
* Solution File added.
* Minimal Rebuild (/Gm) disabled (ignored when /MP is on).

precompiledHeaders.h still exists because it contains a ton of
inclusions required by lots of files. A second and less trivial
cleanup will involve removing the precompiledHeaders.h file and
individually correcting and satisfying dependencies in each source
file in the code base.
2015-05-17 22:34:34 -05:00
Andreas Jönsson 91da641adc Use initializer list in ISorter. 2015-05-17 21:50:06 +02:00
Andreas Jönsson be230c1a29 Add a version of std::stod which takes locale.
We need a string-to-double conversion function which acts the same on
all computers, irrespective of which locale is running. We need to
guarantee that the function expects '.' as the decimal point, and not
','. The choice of en-US is more or less arbitrary.
2015-05-17 21:23:08 +02:00
Andreas Jönsson 0e42d3348a Fix handling of negative numbers + empty lines. 2015-05-17 20:05:25 +02:00
Andreas Jönsson ad2cc85c0e Simplify NativeLangSpeaker::messageBox. 2015-05-17 19:29:43 +02:00
Andreas Jönsson d0bafb7fba Add more options for sorting.
User can now choose between lexicographic, integer and decimal sorting.
For decimal sorting there are two further options: decimal point ('.')
or decimal comma (',').

When doing integer/decimal sort, the parsing is not as strict as
before. E.g during integer sorting the program will interpret "123abc"
as 123.

Performance of integer sorting has been improved by 30%.

The implementation of sorting is delegated to classes which implement
the new "ISorter" interface. Unfortunately due to template issues most
of the code had to go in the header file.
2015-05-17 19:18:43 +02:00
Andreas Jönsson 4d8e731d3e Add const to NativeLangSpeaker::messageBox(). 2015-05-17 19:09:21 +02:00
Don Ho 5c272a8818 [RELEASE] Notepad++ 6.7.8 release. 2015-05-16 02:36:09 +02:00