1 # ##### BEGIN GPL LICENSE BLOCK #####
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software Foundation,
15 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 # ##### END GPL LICENSE BLOCK #####
21 # note, properties_animviz is a helper module only.
24 from imp import reload as _reload
25 for val in _modules_loaded.values():
29 "properties_data_armature",
30 "properties_data_bone",
31 "properties_data_camera",
32 "properties_data_curve",
33 "properties_data_empty",
34 "properties_data_lamp",
35 "properties_data_lattice",
36 "properties_data_mesh",
37 "properties_data_metaball",
38 "properties_data_modifier",
39 "properties_data_speaker",
41 "properties_material",
42 "properties_object_constraint",
44 "properties_particle",
45 "properties_physics_cloth",
46 "properties_physics_common",
47 "properties_physics_field",
48 "properties_physics_fluid",
49 "properties_physics_smoke",
50 "properties_physics_softbody",
68 "space_userpref_keymap",
71 "space_view3d_toolbar",
73 __import__(name=__name__, fromlist=_modules)
74 _namespace = globals()
75 _modules_loaded = {name: _namespace[name] for name in _modules}
83 bpy.utils.register_module(__name__)
86 from bpy.props import StringProperty, EnumProperty
87 WindowManager = bpy.types.WindowManager
89 def addon_filter_items(self, context):
92 items = [('All', "All", ""),
93 ('Enabled', "Enabled", ""),
94 ('Disabled', "Disabled", ""),
99 for mod in addon_utils.modules(space_userpref.USERPREF_PT_addons._addons_fake_modules):
100 info = addon_utils.module_bl_info(mod)
101 items_unique.add(info["category"])
103 items.extend([(cat, cat, "") for cat in sorted(items_unique)])
106 WindowManager.addon_search = StringProperty(
108 description="Search within the selected filter",
110 WindowManager.addon_filter = EnumProperty(
111 items=addon_filter_items,
113 description="Filter add-ons by category",
116 WindowManager.addon_support = EnumProperty(
117 items=[('OFFICIAL', "Official", ""),
118 ('COMMUNITY', 'Community', ""),
121 description="Display support level", default={'OFFICIAL', 'COMMUNITY'}, options={'ENUM_FLAG'})
126 bpy.utils.unregister_module(__name__)