OSDN Git Service

- Replace include guards with #pragma once like winmerge2011
[winmerge-jp/winmerge-jp.git] / Src / DirViewColItems.h
1 /** 
2  * @file  DirViewColItems.h
3  *
4  * @brief Declaration file for DirColInfo
5  *
6  * @date  Created: 2003-08-19
7  */
8 #pragma once
9
10 class CDiffContext;
11
12 // DirViewColItems typedefs
13 typedef String (*ColGetFncPtrType)(const CDiffContext *, const void *);
14 typedef int (*ColSortFncPtrType)(const CDiffContext *, const void *, const void *);
15
16
17 /**
18  * @brief Information about one column of dirview list info
19  */
20 struct DirColInfo
21 {
22         LPCTSTR regName; /**< Internal name used for registry entries etc */
23         // localized string resources
24         int idName; /**< Displayed name, ID of string resource */
25         int idDesc; /**< Description, ID of string resource */
26         ColGetFncPtrType getfnc; /**< Handler giving display string */
27         ColSortFncPtrType sortfnc; /**< Handler for sorting this column */
28         SIZE_T offset;
29         int physicalIndex; /**< Current physical index, -1 if not displayed */
30         bool defSortUp; /**< Does column start with ascending sort (most do) */
31         int alignment; /**< Column alignment */
32 };
33
34 extern const int g_ncols;
35 extern const int g_ncols3;