doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
rvRollupPanel Class Reference

#include <RollupPanel.h>

Public Member Functions

 rvRollupPanel (void)
 
virtual ~rvRollupPanel (void)
 
bool Create (DWORD dwStyle, const RECT &rect, HWND parent, unsigned int id)
 
int InsertItem (const char *caption, HWND dialog, bool autoDestroy, int index=-1)
 
void RemoveItem (int index)
 
void RemoveAllItems (void)
 
void ExpandItem (int index, bool expand=true)
 
void ExpandAllItems (bool expand=true)
 
void EnableItem (int index, bool enabled=true)
 
void EnableAllItems (bool enable=true)
 
int GetItemCount (void)
 
RPITEMGetItem (int index)
 
int GetItemIndex (const char *caption)
 
int GetItemIndex (HWND hwnd)
 
void ScrollToItem (int index, bool top=true)
 
int MoveItemAt (int index, int newIndex)
 
bool IsItemExpanded (int index)
 
bool IsItemEnabled (int index)
 
HWND GetWindow (void)
 
void AutoSize (void)
 

Protected Member Functions

void RecallLayout (void)
 
void _RemoveItem (int index)
 
void _ExpandItem (RPITEM *item, bool expand)
 
void _EnableItem (RPITEM *item, bool enable)
 
int HandleCommand (WPARAM wParam, LPARAM lParam)
 
int HandlePaint (WPARAM wParam, LPARAM lParam)
 
int HandleSize (WPARAM wParam, LPARAM lParam)
 
int HandleLButtonDown (WPARAM wParam, LPARAM lParam)
 
int HandleLButtonUp (WPARAM wParam, LPARAM lParam)
 
int HandleMouseMove (WPARAM wParam, LPARAM lParam)
 
int HandleMouseWheel (WPARAM wParam, LPARAM lParam)
 
int HandleMouseActivate (WPARAM wParam, LPARAM lParam)
 
int HandleContextMenu (WPARAM wParam, LPARAM lParam)
 

Static Protected Member Functions

static LRESULT CALLBACK WindowProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 
static LRESULT CALLBACK DialogProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 
static LRESULT CALLBACK ButtonProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 
static LRESULT FAR PASCAL GetMsgProc (int nCode, WPARAM wParam, LPARAM lParam)
 

Protected Attributes

idList< RPITEM * > mItems
 
int mStartYPos
 
int mItemHeight
 
int mOldMouseYPos
 
int mSBOffset
 
HWND mWindow
 

Static Protected Attributes

static idList< HWND > mDialogs
 
static HHOOK mDialogHook = NULL
 

Detailed Description

Definition at line 47 of file RollupPanel.h.

Constructor & Destructor Documentation

rvRollupPanel::rvRollupPanel ( void  )

Definition at line 60 of file RollupPanel.cpp.

rvRollupPanel::~rvRollupPanel ( void  )
virtual

Definition at line 74 of file RollupPanel.cpp.

Member Function Documentation

void rvRollupPanel::_EnableItem ( RPITEM item,
bool  enable 
)
protected

Definition at line 417 of file RollupPanel.cpp.

void rvRollupPanel::_ExpandItem ( RPITEM item,
bool  expand 
)
protected

Definition at line 347 of file RollupPanel.cpp.

void rvRollupPanel::_RemoveItem ( int  index)
protected

Definition at line 253 of file RollupPanel.cpp.

void rvRollupPanel::AutoSize ( void  )

Definition at line 1195 of file RollupPanel.cpp.

LRESULT CALLBACK rvRollupPanel::ButtonProc ( HWND  hWnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)
staticprotected

Definition at line 767 of file RollupPanel.cpp.

bool rvRollupPanel::Create ( DWORD  dwStyle,
const RECT &  rect,
HWND  parent,
unsigned int  id 
)

Definition at line 90 of file RollupPanel.cpp.

LRESULT CALLBACK rvRollupPanel::DialogProc ( HWND  hWnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)
staticprotected

Definition at line 700 of file RollupPanel.cpp.

void rvRollupPanel::EnableAllItems ( bool  enable = true)

Definition at line 397 of file RollupPanel.cpp.

void rvRollupPanel::EnableItem ( int  index,
bool  enabled = true 
)

Definition at line 378 of file RollupPanel.cpp.

void rvRollupPanel::ExpandAllItems ( bool  expand = true)

Definition at line 327 of file RollupPanel.cpp.

void rvRollupPanel::ExpandItem ( int  index,
bool  expand = true 
)

Definition at line 301 of file RollupPanel.cpp.

