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;
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);
403 if (class_name==
"TabControl")
return true;
418 Window* getTabButtonPane()
const;
431 Window* getTabPane()
const;
433 void performChildWindowLayout();
439 return (name ==
"TabControl");
453 void removeTab_impl(
Window* window);
480 typedef std::vector<TabButton*> TabButtonVector;
485 std::map<Window*, Event::ScopedConnection> d_eventConnections;
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_
const UDim & getTabTextPadding(void) const
Return the amount of padding to add either side of the text in the tab.
Definition: CEGUITabControl.h:262
TabButtonVector d_tabButtonVector
Sorting for tabs.
Definition: CEGUITabControl.h:481
Base class for standard Tab Control widget.
Definition: CEGUITabControl.h:80
static const String EventNamespace
Namespace for global events.
Definition: CEGUITabControl.h:83
Property to query/set the position of the button pane in tab control.
Definition: CEGUITabControlProperties.h:100
static const String ButtonScrollLeftSuffix
Widget name suffix for the scroll tabs to right pane component.
Definition: CEGUITabControl.h:109
Property to access the tab text padding setting of the tab control.
Definition: CEGUITabControlProperties.h:78
Base class for TabControl window renderer objects.
Definition: CEGUITabControl.h:56
static const String ContentPaneNameSuffix
Widget name suffix for the tab content pane component.
Definition: CEGUITabControl.h:106
Base class used as the argument to all subscribers Event object.
Definition: CEGUIEventArgs.h:52
struct that holds some context relating to a RenderingSurface object.
Definition: CEGUIRenderingContext.h:40
virtual bool testClassName_impl(const String &class_name) const
Return whether this window was inherited from the given class name at some point in the inheritance h...
Definition: CEGUIWindow.h:3928
static const String TabButtonPaneNameSuffix
Widget name suffix for the tab button pane component.
Definition: CEGUITabControl.h:108
UDim d_tabHeight
The height of the tabs in pixels.
Definition: CEGUITabControl.h:478
Base-class for the assignable WindowRenderer object.
Definition: CEGUIWindowRenderer.h:51
const UDim & getTabHeight(void) const
Return the height of the tabs.
Definition: CEGUITabControl.h:256
Property to access the tab height setting of the tab control.
Definition: CEGUITabControlProperties.h:56
static const String TabButtonNameSuffix
Widget name suffix for the tab button components.
Definition: CEGUITabControl.h:107
float d_btGrabPos
Definition: CEGUITabControl.h:484
virtual void drawSelf(const RenderingContext &)
Perform the actual rendering for this Window.
Definition: CEGUITabControl.h:349
static const String EventSelectionChanged
Definition: CEGUITabControl.h:101
TabPanePosition d_tabPanePos
The position of the tab pane.
Definition: CEGUITabControl.h:483
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: CEGUIWindow.h:138
virtual bool testClassName_impl(const String &class_name) const
Return whether this window was inherited from the given class name at some point in the inheritance h...
Definition: CEGUITabControl.h:401
static const String WidgetTypeName
Window factory name.
Definition: CEGUITabControl.h:84
EventArgs based class that is used for objects passed to handlers triggered for events concerning som...
Definition: CEGUIInputEvent.h:245
TabPanePosition getTabPanePosition(void) const
Return the positioning of the tab pane.
Definition: CEGUITabControl.h:131
float d_firstTabOffset
The offset in pixels of the first tab.
Definition: CEGUITabControl.h:482
Class representing a unified dimension; that is a dimension that has both a relative 'scale' portion ...
Definition: CEGUIUDim.h:47
Class used to create XML Document.
Definition: CEGUIXMLSerializer.h:86
virtual bool validateWindowRenderer(const String &name) const
Function used in checking if a WindowRenderer is valid for this window.
Definition: CEGUITabControl.h:437
UDim d_tabPadding
The padding of the tabs relative to parent.
Definition: CEGUITabControl.h:479
String class used within the GUI system.
Definition: CEGUIString.h:57
static const String ButtonScrollRightSuffix
Widget name suffix for the scroll tabs to left pane component.
Definition: CEGUITabControl.h:110