Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_TabViewComponent Class Reference
Inheritance diagram for SCR_TabViewComponent:
SCR_ScriptedWidgetComponent

Protected Member Functions

override void HandlerAttached (Widget w)
void Init ()
override void HandlerDeattached (Widget w)
void CreateTab (SCR_TabViewContent content)
void CreateIcon (SCR_TabViewContent content)
void CreateTabContent (SCR_TabViewContent content, int index)
void FocusFirstWidget (Widget w)
void ShowIcon (int entry, bool show)
bool IsIconShown (int entry)
Widget GetEntryIcon (int entry)
SCR_TabViewContent GetEntryContent (int index)
array< ref SCR_TabViewContent > GetContents ()
SCR_TabViewContent GetContent (int index)
Widget GetContentWidget (int index)
void SelectIndex (bool select, int i)
void ShowTab (int i, bool callAction=true, bool playSound=true)
void ShowTabByIdentifier (string identifier, bool callAction=true, bool playSound=true)
int GetShownTab ()
int GetTabCount ()
void AddTab (ResourceName layout, string content, bool enabled=true, ResourceName tabImage=string.Empty, ResourceName iconLayout=string.Empty, float width=32, float height=32, string contentParam1=string.Empty, string contentParam2=string.Empty, string identifier=string.Empty)
void RemoveTab (int index)
void RemoveTabByIdentifier (string identifier)
void AddContentElement (SCR_TabViewContent content)
void ShowTabText (int index, bool show, int buttonWidth=-1)
void ShowAllTabsText (bool show, int buttonWidth=-1, bool ignoreSelected=true)
void SetTabText (int index, string text, string textParam1=string.Empty, string textParam2=string.Empty)
void SetTabImage (int index, ResourceName tabImage)
void ShowImage (int index, bool show)
void OnSelection (SCR_ButtonBaseComponent button)
void OnTabButtonToggle (SCR_ButtonBaseComponent button, bool isToggled)
void OnTabLeft ()
void OnTabRight ()
void UpdatePagingButtons (bool animate=true)
 Enable or disable paging buttons, if it's possible to page to the right or left.
int GetNextValidItem (bool toLeft)
void EnableTab (int tabIndex, bool enable, bool animate=true)
void EnableAllTabs (bool enable, bool ignoreCurrentActive=true, bool animate=true)
void SetTabVisible (int tabIndex, bool visible, bool animate=true)
void Enable (bool enable)
bool IsTabEnabled (int tabIndex)
void SetCanNavigate (bool isAllowed)
bool GetCanNavigate ()
void SetListenToActions (bool isAllowed)
bool GetListenToActions ()
void AddActionListeners ()
void RemoveActionListeners ()
SCR_TabViewContent GetShownTabComponent ()
void SetEntryIconSize (int index, float width=-1, float height=-1)
void SetPagingButtonsVisible (bool visible, bool animate=true)
ScriptInvokerTabViewIndex GetOnChanged ()
ScriptInvokerTabViewIndex GetOnContentCreate ()
ScriptInvokerTabView GetOnContentShow ()
ScriptInvokerTabView GetOnContentHide ()
ScriptInvokerTabView GetOnContentRemove ()
ScriptInvokerTabView GetOnTabChange ()
ScriptInvokerTabViewContentIndex GetOnContentSelect ()

Protected Attributes

ref array< ref SCR_TabViewContent > m_aElements
int m_iSelectedTab
ref Color m_ColorBackground
bool m_bKeepHiddenTabs
bool m_bCreateAllTabsAtStart
bool m_bManualInit
bool m_bCycleMode
ResourceName m_TabLayout
bool m_ListenToActions
string m_sActionLeft
string m_sActionRight
float m_fTabWidth
float m_fTabWidthTextHidden
string m_sSwitchSound
bool m_bShowTextOnlyWhenSelectedTab
Widget m_wButtons
Widget m_wButtonBar
Widget m_wContentOverlay
SCR_PagingButtonComponent m_PagingLeft
SCR_PagingButtonComponent m_PagingRight
ref ScriptInvokerTabViewIndex m_OnChanged
ref ScriptInvokerTabViewIndex m_OnContentCreate
ref ScriptInvokerTabView m_OnContentShow
ref ScriptInvokerTabView m_OnContentHide
ref ScriptInvokerTabView m_OnContentRemove
ref ScriptInvokerTabView m_OnTabChange
ref ScriptInvokerTabViewContentIndex m_OnContentSelect
const float BUTTON_PADDING_RIGHT = 4
const int MANW_TAB_WIDTH = 270
const string MANW_IDENTIFIER = "MANW"

