Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_TabViewComponent.c File Reference

Go to the source code of this file.

Classes

class  SCR_TabViewComponent

Typedefs

typedef func ScriptInvokerTabViewMethod
typedef ScriptInvokerBase< ScriptInvokerTabViewMethodScriptInvokerTabView
typedef func ScriptInvokerTabViewIndexMethod
typedef ScriptInvokerBase< ScriptInvokerTabViewIndexMethodScriptInvokerTabViewIndex
typedef func ScriptInvokerTabViewContentIndexMethod
typedef ScriptInvokerBase< ScriptInvokerTabViewContentIndexMethodScriptInvokerTabViewContentIndex

Functions

void ScriptInvokerTabViewMethod (SCR_TabViewComponent tabView, Widget widget)
void ScriptInvokerTabViewIndexMethod (SCR_TabViewComponent tabView, Widget widget, int index)
void ScriptInvokerTabViewContentIndexMethod (SCR_TabViewComponent tabView, SCR_TabViewContent tabContent, int index)
SCR_TabViewComponent SCR_ScriptedWidgetComponent BaseContainerProps ()
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 ()
SCR_TabViewComponent SCR_ScriptedWidgetComponent SCR_BaseContainerLocalizedTitleField ("m_sTabButtonContent")

Variables

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"

Typedef Documentation

◆ ScriptInvokerTabView

Definition at line 3 of file SCR_TabViewComponent.c.

◆ ScriptInvokerTabViewContentIndex

◆ ScriptInvokerTabViewContentIndexMethod

◆ ScriptInvokerTabViewIndex

Definition at line 7 of file SCR_TabViewComponent.c.

◆ ScriptInvokerTabViewIndexMethod

Definition at line 6 of file SCR_TabViewComponent.c.

◆ ScriptInvokerTabViewMethod

Definition at line 2 of file SCR_TabViewComponent.c.

Function Documentation

◆ AddActionListeners()

void BaseContainerProps::AddActionListeners ( )
protected

Definition at line 860 of file SCR_TabViewComponent.c.

◆ AddContentElement()

void BaseContainerProps::AddContentElement ( SCR_TabViewContent content)
protected

Definition at line 546 of file SCR_TabViewComponent.c.

◆ AddTab()

void BaseContainerProps::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 )
protected

Definition at line 452 of file SCR_TabViewComponent.c.

◆ BaseContainerProps()

◆ CreateIcon()

void BaseContainerProps::CreateIcon ( SCR_TabViewContent content)
protected

Definition at line 186 of file SCR_TabViewComponent.c.

◆ CreateTab()

void BaseContainerProps::CreateTab ( SCR_TabViewContent content)
protected

Definition at line 128 of file SCR_TabViewComponent.c.

◆ CreateTabContent()

void BaseContainerProps::CreateTabContent ( SCR_TabViewContent content,
int index )
protected

Definition at line 212 of file SCR_TabViewComponent.c.

◆ Enable()

void BaseContainerProps::Enable ( bool enable)
protected

Definition at line 820 of file SCR_TabViewComponent.c.

◆ EnableAllTabs()

void BaseContainerProps::EnableAllTabs ( bool enable,
bool ignoreCurrentActive = true,
bool animate = true )
protected

Definition at line 771 of file SCR_TabViewComponent.c.

◆ EnableTab()

void BaseContainerProps::EnableTab ( int tabIndex,
bool enable,
bool animate = true )
protected

Definition at line 752 of file SCR_TabViewComponent.c.

◆ FocusFirstWidget()

void BaseContainerProps::FocusFirstWidget ( Widget w)
protected

Definition at line 250 of file SCR_TabViewComponent.c.

◆ GetCanNavigate()

bool BaseContainerProps::GetCanNavigate ( )
protected

Definition at line 842 of file SCR_TabViewComponent.c.

◆ GetContent()

SCR_TabViewContent BaseContainerProps::GetContent ( int index)
protected

Definition at line 317 of file SCR_TabViewComponent.c.

◆ GetContents()

array< ref SCR_TabViewContent > BaseContainerProps::GetContents ( )
protected

Definition at line 311 of file SCR_TabViewComponent.c.

◆ GetContentWidget()

