Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

fogcreek shellext: cleaned up #include directives

Changeset ccff3573cd1a

Parent 4828d5be4dac

by David Golub

Changes to 13 files · Browse files at ccff3573cd1a Showing diff from parent 4828d5be4dac Diff from another changeset...

 
1
2
 
3
4
5
 
9
10
11
 
12
13
14
15
 
16
17
18
 
1
2
3
4
5
6
 
10
11
12
13
14
 
 
 
15
16
17
18
@@ -1,5 +1,6 @@
 #include "stdafx.h"  #include "THgShell_h.h" +  #include "TortoiseUtils.h"  #include "StringUtils.h"  #include "Thgstatus.h" @@ -9,10 +10,9 @@
 #include "RegistryConfig.h"  #include "TortoiseIconBitmap.h"  #include "ThgVersion.h" +#include "CShellExtCMenu.h"   -#include "Msi.h" - -#include "CShellExtCMenu.h" +#include <msi.h>    // According to http://msdn.microsoft.com/en-us/library/bb776094%28VS.85%29.aspx  // the help texts for the commands should be reasonably short (under 40 characters)
 
1
2
 
3
4
5
6
7
 
1
2
3
4
 
5
6
7
@@ -1,7 +1,7 @@
 #include "stdafx.h"  #include "THgShell_h.h" +  #include "TortoiseUtils.h" -  #include "CShellExtDnd.h"    // According to http://msdn.microsoft.com/en-us/library/bb776094%28VS.85%29.aspx
 
1
2
 
3
4
5
 
1
2
3
4
5
6
@@ -1,5 +1,6 @@
 #include "stdafx.h"  #include "THgShell_h.h" +  #include "TortoiseUtils.h"  #include "StringUtils.h"  #include "QueryDirstate.h"
 
15
16
17
18
19
20
21
22
23
24
 
 
25
26
27
 
15
16
17
 
 
18
19
20
21
22
23
24
25
26
27
@@ -15,13 +15,13 @@
 // You should have received a copy of the GNU General Public License  // along with this program. If not, see <http://www.gnu.org/licenses/>.   -#include <time.h> -  #include "stdafx.h"    #include "Directory.h"  #include "Winstat.h"   +#include <time.h> +  CDirectory::CDirectory(CDirectory* pParent, const CString& strName,   const CString& strBasePath) :   m_pParent(pParent), m_strName(strName)
 
19
20
21
 
22
23
24
 
19
20
21
22
23
24
25
@@ -19,6 +19,7 @@
 // Adapted for use in TortoiseHg by Veniamin Albaev  //  #include "stdafx.h" +  #include "IconBitmapUtils.h"  #include "SysInfo.h"  
 
25
26
27
28
29
30
31
32
 
25
26
27
 
 
28
29
30
@@ -25,8 +25,6 @@
 #include "TortoiseUtils.h"  #include "Thgstatus.h"   -#include <shlwapi.h> -  class CQueryState  {  public:
 
1
 
2
3
4
 
1
2
3
4
5
@@ -1,4 +1,5 @@
 #include "stdafx.h" +  #include "RegistryConfig.h"    int GetRegistryConfig(const CString& strName, CString& strRes)
 
16
17
18
 
19
20
21
 
16
17
18
19
20
21
22
@@ -16,6 +16,7 @@
 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.    #include "stdafx.h" +  #include "StringUtils.h"    // Quotes a string
 
15
16
17
18
19
 
 
 
20
21
22
 
15
16
17
 
 
18
19
20
21
22
23
@@ -15,8 +15,9 @@
 // You should have received a copy of the GNU General Public License  // along with this program; if not, write to the Free Software Foundation,  // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -// -#include "StdAfx.h" + +#include "stdafx.h" +  #include "SysInfo.h"    CSysInfo::CSysInfo(void)
 
1
 
2
3
4
 
1
2
3
4
5
@@ -1,4 +1,5 @@
 #include "stdafx.h" +  #include "TortoiseUtils.h"  #include "IconBitmapUtils.h"  
 
1
2
3
4
5
6
7
8
 
1
2
3
 
 
4
5
6
@@ -1,8 +1,6 @@
 #ifndef TORTOISE_ICON_BITMAP_H_  #define TORTOISE_ICON_BITMAP_H_   -#include <windows.h> -  HBITMAP GetTortoiseIconBitmap(const CString& strIconName);    #endif
 
1
 
2
3
4
5
6
7
8
9
10
11
12
 
1
2
3
4
 
5
6
7
 
 
8
9
10
@@ -1,12 +1,10 @@
 #include "stdafx.h" +  #include "TortoiseUtils.h"   -#include <assert.h>  #include <io.h>  #include <fcntl.h>   -#include "shlwapi.h" -  CString GetTHgProgRoot()  {   LPCTSTR lpszKeyName = "Software\\TortoiseHg";
 
1
2
3
4
5
6
7
8
9
 
1
2
3
 
 
 
4
5
6
@@ -1,9 +1,6 @@
 #ifndef _TORTOISE_UTILS_H_  #define _TORTOISE_UTILS_H_   -#include <malloc.h> -#include <windows.h> -  CString GetTHgProgRoot();  CString GetTemporaryFile(LPCSTR strPrefix = "THG");  CString DirName(const CString& strFileName);