rna api - replace panel properties bl_default_closed and bl_show_header with bl_options which has 2 flags: 'DEFAULT_CLOSED' and 'HIDE_HEADER'.

this matches operators which also uses bl_options like this
This commit is contained in:
Campbell Barton
2010-08-26 01:05:37 +00:00
parent da2a2005c7
commit e7c4a0d53b
29 changed files with 105 additions and 104 deletions

View File

@@ -100,7 +100,7 @@ class USERPREF_PT_tabs(bpy.types.Panel):
bl_label = ""
bl_space_type = 'USER_PREFERENCES'
bl_region_type = 'WINDOW'
bl_show_header = False
bl_options = {'HIDE_HEADER'}
def draw(self, context):
layout = self.layout
@@ -134,7 +134,7 @@ class USERPREF_PT_interface(bpy.types.Panel):
bl_space_type = 'USER_PREFERENCES'
bl_label = "Interface"
bl_region_type = 'WINDOW'
bl_show_header = False
bl_options = {'HIDE_HEADER'}
@classmethod
def poll(cls, context):
@@ -229,7 +229,7 @@ class USERPREF_PT_edit(bpy.types.Panel):
bl_space_type = 'USER_PREFERENCES'
bl_label = "Edit"
bl_region_type = 'WINDOW'
bl_show_header = False
bl_options = {'HIDE_HEADER'}
@classmethod
def poll(cls, context):
@@ -344,7 +344,7 @@ class USERPREF_PT_system(bpy.types.Panel):
bl_space_type = 'USER_PREFERENCES'
bl_label = "System"
bl_region_type = 'WINDOW'
bl_show_header = False
bl_options = {'HIDE_HEADER'}
@classmethod
def poll(cls, context):
@@ -479,7 +479,7 @@ class USERPREF_PT_theme(bpy.types.Panel):
bl_space_type = 'USER_PREFERENCES'
bl_label = "Themes"
bl_region_type = 'WINDOW'
bl_show_header = False
bl_options = {'HIDE_HEADER'}
@staticmethod
def _theme_generic(split, themedata):
@@ -642,7 +642,7 @@ class USERPREF_PT_file(bpy.types.Panel):
bl_space_type = 'USER_PREFERENCES'
bl_label = "Files"
bl_region_type = 'WINDOW'
bl_show_header = False
bl_options = {'HIDE_HEADER'}
@classmethod
def poll(cls, context):
@@ -807,7 +807,7 @@ class USERPREF_PT_addons(bpy.types.Panel):
bl_space_type = 'USER_PREFERENCES'
bl_label = "Addons"
bl_region_type = 'WINDOW'
bl_show_header = False
bl_options = {'HIDE_HEADER'}
_addons_fake_modules = {}