14 #ifndef BERRYIQTSTYLEMANAGER_H_
15 #define BERRYIQTSTYLEMANAGER_H_
34 Style(
const QString& name,
const QString& fn)
35 : name(name), fileName(fn) {}
45 {
return name < s.
name; }
48 {
return name == s.
name; }
55 virtual Style GetStyle()
const = 0;
56 virtual QString GetStylesheet()
const = 0;
57 virtual QString GetActiveTabStylesheet()
const = 0;
58 virtual QString GetTabStylesheet()
const = 0;
59 virtual QString GetFont()
const = 0;
61 virtual void AddStyle(
const QString& styleFileName,
const QString& styleName = QString()) = 0;
62 virtual void AddStyles(
const QString& path) = 0;
63 virtual void RemoveStyle(
const QString& styleFileName) = 0;
64 virtual void RemoveStyles(
const QString& repository = QString()) = 0;
66 virtual void GetStyles(
StyleList& styles)
const = 0;
67 virtual void SetStyle(
const QString& fileName) = 0;
69 virtual void GetFonts(QStringList& fontNames)
const = 0;
70 virtual void SetFont(
const QString& fontName) = 0;
71 virtual void SetFontSize(
const int fontSize) = 0;
72 virtual void UpdateWorkbenchFont() = 0;
74 virtual Style GetDefaultStyle()
const = 0;
75 virtual void SetDefaultStyle() = 0;
77 virtual bool Contains(
const QString& fileName)
const = 0;