DayZ Enforce
Script API
Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
InventoryViewGrid Class Reference

#include <InventoryViewGrid.h>

Inheritance diagram for InventoryViewGrid:
InventoryViewBase

Private Member Functions

void  InventoryViewGrid (InventoryContainer container, EntityAI entity, int properties)
 
void  ~InventoryViewGrid ()
 
void  CreateLayout ()
 
void  UpdateItems ()
 
void  SetHeaderText (string text)
 
void  AddProxyCargo (Cargo proxyCargo)
 
protected void  UpdateLock ()
 
protected void  UpdateUnlock ()
 
protected void  InitAttachmentGrid (int panel_type)
 
protected void  InitIconGrid ()
 
protected void  InitCargoGrid (Cargo cargo, int panel_type)
 
protected void  UpdateAttachmentGrid ()
 
protected void  UpdateIconGrid ()
 
protected void  UpdateCargoGrid (int cargo_index)
 
protected InventoryItem  FindItem (InventoryGrid grid, int row, int col)
 
protected int  FindCargoIndex (InventoryGrid grid)
 
protected bool  HasProperty (int mask)
 
EntityAI  GetEntity ()
 
bool  OnMouseButtonDown (Widget w, int x, int y, int button)
 
void  OnItemEnter (InventoryGrid grid, Widget w, int row, int col)
 
void  OnItemLeave (InventoryGrid grid, Widget w)
 
void  OnItemDrag (InventoryGrid grid, Widget w, int row, int col)
 
void  OnItemDraggingOver (InventoryGrid grid, Widget w, int row, int col)
 
void  OnItemDrop (InventoryGrid grid, Widget w)
 
void  OnItemDropReceived (InventoryGrid grid, Widget w, int row, int col)
 
void  OnItemRightClick (InventoryGrid grid, Widget w, int row, int col)
 
void  OnItemDoubleClick (InventoryGrid grid, Widget w, int row, int col)
 
vector  GetItemSize (InventoryGrid grid, InventoryItem item)
 
int  GetItemColor (InventoryGrid grid, InventoryItem item)
 
string  GetItemQuantityText (InventoryItem item)
 
int  HasItemQuantity (InventoryItem item)
 
float  GetItemQuantity (InventoryItem item)
 
protected bool  IsHistoryExpanded ()
 
protected void  SaveHistory ()
 

Static Private Member Functions

static void  ClearHistory ()
 

Private Attributes

protected InventoryContainer  m_container
 
protected InventoryGrid  m_attachment_grid
 
protected InventoryGrid  m_icon_grid
 
protected InventoryGrid  m_container_icon_grid
 
protected autoptr array< InventoryGrid m_cargo_grids
 
protected autoptr array< Cargo m_cargos
 
protected autoptr Link< EntityAI m_entity
 
protected autoptr Timer  m_update_lock_timer
 
protected AutoHeightSpacer  m_body_spacer
 
protected AutoHeightSpacer  m_content_spacer
 
protected autoptr TItemsMap  m_items
 
protected int  m_properties
 
protected Widget  m_container_icon
 
protected Widget  m_root
 
protected Widget  m_content
 
protected Widget  m_body
 
protected Widget  m_image_frame
 
protected TextWidget  m_header
 
protected Widget  m_minimize_widget
 
protected Widget  m_maximize_widget
 
protected bool  m_IsExpandable
 
protected const int  TYPE_PANEL_DEFAULT = 0
 
protected const int  TYPE_PANEL_HANDS = 1
 

Static Private Attributes

static protected const int  EXPANDED_HISTORY_SIZE = 20
 
static protected int  s_expanded_history [EXPANDED_HISTORY_SIZE]
 
static protected int  s_expanded_history_index = 0
 

Constructor & Destructor Documentation

void InventoryViewGrid::InventoryViewGrid ( InventoryContainer  container,
EntityAI  entity,
int  properties 
)
private
void InventoryViewGrid::~InventoryViewGrid ( )
private

Member Function Documentation

void InventoryViewGrid::CreateLayout ( )
private

References InitIconGrid().

void InventoryViewGrid::UpdateItems ( )
private
void InventoryViewGrid::SetHeaderText ( string  text )
private
void InventoryViewGrid::AddProxyCargo ( Cargo  proxyCargo )
private
void InventoryViewGrid::UpdateLock ( )
private

References m_update_lock_timer, and Timer::Run().

Referenced by OnItemDrop(), and OnItemDropReceived().

void InventoryViewGrid::UpdateUnlock ( )
private

References UpdateItems().

protected void InventoryViewGrid::InitAttachmentGrid ( int  panel_type )
private
void InventoryViewGrid::InitIconGrid ( )
private
protected void InventoryViewGrid::InitCargoGrid ( Cargo  cargo,
int  panel_type 
)
private

Referenced by AddProxyCargo().

protected void InventoryViewGrid::UpdateAttachmentGrid ( )
private

Referenced by UpdateItems().

void InventoryViewGrid::UpdateIconGrid ( )
private
protected void InventoryViewGrid::UpdateCargoGrid ( int  cargo_index )
private

