|
1 | | -/* |
2 | | -this file is part of Function List Plugin for Notepad++ |
3 | | -Copyright (C)2005 Jens Lorenz <jens.plugin.npp@gmx.de> |
4 | | -
|
5 | | -This program is free software; you can redistribute it and/or |
6 | | -modify it under the terms of the GNU General Public License |
7 | | -as published by the Free Software Foundation; either |
8 | | -version 2 of the License, or (at your option) any later version. |
9 | | -
|
10 | | -This program is distributed in the hope that it will be useful, |
11 | | -but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | | -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | | -GNU General Public License for more details. |
14 | | -
|
15 | | -You should have received a copy of the GNU General Public License |
16 | | -along with this program; if not, write to the Free Software |
17 | | -Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
18 | | -*/ |
19 | | - |
20 | | -#ifndef DOCKING_H |
21 | | -#define DOCKING_H |
22 | | - |
23 | | -// ATTENTION : It's a part of interface header, so don't include the others header here |
24 | | - |
25 | | -// styles for containers |
26 | | -#define CAPTION_TOP TRUE |
27 | | -#define CAPTION_BOTTOM FALSE |
28 | | - |
29 | | -// defines for docking manager |
30 | | -#define CONT_LEFT 0 |
31 | | -#define CONT_RIGHT 1 |
32 | | -#define CONT_TOP 2 |
33 | | -#define CONT_BOTTOM 3 |
34 | | -#define DOCKCONT_MAX 4 |
35 | | - |
36 | | -// mask params for plugins of internal dialogs |
37 | | -#define DWS_ICONTAB 0x00000001 // Icon for tabs are available |
38 | | -#define DWS_ICONBAR 0x00000002 // Icon for icon bar are available (currently not supported) |
39 | | -#define DWS_ADDINFO 0x00000004 // Additional information are in use |
40 | | -#define DWS_PARAMSALL (DWS_ICONTAB|DWS_ICONBAR|DWS_ADDINFO) |
41 | | - |
42 | | -// default docking values for first call of plugin |
43 | | -#define DWS_DF_CONT_LEFT (CONT_LEFT << 28) // default docking on left |
44 | | -#define DWS_DF_CONT_RIGHT (CONT_RIGHT << 28) // default docking on right |
45 | | -#define DWS_DF_CONT_TOP (CONT_TOP << 28) // default docking on top |
46 | | -#define DWS_DF_CONT_BOTTOM (CONT_BOTTOM << 28) // default docking on bottom |
47 | | -#define DWS_DF_FLOATING 0x80000000 // default state is floating |
48 | | - |
49 | | - |
50 | | -typedef struct { |
51 | | - HWND hClient; // client Window Handle |
52 | | - TCHAR *pszName; // name of plugin (shown in window) |
53 | | - int dlgID; // a funcItem provides the function pointer to start a dialog. Please parse here these ID |
54 | | - |
55 | | - // user modifications |
56 | | - UINT uMask; // mask params: look to above defines |
57 | | - HICON hIconTab; // icon for tabs |
58 | | - TCHAR *pszAddInfo; // for plugin to display additional informations |
59 | | - |
60 | | - // internal data, do not use !!! |
61 | | - RECT rcFloat; // floating position |
62 | | - int iPrevCont; // stores the privious container (toggling between float and dock) |
63 | | - const TCHAR* pszModuleName; // it's the plugin file name. It's used to identify the plugin |
64 | | -} tTbData; |
65 | | - |
66 | | - |
67 | | -typedef struct { |
68 | | - HWND hWnd; // the docking manager wnd |
69 | | - RECT rcRegion[DOCKCONT_MAX]; // position of docked dialogs |
70 | | -} tDockMgr; |
71 | | - |
72 | | - |
73 | | -#define HIT_TEST_THICKNESS 20 |
74 | | -#define SPLITTER_WIDTH 4 |
75 | | - |
76 | | - |
77 | | -#endif // DOCKING_H |
| 1 | +/* |
| 2 | +this file is part of Function List Plugin for Notepad++ |
| 3 | +Copyright (C)2005 Jens Lorenz <jens.plugin.npp@gmx.de> |
| 4 | +
|
| 5 | +This program is free software; you can redistribute it and/or |
| 6 | +modify it under the terms of the GNU General Public License |
| 7 | +as published by the Free Software Foundation; either |
| 8 | +version 2 of the License, or (at your option) any later version. |
| 9 | +
|
| 10 | +This program is distributed in the hope that it will be useful, |
| 11 | +but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | +GNU General Public License for more details. |
| 14 | +
|
| 15 | +You should have received a copy of the GNU General Public License |
| 16 | +along with this program; if not, write to the Free Software |
| 17 | +Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 18 | +*/ |
| 19 | + |
| 20 | +#ifndef DOCKING_H |
| 21 | +#define DOCKING_H |
| 22 | + |
| 23 | +// ATTENTION : It's a part of interface header, so don't include the others header here |
| 24 | + |
| 25 | +// styles for containers |
| 26 | +#define CAPTION_TOP TRUE |
| 27 | +#define CAPTION_BOTTOM FALSE |
| 28 | + |
| 29 | +// defines for docking manager |
| 30 | +#define CONT_LEFT 0 |
| 31 | +#define CONT_RIGHT 1 |
| 32 | +#define CONT_TOP 2 |
| 33 | +#define CONT_BOTTOM 3 |
| 34 | +#define DOCKCONT_MAX 4 |
| 35 | + |
| 36 | +// mask params for plugins of internal dialogs |
| 37 | +#define DWS_ICONTAB 0x00000001 // Icon for tabs are available |
| 38 | +#define DWS_ICONBAR 0x00000002 // Icon for icon bar are available (currently not supported) |
| 39 | +#define DWS_ADDINFO 0x00000004 // Additional information are in use |
| 40 | +#define DWS_PARAMSALL (DWS_ICONTAB|DWS_ICONBAR|DWS_ADDINFO) |
| 41 | + |
| 42 | +// default docking values for first call of plugin |
| 43 | +#define DWS_DF_CONT_LEFT (CONT_LEFT << 28) // default docking on left |
| 44 | +#define DWS_DF_CONT_RIGHT (CONT_RIGHT << 28) // default docking on right |
| 45 | +#define DWS_DF_CONT_TOP (CONT_TOP << 28) // default docking on top |
| 46 | +#define DWS_DF_CONT_BOTTOM (CONT_BOTTOM << 28) // default docking on bottom |
| 47 | +#define DWS_DF_FLOATING 0x80000000 // default state is floating |
| 48 | + |
| 49 | + |
| 50 | +typedef struct { |
| 51 | + HWND hClient; // client Window Handle |
| 52 | + TCHAR *pszName; // name of plugin (shown in window) |
| 53 | + int dlgID; // a funcItem provides the function pointer to start a dialog. Please parse here these ID |
| 54 | + |
| 55 | + // user modifications |
| 56 | + UINT uMask; // mask params: look to above defines |
| 57 | + HICON hIconTab; // icon for tabs |
| 58 | + TCHAR *pszAddInfo; // for plugin to display additional informations |
| 59 | + |
| 60 | + // internal data, do not use !!! |
| 61 | + RECT rcFloat; // floating position |
| 62 | + int iPrevCont; // stores the privious container (toggling between float and dock) |
| 63 | + const TCHAR* pszModuleName; // it's the plugin file name. It's used to identify the plugin |
| 64 | +} tTbData; |
| 65 | + |
| 66 | + |
| 67 | +typedef struct { |
| 68 | + HWND hWnd; // the docking manager wnd |
| 69 | + RECT rcRegion[DOCKCONT_MAX]; // position of docked dialogs |
| 70 | +} tDockMgr; |
| 71 | + |
| 72 | + |
| 73 | +#define HIT_TEST_THICKNESS 20 |
| 74 | +#define SPLITTER_WIDTH 4 |
| 75 | + |
| 76 | + |
| 77 | +#endif // DOCKING_H |
0 commit comments