equal
deleted
inserted
replaced
1 #ifndef _HEADER_MAINWINDOW_HPP_ |
1 #ifndef _HEADER_MAINWINDOW_HPP_ |
2 #define _HEADER_MAINWINDOW_HPP_ |
2 #define _HEADER_MAINWINDOW_HPP_ |
3 |
3 |
4 #include <wx/wx.h> |
4 #include <wx/wx.h> |
|
5 #include <vector> |
5 #include "CropArea.hpp" |
6 #include "CropArea.hpp" |
|
7 |
|
8 class wxPictureWindow; |
6 |
9 |
7 DECLARE_EVENT_TYPE(EVT_NEXTPICTURE, -1) |
10 DECLARE_EVENT_TYPE(EVT_NEXTPICTURE, -1) |
8 |
11 |
9 class MainWindow : public wxFrame |
12 class MainWindow : public wxFrame |
10 { |
13 { |
11 public: |
14 public: |
12 MainWindow(const wxImage &img, CropArea area, wxSize size); |
15 MainWindow(const std::vector<wxString> &imgs, const wxSize size); |
13 |
16 |
14 void OnNextPicture(wxCommandEvent &e); |
17 void OnNextPicture(wxCommandEvent &e); |
|
18 |
|
19 private: |
|
20 const std::vector<wxString> _imgs; |
|
21 wxPictureWindow *_picture; |
|
22 int _counter; |
15 |
23 |
16 DECLARE_EVENT_TABLE (); |
24 DECLARE_EVENT_TABLE (); |
17 }; |
25 }; |
18 |
26 |
19 #endif /* _HEADER_MAINWINDOW_HPP_ */ |
27 #endif /* _HEADER_MAINWINDOW_HPP_ */ |