RPITEM * rvRollupPanel::GetItem ( int  index)

Definition at line 682 of file RollupPanel.cpp.

ID_INLINE int rvRollupPanel::GetItemCount ( void  )

Definition at line 118 of file RollupPanel.h.

int rvRollupPanel::GetItemIndex ( const char *  caption)

Definition at line 659 of file RollupPanel.cpp.

int rvRollupPanel::GetItemIndex ( HWND  hwnd)

Definition at line 643 of file RollupPanel.cpp.

LRESULT FAR PASCAL rvRollupPanel::GetMsgProc ( int  nCode,
WPARAM  wParam,
LPARAM  lParam 
)
staticprotected

Definition at line 1158 of file RollupPanel.cpp.

ID_INLINE HWND rvRollupPanel::GetWindow ( void  )

Definition at line 141 of file RollupPanel.h.

int rvRollupPanel::HandleCommand ( WPARAM  wParam,
LPARAM  lParam 
)
protected

Definition at line 847 of file RollupPanel.cpp.

int rvRollupPanel::HandleContextMenu ( WPARAM  wParam,
LPARAM  lParam 
)
protected

Definition at line 1114 of file RollupPanel.cpp.

int rvRollupPanel::HandleLButtonDown ( WPARAM  wParam,
LPARAM  lParam 
)
protected

Definition at line 959 of file RollupPanel.cpp.

int rvRollupPanel::HandleLButtonUp ( WPARAM  wParam,
LPARAM  lParam 
)
protected

Definition at line 1026 of file RollupPanel.cpp.

int rvRollupPanel::HandleMouseActivate ( WPARAM  wParam,
LPARAM  lParam 
)
protected

Definition at line 1101 of file RollupPanel.cpp.

int rvRollupPanel::HandleMouseMove ( WPARAM  wParam,
LPARAM  lParam 
)
protected

Definition at line 1043 of file RollupPanel.cpp.

int rvRollupPanel::HandleMouseWheel ( WPARAM  wParam,
LPARAM  lParam 
)
protected

Definition at line 1084 of file RollupPanel.cpp.

int rvRollupPanel::HandlePaint ( WPARAM  wParam,
LPARAM  lParam 
)
protected

Definition at line 888 of file RollupPanel.cpp.

int rvRollupPanel::HandleSize ( WPARAM  wParam,
LPARAM  lParam 
)
protected

Definition at line 945 of file RollupPanel.cpp.

int rvRollupPanel::InsertItem ( const char *  caption,
HWND  dialog,
bool  autoDestroy,
int  index = -1 
)

Definition at line 129 of file RollupPanel.cpp.

ID_INLINE bool rvRollupPanel::IsItemEnabled ( int  index)

Definition at line 132 of file RollupPanel.h.

ID_INLINE bool rvRollupPanel::IsItemExpanded ( int  index)

Definition at line 123 of file RollupPanel.h.

int rvRollupPanel::MoveItemAt ( int  index,
int  newIndex 
)

Definition at line 480 of file RollupPanel.cpp.

void rvRollupPanel::RecallLayout ( void  )
protected

Definition at line 514 of file RollupPanel.cpp.

void rvRollupPanel::RemoveAllItems ( void  )

Definition at line 235 of file RollupPanel.cpp.

void rvRollupPanel::RemoveItem ( int  index)

Definition at line 213 of file RollupPanel.cpp.

void rvRollupPanel::ScrollToItem ( int  index,
bool  top = true 
)

Definition at line 445 of file RollupPanel.cpp.

LRESULT CALLBACK rvRollupPanel::WindowProc ( HWND  hWnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)
staticprotected

Definition at line 785 of file RollupPanel.cpp.

Member Data Documentation

HHOOK rvRollupPanel::mDialogHook = NULL
staticprotected

Definition at line 115 of file RollupPanel.h.

idList< HWND > rvRollupPanel::mDialogs
staticprotected

Definition at line 114 of file RollupPanel.h.

int rvRollupPanel::mItemHeight
protected

Definition at line 103 of file RollupPanel.h.

idList<RPITEM*> rvRollupPanel::mItems
protected

Definition at line 101 of file RollupPanel.h.

int rvRollupPanel::mOldMouseYPos
protected

Definition at line 104 of file RollupPanel.h.

int rvRollupPanel::mSBOffset
protected

Definition at line 105 of file RollupPanel.h.

int rvRollupPanel::mStartYPos
protected

Definition at line 102 of file RollupPanel.h.

HWND rvRollupPanel::mWindow
protected

Definition at line 106 of file RollupPanel.h.


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