C# Class Plasma.TabBar

Inheritance: Qyoto.QGraphicsWidget, IDisposable
ファイルを表示 Open project: 0xd34df00d/Qross

Private Properties

Property Type Description
ChangeEvent void
ResizeEvent void
SetCurrentIndex void
WheelEvent void

Public Methods

Method Description
AddTab ( Qyoto.QIcon icon, string label ) : int
AddTab ( Qyoto.QIcon icon, string label, IQGraphicsLayoutItem content ) : int Adds a new tab in the last position @arg icon the icon for this tab @arg label the text label of the tab @arg content the page content that will be shown by this tab
AddTab ( string label ) : int
AddTab ( string label, IQGraphicsLayoutItem content ) : int Adds a new tab in the last position This is an overloaded member provided for convenience equivalent to addTab(QIcon(), label, page) @arg label the text label of the tab @arg content the page content that will be shown by this tab
Dispose ( ) : void
InsertTab ( int index, Qyoto.QIcon icon, string label ) : int
InsertTab ( int index, Qyoto.QIcon icon, string label, IQGraphicsLayoutItem content ) : int Adds a new tab in the desired position @arg index the position where to insert the new tab, if index <=0 will be the first position, if index >= count() will be the last @arg icon the icon for this tab @arg label the text label of the tab @arg content the page content that will be shown by this tab
InsertTab ( int index, string label ) : int
InsertTab ( int index, string label, IQGraphicsLayoutItem content ) : int Adds a new tab in the desired position This is an overloaded member provided for convenience equivalent to insertTab(index, QIcon(), label); @arg index the position where to insert the new tab, if index <=0 will be the first position, if index >= count() will be the last @arg label the text label of the tab @arg content the page content that will be shown by this tab
RemoveTab ( int index ) : void Removes a tab, contents are deleted @arg index the index of the tab to remove
SetTabIcon ( int index, Qyoto.QIcon icon ) : void Sets an icon for a given tab @arg index the index of the tab to modify @arg icon the new icon for the given tab
SetTabText ( int index, string label ) : void Sets the text label of the given tab @arg index the index of the tab to modify @arg label the new text label of the given tab
TabAt ( int index ) : IQGraphicsLayoutItem Returns the contents of a page @arg index the index of the tab to retrieve
TabBar ( ) : System
TabBar ( QGraphicsWidget parent ) : System Constructs a new TabBar @arg parent the parent of this widget
TabIcon ( int index ) : Qyoto.QIcon @arg index the index of the tab we want to know its icon
TabText ( int index ) : string @arg index the index of the tab we want to know its label
TakeTab ( int index ) : IQGraphicsLayoutItem Removes a tab, the page is reparented to 0 and is returned @arg index the index of the tab to remove

Protected Methods

Method Description
CreateProxy ( ) : void
TabBar ( Type dummy ) : System

Private Methods

Method Description
ChangeEvent ( Qyoto.QEvent arg1 ) : void
ResizeEvent ( Qyoto.QGraphicsSceneResizeEvent arg1 ) : void
SetCurrentIndex ( int index ) : void
WheelEvent ( Qyoto.QGraphicsSceneWheelEvent arg1 ) : void

Method Details

AddTab() public method

public AddTab ( Qyoto.QIcon icon, string label ) : int
icon Qyoto.QIcon
label string
return int

AddTab() public method

Adds a new tab in the last position @arg icon the icon for this tab @arg label the text label of the tab @arg content the page content that will be shown by this tab
public AddTab ( Qyoto.QIcon icon, string label, IQGraphicsLayoutItem content ) : int
icon Qyoto.QIcon
label string
content IQGraphicsLayoutItem
return int

AddTab() public method

public AddTab ( string label ) : int
label string
return int

AddTab() public method

Adds a new tab in the last position This is an overloaded member provided for convenience equivalent to addTab(QIcon(), label, page) @arg label the text label of the tab @arg content the page content that will be shown by this tab
public AddTab ( string label, IQGraphicsLayoutItem content ) : int
label string
content IQGraphicsLayoutItem
return int

CreateProxy() protected method

protected CreateProxy ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

InsertTab() public method

public InsertTab ( int index, Qyoto.QIcon icon, string label ) : int
index int
icon Qyoto.QIcon
label string
return int

InsertTab() public method

Adds a new tab in the desired position @arg index the position where to insert the new tab, if index <=0 will be the first position, if index >= count() will be the last @arg icon the icon for this tab @arg label the text label of the tab @arg content the page content that will be shown by this tab
public InsertTab ( int index, Qyoto.QIcon icon, string label, IQGraphicsLayoutItem content ) : int
index int
icon Qyoto.QIcon
label string
content IQGraphicsLayoutItem
return int

InsertTab() public method

public InsertTab ( int index, string label ) : int
index int
label string
return int

InsertTab() public method

Adds a new tab in the desired position This is an overloaded member provided for convenience equivalent to insertTab(index, QIcon(), label); @arg index the position where to insert the new tab, if index <=0 will be the first position, if index >= count() will be the last @arg label the text label of the tab @arg content the page content that will be shown by this tab
public InsertTab ( int index, string label, IQGraphicsLayoutItem content ) : int
index int
label string
content IQGraphicsLayoutItem
return int

RemoveTab() public method

Removes a tab, contents are deleted @arg index the index of the tab to remove
public RemoveTab ( int index ) : void
index int
return void

SetTabIcon() public method

Sets an icon for a given tab @arg index the index of the tab to modify @arg icon the new icon for the given tab
public SetTabIcon ( int index, Qyoto.QIcon icon ) : void
index int
icon Qyoto.QIcon
return void

SetTabText() public method

Sets the text label of the given tab @arg index the index of the tab to modify @arg label the new text label of the given tab
public SetTabText ( int index, string label ) : void
index int
label string
return void

TabAt() public method

Returns the contents of a page @arg index the index of the tab to retrieve
public TabAt ( int index ) : IQGraphicsLayoutItem
index int
return IQGraphicsLayoutItem

TabBar() public method

public TabBar ( ) : System
return System

TabBar() public method

Constructs a new TabBar @arg parent the parent of this widget
public TabBar ( QGraphicsWidget parent ) : System
parent Qyoto.QGraphicsWidget
return System

TabBar() protected method

protected TabBar ( Type dummy ) : System
dummy System.Type
return System

TabIcon() public method

@arg index the index of the tab we want to know its icon
public TabIcon ( int index ) : Qyoto.QIcon
index int
return Qyoto.QIcon

TabText() public method

@arg index the index of the tab we want to know its label
public TabText ( int index ) : string
index int
return string

TakeTab() public method

Removes a tab, the page is reparented to 0 and is returned @arg index the index of the tab to remove
public TakeTab ( int index ) : IQGraphicsLayoutItem
index int
return IQGraphicsLayoutItem