diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-02-02 14:49:02 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-02-02 14:49:02 +0000 |
| commit | de4d3d0fdda0f20ccab06877444fc1e5ff362f93 (patch) | |
| tree | 1b8aa92b795406a0c040ba02381a17cf548d94b1 /src/lib/filter.h | |
| parent | 98bbaf1e907e927dbd26131cbdef243a82fdc2d1 (diff) | |
Tidy up filters dialog; don't show non-existant ones, and categorise them.
Diffstat (limited to 'src/lib/filter.h')
| -rw-r--r-- | src/lib/filter.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/filter.h b/src/lib/filter.h index e7e8b389f..205d92482 100644 --- a/src/lib/filter.h +++ b/src/lib/filter.h @@ -33,7 +33,7 @@ class Filter { public: - Filter (std::string, std::string, std::string, std::string); + Filter (std::string, std::string, std::string, std::string, std::string); /** @return our id */ std::string id () const { @@ -54,6 +54,10 @@ public: std::string pp () const { return _pp; } + + std::string category () const { + return _category; + } static std::vector<Filter const *> all (); static Filter const * from_id (std::string); @@ -66,6 +70,7 @@ private: std::string _id; /** user-visible name */ std::string _name; + std::string _category; /** string for a FFmpeg video filter descriptor */ std::string _vf; /** string for a FFmpeg post-processing descriptor */ @@ -73,7 +78,7 @@ private: /** all available filters */ static std::vector<Filter const *> _filters; - static void maybe_add (std::string, std::string, std::string, std::string); + static void maybe_add (std::string, std::string, std::string, std::string, std::string); }; #endif |
