]> git.saurik.com Git - wxWidgets.git/blame - src/motif/timer.cpp
More Motif additions: mdi and sashtest samples now just about work!
[wxWidgets.git] / src / motif / timer.cpp
CommitLineData
4bb6408c
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: timer.cpp
3// Purpose: wxTimer implementation
4// Author: Julian Smart
5// Modified by:
6// Created: 17/09/98
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifdef __GNUG__
13#pragma implementation "timer.h"
14#endif
15
16#include "wx/timer.h"
17
18#if !USE_SHARED_LIBRARY
19IMPLEMENT_ABSTRACT_CLASS(wxTimer, wxObject)
20#endif
21
22wxTimer::wxTimer()
23{
24 m_milli = 0 ;
25 m_id = 0;
26 m_oneShot = FALSE;
27}
28
29wxTimer::~wxTimer()
30{
31 Stop();
32}
33
34bool wxTimer::Start(int milliseconds,bool mode)
35{
36 m_oneShot = mode ;
37 if (milliseconds <= 0)
38 return FALSE;
39
40 m_milli = milliseconds;
41
42 // TODO: set the timer going.
43 return FALSE;
44}
45
46void wxTimer::Stop()
47{
48 m_id = 0 ;
49 m_milli = 0 ;
50}
51
52