This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
Extend integer editing range in configtool
- From: John Dallaway <jld at ecoscentric dot com>
- To: ecos-patches at ecos dot sourceware dot org
- Date: Mon, 11 Sep 2006 11:49:00 +0100
- Subject: Extend integer editing range in configtool
This patch allows editing of numeric configuration options over the full
32-bit signed integer range within the eCos Configuration Tool. Checked in.
John Dallaway
eCosCentric Limited
Index: ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/host/tools/configtool/ChangeLog,v
retrieving revision 1.63
diff -u -5 -r1.63 ChangeLog
--- ChangeLog 11 Jul 2006 09:56:14 -0000 1.63
+++ ChangeLog 11 Sep 2006 10:41:38 -0000
@@ -1,5 +1,10 @@
+2006-09-06 John Dallaway <jld@ecoscentric.com>
+
+ * standalone/wxwin/configitem.cpp: Allow full 32-bit signed integer
+ range when editing CDL items using the ecIntegerEditorCtrl.
+
2006-07-11 John Dallaway <jld@ecoscentric.com>
* standalone/wxwin/configtool.cpp: Workaround an exception handling
issue with Cygwin 1.5.20.
Index: standalone/wxwin/configitem.cpp
===================================================================
RCS file: /cvs/ecos/ecos/host/tools/configtool/standalone/wxwin/configitem.cpp,v
retrieving revision 1.1
diff -u -5 -r1.1 configitem.cpp
--- standalone/wxwin/configitem.cpp 1 Jun 2001 22:16:29 -0000 1.1
+++ standalone/wxwin/configitem.cpp 11 Sep 2006 10:41:38 -0000
@@ -1,9 +1,10 @@
//####COPYRIGHTBEGIN####
//
// ----------------------------------------------------------------------------
// Copyright (C) 1998, 1999, 2000 Red Hat, Inc.
+// Copyright (C) 2006 eCosCentric Limited
//
// This program is part of the eCos host tools.
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the Free
@@ -1398,11 +1399,11 @@
IMPLEMENT_CLASS(ecIntegerEditorCtrl, wxSpinCtrl)
ecIntegerEditorCtrl::ecIntegerEditorCtrl(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size,
long style):
- wxSpinCtrl(parent, id, wxEmptyString, pos, size, style, -32000, 32000, 0)
+ wxSpinCtrl(parent, id, wxEmptyString, pos, size, style, INT_MIN, INT_MAX, 0)
{
}
void ecIntegerEditorCtrl::OnEnter(wxCommandEvent& event)
{