X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fcontent_menu.h;h=a0ac3f48148730bb01c24414c13b4fc4131c5be4;hb=258da8a37c21a87ba5a7aa1c3e6243280d5c8d10;hp=127fbea1a2ee05b4e9508772d5425d48f1ab3ccf;hpb=a2fd8a4e3750cfa3ff7be305b4052a0699a3ffee;p=dcpomatic.git diff --git a/src/wx/content_menu.h b/src/wx/content_menu.h index 127fbea1a..a0ac3f481 100644 --- a/src/wx/content_menu.h +++ b/src/wx/content_menu.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2013 Carl Hetherington + Copyright (C) 2013-2015 Carl Hetherington This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,29 +20,48 @@ #ifndef DCPOMATIC_CONTENT_MENU_H #define DCPOMATIC_CONTENT_MENU_H +#include "timeline_content_view.h" +#include "lib/types.h" #include #include #include -#include "lib/types.h" class Film; +class Job; -class ContentMenu +class ContentMenu : public boost::noncopyable { public: - ContentMenu (boost::shared_ptr, wxWindow *); + ContentMenu (wxWindow* p); ~ContentMenu (); - - void popup (ContentList, wxPoint); + + void popup (boost::weak_ptr, ContentList, TimelineContentViewList, wxPoint); private: - void repeat (wxCommandEvent &); - void remove (wxCommandEvent &); + void repeat (); + void join (); + void find_missing (); + void properties (); + void re_examine (); + void kdm (); + void remove (); + void maybe_found_missing (boost::weak_ptr, boost::weak_ptr, boost::weak_ptr); wxMenu* _menu; + /** Film that we are working with; set up by popup() */ boost::weak_ptr _film; wxWindow* _parent; ContentList _content; + TimelineContentViewList _views; + wxMenuItem* _repeat; + wxMenuItem* _join; + wxMenuItem* _find_missing; + wxMenuItem* _properties; + wxMenuItem* _re_examine; + wxMenuItem* _kdm; + wxMenuItem* _remove; + + boost::signals2::scoped_connection _job_connection; }; #endif