source: filezilla/trunk/fuentes/src/interface/filteredit.h @ 130

Last change on this file since 130 was 130, checked in by jrpelegrina, 3 years ago

First release to xenial

File size: 1.1 KB
Line 
1#ifndef __FILTEREDIT_H__
2#define __FILTEREDIT_H__
3
4#include "filter.h"
5#include "filter_conditions_dialog.h"
6
7class wxCustomHeightListCtrl;
8class CWindowStateManager;
9class CFilterEditDialog : public CFilterConditionsDialog
10{
11public:
12        CFilterEditDialog();
13        virtual ~CFilterEditDialog();
14
15        bool Create(wxWindow* parent, const std::vector<CFilter>& filters, const std::vector<CFilterSet>& filterSets);
16
17        const std::vector<CFilter>& GetFilters() const;
18        const std::vector<CFilterSet>& GetFilterSets() const;
19
20        bool Validate();
21
22protected:
23
24        DECLARE_EVENT_TABLE()
25        void OnOK(wxCommandEvent& event);
26        void OnCancel(wxCommandEvent& event);
27        void OnNew(wxCommandEvent& event);
28        void OnDelete(wxCommandEvent& event);
29        void OnRename(wxCommandEvent& event);
30        void OnCopy(wxCommandEvent& event);
31        void OnFilterSelect(wxCommandEvent& event);
32
33        void ShowFilter(const CFilter& filter);
34        void SaveFilter(CFilter& filter);
35
36        void SetCtrlState(bool enabled);
37
38        wxListBox* m_pFilterListCtrl;
39        int m_currentSelection;
40
41        std::vector<CFilter> m_filters;
42        std::vector<CFilterSet> m_filterSets;
43
44        CWindowStateManager* m_pWindowStateManager;
45};
46
47#endif //__FILTEREDIT_H__
Note: See TracBrowser for help on using the repository browser.