Widget BaseContainerProps::GetContentWidget ( int index)
protected

Definition at line 326 of file SCR_TabViewComponent.c.

◆ GetEntryContent()

SCR_TabViewContent BaseContainerProps::GetEntryContent ( int index)
protected

Definition at line 302 of file SCR_TabViewComponent.c.

◆ GetEntryIcon()

Widget BaseContainerProps::GetEntryIcon ( int entry)
protected

Definition at line 293 of file SCR_TabViewComponent.c.

◆ GetListenToActions()

bool BaseContainerProps::GetListenToActions ( )
protected

Definition at line 854 of file SCR_TabViewComponent.c.

◆ GetNextValidItem()

int BaseContainerProps::GetNextValidItem ( bool toLeft)
protected

Definition at line 709 of file SCR_TabViewComponent.c.

◆ GetOnChanged()

ScriptInvokerTabViewIndex BaseContainerProps::GetOnChanged ( )
protected

Definition at line 910 of file SCR_TabViewComponent.c.

◆ GetOnContentCreate()

ScriptInvokerTabViewIndex BaseContainerProps::GetOnContentCreate ( )
protected

Definition at line 919 of file SCR_TabViewComponent.c.

◆ GetOnContentHide()

ScriptInvokerTabView BaseContainerProps::GetOnContentHide ( )
protected

Definition at line 937 of file SCR_TabViewComponent.c.

◆ GetOnContentRemove()

ScriptInvokerTabView BaseContainerProps::GetOnContentRemove ( )
protected

Definition at line 946 of file SCR_TabViewComponent.c.

◆ GetOnContentSelect()

ScriptInvokerTabViewContentIndex BaseContainerProps::GetOnContentSelect ( )
protected

Definition at line 964 of file SCR_TabViewComponent.c.

◆ GetOnContentShow()

ScriptInvokerTabView BaseContainerProps::GetOnContentShow ( )
protected

Definition at line 928 of file SCR_TabViewComponent.c.

◆ GetOnTabChange()

ScriptInvokerTabView BaseContainerProps::GetOnTabChange ( )
protected

Definition at line 955 of file SCR_TabViewComponent.c.

◆ GetShownTab()

int BaseContainerProps::GetShownTab ( )
protected

Definition at line 440 of file SCR_TabViewComponent.c.

◆ GetShownTabComponent()

SCR_TabViewContent BaseContainerProps::GetShownTabComponent ( )
protected

Definition at line 879 of file SCR_TabViewComponent.c.

◆ GetTabCount()

int BaseContainerProps::GetTabCount ( )
protected

Definition at line 446 of file SCR_TabViewComponent.c.

◆ HandlerAttached()

override void BaseContainerProps::HandlerAttached ( Widget w)
protected

Definition at line 69 of file SCR_TabViewComponent.c.

◆ HandlerDeattached()

override void BaseContainerProps::HandlerDeattached ( Widget w)
protected

Definition at line 121 of file SCR_TabViewComponent.c.

◆ Init()

void BaseContainerProps::Init ( )
protected

Definition at line 77 of file SCR_TabViewComponent.c.

◆ IsIconShown()

bool BaseContainerProps::IsIconShown ( int entry)
protected

Definition at line 280 of file SCR_TabViewComponent.c.

◆ IsTabEnabled()

bool BaseContainerProps::IsTabEnabled ( int tabIndex)
protected

Definition at line 827 of file SCR_TabViewComponent.c.

◆ OnSelection()

void BaseContainerProps::OnSelection ( SCR_ButtonBaseComponent button)
protected

Definition at line 643 of file SCR_TabViewComponent.c.

◆ OnTabButtonToggle()

void BaseContainerProps::OnTabButtonToggle ( SCR_ButtonBaseComponent button,
bool isToggled )
protected

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 666 of file SCR_TabViewComponent.c.

◆ OnTabLeft()

void BaseContainerProps::OnTabLeft ( )
protected

Definition at line 677 of file SCR_TabViewComponent.c.

◆ OnTabRight()

void BaseContainerProps::OnTabRight ( )
protected

Definition at line 688 of file SCR_TabViewComponent.c.

◆ RemoveActionListeners()

void BaseContainerProps::RemoveActionListeners ( )
protected