Referenced by UpdateItems().

InventoryItem InventoryViewGrid::FindItem ( InventoryGrid  grid,
int  row,
int  col 
)
private
int InventoryViewGrid::FindCargoIndex ( InventoryGrid  grid )
private

References INDEX_NOT_FOUND, and m_cargo_grids.

Referenced by FindItem().

protected bool InventoryViewGrid::HasProperty ( int  mask )
private
EntityAI InventoryViewGrid::GetEntity ( )
private
bool InventoryViewGrid::OnMouseButtonDown ( Widget  w,
int  x,
int  y,
int  button 
)
private
void InventoryViewGrid::OnItemEnter ( InventoryGrid  grid,
Widget  w,
int  row,
int  col 
)
private
void InventoryViewGrid::OnItemLeave ( InventoryGrid  grid,
Widget  w 
)
private
void InventoryViewGrid::OnItemDrag ( InventoryGrid  grid,
Widget  w,
int  row,
int  col 
)
private
void InventoryViewGrid::OnItemDraggingOver ( InventoryGrid  grid,
Widget  w,
int  row,
int  col 
)
private
void InventoryViewGrid::OnItemDrop ( InventoryGrid  grid,
Widget  w 
)
private
void InventoryViewGrid::OnItemDropReceived ( InventoryGrid  grid,
Widget  w,
int  row,
int  col 
)
private
void InventoryViewGrid::OnItemRightClick ( InventoryGrid  grid,
Widget  w,
int  row,
int  col 
)
private
void InventoryViewGrid::OnItemDoubleClick ( InventoryGrid  grid,
Widget  w,
int  row,
int  col 
)
private
vector InventoryViewGrid::GetItemSize ( InventoryGrid  grid,
InventoryItem  item 
)
private
int InventoryViewGrid::GetItemColor ( InventoryGrid  grid,
InventoryItem  item 
)
private
string InventoryViewGrid::GetItemQuantityText ( InventoryItem  item )
private
int InventoryViewGrid::HasItemQuantity ( InventoryItem  item )
private
float InventoryViewGrid::GetItemQuantity ( InventoryItem  item )
private
bool InventoryViewGrid::IsHistoryExpanded ( )
private
void InventoryViewGrid::SaveHistory ( )
private
void InventoryViewGrid::ClearHistory ( )
staticprivate

Member Data Documentation

protected InventoryContainer InventoryViewGrid::m_container
private
protected InventoryGrid InventoryViewGrid::m_attachment_grid
private

Referenced by FindItem(), and GetItemSize().

protected InventoryGrid InventoryViewGrid::m_icon_grid
private

Referenced by FindItem(), and UpdateIconGrid().

protected InventoryGrid InventoryViewGrid::m_container_icon_grid
private
protected autoptr array<InventoryGrid> InventoryViewGrid::m_cargo_grids
private
protected autoptr array<Cargo> InventoryViewGrid::m_cargos
private
protected autoptr Link<EntityAI> InventoryViewGrid::m_entity
private
protected autoptr Timer InventoryViewGrid::m_update_lock_timer
private
protected AutoHeightSpacer InventoryViewGrid::m_body_spacer
private

Referenced by OnMouseButtonDown(), and SaveHistory().

protected AutoHeightSpacer InventoryViewGrid::m_content_spacer
private

Referenced by OnMouseButtonDown(), and SaveHistory().

protected autoptr TItemsMap InventoryViewGrid::m_items
private

Referenced by InventoryViewGrid().

protected int InventoryViewGrid::m_properties
private

Referenced by InventoryViewGrid().

protected Widget InventoryViewGrid::m_container_icon
private
protected Widget InventoryViewGrid::m_root
private

Referenced by ~InventoryViewGrid().

protected Widget InventoryViewGrid::m_content
private
protected Widget InventoryViewGrid::m_body
private

Referenced by OnMouseButtonDown(), and SaveHistory().

protected Widget InventoryViewGrid::m_image_frame
private
protected TextWidget InventoryViewGrid::m_header
private

Referenced by OnMouseButtonDown().

protected Widget InventoryViewGrid::m_minimize_widget
private

Referenced by OnMouseButtonDown().

protected Widget InventoryViewGrid::m_maximize_widget
private

Referenced by OnMouseButtonDown().

protected bool InventoryViewGrid::m_IsExpandable
private

Referenced by OnMouseButtonDown().

protected const int InventoryViewGrid::TYPE_PANEL_DEFAULT = 0
private

Referenced by AddProxyCargo().

protected const int InventoryViewGrid::TYPE_PANEL_HANDS = 1
private
protected const int InventoryViewGrid::EXPANDED_HISTORY_SIZE = 20
staticprivate

Referenced by ClearHistory(), and IsHistoryExpanded().

protected int InventoryViewGrid::s_expanded_history[EXPANDED_HISTORY_SIZE]
staticprivate
protected int InventoryViewGrid::s_expanded_history_index = 0
staticprivate

Referenced by ClearHistory(), and SaveHistory().


The documentation for this class was generated from the following files:
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)