Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Gryphon
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Monterey Phoenix
User Interfaces
Gryphon
Commits
644baf4d
Commit
644baf4d
authored
1 year ago
by
Allen, Bruce (CIV)
Browse files
Options
Downloads
Patches
Plain Diff
make issue link clickable, issue 72
parent
35ec3c67
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
python/gui_manager.py
+4
-14
4 additions, 14 deletions
python/gui_manager.py
python/report_an_issue.py
+24
-0
24 additions, 0 deletions
python/report_an_issue.py
with
28 additions
and
14 deletions
python/gui_manager.py
+
4
−
14
View file @
644baf4d
...
...
@@ -65,7 +65,7 @@ from paths_examples import is_bundled, \
schedule_validate_examples_paths
from
paths_gryphon
import
TRACE_GENERATED_OUTFILE_GRY
from
examples_menu
import
fill_examples_menu
from
message_popup
import
message_popup
from
report_an_issue
import
report_an_issue
from
discard_existing_mp
import
DiscardExistingMP
from
startup_options
import
parse_startup_options
from
mp_file_dialog
import
get_open_file_name
,
get_save_file_name
,
\
...
...
@@ -299,7 +299,7 @@ class GUIManager(QObject):
# action report an issue
self
.
action_report_an_issue
=
QAction
(
"
Report an issue...
"
,
self
)
self
.
action_report_an_issue
.
setToolTip
(
"
Report an issue about MP
"
)
self
.
action_report_an_issue
.
triggered
.
connect
(
self
.
report_an_issue
)
self
.
action_report_an_issue
.
triggered
.
connect
(
self
.
_
report_an_issue
)
# action run/cancel
self
.
action_run_cancel
=
QAction
(
self
)
...
...
@@ -576,18 +576,8 @@ class GUIManager(QObject):
# Report an issue...
@Slot
()
def
report_an_issue
(
self
):
text
=
"
To report an issue please open the Monterey Phoenix Gryphon
"
\
"
issue tracker at
"
\
"
https://gitlab.nps.edu/monterey-phoenix/user-interfaces
"
\
'
/gryphon/-/issues and click the
"
New issue
"
button.
\n\n
'
\
"
Please include the version of the Operating System you are
"
\
"
using and that you are using Gryphon %s.
"
\
"
If possible, please include a screen capture.
\n\n
"
\
"
Please de-identify screen capture and other
"
\
"
submitted information as issues and related comments are
"
\
"
public.
"
%
VERSION
message_popup
(
self
.
w
,
text
)
def
_report_an_issue
(
self
):
report_an_issue
(
self
.
w
)
# Open MP Code file
@Slot
()
...
...
This diff is collapsed.
Click to expand it.
python/report_an_issue.py
0 → 100644
+
24
−
0
View file @
644baf4d
from
PySide6.QtCore
import
Qt
from
PySide6.QtWidgets
import
QMessageBox
from
version_file
import
VERSION
_issue_url
=
"
https://gitlab.nps.edu/monterey-phoenix
"
\
"
/user-interfaces/gryphon/-/issues
"
_issue_link
=
"
<a href=
'
%s
'
>%s</a>
"
%
(
_issue_url
,
_issue_url
)
_text
=
'
To report an issue please open the Monterey Phoenix Gryphon
'
\
'
issue tracker at %s and click the
"
New issue
"
button.<p>
'
\
'
Please include the version of the Operating System you are
'
\
'
using and that you are using Gryphon %s.
'
\
'
If possible, please include a screen capture.<p>
'
\
'
Please de-identify screen capture and other
'
\
'
submitted information as issues and related comments are
'
\
'
public.
'
%
(
_issue_link
,
VERSION
)
def
report_an_issue
(
parent
):
mb
=
QMessageBox
(
parent
)
mb
.
setTextFormat
(
Qt
.
RichText
)
mb
.
setText
(
_text
)
mb
.
setStandardButtons
(
QMessageBox
.
Ok
)
mb
.
exec
()
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