Main Page Modules Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages
image_list Class Reference
Class to manage a shared imagelist for the application controls that need imagelists. More...
#include <image_list.h>
Inheritance diagram for image_list:
List of all members.
|
Public Methods
|
| |
image_list () |
| |
Constructor.
|
| |
~image_list () |
| |
Destructor.
|
| void |
add_file_from_image_list_directory (const wxString &basename) |
| |
Adds a file from the image list directory.
|
Static Public Methods
|
| image_list * |
get () |
| |
Gets the global object or creates one if none exists.
|
| image_list * |
set (image_list *desired_image_list) |
| |
Sets the global object and returns a pointer to previous one (may be NULL).
|
Detailed Description
Class to manage a shared imagelist for the application controls that need imagelists.
Maintains the shared image list of icons that can be used throughout the program by controls that use imagelists instead of bitmaps (namely, listcontrols and notebook tabs). Since so many icons
will appear in multiple places just create one wxImageList at program and delete it at the program termination. ListControls just need to have a line
that says somthing like: SetImageList( image_list::get() ); before inserting items into the rows. Then images can be inserted along with items just
by calling the index number of the image in the image list. The numbers of the image list are given defines in image_list.h for easier maintenance.
Member Function Documentation
| void image_list::add_file_from_image_list_directory |
( |
const wxString & |
basename |
) |
|
|
| |
Adds a file from the image list directory.
- Parameters:
-
| basename |
Basename of the file |
|
| image_list* image_list::get |
( |
|
) |
[static] |
|
| |
Gets the global object or creates one if none exists.
- Parameters:
-
| parent |
Parent of the image_list. May be NULL. |
|
| image_list* image_list::set |
( |
image_list * |
desired_image_list |
) |
[static] |
|
| |
Sets the global object and returns a pointer to previous one (may be NULL).
- Parameters:
-
| desired_image_list |
The new image_list |
|