source: filezilla/trunk/fuentes/src/interface/search.h @ 3185

Last change on this file since 3185 was 3185, checked in by jrpelegrina, 2 years ago

Update new version: 3.15.02

File size: 1.4 KB
Line 
1#ifndef __SEARCH_H__
2#define __SEARCH_H__
3
4#include "filter_conditions_dialog.h"
5#include "state.h"
6#include <set>
7
8class CWindowStateManager;
9class CSearchDialogFileList;
10class CQueueView;
11class CFilelistStatusBar;
12class CSearchDialog : protected CFilterConditionsDialog, public CStateEventHandler
13{
14        friend class CSearchDialogFileList;
15public:
16        CSearchDialog(wxWindow* parent, CState* pState, CQueueView* pQueue);
17        virtual ~CSearchDialog();
18
19        bool Load();
20        void Run();
21
22protected:
23        void ProcessDirectoryListing(std::shared_ptr<CDirectoryListing> const& listing);
24
25        void SetCtrlState();
26
27        void SaveConditions();
28        void LoadConditions();
29
30        wxWindow* m_parent;
31        CSearchDialogFileList *m_results{};
32        CQueueView* m_pQueue;
33
34        virtual void OnStateChange(CState* pState, enum t_statechange_notifications notification, const wxString& data, const void* data2);
35
36        CWindowStateManager* m_pWindowStateManager{};
37
38        CFilter m_search_filter;
39
40        bool m_searching{};
41
42        CServerPath m_original_dir;
43        CLocalPath m_local_target;
44
45        void ProcessSelection(std::list<int> &selected_files, std::deque<CServerPath> &selected_dirs);
46
47        DECLARE_EVENT_TABLE()
48        void OnSearch(wxCommandEvent& event);
49        void OnStop(wxCommandEvent& event);
50        void OnContextMenu(wxContextMenuEvent& event);
51        void OnDownload(wxCommandEvent&);
52        void OnEdit(wxCommandEvent&);
53        void OnDelete(wxCommandEvent&);
54        void OnCharHook(wxKeyEvent& event);
55
56        std::set<CServerPath> m_visited;
57
58        CServerPath m_search_root;
59};
60
61#endif //__SEARCH_H__
Note: See TracBrowser for help on using the repository browser.