ImagesList Class Reference
multi use list.
More...
#include <ImagesList.h>
Inheritance diagram for ImagesList:
[legend]List of all members.
Detailed Description
multi use list.
This list shall contain the overall handling of datas in lists, moving selecting, drag'n drop
the special layouts are realized with subclasses and not implemented in the base class. Subclasses can override CreateItem(), UpdateItem() and RemoveItem() to customize the layout.
They can also handle the list events, for example if they want to veto a selection.
parent controls can use EVT_LIST_ITEM_SELECTED(id, func) EVT_LIST_ITEM_DESELECTED(id, func) to get notified when the selection changes. WARNING: Do not read the event in the parent control, just use GetSelected()!
- Todo:
- make the listcontents editable -> wxListCtrl->wxGrid?
Constructor & Destructor Documentation
| ImagesList::ImagesList |
( |
|
) |
|
|
Member Function Documentation
| bool ImagesList::Create |
( |
wxWindow * |
parent, |
|
|
wxWindowID |
id = wxID_ANY, |
|
|
const wxPoint & |
pos = wxDefaultPosition, |
|
|
const wxSize & |
size = wxDefaultSize, |
|
|
long |
style = wxTAB_TRAVERSAL, |
|
|
const wxString & |
name = wxT("panel") |
|
) |
|
|
| void ImagesList::CreateItem |
( |
unsigned int |
imgNr |
) |
[virtual] |
|
|
|
create an list item for imgNr
This creates the list item and calles UpdateItem(imgNr) to fill it with information usually, just UpdateItem needs to be overridden by base classes |
| const UIntSet & ImagesList::GetSelected |
( |
|
) |
const |
|
|
|
get the currently selected images
|
| void ImagesList::OnColumnWidthChange |
( |
wxListEvent & |
e |
) |
[protected] |
|
| void ImagesList::OnItemDeselected |
( |
wxListEvent & |
e |
) |
[protected] |
|
| void ImagesList::OnItemSelected |
( |
wxListEvent & |
e |
) |
[protected] |
|
|
|
receive the update signal and update display accordingly
|
| void ImagesList::RemoveItem |
( |
unsigned int |
imgNr |
) |
[virtual] |
|
|
|
remove an existing list item
just calles wxListCtrl::DeleteItem, but might be overriden to release ressources associated with the item |
| void ImagesList::SelectSingleImage |
( |
unsigned int |
imgNr |
) |
|
|
|
|
Select an image.
selects image imgNr, and deselects all other images |
| void ImagesList::UpdateItem |
( |
unsigned int |
imgNr |
) |
[virtual] |
|
| void ImagesList::UpdatePartNumbersForItem |
( |
unsigned int |
imgNr |
) |
[virtual] |
|
|
|
Update the part numbers (e.g.
Lens number) in an already existing list item.
Needed as the part numbers can change without the rest of the image
Reimplemented in ImagesListImage, and ImagesListLens. |
Member Data Documentation
|
|
create icons for an image
|
The documentation for this class was generated from the following files: