mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-31 22:02:58 -06:00
-Alternative close button icons added (See TabBar::Style) -Sorting bug fixes -SetData no longer triggers Action -Separator style added git-svn-id: svn://ultimatepp.org/upp/trunk@2534 f0d560ea-af0d-0410-9eb7-867de7ffcac7
30 lines
No EOL
1 KiB
C++
30 lines
No EOL
1 KiB
C++
class TabBarCtrl : public TabBar
|
|
{
|
|
private:
|
|
VectorMap<Value, Ctrl *> ctrls;
|
|
ParentCtrl pane;
|
|
|
|
public:
|
|
TabBarCtrl() { Ctrl::Add(pane); }
|
|
virtual void Layout() { TabBar::Layout(); pane.SetRect(GetClientArea()); }
|
|
|
|
TabBarCtrl& AddCtrl(Ctrl &ctrl, Value key, Value value, Image icon = Null, String group = Null, bool make_active = false);
|
|
TabBarCtrl& AddCtrl(Ctrl &ctrl, Value value, Image icon = Null, String group = Null, bool make_active = false);
|
|
TabBarCtrl& InsertCtrl(int ix, Ctrl &ctrl, Value key, Value value, Image icon = Null, String group = Null, bool make_active = false);
|
|
TabBarCtrl& InsertCtrl(int ix, Ctrl &ctrl, Value value, Image icon = Null, String group = Null, bool make_active = false);
|
|
|
|
void RemoveCtrl(Value key);
|
|
void RemoveCtrl(int ix);
|
|
void RemoveCtrl(Ctrl &c);
|
|
|
|
Ctrl * GetCtrl(Value key);
|
|
Ctrl * GetCtrl(int ix);
|
|
Ctrl * GetCurrentCtrl();
|
|
int GetCurrentIndex();
|
|
|
|
void SetCtrl(Value key);
|
|
void SetCtrl(int ix);
|
|
void SetCtrl(Ctrl &ctrl);
|
|
protected:
|
|
virtual void CursorChanged();
|
|
}; |