37
40
void UpdateActivityLed(int direction);
39
42
void AddToRequestQueue(CFileZillaEngine* pEngine, CAsyncRequestNotification* pNotification);
40
CState* GetState() { return m_pState; }
41
43
CStatusView* GetStatusView() { return m_pStatusView; }
42
CLocalListView* GetLocalListView() { return m_pLocalListView; }
43
CRemoteListView* GetRemoteListView() { return m_pRemoteListView; }
44
CLocalListView* GetLocalListView() { return m_context_controls[m_current_context_controls].pLocalListView; }
45
CRemoteListView* GetRemoteListView() { return m_context_controls[m_current_context_controls].pRemoteListView; }
44
46
CQueueView* GetQueue() { return m_pQueueView; }
45
47
CQuickconnectBar* GetQuickconnectBar() { return m_pQuickconnectBar; }
73
79
void OpenSiteManager(const CServer* pServer = 0);
74
80
void InitToolbarState();
75
81
void InitMenubarState();
82
bool CloseTab(int tab);
84
void CreateContextControls(CState* pState);
77
86
void FocusNextEnabled(std::list<wxWindow*>& windowOrder, std::list<wxWindow*>::iterator iter, bool skipFirst, bool forward);
88
void SetBookmarksFromPath(const wxString& path);
79
89
void UpdateBookmarkMenu();
91
struct _context_controls
93
// List of all windows and controls assorted with a context
94
CView* pLocalTreeViewPanel;
95
CView* pLocalListViewPanel;
96
CLocalTreeView* pLocalTreeView;
97
CLocalListView* pLocalListView;
98
CView* pRemoteTreeViewPanel;
99
CView* pRemoteListViewPanel;
100
CRemoteTreeView* pRemoteTreeView;
101
CRemoteListView* pRemoteListView;
102
CViewHeader* pLocalViewHeader;
103
CViewHeader* pRemoteViewHeader;
105
CSplitterWindowEx* pViewSplitter; // Contains local and remote splitters
106
CSplitterWindowEx* pLocalSplitter;
107
CSplitterWindowEx* pRemoteSplitter;
115
struct _site_bookmarks
118
std::list<wxString> bookmarks;
120
CSharedPointer<struct _site_bookmarks> site_bookmarks;
123
std::vector<struct _context_controls> m_context_controls;
124
size_t m_current_context_controls;
81
126
std::list<int> m_bookmark_menu_ids;
82
127
std::map<int, wxString> m_bookmark_menu_id_map_global;
83
128
std::map<int, wxString> m_bookmark_menu_id_map_site;
84
wxString m_last_bookmark_path;
85
std::list<wxString> m_bookmarks;
87
130
CStatusBar* m_pStatusBar;
88
131
wxMenuBar* m_pMenuBar;
90
133
CQuickconnectBar* m_pQuickconnectBar;
92
135
CSplitterWindowEx* m_pTopSplitter; // If log position is 0, splits message log from rest of panes
93
CSplitterWindowEx* m_pBottomSplitter; // Top contains view splitter, buttom queue (or queuelog splitter if in position 1)
94
CSplitterWindowEx* m_pViewSplitter; // Contains local and remote splitters
95
CSplitterWindowEx* m_pLocalSplitter;
96
CSplitterWindowEx* m_pRemoteSplitter;
136
CSplitterWindowEx* m_pBottomSplitter; // Top contains view splitter, bottom queue (or queuelog splitter if in position 1)
97
137
CSplitterWindowEx* m_pQueueLogSplitter;
99
139
CStatusView* m_pStatusView;
100
140
CQueueView* m_pQueueView;
101
CView* m_pLocalTreeViewPanel;
102
CView* m_pLocalListViewPanel;
103
CLocalTreeView* m_pLocalTreeView;
104
CLocalListView* m_pLocalListView;
105
CView* m_pRemoteTreeViewPanel;
106
CView* m_pRemoteListViewPanel;
107
CRemoteTreeView* m_pRemoteTreeView;
108
CRemoteListView* m_pRemoteListView;
109
CViewHeader* m_pLocalViewHeader;
110
CViewHeader* m_pRemoteViewHeader;
111
141
CLed* m_pActivityLed[2];
112
142
wxTimer m_transferStatusTimer;
113
143
CThemeProvider* m_pThemeProvider;
168
198
void OnIconize(wxIconizeEvent& event);
169
199
void OnTaskBarClick(wxTaskBarIconEvent& event);
202
void OnTaskBarClick_Delayed(wxCommandEvent& event);
171
204
void OnSearch(wxCommandEvent& event);
205
void OnMenuNewTab(wxCommandEvent& event);
206
void OnMenuCloseTab(wxCommandEvent& event);
207
void OnTabChanged(wxAuiNotebookEvent& event);
208
void OnTabClosing(wxAuiNotebookEvent& event);
209
void OnTabClosing_Deferred(wxCommandEvent& event);
210
void OnTabBgDoubleclick(wxAuiNotebookEvent& event);
173
212
bool m_bInitDone;
186
224
#ifndef __WXMAC__
187
225
wxTaskBarIcon* m_taskBarIcon;
228
// There is a bug in KDE, causing the window to toggle iconized state
229
// several times a second after uniconizing it from taskbar icon.
230
// Set m_taskbar_is_uniconizing in OnTaskBarClick and unset the
231
// next time the pending event processing runs and calls OnTaskBarClick_Delayed.
232
// While set, ignore iconize events.
233
bool m_taskbar_is_uniconizing;
236
wxAuiNotebookEx* m_tabs;