Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (26 sloc) 676 Bytes
#ifndef __ENVVARSPANEL_H__
#define __ENVVARSPANEL_H__
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
#include <map>
class wxGrid;
class wxGridEvent;
class EnvVarsPanel : public wxPanel
{
public:
EnvVarsPanel(wxWindow*parent, wxWindowID id = wxID_ANY);
virtual ~EnvVarsPanel(void);
void AddVars(const std::map<wxString,wxString>& vars);
void GetVars(std::map<wxString,wxString>& vars);
bool VarsChanged(){return m_varsChanged;}
private:
void OnButtonAddEnv(wxCommandEvent& event);
void OnButtonDelEnv(wxCommandEvent& event);
void OnGridChange(wxGridEvent& event);
DECLARE_EVENT_TABLE()
wxGrid* m_envList;
bool m_varsChanged;
};
#endif