forked from eranif/codelite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NodeJSWorkspaceView.h
45 lines (37 loc) · 1.39 KB
/
NodeJSWorkspaceView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef NODEJSWORKSPACEVIEW_H
#define NODEJSWORKSPACEVIEW_H
#include "clTreeCtrlPanel.h"
#include "cl_command_event.h"
#include "NodeJSDebuggerDlg.h"
#include "clTreeKeyboardInput.h"
#include "TerminalEmulator.h"
class NodeJSWorkspaceView : public clTreeCtrlPanel
{
protected:
clTreeKeyboardInput::Ptr_t m_keyboardHelper;
TerminalEmulator m_terminal;
protected:
void OnContextMenu(clContextMenuEvent& event);
void OnContextMenuFile(clContextMenuEvent& event);
void OnFolderDropped(clCommandEvent& event);
void OnShowHiddenFiles(wxCommandEvent& event);
void OnCloseWorkspace(wxCommandEvent& event);
void OnOpenPackageJsonFile(wxCommandEvent& event);
void OnProjectDebug(wxCommandEvent& event);
void OnProjectRun(wxCommandEvent& event);
void OnNpmInit(wxCommandEvent& event);
void DoExecuteProject(NodeJSDebuggerDlg::eDialogType type);
void OnItemExpanding(wxTreeEvent& event);
/**
* @brief return the selected project path
* A "selected project" means the entry which is highlighted on the tree
* view. If no project is selected, return an empty string
*/
bool GetSelectProjectPath(wxString& path, wxTreeItemId& item);
public:
NodeJSWorkspaceView(wxWindow* parent, const wxString& viewName);
virtual ~NodeJSWorkspaceView();
void RebuildTree();
void ShowHiddenFiles(bool show);
};
#endif // NODEJSWORKSPACEVIEW_H