Detailed Description

Definition at line 13 of file SCR_TabViewComponent.c.

Member Function Documentation

◆ AddActionListeners()

void SCR_TabViewComponent::AddActionListeners ( )
inlineprotected

Definition at line 875 of file SCR_TabViewComponent.c.

◆ AddContentElement()

void SCR_TabViewComponent::AddContentElement ( SCR_TabViewContent content)
inlineprotected

Definition at line 561 of file SCR_TabViewComponent.c.

◆ AddTab()

void SCR_TabViewComponent::AddTab ( ResourceName layout,
string content,
bool enabled = true,
ResourceName tabImage = string.Empty,
ResourceName iconLayout = string.Empty,
float width = 32,
float height = 32,
string contentParam1 = string.Empty,
string contentParam2 = string.Empty,
string identifier = string.Empty )
inlineprotected

Definition at line 467 of file SCR_TabViewComponent.c.

◆ CreateIcon()

void SCR_TabViewComponent::CreateIcon ( SCR_TabViewContent content)
inlineprotected

Definition at line 201 of file SCR_TabViewComponent.c.

◆ CreateTab()

void SCR_TabViewComponent::CreateTab ( SCR_TabViewContent content)
inlineprotected

Definition at line 143 of file SCR_TabViewComponent.c.

◆ CreateTabContent()

void SCR_TabViewComponent::CreateTabContent ( SCR_TabViewContent content,
int index )
inlineprotected

Definition at line 227 of file SCR_TabViewComponent.c.

◆ Enable()

void SCR_TabViewComponent::Enable ( bool enable)
inlineprotected

Definition at line 835 of file SCR_TabViewComponent.c.

◆ EnableAllTabs()

void SCR_TabViewComponent::EnableAllTabs ( bool enable,
bool ignoreCurrentActive = true,
bool animate = true )
inlineprotected

Definition at line 786 of file SCR_TabViewComponent.c.

◆ EnableTab()

void SCR_TabViewComponent::EnableTab ( int tabIndex,
bool enable,
bool animate = true )
inlineprotected

Definition at line 767 of file SCR_TabViewComponent.c.

◆ FocusFirstWidget()

void SCR_TabViewComponent::FocusFirstWidget ( Widget w)
inlineprotected

Definition at line 265 of file SCR_TabViewComponent.c.

◆ GetCanNavigate()

bool SCR_TabViewComponent::GetCanNavigate ( )
inlineprotected

Definition at line 857 of file SCR_TabViewComponent.c.

◆ GetContent()

SCR_TabViewContent SCR_TabViewComponent::GetContent ( int index)
inlineprotected

Definition at line 332 of file SCR_TabViewComponent.c.

◆ GetContents()

array< ref SCR_TabViewContent > SCR_TabViewComponent::GetContents ( )
inlineprotected

Definition at line 326 of file SCR_TabViewComponent.c.

◆ GetContentWidget()

Widget SCR_TabViewComponent::GetContentWidget ( int index)
inlineprotected

Definition at line 341 of file SCR_TabViewComponent.c.

◆ GetEntryContent()

SCR_TabViewContent SCR_TabViewComponent::GetEntryContent ( int index)
inlineprotected

Definition at line 317 of file SCR_TabViewComponent.c.

◆ GetEntryIcon()

Widget SCR_TabViewComponent::GetEntryIcon ( int entry)
inlineprotected

Definition at line 308 of file SCR_TabViewComponent.c.

◆ GetListenToActions()

bool SCR_TabViewComponent::GetListenToActions ( )
inlineprotected

Definition at line 869 of file SCR_TabViewComponent.c.

◆ GetNextValidItem()

int SCR_TabViewComponent::GetNextValidItem ( bool toLeft)
inlineprotected

Definition at line 724 of file SCR_TabViewComponent.c.

◆ GetOnChanged()

ScriptInvokerTabViewIndex SCR_TabViewComponent::GetOnChanged ( )
inlineprotected

