Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
JPSeditor
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
JuPedSim
JPSeditor
Commits
be4de0cd
Commit
be4de0cd
authored
6 years ago
by
Tao Zhong
Browse files
Options
Downloads
Patches
Plain Diff
Add Zoom extents
parent
5a170c4f
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
forms/mainwindow.ui
+9
-0
9 additions, 0 deletions
forms/mainwindow.ui
src/mainWindow.cpp
+5
-0
5 additions, 0 deletions
src/mainWindow.cpp
src/mainWindow.h
+1
-0
1 addition, 0 deletions
src/mainWindow.h
with
15 additions
and
0 deletions
forms/mainwindow.ui
+
9
−
0
View file @
be4de0cd
...
...
@@ -72,6 +72,7 @@
<addaction
name=
"separator"
/>
<addaction
name=
"actionBack_to_Origin"
/>
<addaction
name=
"actionZoom_Windows"
/>
<addaction
name=
"actionZoom_Extents"
/>
</widget>
<widget
class=
"QMenu"
name=
"menuEdit"
>
<property
name=
"title"
>
...
...
@@ -730,6 +731,14 @@
<string>
Meta+W
</string>
</property>
</action>
<action
name=
"actionZoom_Extents"
>
<property
name=
"text"
>
<string>
Zoom Extents
</string>
</property>
<property
name=
"shortcut"
>
<string>
Meta+E
</string>
</property>
</action>
</widget>
<resources>
<include
location=
"../Resources/resources.qrc"
/>
...
...
This diff is collapsed.
Click to expand it.
src/mainWindow.cpp
+
5
−
0
View file @
be4de0cd
...
...
@@ -844,3 +844,8 @@ void MWindow::on_actionZoom_Windows_triggered()
en_selectMode
();
mview
->
selectedWindows
();
}
void
MWindow
::
on_actionZoom_Extents_triggered
()
{
mview
->
AutoZoom
();
}
This diff is collapsed.
Click to expand it.
src/mainWindow.h
+
1
−
0
View file @
be4de0cd
...
...
@@ -169,6 +169,7 @@ private slots:
void
on_actionNew_Inifile_triggered
();
void
on_actionBack_to_Origin_triggered
();
void
on_actionZoom_Windows_triggered
();
void
on_actionZoom_Extents_triggered
();
};
#endif // MAINWINDOW_H
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