Definition at line 870 of file SCR_TabViewComponent.c.

◆ RemoveTab()

void BaseContainerProps::RemoveTab ( int index)
protected

Definition at line 492 of file SCR_TabViewComponent.c.

◆ RemoveTabByIdentifier()

void BaseContainerProps::RemoveTabByIdentifier ( string identifier)
protected

Definition at line 533 of file SCR_TabViewComponent.c.

◆ SCR_BaseContainerLocalizedTitleField()

SCR_TabViewComponent SCR_ScriptedWidgetComponent SCR_BaseContainerLocalizedTitleField ( "m_sTabButtonContent" )

Definition at line 989 of file SCR_TabViewComponent.c.

◆ ScriptInvokerTabViewContentIndexMethod()

void ScriptInvokerTabViewContentIndexMethod ( SCR_TabViewComponent tabView,
SCR_TabViewContent tabContent,
int index )

◆ ScriptInvokerTabViewIndexMethod()

◆ ScriptInvokerTabViewMethod()

◆ SelectIndex()

void BaseContainerProps::SelectIndex ( bool select,
int i )
protected

Definition at line 336 of file SCR_TabViewComponent.c.

◆ SetCanNavigate()

void BaseContainerProps::SetCanNavigate ( bool isAllowed)
protected

Definition at line 836 of file SCR_TabViewComponent.c.

◆ SetEntryIconSize()

void BaseContainerProps::SetEntryIconSize ( int index,
float width = -1,
float height = -1 )
protected

Definition at line 885 of file SCR_TabViewComponent.c.

◆ SetListenToActions()

void BaseContainerProps::SetListenToActions ( bool isAllowed)
protected

Definition at line 848 of file SCR_TabViewComponent.c.

◆ SetPagingButtonsVisible()

void BaseContainerProps::SetPagingButtonsVisible ( bool visible,
bool animate = true )
protected

Definition at line 898 of file SCR_TabViewComponent.c.

◆ SetTabImage()

void BaseContainerProps::SetTabImage ( int index,
ResourceName tabImage )
protected

Definition at line 603 of file SCR_TabViewComponent.c.

◆ SetTabText()

void BaseContainerProps::SetTabText ( int index,
string text,
string textParam1 = string.Empty,
string textParam2 = string.Empty )
protected

Definition at line 590 of file SCR_TabViewComponent.c.

◆ SetTabVisible()

void BaseContainerProps::SetTabVisible ( int tabIndex,
bool visible,
bool animate = true )
protected

Definition at line 785 of file SCR_TabViewComponent.c.

◆ ShowAllTabsText()

void BaseContainerProps::ShowAllTabsText ( bool show,
int buttonWidth = -1,
bool ignoreSelected = true )
protected

Definition at line 570 of file SCR_TabViewComponent.c.

◆ ShowIcon()

void BaseContainerProps::ShowIcon ( int entry,
bool show )
protected

Definition at line 267 of file SCR_TabViewComponent.c.

◆ ShowImage()

void BaseContainerProps::ShowImage ( int index,
bool show )
protected

Definition at line 626 of file SCR_TabViewComponent.c.

◆ ShowTab()

void BaseContainerProps::ShowTab ( int i,
bool callAction = true,
bool playSound = true )
protected

Definition at line 397 of file SCR_TabViewComponent.c.

◆ ShowTabByIdentifier()

void BaseContainerProps::ShowTabByIdentifier ( string identifier,
bool callAction = true,
bool playSound = true )
protected

Definition at line 427 of file SCR_TabViewComponent.c.

◆ ShowTabText()

void BaseContainerProps::ShowTabText ( int index,
bool show,
int buttonWidth = -1 )
protected

Definition at line 552 of file SCR_TabViewComponent.c.

◆ UpdatePagingButtons()

void BaseContainerProps::UpdatePagingButtons ( bool animate = true)
protected

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

Definition at line 700 of file SCR_TabViewComponent.c.

Variable Documentation

◆ BUTTON_PADDING_RIGHT

const float BUTTON_PADDING_RIGHT = 4
protected

Definition at line 63 of file SCR_TabViewComponent.c.

◆ m_aElements

ref array<ref SCR_TabViewContent> m_aElements
protected

Definition at line 1 of file SCR_TabViewComponent.c.

◆ m_bCreateAllTabsAtStart

bool m_bCreateAllTabsAtStart
protected

Definition at line 13 of file SCR_TabViewComponent.c.

◆ m_bCycleMode

bool m_bCycleMode
protected

Definition at line 19 of file SCR_TabViewComponent.c.

◆ m_bKeepHiddenTabs

bool m_bKeepHiddenTabs
protected

Definition at line 10 of file SCR_TabViewComponent.c.

◆ m_bManualInit

bool m_bManualInit
protected

Definition at line 16 of file SCR_TabViewComponent.c.

◆ m_bShowTextOnlyWhenSelectedTab

bool m_bShowTextOnlyWhenSelectedTab
protected

Definition at line 43 of file SCR_TabViewComponent.c.

◆ m_ColorBackground

ref Color m_ColorBackground
protected

Definition at line 7 of file SCR_TabViewComponent.c.

◆ m_fTabWidth

float m_fTabWidth
protected

Definition at line 34 of file SCR_TabViewComponent.c.

◆ m_fTabWidthTextHidden

float m_fTabWidthTextHidden
protected

Definition at line 37 of file SCR_TabViewComponent.c.

◆ m_iSelectedTab

int m_iSelectedTab
protected

Definition at line 4 of file SCR_TabViewComponent.c.

◆ m_ListenToActions

bool m_ListenToActions
protected

Definition at line 25 of file SCR_TabViewComponent.c.

◆ m_OnChanged

ref ScriptInvokerTabViewIndex m_OnChanged
protected

Definition at line 52 of file SCR_TabViewComponent.c.

◆ m_OnContentCreate

ref ScriptInvokerTabViewIndex m_OnContentCreate
protected

Definition at line 53 of file SCR_TabViewComponent.c.

◆ m_OnContentHide

ref ScriptInvokerTabView m_OnContentHide
protected

Definition at line 56 of file SCR_TabViewComponent.c.

◆ m_OnContentRemove

ref ScriptInvokerTabView m_OnContentRemove
protected

Definition at line 57 of file SCR_TabViewComponent.c.

◆ m_OnContentSelect

ref ScriptInvokerTabViewContentIndex m_OnContentSelect
protected

Definition at line 61 of file SCR_TabViewComponent.c.

◆ m_OnContentShow

ref ScriptInvokerTabView m_OnContentShow
protected

Definition at line 55 of file SCR_TabViewComponent.c.

◆ m_OnTabChange

ref ScriptInvokerTabView m_OnTabChange
protected

Definition at line 58 of file SCR_TabViewComponent.c.

◆ m_PagingLeft

SCR_PagingButtonComponent m_PagingLeft
protected

Definition at line 48 of file SCR_TabViewComponent.c.

◆ m_PagingRight

SCR_PagingButtonComponent m_PagingRight
protected

Definition at line 49 of file SCR_TabViewComponent.c.

◆ m_sActionLeft

string m_sActionLeft
protected

Definition at line 28 of file SCR_TabViewComponent.c.

◆ m_sActionRight

string m_sActionRight
protected

Definition at line 31 of file SCR_TabViewComponent.c.

◆ m_sSwitchSound

string m_sSwitchSound
protected

Definition at line 40 of file SCR_TabViewComponent.c.

◆ m_TabLayout

ResourceName m_TabLayout
protected

Definition at line 22 of file SCR_TabViewComponent.c.

◆ m_wButtonBar

Widget m_wButtonBar
protected

Definition at line 46 of file SCR_TabViewComponent.c.

◆ m_wButtons

Widget m_wButtons
protected

Definition at line 45 of file SCR_TabViewComponent.c.

◆ m_wContentOverlay

Widget m_wContentOverlay
protected

Definition at line 47 of file SCR_TabViewComponent.c.

◆ MANW_IDENTIFIER

const string MANW_IDENTIFIER = "MANW"
protected

Definition at line 66 of file SCR_TabViewComponent.c.

◆ MANW_TAB_WIDTH

const int MANW_TAB_WIDTH = 270
protected

Definition at line 65 of file SCR_TabViewComponent.c.