commit fd5ee59a2984215e95928f713446d8d45e04a1d5
parent 7c1d07c999de8c50723e19c7de3d45a87ac5b153
Author: Maran <maran.hidskes@gmail.com>
Date: Sun, 21 Apr 2013 21:53:08 +0200
Skeleton for menu
Diffstat:
1 file changed, 46 insertions(+), 0 deletions(-)
diff --git a/gui/gui_classic.py b/gui/gui_classic.py
@@ -277,6 +277,52 @@ class ElectrumWindow(QMainWindow):
if not self.wallet.seed: title += ' [%s]' % (_('seedless'))
self.setWindowTitle( title )
+ menubar = QMenuBar()
+
+ electrum_menu = menubar.addMenu(_("&File"))
+ preferences_name = _("Preferences")
+ if sys.platform == 'darwin':
+ preferences_name = _("Electrum preferences") # Settings / Preferences are all reserved keywords in OSX using this as work around
+
+ preferences_menu = electrum_menu.addAction(preferences_name)
+ electrum_menu.addSeparator()
+
+ accounts_menu = electrum_menu.addMenu(_("&Accounts"))
+ accounts_menu.addAction(_("All accounts"))
+ accounts_menu.addAction(_("Main account"))
+ accounts_menu.addAction(_("Imported keys"))
+
+ raw_transaction_menu = electrum_menu.addMenu(_("&Load raw transaction"))
+ raw_transaction_file = raw_transaction_menu.addAction(_("&From file"))
+ raw_transaction_text = raw_transaction_menu.addAction(_("&From text"))
+
+ electrum_menu.addSeparator()
+ quit_item = electrum_menu.addAction(_("&Close"))
+
+ wallet_menu = menubar.addMenu(_("&Wallet"))
+ wallet_backup = wallet_menu.addAction(_("&Create backup"))
+ show_seed = wallet_menu.addAction(_("&Show seed"))
+ chnage_password = wallet_menu.addAction(_("&Password"))
+ wallet_menu.addSeparator()
+ new_contact = wallet_menu.addAction(_("&New contact"))
+
+ import_menu = menubar.addMenu(_("&Import"))
+ in_labels = import_menu.addAction(_("&Labels"))
+ in_private_keys = import_menu.addAction(_("&Private key"))
+
+ export_menu = menubar.addMenu(_("&Export"))
+ ex_private_keys = export_menu.addAction(_("&Private keys"))
+ ex_history = export_menu.addAction(_("&History"))
+ ex_labels = export_menu.addAction(_("&Labels"))
+
+ help_menu = menubar.addMenu(_("&Help"))
+ help_menu.addAction(_("&About"))
+ help_menu.addAction(_("&Documentation")) # http://electrum.org/documentation.html
+ help_menu.addAction(_("&Official website"))
+
+ self.setMenuBar(menubar)
+
+
QShortcut(QKeySequence("Ctrl+W"), self, self.close)
QShortcut(QKeySequence("Ctrl+Q"), self, self.close)
QShortcut(QKeySequence("Ctrl+PgUp"), self, lambda: tabs.setCurrentIndex( (tabs.currentIndex() - 1 )%tabs.count() ))