ultimatepp/bazaar/TabBarCtrlTest/TabBarCtrlTest.h
kohait e19d2d32b3 TabBar: forgotten files, TabBarCtrl: structuring code, FileTabsExample: ordering of Tabs
git-svn-id: svn://ultimatepp.org/upp/trunk@2547 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2010-07-19 10:11:58 +00:00

52 lines
1 KiB
C++

#ifndef _TabBarTest_TabBarTest_h
#define _TabBarTest_TabBarTest_h
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
#include <TabBar/TabBar.h>
#define LAYOUTFILE <TabBarCtrlTest/TabBarCtrlTest.lay>
#include <CtrlCore/lay.h>
class TabBarTest : public WithTabBarTestLayout<TopWindow>
{
struct ReverseValueOrder : public StdValueOrder
{
virtual bool operator()(const Value& a, const Value& b) const
{ return StdValueCompare(b, a, language) < 0; }
};
private:
TabBarCtrl tabs;
StdValueOrder forward;
ReverseValueOrder backward;
WithLayout1<ParentCtrl> layout1;
WithLayout2<ParentCtrl> layout2;
WithLayout3<ParentCtrl> layout3;
void OnTabsSortOnce();
void OnTabSort();
void OnGrouping();
void OnGroupSort();
void OnStacking();
void OnStackSort();
void OnTabCursor();
void OnAdd();
void OnSBThickness();
void OnGroupSeps();
void OnChooseCrosses();
void OnEmptySeps();
ValueOrder &GetSortOrder();
public:
typedef TabBarTest CLASSNAME;
TabBarTest();
};
#endif