-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCbProjectFromCompileCommands.h
More file actions
39 lines (29 loc) · 1.04 KB
/
CbProjectFromCompileCommands.h
File metadata and controls
39 lines (29 loc) · 1.04 KB
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
/*
* This file uses parts of the Code::Blocks IDE and licensed under the GNU General Public License, version 3
* http://www.gnu.org/licenses/gpl-3.0.html
*/
#ifndef CbProjectFromCompileCommands_H_INCLUDED
#define CbProjectFromCompileCommands_H_INCLUDED
// For compilers that support precompilation, includes <wx/wx.h>
#include <wx/wxprec.h>
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
#include "cbplugin.h"
class CbProjectFromCompileCommands : public cbPlugin
{
public:
/** Constructor. */
CbProjectFromCompileCommands();
~CbProjectFromCompileCommands() = default;
void BuildMenu(wxMenuBar* menuBar) override;
protected:
void OnAttach() override;
void OnRelease(bool appShutDown) override;
DECLARE_EVENT_TABLE()
private:
void OnCbProjectFromCompileCommands(wxCommandEvent& event);
bool CreateCbProjectFromCompileCommands(wxString& error);
bool CreateProjectInternal(const wxString& fileName, const wxArrayString& filelist, wxString& errorString);
};
#endif // CbProjectFromCompileCommands_H_INCLUDED