From 8a54d3dc83f2e0ebb40428769121107fbe904f8b Mon Sep 17 00:00:00 2001 From: Ed Page Date: Wed, 4 Nov 2009 21:21:58 -0600 Subject: [PATCH] Polishing things up in prep for a 1.0 --- data/gonvert.glade | 53 -------------------------------------------------- src/constants.py | 4 ++-- src/gonvert_glade.py | 28 -------------------------- support/builddeb.py | 7 ++++++- 4 files changed, 8 insertions(+), 84 deletions(-) diff --git a/data/gonvert.glade b/data/gonvert.glade index cae7766..d78bfee 100644 --- a/data/gonvert.glade +++ b/data/gonvert.glade @@ -30,33 +30,6 @@ - - True - _Tools - True - - - - - True - Show shortlist selections - _Edit shortlist - True - - - - - True - Clear saved selections - _Clear selections - True - - - - - - - True _Help @@ -302,32 +275,6 @@ 2 - - - True - vertical - - - False - False - 3 - - - - - Shortlist - True - False - True - True - - - False - False - end - 4 - - False diff --git a/src/constants.py b/src/constants.py index 096febe..e6d636d 100644 --- a/src/constants.py +++ b/src/constants.py @@ -2,8 +2,8 @@ import os __pretty_app_name__ = "Gonvert" __app_name__ = "gonvert" -__version__ = "0.2.24" -__build__ = 3 +__version__ = "0.9.0" +__build__ = 0 __app_magic__ = 0xdeadbeef _data_path_ = os.path.join(os.path.expanduser("~"), ".gonvert") _user_settings_ = "%s/settings.ini" % _data_path_ diff --git a/src/gonvert_glade.py b/src/gonvert_glade.py index a345f55..142bbfd 100755 --- a/src/gonvert_glade.py +++ b/src/gonvert_glade.py @@ -125,15 +125,10 @@ class Gonvert(object): change_menu_label(widgets, 'fileMenuItem', _('File')) change_menu_label(widgets, 'exitMenuItem', _('Exit')) - change_menu_label(widgets, 'toolsMenuItem', _('Tools')) - change_menu_label(widgets, 'clearSelectionMenuItem', _('Clear selections')) change_menu_label(widgets, 'helpMenuItem', _('Help')) change_menu_label(widgets, 'aboutMenuItem', _('About')) change_menu_label(widgets, 'findButton', _('Find')) - self._shortlistcheck = widgets.get_widget('shortlistcheck') - self._toggleShortList = widgets.get_widget('toggleShortList') - self._categorySelectionButton = widgets.get_widget("categorySelectionButton") self._categoryView = widgets.get_widget('categoryView') @@ -239,13 +234,10 @@ class Gonvert(object): self._findEntry.connect("activate", self._on_find_activate) self._findEntry.connect("changed", self._on_findEntry_changed) self._previousUnitValue.connect("changed", self._on_previous_unit_value_changed) - self._shortlistcheck.connect("toggled", self._on_shortlist_changed) self._unitValue.connect("changed", self._on_unit_value_changed) self._unitsView.connect("cursor-changed", self._on_click_unit) if hildonize.GTK_MENU_USED: widgets.get_widget("aboutMenuItem").connect("activate", self._on_about_clicked) - widgets.get_widget("clearSelectionMenuItem").connect("activate", self._on_user_clear_selections) - widgets.get_widget("editShortListMenuItem").connect("activate", self._on_edit_shortlist) widgets.get_widget("exitMenuItem").connect("activate", self._on_user_exit) for scrollingWidgetName in ( @@ -537,26 +529,6 @@ class Gonvert(object): value = float(userEntry) return value - def _on_shortlist_changed(self, *args): - try: - raise NotImplementedError("%s" % self._shortlistcheck.get_active()) - except Exception: - _moduleLogger.exception("_on_shortlist_changed") - - def _on_edit_shortlist(self, *args): - try: - raise NotImplementedError("%s" % self._toggleShortList.get_active()) - except Exception: - _moduleLogger.exception("_on_edit_shortlist") - - def _on_user_clear_selections(self, *args): - try: - selectionsDatPath = "/".join((constants._data_path_, "selections.dat")) - os.remove(selectionsDatPath) - self._defaultUnitForCategory = {} - except Exception: - _moduleLogger.exception("_on_user_clear_selections") - def _on_key_press(self, widget, event, *args): """ @note Hildon specific diff --git a/support/builddeb.py b/support/builddeb.py index 9b6f40d..db5510d 100755 --- a/support/builddeb.py +++ b/support/builddeb.py @@ -19,12 +19,17 @@ __email__ = "eopage@byu.net" __version__ = constants.__version__ __build__ = constants.__build__ __changelog__ = """ -0.2.24 +0.9.0 * Added Radioactivity and Radiation dose categories. +* Aligning the numbers by their decimal place * Added shortcuts for fullscreen * Switched to Find being brought up by CTRL+F * Added Find Previous and Find Next shortcuts (CTRL+P, CTRL+N) +* Adjusted the sizing on various widgets +* Removed unused UI features for polish +* Bug fix: improved behavior when corner case values are inputted (like floats for base conversions) * Debugging: Added logging support +* Marketting: Huge version bump to express a basic level of feature complete * Internal: Massive cleanup of code 0.2.23 - Added UK currency category and other UK measurements thanks to Dale Hair -- 1.7.9.5