|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 22 23 32 34 36 40 41 44 48 50 51 58 60 65 68 69 71 74 75 78 79 82 83 86 91 92 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 176 177 178 179 181 |
''' Task Coach - Your friendly task manager Copyright (C) 2004-2010 Task Coach developers <developers@taskcoach.org>
Task Coach is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Task Coach is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. '''
else:
def convertAlphaToMask(bitmap):
''' Return the icon. Use a cache to prevent leakage of GDI object count. '''
''' Create an icon bundle with icons of different sizes. '''
# wx.ArtProvider_GetIcon doesn't convert alpha to mask, so we do it # ourselves: (size, size))
wx.SystemOptions_SetOption("msw.remap", "0") # pragma: no cover
arrow_down_icon=_('Arrow down'), arrow_down_with_status_icon=_('Arrow down with status'), arrows_looped_blue_icon=_('Blue arrows looped'), arrows_looped_green_icon=_('Green arrows looped'), arrow_up_icon=_('Arrow up'), arrow_up_with_status_icon=_('Arrow up with status'), bomb_icon=_('Bomb'), book_icon=_('Book'), books_icon=_('Books'), bug_icon=_('Ladybug'), cake_icon=_('Cake'), calculator_icon=_('Calculator'), calendar_icon=_('Calendar'), cat_icon=_('Cat'), cd_icon=_('Compact disc (CD)'), chat_icon=_('Chatting'), checkmark_green_icon=_('Check mark'), clock_icon=_('Clock'), clock_alarm=_('Alarm clock'), clock_stopwatch_icon=_('Stopwatch'), cogwheel_icon=_('Cogwheel'), cogwheels_icon=_('Cogwheels'), computer_desktop_icon=_('Desktop computer'), computer_laptop_icon=_('Laptop computer'), computer_handheld_icon=_('Handheld computer'), cross_red_icon=_('Red cross'), die_icon=_('Die'), earth_blue_icon=_('Blue earth'), earth_green_icon=_('Green earth'), envelope_icon=_('Envelope'), envelopes_icon=_('Envelopes'), folder_blue_icon=_('Blue folder'), folder_green_icon=_('Green folder'), folder_grey_icon=_('Grey folder'), folder_orange_icon=_('Orange folder'), folder_purple_icon=_('Purple folder'), folder_red_icon=_('Red folder'), folder_yellow_icon=_('Yellow folder'), folder_blue_arrow_icon=_('Blue folder with arrow'), heart_icon=_('Heart'), hearts_icon=_('Hearts'), house_green_icon=_('Green house'), house_red_icon=_('Red house'), key_icon=_('Key'), keys_icon=_('Keys'), led_blue_questionmark_icon=_('Question mark'), led_blue_information_icon=_('Information'), led_blue_icon=_('Blue led'), led_blue_light_icon=_('Light blue led'), led_grey_icon=_('Grey led'), led_green_icon=_('Green led'), led_green_light_icon=_('Light green led'), led_orange_icon=_('Orange led'), led_purple_icon=_('Purple led'), led_red_icon=_('Red led'), led_yellow_icon=_('Yellow led'), lock_locked_icon=_('Locked lock'), lock_unlocked_icon=_('Unlocked lock'), magnifier_glass_icon=_('Magnifier glass'), music_piano_icon=_('Piano'), music_note_icon=_('Music note'), note_icon=_('Note'), palette_icon=_('Palette'), paperclip_icon=_('Paperclip'), pencil_icon=_('Pencil'), person_icon=_('Person'), persons_icon=_('People'), person_id_icon=_('Identification'), person_talking_icon=_('Person talking'), sign_warning_icon=_('Warning sign'), symbol_minus_icon=_('Minus'), symbol_plus_icon=_('Plus'), star_red_icon=_('Red star'), star_yellow_icon=_('Yellow star'), trafficlight_icon=_('Traffic light'), trashcan_icon=_('Trashcan'), weather_lightning_icon=_('Lightning'), weather_umbrella_icon=_('Umbrella'), weather_sunny_icon=_('Partly sunny'), wrench_icon=_('Wrench'))
'folder_green_open_icon', 'folder_grey_open_icon', 'folder_orange_open_icon', 'folder_red_open_icon', 'folder_purple_open_icon', 'folder_yellow_open_icon']
|