MainWindow.cpp
changeset 1 506e0fc65ba3
parent 0 7e720dcafcaf
child 2 b2772bffb62f
--- a/MainWindow.cpp	Sat Nov 01 20:57:17 2008 +0100
+++ b/MainWindow.cpp	Sun Apr 24 14:03:52 2011 +0200
@@ -1,8 +1,15 @@
 #include <wx/wx.h>
 #include <wx/image.h>
+#include <iostream>
 #include "wxPictureWindow.hpp"
 #include "MainWindow.hpp"
 
+DEFINE_EVENT_TYPE(EVT_NEXTPICTURE)
+
+BEGIN_EVENT_TABLE (MainWindow, wxFrame)
+    EVT_COMMAND (wxID_ANY, EVT_NEXTPICTURE, MainWindow::OnNextPicture)
+END_EVENT_TABLE ()
+
 MainWindow::MainWindow(const wxImage &img, const CropArea area, const wxSize size)
     :wxFrame(0, wxID_ANY, _("wxDjvuMaker"), wxDefaultPosition, size)
 {
@@ -10,3 +17,9 @@
     wxPictureWindow *picture = new wxPictureWindow(img, area, this);
     s->Add(picture);
 }
+
+void MainWindow::OnNextPicture(wxCommandEvent &e)
+{
+    using namespace std;
+    cout << "next picture" << endl;;
+}