Debian Codegraph @

CodeLite/clWorkspaceEvent.hpp

raw
1 #ifndef CLWORKSPACEEVENT_HPP
2 #define CLWORKSPACEEVENT_HPP
3
4 #include "cl_command_event.h"
5
6 class WXDLLIMPEXP_CL clWorkspaceEvent : public clCommandEvent
7 {
8 bool m_isRemote = false;
9 wxString m_remoteAccount;
10 wxString m_codeliteRemotePath;
11 wxString m_workspaceType;
12
13 public:
14 clWorkspaceEvent(wxEventType commandType = wxEVT_NULL, int winid = 0);
15 clWorkspaceEvent(const clWorkspaceEvent& event);
16 clWorkspaceEvent& operator=(const clWorkspaceEvent& src);
17 ~clWorkspaceEvent();
18 wxEvent* Clone() const override { return new clWorkspaceEvent(*this); }
19
20 // accessors
21 void SetIsRemote(bool isRemote) { this->m_isRemote = isRemote; }
22 void SetRemoteAccount(const wxString& remoteAccount) { this->m_remoteAccount = remoteAccount; }
23 bool IsRemote() const { return m_isRemote; }
24 const wxString& GetRemoteAccount() const { return m_remoteAccount; }
25 void SetCodeliteRemotePath(const wxString& codeliteRemotePath) { this->m_codeliteRemotePath = codeliteRemotePath; }
26 const wxString& GetCodeliteRemotePath() const { return m_codeliteRemotePath; }
27 void SetWorkspaceType(const wxString& workspaceType) { this->m_workspaceType = workspaceType; }
28 const wxString& GetWorkspaceType() const { return m_workspaceType; }
29 };
30 typedef void (wxEvtHandler::*clWorkspaceEventFunction)(clWorkspaceEvent&);
31 #define clWorkspaceEventHandler(func) wxEVENT_HANDLER_CAST(clWorkspaceEventFunction, func)
32 #endif // CLWORKSPACEEVENT_HPP