]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/docview/docview.cpp
fix couple of warnings; remove wxUsleep dummy test
[wxWidgets.git] / samples / docview / docview.cpp
index b865b6f42590348df34d8b6659b1a6b493fca9ef..f8f2a8f98b658f941592fd93673437b70c66e1ab 100644 (file)
@@ -181,7 +181,7 @@ bool MyApp::OnInit()
         // Create a template relating image documents to their views
         new wxDocTemplate(docManager, "Image", "*.png;*.jpg", "", "png;jpg",
                           "Image Doc", "Image View",
-                          CLASSINFO(wxImageDocument), CLASSINFO(wxImageView));
+                          CLASSINFO(ImageDocument), CLASSINFO(ImageView));
     }
 
     // create the main frame window
@@ -247,6 +247,7 @@ void MyApp::AppendDocumentFileCommands(wxMenu *menu, bool supportsPrinting)
     menu->Append(wxID_CLOSE);
     menu->Append(wxID_SAVE);
     menu->Append(wxID_SAVEAS);
+    menu->Append(wxID_REVERT, _("Re&vert..."));
 
     if ( supportsPrinting )
     {