]> git.tdb.fi Git - poefilter.git/blobdiff - source/filter.h
Add show flag to filter blocks
[poefilter.git] / source / filter.h
index 46429431fe4293a2b43f938c80d92931eb525955..8511fff96a2542c31b73ac85c81b848f51dfd49a 100644 (file)
@@ -6,6 +6,7 @@
 #include <string>
 #include <msp/datafile/objectloader.h>
 #include <msp/io/base.h>
+#include "appearance.h"
 
 class Category;
 class PoeFilter;
@@ -43,21 +44,30 @@ public:
        private:
                static std::string glob_to_re(const std::string &);
                static bool category_order(const Category *, const Category *);
+               void add_categories(const std::string &, bool);
 
+               void cancel(const std::string &);
                void hide(const std::string &);
                void include(const std::string &);
                void show(const std::string &);
        };
 
 private:
-       std::list<const Category *> categories;
+       struct Block
+       {
+               bool show;
+               const Category *category;
+               Appearance appearance;
+       };
+
+       std::list<Block> blocks;
        bool abstract;
 
 public:
        Filter();
 
        bool is_abstract() const { return abstract; }
-       void write(Msp::IO::Base &, const Theme &) const;
+       void write(Msp::IO::Base &) const;
 };
 
 #endif