Project: FAR manager
Revision: 1964
Author: drkns
Date: 31 Aug 2008 06:57:53
Changes:work with new PanelAPI in 1.8
Files:modified: /trunk/plugins/proclist/Proclist.cpp (
try)
modified: /trunk/plugins/proclist/Proclist.rc (
try)
modified: /trunk/plugins/proclist/Proclist.hpp (
try)
modified: /trunk/plugins/proclist/Pclass.cpp (
try)
modified: /trunk/plugins/proclist/changelog (
try)
Diff:
| ... | ...@@ -256,7 +256,7 @@ |
| 256 | 256 |
|
| 257 | 257 |
|
| 258 | 258 | int WINAPI EXP_NAME(GetFiles)(HANDLE hPlugin,PluginPanelItem *PanelItem,
|
| 259 | | int ItemsNumber,int Move,WCONST TCHAR *DestPath,int OpMode)
|
| 259 | int ItemsNumber,int Move,WCONST WTYPE DestPath,int OpMode)
|
| 260 | 260 | {
|
| 261 | 261 | return ((Plist *)hPlugin)->GetFiles(PanelItem,ItemsNumber,Move,DestPath,OpMode);
|
| 262 | 262 | }
|
| ... | ...@@ -1,6 +1,6 @@ |
| 1 | 1 | #include "farversion.hpp"
|
| 2 | 2 |
|
| 3 | | #define PLUGIN_BUILD 140
|
| 3 | #define PLUGIN_BUILD 141
|
| 4 | 4 | #define PLUGIN_DESC "Process List for FAR Manager"
|
| 5 | 5 | #define PLUGIN_NAME "ProcList"
|
| 6 | 6 | #define PLUGIN_FILENAME "ProcList.dll"
|
| ... | ...@@ -16,9 +16,15 @@ |
| 16 | 16 | #endif
|
| 17 | 17 |
|
| 18 | 18 | #ifdef UNICODE
|
| 19 | | #define WCONST const
|
| 19 | #define WCONST const
|
| 20 | #define WTYPE wchar_t**
|
| 21 | #define WDEREF *
|
| 22 | #define WADDR &
|
| 20 | 23 | #else
|
| 21 | 24 | #define WCONST
|
| 25 | #define WTYPE char*
|
| 26 | #define WDEREF
|
| 27 | #define WADDR
|
| 22 | 28 | #endif
|
| 23 | 29 |
|
| 24 | 30 | #ifdef _MSC_VER
|
| ... | ...@@ -118,7 +124,7 @@ |
| 118 | 124 | void GetOpenPluginInfo(OpenPluginInfo *Info);
|
| 119 | 125 | int SetDirectory(TCHAR *Dir,int OpMode);
|
| 120 | 126 | int GetFiles(PluginPanelItem *PanelItem,int ItemsNumber,
|
| 121 | | int Move,WCONST TCHAR *DestPath,int OpMode, _Opt& opt=::Opt);
|
| 127 | int Move,WCONST WTYPE DestPath,int OpMode, _Opt& opt=::Opt);
|
| 122 | 128 | int DeleteFiles(PluginPanelItem *PanelItem,int ItemsNumber,
|
| 123 | 129 | int OpMode);
|
| 124 | 130 | int ProcessEvent(int Event,void *Param);
|
| ... | ...@@ -534,7 +534,7 @@ |
| 534 | 534 | delete PanelItem;
|
| 535 | 535 | }
|
| 536 | 536 |
|
| 537 | | int Plist::GetFiles(PluginPanelItem *PanelItem,int ItemsNumber, int Move,WCONST TCHAR *DestPath,int OpMode, _Opt& Opt)
|
| 537 | int Plist::GetFiles(PluginPanelItem *PanelItem,int ItemsNumber, int Move,WCONST WTYPE DestPath,int OpMode, _Opt& Opt)
|
| 538 | 538 | {
|
| 539 | 539 | static const TCHAR invalid_chars[] = _T(":*?\\/\"<>;|");
|
| 540 | 540 | if (ItemsNumber==0)
|
| ... | ...@@ -567,7 +567,7 @@ |
| 567 | 567 | }
|
| 568 | 568 | // may be 0 if called from FindFile
|
| 569 | 569 | TCHAR FileName[MAX_PATH];
|
| 570 | | lstrcpyn(FileName, DestPath, ArraySize(FileName));
|
| 570 | lstrcpyn(FileName, WDEREF DestPath, ArraySize(FileName));
|
| 571 | 571 | if(!(OpMode&0x10000)) {
|
| 572 | 572 | FSF.AddEndSlash(FileName);
|
| 573 | 573 | #ifdef UNICODE
|
| ... | ...@@ -1072,7 +1072,8 @@ |
| 1072 | 1072 | FSF.MkTemp(FileName, ArraySize(FileName), _T("prc"));
|
| 1073 | 1073 | #endif
|
| 1074 | 1074 |
|
| 1075 | | if(!GetFiles(pi.PanelItems + pi.CurrentItem, 1, 0, FileName, OPM_VIEW|0x10000, LocalOpt))
|
| 1075 | WCONST TCHAR *lpFileName=FileName;
|
| 1076 | if(!GetFiles(pi.PanelItems + pi.CurrentItem, 1, 0, WADDR lpFileName, OPM_VIEW|0x10000, LocalOpt))
|
| 1076 | 1077 | return TRUE;
|
| 1077 | 1078 | //TODO: viewer crashed on exit!
|
| 1078 | 1079 | Info.Viewer (FileName, pi.PanelItems[pi.CurrentItem].FindData.cFileName, 0,0,-1,-1, VF_NONMODAL|VF_DELETEONCLOSE);
|
| ... | ...@@ -1,3 +1,7 @@ |
| 1 | drkns 31.08.2008 14:30:55 +0200 - build 141
|
| 2 |
|
| 3 | 1. |
To list