Definition at line 925 of file SCR_TabViewComponent.c.

◆ GetOnContentCreate()

ScriptInvokerTabViewIndex SCR_TabViewComponent::GetOnContentCreate ( )
inlineprotected

Definition at line 934 of file SCR_TabViewComponent.c.

◆ GetOnContentHide()

ScriptInvokerTabView SCR_TabViewComponent::GetOnContentHide ( )
inlineprotected

Definition at line 952 of file SCR_TabViewComponent.c.

◆ GetOnContentRemove()

ScriptInvokerTabView SCR_TabViewComponent::GetOnContentRemove ( )
inlineprotected

Definition at line 961 of file SCR_TabViewComponent.c.

◆ GetOnContentSelect()

ScriptInvokerTabViewContentIndex SCR_TabViewComponent::GetOnContentSelect ( )
inlineprotected

Definition at line 979 of file SCR_TabViewComponent.c.

◆ GetOnContentShow()

ScriptInvokerTabView SCR_TabViewComponent::GetOnContentShow ( )
inlineprotected

Definition at line 943 of file SCR_TabViewComponent.c.

◆ GetOnTabChange()

ScriptInvokerTabView SCR_TabViewComponent::GetOnTabChange ( )
inlineprotected

Definition at line 970 of file SCR_TabViewComponent.c.

◆ GetShownTab()

int SCR_TabViewComponent::GetShownTab ( )
inlineprotected

Definition at line 455 of file SCR_TabViewComponent.c.

◆ GetShownTabComponent()

SCR_TabViewContent SCR_TabViewComponent::GetShownTabComponent ( )
inlineprotected

Definition at line 894 of file SCR_TabViewComponent.c.

◆ GetTabCount()

int SCR_TabViewComponent::GetTabCount ( )
inlineprotected

Definition at line 461 of file SCR_TabViewComponent.c.

◆ HandlerAttached()

override void SCR_TabViewComponent::HandlerAttached ( Widget w)
inlineprotected

Definition at line 84 of file SCR_TabViewComponent.c.

◆ HandlerDeattached()

override void SCR_TabViewComponent::HandlerDeattached ( Widget w)
inlineprotected

Definition at line 136 of file SCR_TabViewComponent.c.

◆ Init()

void SCR_TabViewComponent::Init ( )
inlineprotected

Definition at line 92 of file SCR_TabViewComponent.c.

◆ IsIconShown()

bool SCR_TabViewComponent::IsIconShown ( int entry)
inlineprotected

Definition at line 295 of file SCR_TabViewComponent.c.

◆ IsTabEnabled()

bool SCR_TabViewComponent::IsTabEnabled ( int tabIndex)
inlineprotected

Definition at line 842 of file SCR_TabViewComponent.c.

◆ OnSelection()

void SCR_TabViewComponent::OnSelection ( SCR_ButtonBaseComponent button)
inlineprotected

Definition at line 658 of file SCR_TabViewComponent.c.

◆ OnTabButtonToggle()

void SCR_TabViewComponent::OnTabButtonToggle ( SCR_ButtonBaseComponent button,
bool isToggled )
inlineprotected

React to button toggle and propagete state to modular button This is simplest way in current state but should be changed to not really on tab view forcing the state

Definition at line 681 of file SCR_TabViewComponent.c.

◆ OnTabLeft()

void SCR_TabViewComponent::OnTabLeft ( )
inlineprotected

Definition at line 692 of file SCR_TabViewComponent.c.

◆ OnTabRight()

void SCR_TabViewComponent::OnTabRight ( )
inlineprotected

Definition at line 703 of file SCR_TabViewComponent.c.

◆ RemoveActionListeners()

void SCR_TabViewComponent::RemoveActionListeners ( )
inlineprotected

Definition at line 885 of file SCR_TabViewComponent.c.

◆ RemoveTab()

void SCR_TabViewComponent::RemoveTab ( int index)
inlineprotected

Definition at line 507 of file SCR_TabViewComponent.c.

◆ RemoveTabByIdentifier()

void SCR_TabViewComponent::RemoveTabByIdentifier ( string identifier)
inlineprotected

Definition at line 548 of file SCR_TabViewComponent.c.

◆ SelectIndex()

void SCR_TabViewComponent::SelectIndex ( bool select,
int i )
inlineprotected

