00001 //----------------------------------------------------------------------------------------
00011 // RCS-ID: $Id: image_list.h,v 1.9 2003/03/09 01:35:33 robertoconnor Exp $
00012 //----------------------------------------------------------------------------------------
00013
00014 //----------------------------------------------------------------------------------------
00015 // Begin single inclusion of this .h file condition
00016 //----------------------------------------------------------------------------------------
00017
00018 #ifndef _IMAGE_LIST_H_
00019 #define _IMAGE_LIST_H_
00020
00021 //----------------------------------------------------------------------------------------
00022 // GCC interface
00023 //----------------------------------------------------------------------------------------
00024
00025 #if defined(__GNUG__) && ! defined(__APPLE__)
00026 #pragma interface "image_list.h"
00027 #endif
00028
00029 //----------------------------------------------------------------------------------------
00030 // Headers
00031 //----------------------------------------------------------------------------------------
00032
00033 #include "wx/imaglist.h"
00034
00035 //----------------------------------------------------------------------------------------
00036 // Class definition: image_list
00037 //----------------------------------------------------------------------------------------
00038
00040
00052 class image_list : public wxImageList
00053 {
00054
00055 // I guess one doesn't use DECLARE_DYNAMIC_CLASS on these.
00056
00057 public:
00058
00060 image_list();
00061
00063 ~image_list();
00064
00066
00069 void add_file_from_image_list_directory( const wxString& basename );
00070
00072
00075 static image_list* get();
00076
00078
00081 static image_list* set( image_list* desired_image_list );
00082
00083 private:
00084
00085 // Singleton instance:
00086 static image_list* ms_instance;
00087
00088 };
00089
00090 //----------------------------------------------------------------------------------------
00091 // Image list index number defines
00092 //----------------------------------------------------------------------------------------
00093
00094 // Currently the item order in the small icon list are as follows:
00095 enum {
00096 SATELLITE_DISH = 0,
00097 EDIT_PENCIL,
00098 PREVIEW_PAGE,
00099 RADIO_OPTIONS,
00100 plkrSYNC,
00101 plkrFOLDER
00102 };
00103
00104 // Places at a glance where icons are being used/reused
00105 #define SMALL_IMAGE_LIST_ID_MAIN_FRAME_LISTCTRL SATELLITE_DISH
00106 #define SMALL_IMAGE_LIST_ID_MAIN_FRAME_WINFLIP_CONTROLLER RADIO_OPTIONS
00107 #define SMALL_IMAGE_LIST_ID_SHOWCASE_DIALOG_LISTCTRL SATELLITE_DISH
00108 #define SMALL_IMAGE_LIST_ID_EDITOR_DIALOG_EDIT_TAB EDIT_PENCIL
00109 #define SMALL_IMAGE_LIST_ID_EDITOR_DIALOG_PREVIEW_TAB PREVIEW_PAGE
00110 #define plkrSMALL_IMAGE_LIST_ID_CHANNEL_DIALOG_DESTINATION_TAB_USERS_LISTCTRL plkrSYNC
00111 #define plkrSMALL_IMAGE_LIST_ID_CHANNEL_DIALOG_DESTINATION_TAB_DIRECTORIES_LISTCTRL plkrFOLDER
00112
00113 //----------------------------------------------------------------------------------------
00114 // End single inclusion of this .h file condition
00115 //----------------------------------------------------------------------------------------
00116
00117 #endif //_IMAGE_LIST_H_