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

#include <PropertyGrid.h>

Public Types

enum  EItemType { PGIT_STRING, PGIT_HEADER, PGIT_MAX }
 

Public Member Functions

 rvPropertyGrid ()
 
bool Create (HWND parent, int id, int style=0)
 
void Move (int x, int y, int w, int h, BOOL redraw=FALSE)
 
bool ReflectMessage (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
 
int AddItem (const char *name, const char *value, EItemType type=PGIT_STRING)
 
void RemoveItem (int index)
 
void RemoveAllItems (void)
 
void SetCurSel (int index)
 
int GetCurSel (void)
 
HWND GetWindow (void)
 
const char * GetItemName (int index)
 
const char * GetItemValue (int index)
 

Protected Types

enum  EState { STATE_FINISHEDIT, STATE_EDIT, STATE_NORMAL }
 

Protected Member Functions

void StartEdit (int item, bool label)
 
void FinishEdit (void)
 
void CancelEdit (void)
 
int HandleDrawItem (WPARAM wParam, LPARAM lParam)
 

Protected Attributes

HWND mWindow
 
HWND mEdit
 
int mEditItem
 
bool mEditLabel
 
int mSelectedItem
 
WNDPROC mListWndProc
 
int mSplitter
 
int mStyle
 
EState mState
 

Static Private Member Functions

static LRESULT CALLBACK WndProc (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
 

Detailed Description

Definition at line 46 of file PropertyGrid.h.

Member Enumeration Documentation

Enumerator
PGIT_STRING 
PGIT_HEADER 
PGIT_MAX 

Definition at line 50 of file PropertyGrid.h.

enum rvPropertyGrid::EState
protected
Enumerator
STATE_FINISHEDIT 
STATE_EDIT 
STATE_NORMAL 

Definition at line 79 of file PropertyGrid.h.

Constructor & Destructor Documentation

rvPropertyGrid::rvPropertyGrid ( void  )

Definition at line 55 of file PropertyGrid.cpp.

Member Function Documentation

int rvPropertyGrid::AddItem ( const char *  name,
const char *  value,
EItemType  type = PGIT_STRING 
)

Definition at line 266 of file PropertyGrid.cpp.

void rvPropertyGrid::CancelEdit ( void  )
protected

Definition at line 241 of file PropertyGrid.cpp.

bool rvPropertyGrid::Create ( HWND  parent,
int  id,
int  style = 0 
)

Definition at line 73 of file PropertyGrid.cpp.

void rvPropertyGrid::FinishEdit ( void  )
protected

Definition at line 164 of file PropertyGrid.cpp.

int rvPropertyGrid::GetCurSel ( void  )
inline

Definition at line 112 of file PropertyGrid.h.

const char * rvPropertyGrid::GetItemName ( int  index)

Definition at line 344 of file PropertyGrid.cpp.

const char * rvPropertyGrid::GetItemValue ( int  index)

Definition at line 364 of file PropertyGrid.cpp.

HWND rvPropertyGrid::GetWindow ( void  )
inline

Definition at line 107 of file PropertyGrid.h.

int rvPropertyGrid::HandleDrawItem ( WPARAM  wParam,
LPARAM  lParam 
)
protected

Definition at line 605 of file PropertyGrid.cpp.

void rvPropertyGrid::Move ( int  x,
int  y,
int  w,
int  h,
BOOL  redraw = FALSE 
)

Definition at line 111 of file PropertyGrid.cpp.

bool rvPropertyGrid::ReflectMessage ( HWND  hWnd,
UINT  msg,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 565 of file PropertyGrid.cpp.

void rvPropertyGrid::RemoveAllItems ( void  )

Definition at line 313 of file PropertyGrid.cpp.

void rvPropertyGrid::RemoveItem ( int  index)

Definition at line 294 of file PropertyGrid.cpp.

void rvPropertyGrid::SetCurSel ( int  index)
inline

Definition at line 117 of file PropertyGrid.h.

void rvPropertyGrid::StartEdit ( int  item,
bool  label 
)
protected

Definition at line 123 of file PropertyGrid.cpp.

LRESULT CALLBACK rvPropertyGrid::WndProc ( HWND  hWnd,
UINT  msg,
WPARAM  wParam,
LPARAM  lParam 
)
staticprivate

Definition at line 384 of file PropertyGrid.cpp.

Member Data Documentation

HWND rvPropertyGrid::mEdit
protected

Definition at line 93 of file PropertyGrid.h.

int rvPropertyGrid::mEditItem
protected

Definition at line 94 of file PropertyGrid.h.

bool rvPropertyGrid::mEditLabel
protected

Definition at line 95 of file PropertyGrid.h.

WNDPROC rvPropertyGrid::mListWndProc
protected

Definition at line 97 of file PropertyGrid.h.

int rvPropertyGrid::mSelectedItem
protected

Definition at line 96 of file PropertyGrid.h.

int rvPropertyGrid::mSplitter
protected

Definition at line 98 of file PropertyGrid.h.

EState rvPropertyGrid::mState
protected

Definition at line 100 of file PropertyGrid.h.

int rvPropertyGrid::mStyle
protected

Definition at line 99 of file PropertyGrid.h.

HWND rvPropertyGrid::mWindow
protected

Definition at line 92 of file PropertyGrid.h.


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