summary refs log tree commit diff stats
path: root/tools/mapedit/src/frame.h
blob: 4d6c3dc4b6526bef6c1ed93dbe0d72373f115dcb (plain) (blame)
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
#ifndef FRAME_H
#define FRAME_H

#include <wx/wxprec.h>

#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif

#include "map.h"
#include "widget.h"
#include "tile_widget.h"

class MapeditFrame : public wxFrame {
  public:
    MapeditFrame() : MapeditFrame(Map()) {}
    MapeditFrame(Map map);
    
    MapeditWidget* GetMapEditor();

  protected:
    void ZoomIn(wxCommandEvent& event);
    void ZoomOut(wxCommandEvent& event);
    
  private:
    void OnExit(wxCommandEvent& event);
    
    Map map;
    MapeditWidget* mapEditor;
    TileWidget* tileEditor;
    
    wxDECLARE_EVENT_TABLE();
};

#endif