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
9b463d06
Commit
9b463d06
authored
3 years ago
by
Maxime Jacquemin
Browse files
Options
Downloads
Patches
Plain Diff
[ivette] Helpful message when there is no function to display
parent
d45d71c4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ivette/src/dome/renderer/frame/sidebars.tsx
+18
-3
18 additions, 3 deletions
ivette/src/dome/renderer/frame/sidebars.tsx
ivette/src/dome/renderer/frame/style.css
+17
-0
17 additions, 0 deletions
ivette/src/dome/renderer/frame/style.css
with
35 additions
and
3 deletions
ivette/src/dome/renderer/frame/sidebars.tsx
+
18
−
3
View file @
9b463d06
...
@@ -35,7 +35,7 @@ import { Badge } from 'dome/controls/icons';
...
@@ -35,7 +35,7 @@ import { Badge } from 'dome/controls/icons';
import
{
Label
}
from
'
dome/controls/labels
'
;
import
{
Label
}
from
'
dome/controls/labels
'
;
import
{
classes
}
from
'
dome/misc/utils
'
;
import
{
classes
}
from
'
dome/misc/utils
'
;
import
{
Hbox
}
from
'
dome/layout/boxes
'
;
import
{
Hbox
}
from
'
dome/layout/boxes
'
;
import
{
IconButton
}
from
'
dome/controls/buttons
'
;
import
{
IconButton
,
Button
}
from
'
dome/controls/buttons
'
;
import
'
./style.css
'
;
import
'
./style.css
'
;
...
@@ -132,7 +132,21 @@ export function Section(props: SectionProps): JSX.Element | null {
...
@@ -132,7 +132,21 @@ export function Section(props: SectionProps): JSX.Element | null {
const
icon
=
state
?
'
TRIANGLE.DOWN
'
:
'
TRIANGLE.RIGHT
'
;
const
icon
=
state
?
'
TRIANGLE.DOWN
'
:
'
TRIANGLE.RIGHT
'
;
const
{
enabled
=
true
,
disabled
=
false
,
children
}
=
props
;
const
{
enabled
=
true
,
disabled
=
false
,
children
}
=
props
;
if
(
disabled
||
!
enabled
||
React
.
Children
.
count
(
children
)
===
0
)
return
null
;
if
(
disabled
||
!
enabled
)
return
null
;
const
noChildContent
=
<
div
className
=
'dome-xSideBarSection-content'
>
<
label
className
=
'dome-xSideBarSection-info'
>
{
'
There is no function to display. Maybe you can change
'
+
'
the filtering options.
'
}
</
label
>
<
Button
icon
=
'TUNINGS'
label
=
'Functions filtering options'
onClick
=
{
props
.
onContextMenu
}
visible
=
{
!
(
props
.
onContextMenu
===
undefined
)
}
/>
</
div
>;
const
visible
=
unfold
??
state
;
const
visible
=
unfold
??
state
;
const
maxHeight
=
visible
?
'
max-content
'
:
0
;
const
maxHeight
=
visible
?
'
max-content
'
:
0
;
...
@@ -149,12 +163,13 @@ export function Section(props: SectionProps): JSX.Element | null {
...
@@ -149,12 +163,13 @@ export function Section(props: SectionProps): JSX.Element | null {
/>
/>
<
IconButton
<
IconButton
icon
=
'TUNINGS'
icon
=
'TUNINGS'
title
=
{
'
Functions filtering options
'
}
onClick
=
{
props
.
onContextMenu
}
onClick
=
{
props
.
onContextMenu
}
visible
=
{
!
(
props
.
onContextMenu
===
undefined
)
}
visible
=
{
!
(
props
.
onContextMenu
===
undefined
)
}
/>
/>
</
Hbox
>
</
Hbox
>
<
div
className
=
'dome-xSideBarSection-content'
style
=
{
{
maxHeight
}
}
>
<
div
className
=
'dome-xSideBarSection-content'
style
=
{
{
maxHeight
}
}
>
{
children
}
{
React
.
Children
.
count
(
children
)
===
0
?
noChildContent
:
children
}
</
div
>
</
div
>
</
div
>
</
div
>
);
);
...
...
This diff is collapsed.
Click to expand it.
ivette/src/dome/renderer/frame/style.css
+
17
−
0
View file @
9b463d06
...
@@ -155,6 +155,23 @@
...
@@ -155,6 +155,23 @@
transition
:
max-height
250ms
ease-in-out
;
transition
:
max-height
250ms
ease-in-out
;
}
}
.dome-xSideBarSection-content
>
.dome-xBoxButton
{
margin-left
:
20px
;
margin-right
:
10px
;
margin-top
:
7px
;
color
:
var
(
--info-text
);
fill
:
var
(
--info-text
);
display
:
flex
;
}
.dome-xSideBarSection-info
{
color
:
var
(
--info-text-discrete
);
font-style
:
italic
;
padding-left
:
20px
;
padding-right
:
10px
;
display
:
block
;
}
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/* --- SideBar Items --- */
/* --- SideBar Items --- */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
...
...
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