Small fixes and tidy-ups spotted by cppcheck.
[dcpomatic.git] / src / wx / content_menu.h
index 127fbea1a2ee05b4e9508772d5425d48f1ab3ccf..cd51e86f1a9fb21b14aa146d62287cca611b9a7e 100644 (file)
 
 class Film;
 
-class ContentMenu
+class ContentMenu : public boost::noncopyable
 {
 public:
-       ContentMenu (boost::shared_ptr<Film>, wxWindow *);
+       ContentMenu (wxWindow* p);
        ~ContentMenu ();
-
-       void popup (ContentList, wxPoint);
+       
+       void popup (boost::weak_ptr<Film>, ContentList, wxPoint);
 
 private:
-       void repeat (wxCommandEvent &);
-       void remove (wxCommandEvent &);
+       void repeat ();
+       void join ();
+       void find_missing ();
+       void re_examine ();
+       void kdm ();
+       void remove ();
+       void maybe_found_missing (boost::weak_ptr<Job>, boost::weak_ptr<Content>, boost::weak_ptr<Content>);
        
        wxMenu* _menu;
+       /** Film that we are working with; set up by popup() */
        boost::weak_ptr<Film> _film;
        wxWindow* _parent;
        ContentList _content;
+       wxMenuItem* _repeat;
+       wxMenuItem* _join;
+       wxMenuItem* _find_missing;
+       wxMenuItem* _re_examine;
+       wxMenuItem* _kdm;
+       wxMenuItem* _remove;
 };
 
 #endif