]> git.saurik.com Git - wxWidgets.git/commit
Refactor text to/from double conversion in wxSpinCtrlGenericBase.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 30 Aug 2012 20:23:49 +0000 (20:23 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 30 Aug 2012 20:23:49 +0000 (20:23 +0000)
commit62f96636b57d44bb8f4d7a3bac482f2c8c482f82
treebb0cd0b43a9080200d3e985acbc0ac249e266880
parentb9b1eec60482f45775ea28b035cf6e969efa877a
Refactor text to/from double conversion in wxSpinCtrlGenericBase.

The code always used ToDouble() and Format("%g") which was a bit strange for
integer-valued wxSpinCtrl. Move the conversions to their own virtual functions
for clarity, perhaps correctness and, especially, flexibility as they will be
overridden in wxSpinCtrl soon.

Also move wxSpinCtrlGenericBase::m_format to wxSpinCtrlDouble as the base
class really doesn't need it at all.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/generic/spinctlg.h
src/generic/spinctlg.cpp