]> git.saurik.com Git - wxWidgets.git/blob - src/palmos/base.cpp
in DoSetSize, only call GetPosition if necessary
[wxWidgets.git] / src / palmos / base.cpp
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/base.cpp
3 // Purpose: misc stuff only used in applications under PalmOS
4 // Author: William Osborne - minimal working wxPalmOS port
5 // Modified by:
6 // Created: 10.13.2004
7 // RCS-ID: $Id$
8 // Copyright: (c) 2004 William Osborne
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
11
12 // ============================================================================
13 // declarations
14 // ============================================================================
15
16 // ----------------------------------------------------------------------------
17 // headers
18 // ----------------------------------------------------------------------------
19
20 // for compilers that support precompilation, includes "wx.h".
21 #include "wx/wxprec.h"
22
23 #ifdef __BORLANDC__
24 #pragma hdrstop
25 #endif
26
27 #ifndef WX_PRECOMP
28 #endif //WX_PRECOMP
29
30 #include "wx/apptrait.h"
31 #include "wx/recguard.h"
32 #include "wx/evtloop.h" // wxEventLoop
33
34 // ============================================================================
35 // wxConsoleAppTraits implementation
36 // ============================================================================
37
38 void *wxConsoleAppTraits::BeforeChildWaitLoop()
39 {
40 return NULL;
41 }
42
43 void wxConsoleAppTraits::AfterChildWaitLoop(void * WXUNUSED(data))
44 {
45 }
46
47 #if wxUSE_THREADS
48 bool wxConsoleAppTraits::DoMessageFromThreadWait()
49 {
50 return true;
51 }
52
53 WXDWORD wxConsoleAppTraits::WaitForThread(WXHANDLE hThread)
54 {
55 // TODO
56 return 0;
57 }
58 #endif // wxUSE_THREADS
59
60 #if wxUSE_CONSOLE_EVENTLOOP
61 wxEventLoopBase *
62 wxConsoleAppTraits::CreateEventLoop()
63 {
64 return new wxEventLoop;
65 }
66 #endif // wxUSE_CONSOLE_EVENTLOOP
67