Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
soitool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
bachelor-paa-bittet
soitool
Commits
cc69073f
Commit
cc69073f
authored
5 years ago
by
Thomas Holene Løkkeborg
Browse files
Options
Downloads
Patches
Plain Diff
#54 inline edit view is now notified on reorg of SOI
parent
7f50e7e7
No related branches found
No related tags found
1 merge request
!28
#54 Rectpack for reorganisering av moduler + litt black
Pipeline
#74129
passed
5 years ago
Stage: lint
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
soitool/inline_editable_soi_view.py
+10
-6
10 additions, 6 deletions
soitool/inline_editable_soi_view.py
with
10 additions
and
6 deletions
soitool/inline_editable_soi_view.py
+
10
−
6
View file @
cc69073f
...
...
@@ -35,12 +35,14 @@ class InlineEditableSOIView(QScrollArea):
"""
Reorganize modules when pressed.
This is a temporary way to activate reorganization of widgets. Note
that will not be triggered by clicks on modules in the scene
"""
self
.
reorganize_soi_and_update_pages
()
that will not be triggered by clicks on modules in the scene.
def
reorganize_soi_and_update_pages
(
self
):
"""
Reorganize SOI and update pages in one go.
"""
If reorganization cannot occur because a module is too large the user
will be informed. It
'
s worth noting that with the current
implementation this is the only way the user will be informed of this,
so reorganization that is not triggered here will not give feedback to
the user.
"""
try
:
self
.
soi
.
reorganize
()
except
ModuleLargerThanBinError
:
...
...
@@ -51,7 +53,6 @@ class InlineEditableSOIView(QScrollArea):
"
for deg. Se igjennom modulene og sjekk at
"
"
alle moduler er mindre enn én enkelt side.
"
,
)
self
.
update_pages
()
def
__init__
(
self
,
soi
):
super
().
__init__
()
...
...
@@ -74,6 +75,9 @@ class InlineEditableSOIView(QScrollArea):
self
.
ensure_proxies
()
self
.
update_pages
()
# update pages after SOI is reorganized
self
.
soi
.
add_reorganization_listener
(
self
.
update_pages
)
# self.launch_auto_zoom()
def
produce_pdf
(
self
,
filename
):
...
...
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