Merge pull request #2500 from spvkgn/cmake
[far2l.git] / tmppanel / src / TmpClass.hpp
blobe94fb6acda08056dcc565911144ce4823cf73953
1 /*
2 TMPCLASS.HPP
4 Temporary panel plugin class header file
6 */
8 #ifndef __TMPCLASS_HPP__
9 #define __TMPCLASS_HPP__
11 #define REMOVE_FLAG 1
13 #include <farplug-wide.h>
15 class TmpPanel
17 private:
18 void RemoveDups();
19 void RemoveEmptyItems();
20 void UpdateItems(int ShowOwners, int ShowLinks);
21 int IsOwnersDisplayed(LPCTSTR ColumnTypes);
22 int IsLinksDisplayed(LPCTSTR ColumnTypes);
23 void ProcessRemoveKey();
24 void ProcessSaveListKey();
25 void ProcessPanelSwitchMenu();
26 void SwitchToPanel(int NewPanelIndex);
27 void FindSearchResultsPanel();
28 void SaveListFile(const TCHAR *Path);
29 bool IsCurrentFileCorrect(TCHAR **pCurFileName);
31 PluginPanelItem *TmpPanelItem;
32 int TmpItemsNumber;
33 int LastOwnersRead;
34 int LastLinksRead;
35 int UpdateNotNeeded;
37 public:
38 TmpPanel();
39 ~TmpPanel();
40 int PanelIndex;
41 // int OpenFrom;
42 int GetFindData(PluginPanelItem **pPanelItem, int *pItemsNumber, int OpMode);
43 void GetOpenPluginInfo(struct OpenPluginInfo *Info);
44 int SetDirectory(const TCHAR *Dir, int OpMode);
46 int
47 PutFiles(struct PluginPanelItem *PanelItem, int ItemsNumber, int Move, const TCHAR *SrcPath, int OpMode);
48 HANDLE BeginPutFiles();
49 void CommitPutFiles(HANDLE hRestoreScreen, int Success);
50 int PutDirectoryContents(const TCHAR *Path);
51 int PutOneFile(const TCHAR *SrcPath, PluginPanelItem &PanelItem);
52 int PutOneFile(const TCHAR *FilePath);
54 int SetFindList(const struct PluginPanelItem *PanelItem, int ItemsNumber);
55 int ProcessEvent(int Event, void *Param);
56 int ProcessKey(int Key, unsigned int ControlState);
57 static bool GetFileInfoAndValidate(const TCHAR *FilePath, FAR_FIND_DATA *FindData, int Any);
58 void IfOptCommonPanel(void);
61 #endif /* __TMPCLASS_HPP__ */