diff --git a/bazaar/TabBar/FileTabs.h b/bazaar/TabBar/FileTabs.h index c78ceaa0d..91440639b 100644 --- a/bazaar/TabBar/FileTabs.h +++ b/bazaar/TabBar/FileTabs.h @@ -1,43 +1,43 @@ -class FileTabs : public TabBar -{ -private: - bool normalicons:1; - bool stackedicons:1; - bool greyedicons:1; - Color filecolor; - Color extcolor; -protected: - // Overload this to change grouping behaviour - virtual String GetFileGroup(const String &file); - // Overload this to change stacking behaviour - virtual String GetStackId(const Tab &a); - virtual unsigned GetStackSortOrder(const Tab &a); - - virtual void PaintTab(Draw& w, const Rect &r, const Tab& tab, const Font &font, - Color ink, dword style); - virtual void PaintStackedTab(Draw& w, const Rect &r, const Tab& tab, const Font &font, - Color ink, dword style); - virtual Size GetStackedSize(const Tab &t); -public: - FileTabs(); - - void AddFile(const WString &file, bool make_active = true); - void AddFile(const WString &file, Image img, bool make_active = true); - void InsertFile(int ix, const WString &file, bool make_active = true); - void InsertFile(int ix, const WString &file, Image img, bool make_active = true); - - void AddFiles(const Vector &files, bool make_active = true); - void AddFiles(const Vector &files, const Vector &img, bool make_active = true); - void InsertFiles(int ix, const Vector &files, bool make_active = true); - void InsertFiles(int ix, const Vector &files, const Vector &img, bool make_active = true); - - void RenameFile(WString &from, WString &to, Image icon = Null); - - FileTabs& FileColor(Color c) { filecolor = c; Refresh(); return *this; } - FileTabs& ExtColor(Color c) { extcolor = c; Refresh(); return *this; } - - FileTabs& FileIcons(bool normal = true, bool stacked = true, bool stacked_greyedout = true); - - Vector GetFiles() const; - FileTabs& operator<<(const FileTabs &src); -}; \ No newline at end of file +class FileTabs : public TabBar +{ +private: + bool normalicons:1; + bool stackedicons:1; + bool greyedicons:1; + Color filecolor; + Color extcolor; +protected: + // Overload this to change grouping behaviour + virtual String GetFileGroup(const String &file); + // Overload this to change stacking behaviour + virtual String GetStackId(const Tab &a); + virtual unsigned GetStackSortOrder(const Tab &a); + + virtual void PaintTab(Draw& w, const Rect &r, const Tab& tab, const Font &font, + Color ink, dword style); + virtual void PaintStackedTab(Draw& w, const Rect &r, const Tab& tab, const Font &font, + Color ink, dword style); + virtual Size GetStackedSize(const Tab &t); +public: + FileTabs(); + + void AddFile(const WString &file, bool make_active = true); + void AddFile(const WString &file, Image img, bool make_active = true); + void InsertFile(int ix, const WString &file, bool make_active = true); + void InsertFile(int ix, const WString &file, Image img, bool make_active = true); + + void AddFiles(const Vector &files, bool make_active = true); + void AddFiles(const Vector &files, const Vector &img, bool make_active = true); + void InsertFiles(int ix, const Vector &files, bool make_active = true); + void InsertFiles(int ix, const Vector &files, const Vector &img, bool make_active = true); + + void RenameFile(WString &from, WString &to, Image icon = Null); + + FileTabs& FileColor(Color c) { filecolor = c; Refresh(); return *this; } + FileTabs& ExtColor(Color c) { extcolor = c; Refresh(); return *this; } + + FileTabs& FileIcons(bool normal = true, bool stacked = true, bool stacked_greyedout = true); + + Vector GetFiles() const; + FileTabs& operator<<(const FileTabs &src); +};