Update classes.xml to master version, add a small feature to doc_status
This commit is contained in:
parent
d4740a9853
commit
669956849a
2 changed files with 9797 additions and 9163 deletions
18907
doc/base/classes.xml
18907
doc/base/classes.xml
File diff suppressed because it is too large
Load diff
|
@ -20,6 +20,7 @@ flags = {
|
||||||
'p': False,
|
'p': False,
|
||||||
'o': True,
|
'o': True,
|
||||||
'i': False,
|
'i': False,
|
||||||
|
'a': True,
|
||||||
}
|
}
|
||||||
flag_descriptions = {
|
flag_descriptions = {
|
||||||
'c': 'Toggle colors when outputting.',
|
'c': 'Toggle colors when outputting.',
|
||||||
|
@ -31,6 +32,7 @@ flag_descriptions = {
|
||||||
'p': 'Toggle showing percentage as well as counts.',
|
'p': 'Toggle showing percentage as well as counts.',
|
||||||
'o': 'Toggle overall column.',
|
'o': 'Toggle overall column.',
|
||||||
'i': 'Toggle collapse of class items columns.',
|
'i': 'Toggle collapse of class items columns.',
|
||||||
|
'a': 'Toggle showing all items.',
|
||||||
}
|
}
|
||||||
long_flags = {
|
long_flags = {
|
||||||
'colors': 'c',
|
'colors': 'c',
|
||||||
|
@ -58,6 +60,8 @@ long_flags = {
|
||||||
|
|
||||||
'items': 'i',
|
'items': 'i',
|
||||||
'collapse': 'i',
|
'collapse': 'i',
|
||||||
|
|
||||||
|
'all': 'a',
|
||||||
}
|
}
|
||||||
table_columns = ['name', 'brief_description', 'description', 'methods', 'constants', 'members', 'signals']
|
table_columns = ['name', 'brief_description', 'description', 'methods', 'constants', 'members', 'signals']
|
||||||
table_column_names = ['Name', 'Brief Desc.', 'Desc.', 'Methods', 'Constants', 'Members', 'Signals']
|
table_column_names = ['Name', 'Brief Desc.', 'Desc.', 'Methods', 'Constants', 'Members', 'Signals']
|
||||||
|
@ -354,12 +358,11 @@ for cn in input_class_list:
|
||||||
validate_tag(c, 'class')
|
validate_tag(c, 'class')
|
||||||
status = ClassStatus.generate_for_class(c)
|
status = ClassStatus.generate_for_class(c)
|
||||||
|
|
||||||
if flags['b'] and status.is_ok():
|
total_status = total_status + status
|
||||||
continue
|
|
||||||
if flags['g'] and not status.is_ok():
|
if (flags['b'] and status.is_ok()) or (flags['g'] and not status.is_ok()) or (not flags['a']):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
total_status = total_status + status
|
|
||||||
out = status.make_output()
|
out = status.make_output()
|
||||||
row = []
|
row = []
|
||||||
for column in table_columns:
|
for column in table_columns:
|
||||||
|
@ -378,11 +381,11 @@ for cn in input_class_list:
|
||||||
# Print output table #
|
# Print output table #
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
if len(table) == 1:
|
if len(table) == 1 and flags['a']:
|
||||||
print(color('part_big_problem', 'No classes suitable for printing!'))
|
print(color('part_big_problem', 'No classes suitable for printing!'))
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
if len(table) > 2:
|
if len(table) > 2 or not flags['a']:
|
||||||
total_status.name = 'Total = {0}'.format(len(table) - 1)
|
total_status.name = 'Total = {0}'.format(len(table) - 1)
|
||||||
out = total_status.make_output()
|
out = total_status.make_output()
|
||||||
row = []
|
row = []
|
||||||
|
|
Loading…
Reference in a new issue