2015-04-02 18:00:50 -04:00
|
|
|
#ifndef TYROEDIT_PANE_H
|
|
|
|
#define TYROEDIT_PANE_H
|
|
|
|
|
2015-04-07 17:08:28 -04:00
|
|
|
#include "../wx_common.h"
|
2015-04-10 15:11:15 -04:00
|
|
|
|
|
|
|
#include <wx/stc/stc.h>
|
|
|
|
|
2015-04-09 17:16:28 -04:00
|
|
|
#include "../../include/json/json.h"
|
2015-04-02 18:00:50 -04:00
|
|
|
|
|
|
|
class EditPane: public wxStyledTextCtrl
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
EditPane(
|
|
|
|
wxWindow *parent,
|
|
|
|
wxWindowID id = wxID_ANY,
|
|
|
|
const wxPoint &post = wxDefaultPosition,
|
|
|
|
const wxSize &size = wxDefaultSize,
|
|
|
|
long style =
|
|
|
|
#ifndef __WXMAC__
|
|
|
|
wxSUNKEN_BORDER |
|
|
|
|
#endif
|
|
|
|
wxVSCROLL
|
|
|
|
);
|
|
|
|
~EditPane();
|
2015-04-10 15:11:15 -04:00
|
|
|
bool LoadAndHighlight(wxString filePath);
|
2015-04-02 18:00:50 -04:00
|
|
|
private:
|
2015-04-10 15:11:15 -04:00
|
|
|
StringConstMap lexer_map;
|
|
|
|
StringConstMap::iterator lexer_map_it;
|
2015-04-02 18:00:50 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TYRODOC_FRAME_H
|