it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
-@todo Add an edit menu with select all, cut, copy, and paste
-@todo Add undo directly into the UI
@todo Add Note Export (txt File) and Export All (json dump?)
@todo Save word wrap and zoom setting
"""
categorymenu = gtk.Menu()
- menu_items = gtk.MenuItem(_("delete"))
+ menu_items = gtk.MenuItem(_("Delete"))
categorymenu.append(menu_items)
menu_items.connect("activate", self._on_delete_category, None)
- menu_items = gtk.MenuItem(_("move to category"))
+ menu_items = gtk.MenuItem(_("Move To Category"))
categorymenu.append(menu_items)
menu_items.connect("activate", self._on_move_category, None)
def _on_view_sql_history(self, widget = None, data = None, data2 = None):
import libsqldialog
- sqldiag = libsqldialog.sqlDialog(self._db)
+ sqldiag = libsqldialog.SqlDialog(self._db)
res = sqldiag.run()
sqldiag.hide()
- if res == 444:
+ if res == sqldiag.EXPORT_RESPONSE:
logging.info("exporting sql")
dlg = hildon.FileChooserDialog(parent=self._window, action=gtk.FILE_CHOOSER_ACTION_SAVE)