Definition at line 351 of file SCR_TabViewComponent.c.

◆ SetCanNavigate()

void SCR_TabViewComponent::SetCanNavigate ( bool isAllowed)
inlineprotected

Definition at line 851 of file SCR_TabViewComponent.c.

◆ SetEntryIconSize()

void SCR_TabViewComponent::SetEntryIconSize ( int index,
float width = -1,
float height = -1 )
inlineprotected

Definition at line 900 of file SCR_TabViewComponent.c.

◆ SetListenToActions()

void SCR_TabViewComponent::SetListenToActions ( bool isAllowed)
inlineprotected

Definition at line 863 of file SCR_TabViewComponent.c.

◆ SetPagingButtonsVisible()

void SCR_TabViewComponent::SetPagingButtonsVisible ( bool visible,
bool animate = true )
inlineprotected

Definition at line 913 of file SCR_TabViewComponent.c.

◆ SetTabImage()

void SCR_TabViewComponent::SetTabImage ( int index,
ResourceName tabImage )
inlineprotected

Definition at line 618 of file SCR_TabViewComponent.c.

◆ SetTabText()

void SCR_TabViewComponent::SetTabText ( int index,
string text,
string textParam1 = string.Empty,
string textParam2 = string.Empty )
inlineprotected

Definition at line 605 of file SCR_TabViewComponent.c.

◆ SetTabVisible()

void SCR_TabViewComponent::SetTabVisible ( int tabIndex,
bool visible,
bool animate = true )
inlineprotected

Definition at line 800 of file SCR_TabViewComponent.c.

◆ ShowAllTabsText()

void SCR_TabViewComponent::ShowAllTabsText ( bool show,
int buttonWidth = -1,
bool ignoreSelected = true )
inlineprotected

Definition at line 585 of file SCR_TabViewComponent.c.

◆ ShowIcon()

void SCR_TabViewComponent::ShowIcon ( int entry,
bool show )
inlineprotected

Definition at line 282 of file SCR_TabViewComponent.c.

◆ ShowImage()

void SCR_TabViewComponent::ShowImage ( int index,
bool show )
inlineprotected

Definition at line 641 of file SCR_TabViewComponent.c.

◆ ShowTab()

void SCR_TabViewComponent::ShowTab ( int i,
bool callAction = true,
bool playSound = true )
inlineprotected

Definition at line 412 of file SCR_TabViewComponent.c.

◆ ShowTabByIdentifier()

void SCR_TabViewComponent::ShowTabByIdentifier ( string identifier,
bool callAction = true,
bool playSound = true )
inlineprotected

Definition at line 442 of file SCR_TabViewComponent.c.

◆ ShowTabText()

void SCR_TabViewComponent::ShowTabText ( int index,
bool show,
int buttonWidth = -1 )
inlineprotected

Definition at line 567 of file SCR_TabViewComponent.c.

◆ UpdatePagingButtons()

void SCR_TabViewComponent::UpdatePagingButtons ( bool animate = true)
inlineprotected

Enable or disable paging buttons, if it's possible to page to the right or left.

Definition at line 715 of file SCR_TabViewComponent.c.

Member Data Documentation

◆ BUTTON_PADDING_RIGHT

const float SCR_TabViewComponent::BUTTON_PADDING_RIGHT = 4
protected

Definition at line 78 of file SCR_TabViewComponent.c.

◆ m_aElements

ref array<ref SCR_TabViewContent> SCR_TabViewComponent::m_aElements
protected

Definition at line 16 of file SCR_TabViewComponent.c.

◆ m_bCreateAllTabsAtStart

bool SCR_TabViewComponent::m_bCreateAllTabsAtStart
protected

Definition at line 28 of file SCR_TabViewComponent.c.

◆ m_bCycleMode

bool SCR_TabViewComponent::m_bCycleMode
protected

Definition at line 34 of file SCR_TabViewComponent.c.

◆ m_bKeepHiddenTabs

bool SCR_TabViewComponent::m_bKeepHiddenTabs
protected

Definition at line 25 of file SCR_TabViewComponent.c.

◆ m_bManualInit

bool SCR_TabViewComponent::m_bManualInit
protected

Definition at line 31 of file SCR_TabViewComponent.c.

