</widget>
</child>
<child>
- <widget class="GtkMenuItem" id="toolsMenuItem">
- <property name="visible">True</property>
- <property name="label" translatable="yes">_Tools</property>
- <property name="use_underline">True</property>
- <child>
- <widget class="GtkMenu" id="toolsMenu">
- <child>
- <widget class="GtkCheckMenuItem" id="editShortListMenuItem">
- <property name="visible">True</property>
- <property name="tooltip" translatable="yes">Show shortlist selections</property>
- <property name="label" translatable="yes">_Edit shortlist</property>
- <property name="use_underline">True</property>
- </widget>
- </child>
- <child>
- <widget class="GtkMenuItem" id="clearSelectionMenuItem">
- <property name="visible">True</property>
- <property name="tooltip" translatable="yes">Clear saved selections</property>
- <property name="label" translatable="yes">_Clear selections</property>
- <property name="use_underline">True</property>
- </widget>
- </child>
- </widget>
- </child>
- </widget>
- </child>
- <child>
<widget class="GtkMenuItem" id="helpMenuItem">
<property name="visible">True</property>
<property name="label" translatable="yes">_Help</property>
<property name="position">2</property>
</packing>
</child>
- <child>
- <widget class="GtkVSeparator" id="vseparator1">
- <property name="visible">True</property>
- <property name="orientation">vertical</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">3</property>
- </packing>
- </child>
- <child>
- <widget class="GtkCheckButton" id="shortlistcheck">
- <property name="label" translatable="yes">Shortlist</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="use_underline">True</property>
- <property name="draw_indicator">True</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="pack_type">end</property>
- <property name="position">4</property>
- </packing>
- </child>
</widget>
<packing>
<property name="expand">False</property>
__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_
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')
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 (
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
__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