diff --git a/beeref/actions/actions.py b/beeref/actions/actions.py index 9f047ce..f806f65 100644 --- a/beeref/actions/actions.py +++ b/beeref/actions/actions.py @@ -203,6 +203,11 @@ actions = [ 'shortcuts': ['F1', 'Ctrl+H'], 'callback': 'on_action_help', }, + { + 'id': 'about', + 'text': '&About', + 'callback': 'on_action_about', + }, { 'id': 'debuglog', 'text': 'Show &Debug Log', diff --git a/beeref/actions/menu_structure.py b/beeref/actions/menu_structure.py index 8177dfc..57af80b 100644 --- a/beeref/actions/menu_structure.py +++ b/beeref/actions/menu_structure.py @@ -89,6 +89,7 @@ menu_structure = [ 'menu': '&Help', 'items': [ 'help', + 'about', 'debuglog', ], }, diff --git a/beeref/config.py b/beeref/config.py index 885ac70..f5b1d87 100644 --- a/beeref/config.py +++ b/beeref/config.py @@ -29,7 +29,7 @@ logger = logging.getLogger(__name__) parser = argparse.ArgumentParser( - description=f'{constants.APPNAME} referance image viewer') + description=f'{constants.APPNAME_FULL} {constants.VERSION}') parser.add_argument( 'filename', nargs='?', diff --git a/beeref/constants.py b/beeref/constants.py index 58a30b5..f7d1a88 100644 --- a/beeref/constants.py +++ b/beeref/constants.py @@ -14,4 +14,7 @@ # along with BeeRef. If not, see . APPNAME = 'BeeRef' +APPNAME_FULL = f'{APPNAME} Reference Image Viewer' VERSION = '0.1' +WEBSITE = 'https://github.com/rbreu/beeref' +COPYRIGHT = 'Copyright © 2021 Rebecca Breu' diff --git a/beeref/view.py b/beeref/view.py index 791a903..38cd107 100644 --- a/beeref/view.py +++ b/beeref/view.py @@ -334,6 +334,16 @@ class BeeGraphicsView(QtWidgets.QGraphicsView, ActionsMixin): def on_action_help(self): gui.HelpDialog(self) + def on_action_about(self): + QtWidgets.QMessageBox.about( + self, + f'About {constants.APPNAME}', + (f'

{constants.APPNAME} {constants.VERSION}

' + f'

{constants.APPNAME_FULL}

' + f'

{constants.COPYRIGHT}

' + f'

' + f'Visit the {constants.APPNAME} website

')) + def on_action_debuglog(self): gui.DebugLogDialog(self)