30 #ifndef _CEGUITabControl_h_
31 #define _CEGUITabControl_h_
33 #include "../CEGUIBase.h"
34 #include "../CEGUIWindow.h"
35 #include "CEGUITabControlProperties.h"
40 # pragma warning(push)
41 # pragma warning(disable : 4251)
123 size_t getTabCount(
void)
const;
131 TabPanePosition getTabPanePosition(
void)
const
132 {
return d_tabPanePos; }
140 void setTabPanePosition(TabPanePosition pos);
148 void setSelectedTab(
const String &name);
156 void setSelectedTab(uint ID);
164 void setSelectedTabAtIndex(
size_t index);
171 void makeTabVisible(
const String &name);
178 void makeTabVisible(uint ID);
185 void makeTabVisibleAtIndex(
size_t index);
199 Window* getTabContentsAtIndex(
size_t index)
const;
227 Window* getTabContents(uint ID)
const;
241 bool isTabContentsSelected(
Window* wnd)
const;
250 size_t getSelectedTabIndex()
const;
278 virtual void initialiseComponents(
void);
284 void setTabHeight(
const UDim& height);
290 void setTabTextPadding(
const UDim& padding);
307 void removeTab(
const String& name);
314 void removeTab(uint ID);
355 virtual void addButtonForTabContent(
Window* wnd);
360 virtual void removeButtonForTabContent(
Window* wnd);
379 virtual void selectTab_impl(
Window* wnd);
388 virtual void makeTabVisible_impl(
Window* wnd);
401 virtual bool testClassName_impl(
const String& class_name)
const
403 if (class_name==
"TabControl")
return true;
418 Window* getTabButtonPane()
const;
431 Window* getTabPane()
const;
433 void performChildWindowLayout();
437 virtual bool validateWindowRenderer(
const String& name)
const
439 return (name ==
"TabControl");
453 void removeTab_impl(
Window* window);
480 typedef std::vector<TabButton*> TabButtonVector;
507 void calculateTabButtonSizePosition(
size_t index);
520 void addTabControlProperties(
void);
522 void addChild_impl(
Window* wnd);
523 void removeChild_impl(
Window* wnd);
528 bool handleContentWindowTextChanged(
const EventArgs& args);
529 bool handleTabButtonClicked(
const EventArgs& args);
530 bool handleScrollPane(
const EventArgs& e);
531 bool handleDraggedPane(
const EventArgs& e);
532 bool handleWheeledPane(
const EventArgs& e);
539 #if defined(_MSC_VER)
540 # pragma warning(pop)
543 #endif // end of guard _CEGUITabControl_h_