[Wgui-cvs] wgui/src wg_range_control.cpp,NONE,1.1 Makefile.am,1.10,1.11
Status: Beta
Brought to you by:
greenwire
|
From: Rob W. <gre...@us...> - 2004-04-26 22:38:11
|
Update of /cvsroot/wgui/wgui/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2833/src Modified Files: Makefile.am Added Files: wg_range_control.cpp Log Message: Added CRangeControl. Index: Makefile.am =================================================================== RCS file: /cvsroot/wgui/wgui/src/Makefile.am,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** Makefile.am 22 Apr 2004 16:39:53 -0000 1.10 --- Makefile.am 26 Apr 2004 22:38:00 -0000 1.11 *************** *** 30,33 **** --- 30,34 ---- wg_point.cpp \ wg_progress.cpp \ + wg_range_control.cpp \ wg_rect.cpp \ wg_renderedstring.cpp \ --- NEW FILE: wg_range_control.cpp --- // wg_range_control.cpp // // CRangeControl class implementation // // // Copyright (c) 2002-2004 Rob Wiskow // ro...@bo... // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either // version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // #include "wgui_include_config.h" #include "wg_range_control.h" #include "std_ex.h" namespace wGui { template<typename T> void CRangeControl<T>::SetValue(T value) { m_Value = value; CMessageServer::Instance().QueueMessage(new CValueMessage<T>(CMessage::CTRL_VALUECHANGE, m_pParentWindow, this, m_Value)); StartDrawProc(); } template<typename T> void CRangeControl<T>::Increment(void) { m_Value += m_StepSize; CMessageServer::Instance().QueueMessage(new CValueMessage<T>(CMessage::CTRL_VALUECHANGE, m_pParentWindow, this, m_Value)); StartDrawProc(); } template<typename T> void CRangeControl<T>::Decrement(void) { m_Value -= m_StepSize; CMessageServer::Instance().QueueMessage(new CValueMessage<T>(CMessage::CTRL_VALUECHANGE, m_pParentWindow, this, m_Value)); StartDrawProc(); } } |