finishing up my reformatting of the source from November/December following the guidelines that were posted. some extra things I added: * Any empty virtual declarations were kept to one line. * Enums were split up into separate lines to promote uniformity across all headers. ( each header file had a different style for enums)
37 lines
667 B
C++
37 lines
667 B
C++
class WStyle
|
|
{
|
|
public:
|
|
friend class StyleManager;
|
|
string stylized(string filename);
|
|
protected:
|
|
map<string, string> mapping;
|
|
};
|
|
|
|
class WStyleRule
|
|
{
|
|
public:
|
|
string filter; //The condition
|
|
string style; //The style to use.
|
|
};
|
|
class MTGDeck;
|
|
class StyleManager
|
|
{
|
|
public:
|
|
friend class OptionThemeStyle;
|
|
friend class OptionTheme;
|
|
StyleManager();
|
|
~StyleManager();
|
|
void determineActive(MTGDeck * p1, MTGDeck * p2);
|
|
WStyle * get();
|
|
protected:
|
|
int topRule;
|
|
int topSize;
|
|
int playerSrc;
|
|
|
|
void loadRules();
|
|
void killRules();
|
|
vector<WStyleRule*> rules;
|
|
string activeStyle;
|
|
map<string, WStyle*> styles;
|
|
};
|