mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
TabBar/FileTabs.h -- Added newline at end of file to suppress GCC warning
git-svn-id: svn://ultimatepp.org/upp/trunk@1894 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
dd48f3ce18
commit
89eedc6633
1 changed files with 43 additions and 43 deletions
|
|
@ -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<String> &files, bool make_active = true);
|
||||
void AddFiles(const Vector<String> &files, const Vector<Image> &img, bool make_active = true);
|
||||
void InsertFiles(int ix, const Vector<String> &files, bool make_active = true);
|
||||
void InsertFiles(int ix, const Vector<String> &files, const Vector<Image> &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<String> GetFiles() const;
|
||||
FileTabs& operator<<(const FileTabs &src);
|
||||
};
|
||||
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<String> &files, bool make_active = true);
|
||||
void AddFiles(const Vector<String> &files, const Vector<Image> &img, bool make_active = true);
|
||||
void InsertFiles(int ix, const Vector<String> &files, bool make_active = true);
|
||||
void InsertFiles(int ix, const Vector<String> &files, const Vector<Image> &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<String> GetFiles() const;
|
||||
FileTabs& operator<<(const FileTabs &src);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue