summaryrefslogtreecommitdiff
path: root/LiteEditor/compilerlinkeroptionspage.h
blob: 3ae9044c649c7679ae27b24692cdde4e94b4928a (plain)
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
#ifndef __compilerlinkeroptionspage__
#define __compilerlinkeroptionspage__

/**
@file
Subclass of CompilerLinkerOptionsBase, which is generated by wxFormBuilder.
*/

#include "compiler_pages.h"
#include "compiler.h"
#include "advanced_settings.h"
#include "compilercompileroptionspage.h" // for CompilerOptionDialog

/** Implementing CompilerCompilerOptionsBase */
class CompilerLinkerOptionsPage : public CompilerLinkerOptionsBase, public ICompilerSubPage
{
	wxString m_cmpname;
	long m_selectedLnkOption;
public:
	/** Constructor */
	CompilerLinkerOptionsPage( wxWindow* parent, const wxString &cmpname );
	virtual void Save(CompilerPtr cmp);

protected:
	// Virtual event handlers from wxFormBuilder base class
	virtual void OnLinkerOptionActivated( wxListEvent& event );
	virtual void OnLinkerOptionDeSelected( wxListEvent& event );
	virtual void OnLinkerOptionSelected( wxListEvent& event );
	virtual void OnNewLinkerOption( wxCommandEvent& event );
	virtual void OnDeleteLinkerOption( wxCommandEvent& event );
};

class CompilerLinkerOptionDialog : public CompilerOptionDialog
{
public:
	CompilerLinkerOptionDialog(wxWindow* parent, const wxString& name, const wxString& help)
	: CompilerOptionDialog(parent, wxT("Linker option"), name, help)
	{
	}
};

#endif // __compilerlinkeroptionspage__