30 #ifndef _CEGUITabControl_h_
31 #define _CEGUITabControl_h_
34 #include "../Window.h"
39 # pragma warning(push)
40 # pragma warning(disable : 4251)
122 size_t getTabCount(
void)
const;
130 TabPanePosition getTabPanePosition(
void)
const
131 {
return d_tabPanePos; }
139 void setTabPanePosition(TabPanePosition pos);
147 void setSelectedTab(
const String &name);
155 void setSelectedTab(uint ID);
163 void setSelectedTabAtIndex(
size_t index);
170 void makeTabVisible(
const String &name);
177 void makeTabVisible(uint ID);
184 void makeTabVisibleAtIndex(
size_t index);
198 Window* getTabContentsAtIndex(
size_t index)
const;
226 Window* getTabContents(uint ID)
const;
240 bool isTabContentsSelected(
Window* wnd)
const;
249 size_t getSelectedTabIndex()
const;
277 virtual void initialiseComponents(
void);
283 void setTabHeight(
const UDim& height);
289 void setTabTextPadding(
const UDim& padding);
306 void removeTab(
const String& name);
313 void removeTab(uint ID);
354 virtual void addButtonForTabContent(
Window* wnd);
359 virtual void removeButtonForTabContent(
Window* wnd);
378 virtual void selectTab_impl(
Window* wnd);
387 virtual void makeTabVisible_impl(
Window* wnd);
400 Window* getTabButtonPane()
const;
413 Window* getTabPane()
const;
415 void performChildWindowLayout(
bool nonclient_sized_hint =
false,
416 bool client_sized_hint =
false);
420 virtual bool validateWindowRenderer(
const WindowRenderer* renderer)
const;
433 void removeTab_impl(
Window* window);
461 CEGUI_VECTOR_ALLOC(
TabButton*)> TabButtonVector;
488 void calculateTabButtonSizePosition(
size_t index);
494 void addTabControlProperties(
void);
496 void addChild_impl(
Element* element);
497 void removeChild_impl(
Element* element);
505 bool handleContentWindowTextChanged(
const EventArgs& args);
506 bool handleTabButtonClicked(
const EventArgs& args);
507 bool handleScrollPane(
const EventArgs& e);
508 bool handleDraggedPane(
const EventArgs& e);
509 bool handleWheeledPane(
const EventArgs& e);
516 typedef TabControl::TabPanePosition return_type;
517 typedef return_type safe_method_return_type;
518 typedef TabControl::TabPanePosition pass_type;
521 static const String& getDataTypeName()
523 static String type(
"TabPanePosition");
528 static return_type fromString(
const String& str)
532 return TabControl::Bottom;
536 return TabControl::Top;
542 if (val == TabControl::Top)
546 else if (val == TabControl::Bottom)
552 assert(
false &&
"Invalid Tab Pane Position");
560 #if defined(_MSC_VER)
561 # pragma warning(pop)
564 #endif // end of guard _CEGUITabControl_h_