LLColumnHeader Class Reference

#include <llscrolllistctrl.h>

Inheritance diagram for LLColumnHeader:

Inheritance graph
[legend]
Collaboration diagram for LLColumnHeader:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLColumnHeader (const LLString &label, const LLRect &rect, LLScrollListColumn *column, const LLFontGL *font=NULL)
 ~LLColumnHeader ()
void draw ()
BOOL handleDoubleClick (S32 x, S32 y, MASK mask)
void showList ()
LLViewfindSnapEdge (S32 &new_edge_val, const LLCoordGL &mouse_dir, ESnapEdge snap_edge, ESnapType snap_type, S32 threshold, S32 padding)
void userSetShape (const LLRect &new_rect)
void setImage (const LLString &image_name)
LLScrollListColumngetColumn ()
void setHasResizableElement (BOOL resizable)
BOOL canResize ()
void enableResizeBar (BOOL enable)
LLString getLabel ()

Static Public Member Functions

static void onSelectSort (LLUICtrl *ctrl, void *user_data)
static void onClick (void *user_data)
static void onMouseDown (void *user_data)
static void onHeldDown (void *user_data)

Private Attributes

LLScrollListColumnmColumn
LLResizeBarmResizeBar
LLString mOrigLabel
LLUIString mAscendingText
LLUIString mDescendingText
BOOL mShowSortOptions
BOOL mHasResizableElement


Detailed Description

Definition at line 282 of file llscrolllistctrl.h.


Constructor & Destructor Documentation

LLColumnHeader::LLColumnHeader ( const LLString label,
const LLRect rect,
LLScrollListColumn column,
const LLFontGL font = NULL 
)

LLColumnHeader::~LLColumnHeader (  ) 

Definition at line 3473 of file llscrolllistctrl.cpp.


Member Function Documentation

void LLColumnHeader::draw ( void   )  [virtual]

BOOL LLColumnHeader::handleDoubleClick ( S32  x,
S32  y,
MASK  mask 
) [virtual]

void LLColumnHeader::showList (  )  [virtual]

LLView * LLColumnHeader::findSnapEdge ( S32 new_edge_val,
const LLCoordGL mouse_dir,
ESnapEdge  snap_edge,
ESnapType  snap_type,
S32  threshold,
S32  padding 
) [virtual]

void LLColumnHeader::userSetShape ( const LLRect new_rect  )  [virtual]

void LLColumnHeader::setImage ( const LLString image_name  ) 

Definition at line 3517 of file llscrolllistctrl.cpp.

References LLComboBox::mButton, LLButton::setImageSelected(), and LLButton::setImageUnselected().

Referenced by LLScrollListCtrl::addColumn().

Here is the call graph for this function:

Here is the caller graph for this function:

LLScrollListColumn* LLColumnHeader::getColumn (  )  [inline]

Definition at line 296 of file llscrolllistctrl.h.

References mColumn.

void LLColumnHeader::setHasResizableElement ( BOOL  resizable  ) 

BOOL LLColumnHeader::canResize (  ) 

Definition at line 3833 of file llscrolllistctrl.cpp.

References LLView::getVisible(), mColumn, LLScrollListColumn::mDynamicWidth, and mHasResizableElement.

Referenced by handleDoubleClick(), setHasResizableElement(), and userSetShape().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLColumnHeader::enableResizeBar ( BOOL  enable  ) 

Definition at line 3824 of file llscrolllistctrl.cpp.

References mColumn, LLScrollListColumn::mDynamicWidth, mResizeBar, and LLView::setEnabled().

Referenced by setHasResizableElement().

Here is the call graph for this function:

Here is the caller graph for this function:

LLString LLColumnHeader::getLabel ( void   )  [inline]

Definition at line 300 of file llscrolllistctrl.h.

References mOrigLabel.

void LLColumnHeader::onSelectSort ( LLUICtrl ctrl,
void *  user_data 
) [static]

Definition at line 3643 of file llscrolllistctrl.cpp.

References FALSE, LLComboBox::getCurrentIndex(), mColumn, mOrigLabel, LLScrollListColumn::mParentCtrl, LLScrollListColumn::mSortingColumn, LLComboBox::setLabel(), LLScrollListCtrl::sortByColumn(), and TRUE.

Referenced by LLColumnHeader().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLColumnHeader::onClick ( void *  user_data  )  [static]

void LLColumnHeader::onMouseDown ( void *  user_data  )  [static]

Definition at line 3547 of file llscrolllistctrl.cpp.

Referenced by LLColumnHeader().

Here is the caller graph for this function:

void LLColumnHeader::onHeldDown ( void *  user_data  )  [static]

Definition at line 3554 of file llscrolllistctrl.cpp.

References showList().

Referenced by LLColumnHeader().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 309 of file llscrolllistctrl.h.

Referenced by enableResizeBar(), handleDoubleClick(), and LLColumnHeader().

Definition at line 310 of file llscrolllistctrl.h.

Referenced by getLabel(), onSelectSort(), and showList().

Definition at line 311 of file llscrolllistctrl.h.

Referenced by LLColumnHeader(), and showList().

Definition at line 312 of file llscrolllistctrl.h.

Referenced by LLColumnHeader(), and showList().

Definition at line 313 of file llscrolllistctrl.h.

Referenced by showList().

Definition at line 314 of file llscrolllistctrl.h.

Referenced by canResize(), and setHasResizableElement().


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

Generated on Fri May 16 08:43:00 2008 for SecondLife by  doxygen 1.5.5