X-Git-Url: http://git.tdb.fi/?p=poefilter.git;a=blobdiff_plain;f=source%2Fcategory.h;h=0c549fa9811e54a72a8bcc4a9ad7c2be11033ddb;hp=53b1beb342fd09c5828d6e660f00f94053748bb5;hb=74086c211f082f6f47c3d038dd308a257a81e006;hpb=fc27eb63c05d915d606e17992ecd5b7f68478101 diff --git a/source/category.h b/source/category.h index 53b1beb..0c549fa 100644 --- a/source/category.h +++ b/source/category.h @@ -4,10 +4,12 @@ #include #include #include +#include "appearance.h" #include "condition.h" #include "rarity.h" class FilterStatement; +class PoeFilter; class Theme; class Category @@ -16,10 +18,12 @@ public: class Loader: public Msp::DataFile::ObjectLoader { private: + const PoeFilter &poe; CompoundCondition *compound; + Appearance::Loader app_loader; public: - Loader(Category &, CompoundCondition * = 0); + Loader(Category &, const PoeFilter &, CompoundCondition * = 0); protected: template @@ -29,6 +33,7 @@ public: private: void and_(); + void appearance(const std::string &); template void condition(typename T::Type); @@ -48,11 +53,8 @@ public: private: Condition *condition; - float font_size; - std::string border_color; unsigned order; - unsigned sound_type; - unsigned sound_volume; + Appearance appearance; public: Category(); @@ -61,7 +63,7 @@ public: ~Category(); unsigned get_order() const { return order; } - void create_statements(std::list &, const Theme &) const; + void create_statements(std::list &) const; }; #endif