◆ m_bShowTextOnlyWhenSelectedTab

bool SCR_TabViewComponent::m_bShowTextOnlyWhenSelectedTab
protected

Definition at line 58 of file SCR_TabViewComponent.c.

◆ m_ColorBackground

ref Color SCR_TabViewComponent::m_ColorBackground
protected

Definition at line 22 of file SCR_TabViewComponent.c.

◆ m_fTabWidth

float SCR_TabViewComponent::m_fTabWidth
protected

Definition at line 49 of file SCR_TabViewComponent.c.

◆ m_fTabWidthTextHidden

float SCR_TabViewComponent::m_fTabWidthTextHidden
protected

Definition at line 52 of file SCR_TabViewComponent.c.

◆ m_iSelectedTab

int SCR_TabViewComponent::m_iSelectedTab
protected

Definition at line 19 of file SCR_TabViewComponent.c.

◆ m_ListenToActions

bool SCR_TabViewComponent::m_ListenToActions
protected

Definition at line 40 of file SCR_TabViewComponent.c.

◆ m_OnChanged

ref ScriptInvokerTabViewIndex SCR_TabViewComponent::m_OnChanged
protected

Definition at line 67 of file SCR_TabViewComponent.c.

◆ m_OnContentCreate

ref ScriptInvokerTabViewIndex SCR_TabViewComponent::m_OnContentCreate
protected

Definition at line 68 of file SCR_TabViewComponent.c.

◆ m_OnContentHide

ref ScriptInvokerTabView SCR_TabViewComponent::m_OnContentHide
protected

Definition at line 71 of file SCR_TabViewComponent.c.

◆ m_OnContentRemove

ref ScriptInvokerTabView SCR_TabViewComponent::m_OnContentRemove
protected

Definition at line 72 of file SCR_TabViewComponent.c.

◆ m_OnContentSelect

ref ScriptInvokerTabViewContentIndex SCR_TabViewComponent::m_OnContentSelect
protected

Definition at line 76 of file SCR_TabViewComponent.c.

◆ m_OnContentShow

ref ScriptInvokerTabView SCR_TabViewComponent::m_OnContentShow
protected

Definition at line 70 of file SCR_TabViewComponent.c.

◆ m_OnTabChange

ref ScriptInvokerTabView SCR_TabViewComponent::m_OnTabChange
protected

Definition at line 73 of file SCR_TabViewComponent.c.

◆ m_PagingLeft

SCR_PagingButtonComponent SCR_TabViewComponent::m_PagingLeft
protected

Definition at line 63 of file SCR_TabViewComponent.c.

◆ m_PagingRight

SCR_PagingButtonComponent SCR_TabViewComponent::m_PagingRight
protected

Definition at line 64 of file SCR_TabViewComponent.c.

◆ m_sActionLeft

string SCR_TabViewComponent::m_sActionLeft
protected

Definition at line 43 of file SCR_TabViewComponent.c.

◆ m_sActionRight

string SCR_TabViewComponent::m_sActionRight
protected

Definition at line 46 of file SCR_TabViewComponent.c.

◆ m_sSwitchSound

string SCR_TabViewComponent::m_sSwitchSound
protected

Definition at line 55 of file SCR_TabViewComponent.c.

◆ m_TabLayout

ResourceName SCR_TabViewComponent::m_TabLayout
protected

Definition at line 37 of file SCR_TabViewComponent.c.

◆ m_wButtonBar

Widget SCR_TabViewComponent::m_wButtonBar
protected

Definition at line 61 of file SCR_TabViewComponent.c.

◆ m_wButtons

Widget SCR_TabViewComponent::m_wButtons
protected

Definition at line 60 of file SCR_TabViewComponent.c.

◆ m_wContentOverlay

Widget SCR_TabViewComponent::m_wContentOverlay
protected

Definition at line 62 of file SCR_TabViewComponent.c.

◆ MANW_IDENTIFIER

const string SCR_TabViewComponent::MANW_IDENTIFIER = "MANW"
protected

Definition at line 81 of file SCR_TabViewComponent.c.

◆ MANW_TAB_WIDTH

const int SCR_TabViewComponent::MANW_TAB_WIDTH = 270
protected

Definition at line 80 of file SCR_TabViewComponent.c.


The documentation for this class was generated from the following file: