Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
beat.editor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
11
Issues
11
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
beat
beat.editor
Commits
411eb6a8
Commit
411eb6a8
authored
Oct 29, 2019
by
Flavio TARSETTI
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[widgets][toolchaineditor] toolchain visualization
parent
e882c331
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
452 additions
and
161 deletions
+452
-161
beat/editor/scripts/editor_cli.py
beat/editor/scripts/editor_cli.py
+0
-34
beat/editor/widgets/drawing_space.py
beat/editor/widgets/drawing_space.py
+0
-2
beat/editor/widgets/toolchaineditor.py
beat/editor/widgets/toolchaineditor.py
+452
-125
No files found.
beat/editor/scripts/editor_cli.py
View file @
411eb6a8
...
...
@@ -50,7 +50,6 @@ from ..utils import check_prefix_dataformats
from
..widgets.mainwindow
import
MainWindow
from
..widgets.assetwidget
import
AssetWidget
from
..widgets.toolchaineditor
import
SimpleToolchainPreview
from
..backend.asset
import
AssetType
from
..backend.asset
import
Asset
...
...
@@ -203,36 +202,3 @@ def refresh_env(ctx, type_):
if
os
.
path
.
exists
(
environments_file_path
):
os
.
remove
(
environments_file_path
)
ctx
.
invoke
(
environments
.
list
,
type_
=
type_
,
output
=
environments_file_path
)
@
editor
.
group
(
cls
=
AliasedGroup
)
@
click
.
pass_context
def
toolchain
(
ctx
):
"""Toolchain specific commands"""
pass
SHOW_TOOLCHAIN_EPILOG
=
"""
\
b
Example:
$ beat editor toolchain show user/my_toolchain/1
"""
@
toolchain
.
command
(
epilog
=
EDIT_EPILOG
)
@
click
.
argument
(
"asset_name"
)
@
click
.
pass_context
@
refresh_environment_cache_flag
@
raise_on_error
def
show
(
ctx
,
asset_name
):
"""Edit one specific asset"""
app
=
QApplication
(
sys
.
argv
)
asset
=
Asset
(
ctx
.
meta
[
"config"
].
path
,
AssetType
.
TOOLCHAIN
,
asset_name
)
preview
=
SimpleToolchainPreview
()
preview
.
load
(
asset
.
declaration
)
preview
.
show
()
return
app
.
exec_
()
beat/editor/widgets/drawing_space.py
View file @
411eb6a8
...
...
@@ -33,10 +33,8 @@ class DrawingSpace(QGraphicsScene):
"""Playground scene for block objects"""
# def __init__(self, parent=None):
def
__init__
(
self
,
configuration
):
# super(DrawingSpace, self).__init__(parent)
super
().
__init__
()
self
.
grid_size
=
configuration
[
"grid_size"
]
...
...
beat/editor/widgets/toolchaineditor.py
View file @
411eb6a8
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment