Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
92dd99ca
Commit
92dd99ca
authored
4 years ago
by
David Bühler
Browse files
Options
Downloads
Patches
Plain Diff
[ivette] Properties table: fixes the ordering of some columns.
parent
f7e13359
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ivette/src/renderer/Properties.tsx
+21
-6
21 additions, 6 deletions
ivette/src/renderer/Properties.tsx
with
21 additions
and
6 deletions
ivette/src/renderer/Properties.tsx
+
21
−
6
View file @
92dd99ca
...
@@ -7,7 +7,7 @@ import React from 'react';
...
@@ -7,7 +7,7 @@ import React from 'react';
import
*
as
States
from
'
frama-c/states
'
;
import
*
as
States
from
'
frama-c/states
'
;
import
*
as
Compare
from
'
dome/data/compare
'
;
import
*
as
Compare
from
'
dome/data/compare
'
;
import
{
Label
,
Code
}
from
'
dome/controls/labels
'
;
import
{
Label
,
Code
}
from
'
dome/controls/labels
'
;
import
{
Array
Model
}
from
'
dome/table/arrays
'
;
import
*
as
Array
s
from
'
dome/table/arrays
'
;
import
{
Table
,
Column
,
ColumnProps
,
Renderer
}
from
'
dome/table/views
'
;
import
{
Table
,
Column
,
ColumnProps
,
Renderer
}
from
'
dome/table/views
'
;
import
{
Component
}
from
'
frama-c/LabViews
'
;
import
{
Component
}
from
'
frama-c/LabViews
'
;
import
{
Vfill
}
from
'
dome/layout/boxes
'
;
import
{
Vfill
}
from
'
dome/layout/boxes
'
;
...
@@ -232,15 +232,24 @@ const byProperty: Compare.ByFields<Property> = {
...
@@ -232,15 +232,24 @@ const byProperty: Compare.ByFields<Property> = {
kind
:
Compare
.
primitive
,
kind
:
Compare
.
primitive
,
alarm
:
Compare
.
defined
(
Compare
.
alpha
),
alarm
:
Compare
.
defined
(
Compare
.
alpha
),
names
:
Compare
.
array
(
Compare
.
alpha
),
names
:
Compare
.
array
(
Compare
.
alpha
),
predicate
:
Compare
.
alpha
,
predicate
:
Compare
.
defined
(
Compare
.
alpha
)
,
key
:
Compare
.
primitive
,
key
:
Compare
.
primitive
,
kinstr
:
Compare
.
primitive
,
kinstr
:
Compare
.
primitive
,
};
};
class
PropertyModel
extends
ArrayModel
<
Property
>
{
const
byDir
=
Compare
.
byFields
<
SourceLoc
>
({
dir
:
Compare
.
alpha
});
const
byFile
=
Compare
.
byFields
<
SourceLoc
>
({
base
:
Compare
.
alpha
});
const
byColumn
:
Arrays
.
ByColumns
<
Property
>
=
{
dir
:
Compare
.
byFields
<
Property
>
({
source
:
byDir
}),
file
:
Compare
.
byFields
<
Property
>
({
source
:
byFile
}),
};
class
PropertyModel
extends
Arrays
.
ArrayModel
<
Property
>
{
constructor
()
{
constructor
()
{
super
(
'
key
'
);
super
(
'
key
'
);
this
.
setOrderingByFields
(
byProperty
);
this
.
setOrderingByFields
(
byProperty
);
this
.
setColumnOrder
(
byColumn
);
}
}
}
}
...
@@ -363,13 +372,19 @@ const RenderTable = () => {
...
@@ -363,13 +372,19 @@ const RenderTable = () => {
settings
=
"
ivette.properties.table
"
settings
=
"
ivette.properties.table
"
>
>
<
Column
<
Column
id
=
"
path
"
id
=
"
dir
"
label
=
"Directory"
label
=
"Directory"
width
=
{
240
}
width
=
{
240
}
visible
=
{
false
}
visible
=
{
false
}
getter
=
{
(
prop
:
Property
)
=>
prop
.
source
.
dir
}
getter
=
{
(
prop
:
Property
)
=>
prop
?.
source
?.
dir
}
/>
<
Column
id
=
"file"
label
=
"File"
width
=
{
120
}
getter
=
{
(
prop
:
Property
)
=>
prop
?.
source
}
render
=
{
renderFile
}
/>
/>
<
Column
id
=
"source"
label
=
"File"
width
=
{
120
}
render
=
{
renderFile
}
/>
<
ColumnCode
id
=
"function"
label
=
"Function"
width
=
{
120
}
/>
<
ColumnCode
id
=
"function"
label
=
"Function"
width
=
{
120
}
/>
<
ColumnCode
id
=
"kind"
label
=
"Property kind"
width
=
{
120
}
/>
<
ColumnCode
id
=
"kind"
label
=
"Property kind"
width
=
{
120
}
/>
<
ColumnCode
id
=
"alarm"
label
=
"Alarms"
width
=
{
160
}
/>
<
ColumnCode
id
=
"alarm"
label
=
"Alarms"
width
=
{
160
}
/>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment