~ubuntu-branches/ubuntu/wily/bombono-dvd/wily

« back to all changes in this revision

Viewing changes to src/mgui/project/mb-actions.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2010-11-04 11:46:25 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20101104114625-8xfdhvhpsm51i0nu
Tags: upstream-0.8.0
Import upstream version 0.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
namespace Project
30
30
{
31
31
 
32
 
class ViewMediaVis: public ObjVisitor
33
 
{
34
 
    public:
35
 
    typedef boost::function<bool(TrackLayout&)> Fnr;
36
 
            Fnr  vFnr;
37
 
 
38
 
     static  Fnr  GetViewerFunctor(MediaItem mi)
39
 
                  {
40
 
                      ViewMediaVis vis;
41
 
                      mi->Accept(vis);
42
 
                      return vis.vFnr;
43
 
                  }
44
 
 
45
 
    protected:
46
 
 
47
 
            void  Visit(VideoMD& obj);
48
 
            void  Visit(VideoChapterMD& obj);
49
 
};
50
 
 
51
 
void ViewMedia(TrackLayout& layout, MediaItem mi);
52
 
 
53
 
void FillThumbnail(const Gtk::TreeIter& itr, RefPtr<MediaStore> ms, Media& md);
54
 
 
55
 
// определить тип файла и создать по нему соответствующее медиа
56
 
StorageItem CreateMedia(const char* fname, std::string& err_string);
57
 
 
58
 
// заполнить медиа в браузере
59
 
void PublishMedia(const Gtk::TreeIter& itr, RefPtr<MediaStore> ms, MediaItem mi);
60
 
void PublishMediaStore(RefPtr<MediaStore> ms);
 
32
typedef boost::function<bool(TrackLayout&)> BoolTLFunctor;
 
33
BoolTLFunctor GetViewerFunctor(MediaItem mi);
61
34
 
62
35
void PackMBWindow(Gtk::HPaned& fcw_hpaned, Timeline::DAMonitor& mon, TrackLayout& layout, 
63
36
                  MediaBrowser& brw);
64
37
 
65
 
// pth - куда вставлять; по выходу pth равен позиции вставленного
66
 
// insert_after - вставить после pth, по возможности
67
 
bool TryAddMedia(const char* fname, Gtk::TreePath& pth, std::string& err_str, 
68
 
                 bool insert_after = true);
69
 
// интерактивный вариант TryAddMedia()
70
 
void TryAddMedias(const Str::List& paths, MediaBrowser& brw,
71
 
                  Gtk::TreePath& brw_pth, bool insert_after);
72
 
// desc - метка происхождения, добавления
73
 
void TryAddMediaQuiet(const std::string& fname, const std::string& desc);
74
 
void MuxAddStreams(const std::string& src_fname);
75
 
 
76
 
// ограничиваем возможность вставки верхним уровнем
77
 
// want_ia - где хотим вставить (dnd)
78
 
// возвращает - куда надо вставить (до или после)
79
 
bool ValidateMediaInsertionPos(Gtk::TreePath& brw_pth, bool want_ia = true);
80
 
 
81
38
} // namespace Project
82
39
 
83
 
namespace DVD {
84
 
 
85
 
void RunImport(Gtk::Window& par_win, const std::string& dvd_path = std::string());
86
 
 
87
 
} // namespace DVD
88
 
 
89
40
#endif // #ifndef __MGUI_PROJECT_MB_ACTIONS_H__
90
41