#include <gadget.h>
Inheritance diagram for ListControl:
Public Member Functions | |
ListControl (DialogOp *const pDialog, CGadgetID ControlID, Notifiable *pNotify=&Nobody) | |
virtual | ~ListControl () |
BOOL | AddItem (const StringBase &ItemText) |
BOOL | InsertItem (const StringBase &ItemText, UINT32 AtIndex) |
BOOL | DeleteItemAtIndex (UINT32 AtIndex) |
BOOL | DeleteAllItems () |
UINT32 | GetNumberOfSelectedItems () const |
BOOL | GetFirstSelectedIndex (INT32 *pIndex) const |
BOOL | GetSelectedIndexes (INT32 **pIndexes) const |
BOOL | DeselectAll () |
BOOL | SetItem (const StringBase &ItemText, UINT32 AtIndex) |
virtual void | OnSelect () |
virtual void | OnDoubleClicked () |
Private Member Functions | |
CC_DECLARE_MEMDUMP (ListControl) | |
Private Attributes | |
Notifiable * | m_pNotifyOnSelectionChange |
Definition at line 374 of file gadget.h.
|
Definition at line 380 of file gadget.h. 00381 : 00382 DialogMgrGadget(pDialog, ControlID), 00383 m_pNotifyOnSelectionChange(pNotify) {}
|
|
Definition at line 385 of file gadget.h.
|
|
Definition at line 407 of file gadget.h. 00408 { 00409 ENSURE( 0 != m_ControlID, "Control ID is invalide" ); 00410 ENSURE_NOT_NULL(m_pDialog); 00411 00412 return m_pDialog->SetStringGadgetValue(m_ControlID, ItemText, TRUE); 00413 }
|
|
|
|
Definition at line 430 of file gadget.h. 00431 { 00432 ENSURE( 0 != m_ControlID, "Control ID is invalide" ); 00433 ENSURE_NOT_NULL(m_pDialog); 00434 return m_pDialog->DeleteAllValues(m_ControlID); 00435 }
|
|
Definition at line 423 of file gadget.h. 00424 { 00425 ENSURE( 0 != m_ControlID, "Control ID is invalide" ); 00426 ENSURE_NOT_NULL(m_pDialog); 00427 return m_pDialog->DeleteValue(m_ControlID, FALSE, INT32(AtIndex)); 00428 }
|
|
Definition at line 462 of file gadget.h. 00463 { 00464 ENSURE( 0 != m_ControlID, "Control ID is invalide" ); 00465 ENSURE_NOT_NULL(m_pDialog); 00466 return m_pDialog->SetBoolGadgetSelected(m_ControlID, FALSE, -1); 00467 }
|
|
Definition at line 444 of file gadget.h. 00445 { 00446 ENSURE( 0 != m_ControlID, "Control ID is invalide" ); 00447 ENSURE_NOT_NULL(m_pDialog); 00448 *pIndex = m_pDialog->GetFirstSelectedItem(m_ControlID); 00449 return (*pIndex != -1); 00450 }
|
|
Definition at line 437 of file gadget.h. 00438 { 00439 ENSURE( 0 != m_ControlID, "Control ID is invalide" ); 00440 ENSURE_NOT_NULL(m_pDialog); 00441 return UINT32(m_pDialog->GetSelectedCount(m_ControlID)); 00442 }
|
|
Definition at line 452 of file gadget.h. 00453 { 00454 ENSURE( 0 != m_ControlID, "Control ID is invalide" ); 00455 ENSURE_NOT_NULL(m_pDialog); 00456 ENSURE_NOT_NULL(pIndexes); 00457 *pIndexes = m_pDialog->GetSelectedItems(m_ControlID); 00458 return (*pIndexes != NULL); 00459 }
|
|
Definition at line 415 of file gadget.h. 00416 { 00417 ENSURE( 0 != m_ControlID, "Control ID is invalide" ); 00418 ENSURE_NOT_NULL(m_pDialog); 00419 00420 return m_pDialog->SetStringGadgetValue(m_ControlID, ItemText, FALSE, AtIndex); 00421 }
|
|
Definition at line 474 of file gadget.h. 00475 { 00476 Notify(m_pNotifyOnSelectionChange); 00477 }
|
|
Definition at line 470 of file gadget.h. 00471 { 00472 Notify(m_pNotifyOnSelectionChange); 00473 }
|
|
|
|
|