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

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

First release to xenial

File size: 1.0 KB
Line 
1#ifndef __MENU_BAR_H__
2#define __MENU_BAR_H__
3
4#include <option_change_event_handler.h>
5#include "state.h"
6
7class CMainFrame;
8class CMenuBar : public wxMenuBar, public CStateEventHandler, public COptionChangeEventHandler
9{
10public:
11        CMenuBar();
12        virtual ~CMenuBar();
13
14        static CMenuBar* Load(CMainFrame* pMainFrame);
15
16        bool ShowItem(int id);
17        bool HideItem(int id);
18
19        void UpdateBookmarkMenu();
20        void ClearBookmarks();
21
22        std::list<int> m_bookmark_menu_ids;
23        std::map<int, wxString> m_bookmark_menu_id_map_global;
24        std::map<int, wxString> m_bookmark_menu_id_map_site;
25
26        void UpdateMenubarState();
27protected:
28        CMainFrame* m_pMainFrame;
29
30        void UpdateSpeedLimitMenuItem();
31
32        virtual void OnStateChange(CState* pState, enum t_statechange_notifications notification, const wxString& data, const void* data2);
33        virtual void OnOptionsChanged(changed_options_t const& options);
34
35        DECLARE_DYNAMIC_CLASS(CMenuBar)
36
37        DECLARE_EVENT_TABLE()
38        void OnMenuEvent(wxCommandEvent& event);
39
40        std::map<wxMenu*, std::map<int, wxMenuItem*> > m_hidden_items;
41};
42
43#endif //__MENU_BAR_H__
Note: See TracBrowser for help on using the repository browser.