Global platform header (<PalmOS.h>) removed from public wx-headers (but included in wxprec.h) with all consequences in wxPalmOS specific API.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -653,6 +653,10 @@ enum { wxDefaultCoord = -1 };
|
|||||||
/* define fixed length types */
|
/* define fixed length types */
|
||||||
/* ---------------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
#if defined(__WXPALMOS__) || defined(__MINGW32__)
|
||||||
|
#include <sys/types.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/* chars are always one byte (by definition), shorts are always two (in */
|
/* chars are always one byte (by definition), shorts are always two (in */
|
||||||
/* practice) */
|
/* practice) */
|
||||||
|
|
||||||
@@ -952,7 +956,6 @@ inline void *wxUIntToPtr(wxUIntPtr p)
|
|||||||
/* Make sure ssize_t is defined (a signed type the same size as size_t) */
|
/* Make sure ssize_t is defined (a signed type the same size as size_t) */
|
||||||
/* HAVE_SSIZE_T should be defined for compiliers that already have it */
|
/* HAVE_SSIZE_T should be defined for compiliers that already have it */
|
||||||
#ifdef __MINGW32__
|
#ifdef __MINGW32__
|
||||||
#include <sys/types.h>
|
|
||||||
#if defined(_SSIZE_T_) && !defined(HAVE_SSIZE_T)
|
#if defined(_SSIZE_T_) && !defined(HAVE_SSIZE_T)
|
||||||
#define HAVE_SSIZE_T
|
#define HAVE_SSIZE_T
|
||||||
#endif
|
#endif
|
||||||
@@ -2452,6 +2455,7 @@ typedef WX_NSView WXWidget; /* wxWidgets BASE definition */
|
|||||||
|
|
||||||
#if defined(__WXPALMOS__)
|
#if defined(__WXPALMOS__)
|
||||||
|
|
||||||
|
typedef void * WXHWND;
|
||||||
typedef void * WXHANDLE;
|
typedef void * WXHANDLE;
|
||||||
typedef void * WXHICON;
|
typedef void * WXHICON;
|
||||||
typedef void * WXHFONT;
|
typedef void * WXHFONT;
|
||||||
@@ -2474,9 +2478,13 @@ typedef unsigned short WXWORD;
|
|||||||
typedef unsigned long WXCOLORREF;
|
typedef unsigned long WXCOLORREF;
|
||||||
typedef struct tagMSG WXMSG;
|
typedef struct tagMSG WXMSG;
|
||||||
|
|
||||||
typedef WinHandle WXWINHANDLE;
|
typedef WXHWND WXWINHANDLE; /* WinHandle of PalmOS */
|
||||||
typedef WXWINHANDLE WXWidget;
|
typedef WXWINHANDLE WXWidget;
|
||||||
|
|
||||||
|
typedef void * WXFORMPTR;
|
||||||
|
typedef void * WXEVENTPTR;
|
||||||
|
typedef void * WXRECTANGLEPTR;
|
||||||
|
|
||||||
#endif /* __WXPALMOS__ */
|
#endif /* __WXPALMOS__ */
|
||||||
|
|
||||||
|
|
||||||
|
@@ -93,16 +93,21 @@ extern int WXDLLEXPORT
|
|||||||
wxEntry();
|
wxEntry();
|
||||||
|
|
||||||
#define IMPLEMENT_WXWIN_MAIN \
|
#define IMPLEMENT_WXWIN_MAIN \
|
||||||
|
\
|
||||||
|
extern "C" { \
|
||||||
|
\
|
||||||
uint32_t PilotMain(uint16_t cmd, MemPtr cmdPBP, uint16_t launchFlags) \
|
uint32_t PilotMain(uint16_t cmd, MemPtr cmdPBP, uint16_t launchFlags) \
|
||||||
{ \
|
{ \
|
||||||
switch (cmd) { \
|
switch (cmd) { \
|
||||||
case sysAppLaunchCmdNormalLaunch: \
|
case 0 /* sysAppLaunchCmdNormalLaunch */ : \
|
||||||
wxEntry(); \
|
wxEntry(); \
|
||||||
break; \
|
break; \
|
||||||
default: \
|
default: \
|
||||||
break; \
|
break; \
|
||||||
} \
|
} \
|
||||||
return errNone; \
|
return 0 /* errNone */ ; \
|
||||||
|
} \
|
||||||
|
\
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // _WX_APP_H_
|
#endif // _WX_APP_H_
|
||||||
|
@@ -74,8 +74,8 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
// regardless how deeply we are in wxWidgets hierarchy always get correct form
|
// regardless how deeply we are in wxWidgets hierarchy always get correct form
|
||||||
FormType* GetParentForm() const;
|
WXFORMPTR GetParentForm() const;
|
||||||
FormType* GetObjectFormIndex(uint16_t& index) const;
|
WXFORMPTR GetObjectFormIndex(uint16_t& index) const;
|
||||||
void* GetObjectPtr() const;
|
void* GetObjectPtr() const;
|
||||||
|
|
||||||
// choose the default border for this window
|
// choose the default border for this window
|
||||||
@@ -105,7 +105,7 @@ protected:
|
|||||||
// size parameter (style parameter is not needed because m_windowStyle is
|
// size parameter (style parameter is not needed because m_windowStyle is
|
||||||
// supposed to had been already set and so is used instead when this
|
// supposed to had been already set and so is used instead when this
|
||||||
// function is called)
|
// function is called)
|
||||||
bool PalmCreateControl(ControlStyleType style,
|
bool PalmCreateControl(int palmStyle,
|
||||||
const wxString& label,
|
const wxString& label,
|
||||||
const wxPoint& pos,
|
const wxPoint& pos,
|
||||||
const wxSize& size,
|
const wxSize& size,
|
||||||
@@ -117,7 +117,7 @@ protected:
|
|||||||
const wxSize& size,
|
const wxSize& size,
|
||||||
bool editable,
|
bool editable,
|
||||||
bool underlined,
|
bool underlined,
|
||||||
JustificationType justification);
|
int justification);
|
||||||
inline bool IsPalmField() const { return m_palmField; }
|
inline bool IsPalmField() const { return m_palmField; }
|
||||||
|
|
||||||
// this is a helper for the derived class GetClassDefaultAttributes()
|
// this is a helper for the derived class GetClassDefaultAttributes()
|
||||||
@@ -148,8 +148,8 @@ private:
|
|||||||
// common part of all ctors
|
// common part of all ctors
|
||||||
void Init();
|
void Init();
|
||||||
|
|
||||||
virtual void DoGetBounds( RectangleType &rect ) const;
|
virtual void DoGetBounds( WXRECTANGLEPTR rect ) const;
|
||||||
virtual void DoSetBounds( RectangleType &rect );
|
virtual void DoSetBounds( WXRECTANGLEPTR rect );
|
||||||
|
|
||||||
DECLARE_DYNAMIC_CLASS_NO_COPY(wxControl)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxControl)
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
|
@@ -70,7 +70,7 @@ public:
|
|||||||
|
|
||||||
#if wxUSE_MENUS_NATIVE
|
#if wxUSE_MENUS_NATIVE
|
||||||
bool HandleMenuOpen();
|
bool HandleMenuOpen();
|
||||||
bool HandleMenuSelect(EventType* event);
|
bool HandleMenuSelect(WXEVENTPTR event);
|
||||||
#endif // wxUSE_MENUS_NATIVE
|
#endif // wxUSE_MENUS_NATIVE
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@@ -37,11 +37,11 @@ public:
|
|||||||
void Resume();
|
void Resume();
|
||||||
virtual bool Show( bool show = true );
|
virtual bool Show( bool show = true );
|
||||||
|
|
||||||
Boolean Callback(PrgCallbackData *data);
|
Boolean Callback(/*PrgCallbackData */ void *data);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
ProgressType *m_prgFrame;
|
/*ProgressType*/ void *m_prgFrame;
|
||||||
wxString m_msg;
|
wxString m_msg;
|
||||||
int m_max,m_cur;
|
int m_max,m_cur;
|
||||||
bool m_canSkip;
|
bool m_canSkip;
|
||||||
|
@@ -66,7 +66,7 @@ private:
|
|||||||
uint8_t m_groupID;
|
uint8_t m_groupID;
|
||||||
|
|
||||||
// pushButtonCtl or checkboxCtl
|
// pushButtonCtl or checkboxCtl
|
||||||
ControlStyleType m_radioStyle;
|
int m_radioStyle;
|
||||||
DECLARE_DYNAMIC_CLASS_NO_COPY(wxRadioButton)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxRadioButton)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -76,7 +76,7 @@ public:
|
|||||||
|
|
||||||
// send a notification event, return true if processed
|
// send a notification event, return true if processed
|
||||||
bool SendUpdatedEvent();
|
bool SendUpdatedEvent();
|
||||||
bool SendScrollEvent(EventType* event);
|
bool SendScrollEvent(WXEVENTPTR event);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
@@ -82,12 +82,12 @@ public:
|
|||||||
wxWindow *GetLastFocus() const { return m_winLastFocused; }
|
wxWindow *GetLastFocus() const { return m_winLastFocused; }
|
||||||
|
|
||||||
// interface to native frame structure
|
// interface to native frame structure
|
||||||
FormType *GetForm() const;
|
WXFORMPTR GetForm() const;
|
||||||
|
|
||||||
// handle native events
|
// handle native events
|
||||||
bool HandleControlSelect(EventType* event);
|
bool HandleControlSelect(WXEVENTPTR event);
|
||||||
bool HandleControlRepeat(EventType* event);
|
bool HandleControlRepeat(WXEVENTPTR event);
|
||||||
bool HandleSize(EventType* event);
|
bool HandleSize(WXEVENTPTR event);
|
||||||
|
|
||||||
virtual WXWINHANDLE GetWinHandle() const;
|
virtual WXWINHANDLE GetWinHandle() const;
|
||||||
|
|
||||||
@@ -125,7 +125,5 @@ protected:
|
|||||||
DECLARE_NO_COPY_CLASS(wxTopLevelWindowPalm)
|
DECLARE_NO_COPY_CLASS(wxTopLevelWindowPalm)
|
||||||
};
|
};
|
||||||
|
|
||||||
static Boolean FrameFormHandleEvent(EventType* pEvent);
|
|
||||||
|
|
||||||
#endif // _WX_PALMOS_TOPLEVEL_H_
|
#endif // _WX_PALMOS_TOPLEVEL_H_
|
||||||
|
|
||||||
|
@@ -211,11 +211,11 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
// the window handle
|
// the window handle
|
||||||
WinHandle m_handle;
|
WXWINHANDLE m_handle;
|
||||||
FormType *FrameForm;
|
WXFORMPTR FrameForm;
|
||||||
|
|
||||||
FormType *GetFormPtr();
|
WXFORMPTR GetFormPtr();
|
||||||
void SetFormPtr(FormType *FormPtr);
|
void SetFormPtr(WXFORMPTR FormPtr);
|
||||||
|
|
||||||
// additional (Palm specific) flags
|
// additional (Palm specific) flags
|
||||||
bool m_mouseInWindow:1;
|
bool m_mouseInWindow:1;
|
||||||
|
@@ -472,12 +472,6 @@
|
|||||||
# include "wx/msw/wince/libraries.h"
|
# include "wx/msw/wince/libraries.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Force inclusion of main PalmOS header: */
|
|
||||||
#ifdef __WXPALMOS__
|
|
||||||
# include <PalmOS.h>
|
|
||||||
# undef Abs
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
This macro can be used to test the gcc version and can be used like this:
|
This macro can be used to test the gcc version and can be used like this:
|
||||||
|
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#include "wx/defs.h" /* for wxUSE_UNICODE */
|
#include "wx/defs.h" /* for wxUSE_UNICODE */
|
||||||
|
|
||||||
#if defined(HAVE_STRTOK_R) && defined(__DARWIN__) && defined(_MSL_USING_MW_C_HEADERS) && _MSL_USING_MW_C_HEADERS
|
#if defined(HAVE_STRTOK_R) && defined(__DARWIN__) && defined(_MSL_USING_MW_C_HEADERS) && _MSL_USING_MW_C_HEADERS
|
||||||
char *strtok_r(char *, const char *, char **);
|
char *strtok_r(char *, const char *, char **);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* check whether we have wchar_t and which size it is if we do */
|
/* check whether we have wchar_t and which size it is if we do */
|
||||||
@@ -127,7 +127,9 @@
|
|||||||
#define wxHAVE_TCHAR_SUPPORT
|
#define wxHAVE_TCHAR_SUPPORT
|
||||||
#elif defined(__DMC__)
|
#elif defined(__DMC__)
|
||||||
#define wxHAVE_TCHAR_SUPPORT
|
#define wxHAVE_TCHAR_SUPPORT
|
||||||
#elif defined(__MINGW32__) && wxCHECK_W32API_VERSION( 1, 0 ) && !defined(__WXPALMOS__)
|
#elif defined(__WXPALMOS__)
|
||||||
|
#include <stddef.h>
|
||||||
|
#elif defined(__MINGW32__) && wxCHECK_W32API_VERSION( 1, 0 )
|
||||||
#define wxHAVE_TCHAR_SUPPORT
|
#define wxHAVE_TCHAR_SUPPORT
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@@ -387,7 +389,7 @@
|
|||||||
/* time.h functions */
|
/* time.h functions */
|
||||||
#define wxAsctime _tasctime
|
#define wxAsctime _tasctime
|
||||||
#define wxCtime _tctime
|
#define wxCtime _tctime
|
||||||
|
|
||||||
#define wxMbstowcs mbstowcs
|
#define wxMbstowcs mbstowcs
|
||||||
#define wxWcstombs wcstombs
|
#define wxWcstombs wcstombs
|
||||||
#else /* !TCHAR-aware compilers */
|
#else /* !TCHAR-aware compilers */
|
||||||
|
@@ -45,6 +45,11 @@
|
|||||||
#include "wx/msw/wrapwin.h"
|
#include "wx/msw/wrapwin.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// include all PalmOS headers at once
|
||||||
|
#ifdef __WXPALMOS__
|
||||||
|
# include <PalmOS.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
// include the most common wx headers
|
// include the most common wx headers
|
||||||
#include "wx/wx.h"
|
#include "wx/wx.h"
|
||||||
|
|
||||||
|
@@ -83,6 +83,12 @@
|
|||||||
#include <DriverServices.h>
|
#include <DriverServices.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __WXPALMOS__
|
||||||
|
#include <DateTime.h>
|
||||||
|
#include <TimeMgr.h>
|
||||||
|
#include <SystemMgr.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// macros
|
// macros
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -44,6 +44,9 @@
|
|||||||
|
|
||||||
#include "wx/stockitem.h"
|
#include "wx/stockitem.h"
|
||||||
|
|
||||||
|
#include <Control.h>
|
||||||
|
#include <Form.h>
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// macros
|
// macros
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@@ -198,7 +201,7 @@ wxSize wxButtonBase::GetDefaultSize()
|
|||||||
|
|
||||||
void wxButton::SetDefault()
|
void wxButton::SetDefault()
|
||||||
{
|
{
|
||||||
FormType* form = GetParentForm();
|
FormType* form = (FormType* )GetParentForm();
|
||||||
if(form==NULL)
|
if(form==NULL)
|
||||||
return;
|
return;
|
||||||
FrmSetDefaultButtonID(form,GetId());
|
FrmSetDefaultButtonID(form,GetId());
|
||||||
|
@@ -37,6 +37,8 @@
|
|||||||
#include "wx/settings.h"
|
#include "wx/settings.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <Control.h>
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
// implementation
|
// implementation
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
@@ -38,6 +38,9 @@
|
|||||||
#include "wx/cmndata.h"
|
#include "wx/cmndata.h"
|
||||||
#include "wx/colordlg.h"
|
#include "wx/colordlg.h"
|
||||||
|
|
||||||
|
#include <UIColor.h>
|
||||||
|
#include <UIControls.h>
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// wxWin macros
|
// wxWin macros
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -46,6 +46,10 @@
|
|||||||
#include "wx/radiobut.h"
|
#include "wx/radiobut.h"
|
||||||
#include "wx/slider.h"
|
#include "wx/slider.h"
|
||||||
|
|
||||||
|
#include <Control.h>
|
||||||
|
#include <Form.h>
|
||||||
|
#include <StatusBar.h>
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// wxWin macros
|
// wxWin macros
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@@ -78,7 +82,7 @@ wxControl::~wxControl()
|
|||||||
DestroyChildren();
|
DestroyChildren();
|
||||||
|
|
||||||
uint16_t index;
|
uint16_t index;
|
||||||
FormType* form = GetObjectFormIndex(index);
|
FormType* form = (FormType*)GetObjectFormIndex(index);
|
||||||
if(form!=NULL && index!=frmInvalidObjectId)
|
if(form!=NULL && index!=frmInvalidObjectId)
|
||||||
{
|
{
|
||||||
FrmRemoveObject((FormType **)&form,index);
|
FrmRemoveObject((FormType **)&form,index);
|
||||||
@@ -107,13 +111,13 @@ bool wxControl::Create(wxWindow *parent,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxControl::PalmCreateControl(ControlStyleType style,
|
bool wxControl::PalmCreateControl(int style,
|
||||||
const wxString& label,
|
const wxString& label,
|
||||||
const wxPoint& pos,
|
const wxPoint& pos,
|
||||||
const wxSize& size,
|
const wxSize& size,
|
||||||
uint8_t groupID)
|
uint8_t groupID)
|
||||||
{
|
{
|
||||||
FormType* form = GetParentForm();
|
FormType* form = (FormType*)GetParentForm();
|
||||||
if(form==NULL)
|
if(form==NULL)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@@ -135,7 +139,7 @@ bool wxControl::PalmCreateControl(ControlStyleType style,
|
|||||||
ControlType *control = CtlNewControl(
|
ControlType *control = CtlNewControl(
|
||||||
(void **)&form,
|
(void **)&form,
|
||||||
GetId(),
|
GetId(),
|
||||||
style,
|
(ControlStyleType)style,
|
||||||
wxEmptyString,
|
wxEmptyString,
|
||||||
x,
|
x,
|
||||||
y,
|
y,
|
||||||
@@ -162,9 +166,9 @@ bool wxControl::PalmCreateField(const wxString& label,
|
|||||||
const wxSize& size,
|
const wxSize& size,
|
||||||
bool editable,
|
bool editable,
|
||||||
bool underlined,
|
bool underlined,
|
||||||
JustificationType justification)
|
int justification)
|
||||||
{
|
{
|
||||||
FormType* form = GetParentForm();
|
FormType* form = (FormType*)GetParentForm();
|
||||||
if(form==NULL)
|
if(form==NULL)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@@ -190,7 +194,7 @@ bool wxControl::PalmCreateField(const wxString& label,
|
|||||||
underlined,
|
underlined,
|
||||||
false,
|
false,
|
||||||
false,
|
false,
|
||||||
justification,
|
(JustificationType)justification,
|
||||||
false,
|
false,
|
||||||
false,
|
false,
|
||||||
false
|
false
|
||||||
@@ -211,7 +215,7 @@ bool wxControl::PalmCreateField(const wxString& label,
|
|||||||
// various accessors
|
// various accessors
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
FormType* wxControl::GetParentForm() const
|
WXFORMPTR wxControl::GetParentForm() const
|
||||||
{
|
{
|
||||||
wxWindow* parentTLW = GetParent();
|
wxWindow* parentTLW = GetParent();
|
||||||
while ( parentTLW && !parentTLW->IsTopLevel() )
|
while ( parentTLW && !parentTLW->IsTopLevel() )
|
||||||
@@ -224,9 +228,9 @@ FormType* wxControl::GetParentForm() const
|
|||||||
return tlw->GetForm();
|
return tlw->GetForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
FormType* wxControl::GetObjectFormIndex(uint16_t& index) const
|
WXFORMPTR wxControl::GetObjectFormIndex(uint16_t& index) const
|
||||||
{
|
{
|
||||||
FormType* form = GetParentForm();
|
FormType* form = (FormType* )GetParentForm();
|
||||||
if(form!=NULL)
|
if(form!=NULL)
|
||||||
index = FrmGetObjectIndex(form, GetId());
|
index = FrmGetObjectIndex(form, GetId());
|
||||||
else
|
else
|
||||||
@@ -237,7 +241,7 @@ FormType* wxControl::GetObjectFormIndex(uint16_t& index) const
|
|||||||
void* wxControl::GetObjectPtr() const
|
void* wxControl::GetObjectPtr() const
|
||||||
{
|
{
|
||||||
uint16_t index;
|
uint16_t index;
|
||||||
FormType* form = GetObjectFormIndex(index);
|
FormType* form = (FormType*)GetObjectFormIndex(index);
|
||||||
if(form==NULL || index==frmInvalidObjectId)return NULL;
|
if(form==NULL || index==frmInvalidObjectId)return NULL;
|
||||||
return FrmGetObjectPtr(form,index);
|
return FrmGetObjectPtr(form,index);
|
||||||
}
|
}
|
||||||
@@ -252,7 +256,7 @@ wxBorder wxControl::GetDefaultBorder() const
|
|||||||
|
|
||||||
void wxControl::SetIntValue(int val)
|
void wxControl::SetIntValue(int val)
|
||||||
{
|
{
|
||||||
FormType* form = GetParentForm();
|
FormType* form = (FormType*)GetParentForm();
|
||||||
if(form==NULL)
|
if(form==NULL)
|
||||||
return;
|
return;
|
||||||
uint16_t index = FrmGetObjectIndex(form, GetId());
|
uint16_t index = FrmGetObjectIndex(form, GetId());
|
||||||
@@ -268,7 +272,7 @@ void wxControl::SetBoolValue(bool val)
|
|||||||
|
|
||||||
bool wxControl::GetBoolValue() const
|
bool wxControl::GetBoolValue() const
|
||||||
{
|
{
|
||||||
FormType* form = GetParentForm();
|
FormType* form = (FormType*)GetParentForm();
|
||||||
if(form==NULL)
|
if(form==NULL)
|
||||||
return false;
|
return false;
|
||||||
uint16_t index = FrmGetObjectIndex(form, GetId());
|
uint16_t index = FrmGetObjectIndex(form, GetId());
|
||||||
@@ -282,26 +286,30 @@ wxSize wxControl::DoGetBestSize() const
|
|||||||
return wxSize(16, 16);
|
return wxSize(16, 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxControl::DoGetBounds( RectangleType &rect ) const
|
void wxControl::DoGetBounds( WXRECTANGLEPTR rect ) const
|
||||||
{
|
{
|
||||||
FormType* form = GetParentForm();
|
if(rect==NULL)
|
||||||
|
return;
|
||||||
|
FormType* form = (FormType*)GetParentForm();
|
||||||
if(form==NULL)
|
if(form==NULL)
|
||||||
return;
|
return;
|
||||||
uint16_t index = FrmGetObjectIndex(form,GetId());
|
uint16_t index = FrmGetObjectIndex(form,GetId());
|
||||||
if(index==frmInvalidObjectId)
|
if(index==frmInvalidObjectId)
|
||||||
return;
|
return;
|
||||||
FrmGetObjectBounds(form,index,&rect);
|
FrmGetObjectBounds(form,index,(RectangleType*)rect);
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxControl::DoSetBounds( RectangleType &rect )
|
void wxControl::DoSetBounds( WXRECTANGLEPTR rect )
|
||||||
{
|
{
|
||||||
FormType* form = GetParentForm();
|
if(rect==NULL)
|
||||||
|
return;
|
||||||
|
FormType* form = (FormType*)GetParentForm();
|
||||||
if(form==NULL)
|
if(form==NULL)
|
||||||
return;
|
return;
|
||||||
uint16_t index = FrmGetObjectIndex(form,GetId());
|
uint16_t index = FrmGetObjectIndex(form,GetId());
|
||||||
if(index==frmInvalidObjectId)
|
if(index==frmInvalidObjectId)
|
||||||
return;
|
return;
|
||||||
FrmSetObjectBounds(form,index,&rect);
|
FrmSetObjectBounds(form,index,(RectangleType*)rect);
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxControl::DoGetPosition( int *x, int *y ) const
|
void wxControl::DoGetPosition( int *x, int *y ) const
|
||||||
@@ -310,7 +318,7 @@ void wxControl::DoGetPosition( int *x, int *y ) const
|
|||||||
AdjustForParentClientOrigin(ox, oy);
|
AdjustForParentClientOrigin(ox, oy);
|
||||||
|
|
||||||
RectangleType rect;
|
RectangleType rect;
|
||||||
DoGetBounds(rect);
|
DoGetBounds(&rect);
|
||||||
|
|
||||||
if(x)
|
if(x)
|
||||||
*x = rect.topLeft.x - ox;
|
*x = rect.topLeft.x - ox;
|
||||||
@@ -321,7 +329,7 @@ void wxControl::DoGetPosition( int *x, int *y ) const
|
|||||||
void wxControl::DoGetSize( int *width, int *height ) const
|
void wxControl::DoGetSize( int *width, int *height ) const
|
||||||
{
|
{
|
||||||
RectangleType rect;
|
RectangleType rect;
|
||||||
DoGetBounds(rect);
|
DoGetBounds(&rect);
|
||||||
|
|
||||||
if(width)
|
if(width)
|
||||||
*width = rect.extent.x;
|
*width = rect.extent.x;
|
||||||
@@ -337,7 +345,7 @@ void wxControl::DoMoveWindow(int x, int y, int width, int height)
|
|||||||
rect.topLeft.y = y;
|
rect.topLeft.y = y;
|
||||||
rect.extent.x = width;
|
rect.extent.x = width;
|
||||||
rect.extent.y = height;
|
rect.extent.y = height;
|
||||||
DoSetBounds(rect);
|
DoSetBounds(&rect);
|
||||||
GetParent()->Refresh(true, &area);
|
GetParent()->Refresh(true, &area);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -367,7 +375,7 @@ bool wxControl::IsShown() const
|
|||||||
|
|
||||||
bool wxControl::Show( bool show )
|
bool wxControl::Show( bool show )
|
||||||
{
|
{
|
||||||
FormType* form = GetParentForm();
|
FormType* form = (FormType*)GetParentForm();
|
||||||
if(form==NULL)
|
if(form==NULL)
|
||||||
return false;
|
return false;
|
||||||
uint16_t index = FrmGetObjectIndex(form,GetId());
|
uint16_t index = FrmGetObjectIndex(form,GetId());
|
||||||
|
@@ -36,6 +36,9 @@
|
|||||||
#define _WX_DEFINE_DATE_EVENTS_
|
#define _WX_DEFINE_DATE_EVENTS_
|
||||||
#include "wx/dateevt.h"
|
#include "wx/dateevt.h"
|
||||||
|
|
||||||
|
#include <Control.h>
|
||||||
|
#include <SelDay.h>
|
||||||
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxDatePickerCtrl, wxControl)
|
IMPLEMENT_DYNAMIC_CLASS(wxDatePickerCtrl, wxControl)
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
@@ -50,6 +50,11 @@
|
|||||||
WX_DEFINE_OBJARRAY(wxMsgArray);
|
WX_DEFINE_OBJARRAY(wxMsgArray);
|
||||||
#endif // wxUSE_THREADS
|
#endif // wxUSE_THREADS
|
||||||
|
|
||||||
|
#include <Event.h>
|
||||||
|
#include <SystemMgr.h>
|
||||||
|
#include <Menu.h>
|
||||||
|
#include <Form.h>
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// helper class
|
// helper class
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -57,6 +57,9 @@
|
|||||||
#include "wx/univ/colschem.h"
|
#include "wx/univ/colschem.h"
|
||||||
#endif // __WXUNIVERSAL__
|
#endif // __WXUNIVERSAL__
|
||||||
|
|
||||||
|
#include <Event.h>
|
||||||
|
#include <Form.h>
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// globals
|
// globals
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@@ -211,15 +214,16 @@ bool wxFrame::HandleMenuOpen()
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxFrame::HandleMenuSelect(EventType* event)
|
bool wxFrame::HandleMenuSelect(WXEVENTPTR event)
|
||||||
{
|
{
|
||||||
int ItemID = event->data.menu.itemID;
|
const EventType *palmEvent = (EventType *)event;
|
||||||
|
const int ItemID = palmEvent->data.menu.itemID;
|
||||||
|
|
||||||
if (!m_frameMenuBar)
|
if (!m_frameMenuBar)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
int item=m_frameMenuBar->ProcessCommand(ItemID);
|
const int item = m_frameMenuBar->ProcessCommand(ItemID);
|
||||||
if(item==-1)
|
if (item==-1)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
wxCommandEvent commandEvent(wxEVT_COMMAND_MENU_SELECTED, item);
|
wxCommandEvent commandEvent(wxEVT_COMMAND_MENU_SELECTED, item);
|
||||||
@@ -289,7 +293,7 @@ wxPoint wxFrame::GetClientAreaOrigin() const
|
|||||||
Y = 0;
|
Y = 0;
|
||||||
while ( Y < maxY )
|
while ( Y < maxY )
|
||||||
{
|
{
|
||||||
if(!FrmPointInTitle(GetForm(),X,Y))
|
if(!FrmPointInTitle((FormType*)GetForm(),X,Y))
|
||||||
return wxPoint(X,Y+1);
|
return wxPoint(X,Y+1);
|
||||||
Y++;
|
Y++;
|
||||||
}
|
}
|
||||||
|
@@ -42,6 +42,10 @@
|
|||||||
#include "wx/ownerdrw.h"
|
#include "wx/ownerdrw.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <Loader.h>
|
||||||
|
#include <Form.h>
|
||||||
|
#include <Menu.h>
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// global variables
|
// global variables
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -28,6 +28,9 @@
|
|||||||
#include "wx/msgdlg.h"
|
#include "wx/msgdlg.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <Loader.h>
|
||||||
|
#include <Form.h>
|
||||||
|
|
||||||
IMPLEMENT_CLASS(wxMessageDialog, wxDialog)
|
IMPLEMENT_CLASS(wxMessageDialog, wxDialog)
|
||||||
|
|
||||||
wxMessageDialog::wxMessageDialog(wxWindow *parent,
|
wxMessageDialog::wxMessageDialog(wxWindow *parent,
|
||||||
|
@@ -29,6 +29,9 @@
|
|||||||
#include "wx/progdlg.h"
|
#include "wx/progdlg.h"
|
||||||
#include "wx/msgdlg.h"
|
#include "wx/msgdlg.h"
|
||||||
|
|
||||||
|
#include <Progress.h>
|
||||||
|
#include <SysEvtMgr.h>
|
||||||
|
|
||||||
IMPLEMENT_CLASS(wxProgressDialog, wxDialog)
|
IMPLEMENT_CLASS(wxProgressDialog, wxDialog)
|
||||||
|
|
||||||
static Boolean wxProgressCallback(PrgCallbackData *data)
|
static Boolean wxProgressCallback(PrgCallbackData *data)
|
||||||
@@ -65,7 +68,7 @@ wxProgressDialog::~wxProgressDialog()
|
|||||||
{
|
{
|
||||||
if(m_prgFrame)
|
if(m_prgFrame)
|
||||||
{
|
{
|
||||||
PrgStopDialog(m_prgFrame, false);
|
PrgStopDialog((ProgressType *)m_prgFrame, false);
|
||||||
m_prgFrame = NULL;
|
m_prgFrame = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -80,17 +83,18 @@ bool wxProgressDialog::Update(int value, const wxString& newmsg, bool *skip)
|
|||||||
|
|
||||||
EventType event;
|
EventType event;
|
||||||
|
|
||||||
|
ProgressType *prg = (ProgressType *)m_prgFrame;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
EvtGetEvent(&event, 0);
|
EvtGetEvent(&event, 0);
|
||||||
Boolean handled = PrgHandleEvent(m_prgFrame, &event);
|
Boolean handled = PrgHandleEvent(prg, &event);
|
||||||
if (!PrgHandleEvent(m_prgFrame, &event))
|
if (!PrgHandleEvent(prg, &event))
|
||||||
if( PrgUserCancel(m_prgFrame) )
|
if( PrgUserCancel(prg) )
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
while(event.eType != sysEventNilEvent);
|
while(event.eType != sysEventNilEvent);
|
||||||
|
|
||||||
PrgUpdateDialog(m_prgFrame, 0, 0, "", true);
|
PrgUpdateDialog(prg, 0, 0, "", true);
|
||||||
|
|
||||||
m_activeSkip = m_canSkip && true;
|
m_activeSkip = m_canSkip && true;
|
||||||
|
|
||||||
@@ -106,14 +110,15 @@ bool wxProgressDialog::Show(bool show)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Boolean wxProgressDialog::Callback(PrgCallbackData *data)
|
Boolean wxProgressDialog::Callback(void *data)
|
||||||
{
|
{
|
||||||
strncpy( data->textP, m_msg.ToAscii() , data->textLen - 1 );
|
PrgCallbackData *palmData = (PrgCallbackData *)data;
|
||||||
data->textChanged = true;
|
strncpy( palmData->textP, m_msg.ToAscii() , palmData->textLen - 1 );
|
||||||
data->displaySkipBtn = m_canSkip;
|
palmData->textChanged = true;
|
||||||
data->barMaxValue = (uint32_t)m_max;
|
palmData->displaySkipBtn = m_canSkip;
|
||||||
data->barCurValue = (uint32_t)m_cur;
|
palmData->barMaxValue = (uint32_t)m_max;
|
||||||
data->delay = (m_max == m_cur);
|
palmData->barCurValue = (uint32_t)m_cur;
|
||||||
|
palmData->delay = (m_max == m_cur);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@@ -36,6 +36,8 @@
|
|||||||
#include "wx/dcscreen.h"
|
#include "wx/dcscreen.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <Control.h>
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
// wxRadioButton implementation
|
// wxRadioButton implementation
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
@@ -33,6 +33,8 @@
|
|||||||
#include "wx/module.h"
|
#include "wx/module.h"
|
||||||
#include "wx/fontutil.h"
|
#include "wx/fontutil.h"
|
||||||
|
|
||||||
|
#include <UIColor.h>
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
// implementation
|
// implementation
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
@@ -30,6 +30,9 @@
|
|||||||
|
|
||||||
#include "wx/toplevel.h"
|
#include "wx/toplevel.h"
|
||||||
|
|
||||||
|
#include <Form.h>
|
||||||
|
#include <Control.h>
|
||||||
|
|
||||||
#if wxUSE_EXTENDED_RTTI
|
#if wxUSE_EXTENDED_RTTI
|
||||||
WX_DEFINE_FLAGS( wxSliderStyle )
|
WX_DEFINE_FLAGS( wxSliderStyle )
|
||||||
|
|
||||||
@@ -123,7 +126,7 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID id,
|
|||||||
if(!wxControl::Create(parent, id, pos, size, style, validator, name))
|
if(!wxControl::Create(parent, id, pos, size, style, validator, name))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
FormType* form = GetParentForm();
|
FormType* form = (FormType*)GetParentForm();
|
||||||
if(form==NULL)
|
if(form==NULL)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@@ -324,10 +327,10 @@ bool wxSlider::SendUpdatedEvent()
|
|||||||
return handled;
|
return handled;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxSlider::SendScrollEvent(EventType* event)
|
bool wxSlider::SendScrollEvent(WXEVENTPTR event)
|
||||||
{
|
{
|
||||||
wxEventType scrollEvent;
|
const EventType* palmEvent = (EventType*)event;
|
||||||
int newPos = ValueInvertOrNot(event->data.ctlRepeat.value);
|
int newPos = ValueInvertOrNot(palmEvent->data.ctlRepeat.value);
|
||||||
if ( newPos == m_oldPos )
|
if ( newPos == m_oldPos )
|
||||||
{
|
{
|
||||||
// nothing changed since last event
|
// nothing changed since last event
|
||||||
|
@@ -33,6 +33,8 @@
|
|||||||
#include "wx/log.h"
|
#include "wx/log.h"
|
||||||
#include "wx/statusbr.h"
|
#include "wx/statusbr.h"
|
||||||
|
|
||||||
|
#include <StatusBar.h>
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// macros
|
// macros
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -30,6 +30,8 @@
|
|||||||
|
|
||||||
#include "wx/stattext.h"
|
#include "wx/stattext.h"
|
||||||
|
|
||||||
|
#include <Field.h>
|
||||||
|
|
||||||
#if wxUSE_EXTENDED_RTTI
|
#if wxUSE_EXTENDED_RTTI
|
||||||
WX_DEFINE_FLAGS( wxStaticTextStyle )
|
WX_DEFINE_FLAGS( wxStaticTextStyle )
|
||||||
|
|
||||||
|
@@ -37,6 +37,8 @@
|
|||||||
|
|
||||||
#include "wx/tglbtn.h"
|
#include "wx/tglbtn.h"
|
||||||
|
|
||||||
|
#include <Control.h>
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// macros
|
// macros
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -50,6 +50,9 @@
|
|||||||
#include "wx/slider.h"
|
#include "wx/slider.h"
|
||||||
#include "wx/datectrl.h"
|
#include "wx/datectrl.h"
|
||||||
|
|
||||||
|
#include <Window.h>
|
||||||
|
#include <Form.h>
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// globals
|
// globals
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@@ -60,6 +63,8 @@ extern const wxChar *wxCanvasClassName;
|
|||||||
// Pointer to the currently active frame for the form event handler.
|
// Pointer to the currently active frame for the form event handler.
|
||||||
wxTopLevelWindowPalm* ActiveParentFrame;
|
wxTopLevelWindowPalm* ActiveParentFrame;
|
||||||
|
|
||||||
|
static Boolean FrameFormHandleEvent(EventType *event);
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
// wxTopLevelWindowPalm implementation
|
// wxTopLevelWindowPalm implementation
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
@@ -130,9 +135,9 @@ bool wxTopLevelWindowPalm::Create(wxWindow *parent,
|
|||||||
if(FrameForm==NULL)
|
if(FrameForm==NULL)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
FrmSetEventHandler(FrameForm,FrameFormHandleEvent);
|
FrmSetEventHandler((FormType *)FrameForm,FrameFormHandleEvent);
|
||||||
|
|
||||||
FrmSetActiveForm(FrameForm);
|
FrmSetActiveForm((FormType *)FrameForm);
|
||||||
|
|
||||||
ActiveParentFrame=this;
|
ActiveParentFrame=this;
|
||||||
|
|
||||||
@@ -149,10 +154,10 @@ wxTopLevelWindowPalm::~wxTopLevelWindowPalm()
|
|||||||
|
|
||||||
WXWINHANDLE wxTopLevelWindowPalm::GetWinHandle() const
|
WXWINHANDLE wxTopLevelWindowPalm::GetWinHandle() const
|
||||||
{
|
{
|
||||||
FormType *form = GetForm();
|
FormType *form = (FormType *)GetForm();
|
||||||
if(form)
|
if(form)
|
||||||
return FrmGetWindowHandle(form);
|
return FrmGetWindowHandle(form);
|
||||||
return 0;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@@ -165,7 +170,7 @@ void wxTopLevelWindowPalm::DoShowWindow(int nShowCmd)
|
|||||||
|
|
||||||
bool wxTopLevelWindowPalm::Show(bool show)
|
bool wxTopLevelWindowPalm::Show(bool show)
|
||||||
{
|
{
|
||||||
FrmDrawForm(FrameForm);
|
FrmDrawForm((FormType *)FrameForm);
|
||||||
|
|
||||||
wxPaintEvent event(m_windowId);
|
wxPaintEvent event(m_windowId);
|
||||||
event.SetEventObject(this);
|
event.SetEventObject(this);
|
||||||
@@ -203,7 +208,7 @@ void wxTopLevelWindowPalm::Restore()
|
|||||||
void wxTopLevelWindowPalm::DoGetSize( int *width, int *height ) const
|
void wxTopLevelWindowPalm::DoGetSize( int *width, int *height ) const
|
||||||
{
|
{
|
||||||
RectangleType rect;
|
RectangleType rect;
|
||||||
FrmGetFormBounds( GetForm() , &rect );
|
FrmGetFormBounds( (FormType *)GetForm() , &rect );
|
||||||
if(width)
|
if(width)
|
||||||
*width = rect.extent.x;
|
*width = rect.extent.x;
|
||||||
if(height)
|
if(height)
|
||||||
@@ -236,7 +241,7 @@ bool wxTopLevelWindowPalm::EnableCloseButton(bool enable)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
FormType *wxTopLevelWindowPalm::GetForm() const
|
WXFORMPTR wxTopLevelWindowPalm::GetForm() const
|
||||||
{
|
{
|
||||||
return FrmGetActiveForm();
|
return FrmGetActiveForm();
|
||||||
}
|
}
|
||||||
@@ -250,9 +255,10 @@ bool wxTopLevelWindowPalm::SetShape(const wxRegion& region)
|
|||||||
// wxTopLevelWindow native event handling
|
// wxTopLevelWindow native event handling
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
bool wxTopLevelWindowPalm::HandleControlSelect(EventType* event)
|
bool wxTopLevelWindowPalm::HandleControlSelect(WXEVENTPTR event)
|
||||||
{
|
{
|
||||||
int id = event->data.ctlSelect.controlID;
|
const EventType *palmEvent = (EventType *)event;
|
||||||
|
const int id = palmEvent->data.ctlSelect.controlID;
|
||||||
|
|
||||||
wxWindow* win = FindWindowById(id,this);
|
wxWindow* win = FindWindowById(id,this);
|
||||||
if(win==NULL)
|
if(win==NULL)
|
||||||
@@ -297,11 +303,12 @@ bool wxTopLevelWindowPalm::HandleControlSelect(EventType* event)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxTopLevelWindowPalm::HandleControlRepeat(EventType* event)
|
bool wxTopLevelWindowPalm::HandleControlRepeat(WXEVENTPTR event)
|
||||||
{
|
{
|
||||||
int id = event->data.ctlRepeat.controlID;
|
const EventType *palmEvent = (EventType *)event;
|
||||||
|
const int id = palmEvent->data.ctlRepeat.controlID;
|
||||||
|
|
||||||
wxWindow* win = FindWindowById(id,this);
|
wxWindow* win = FindWindowById(id, this);
|
||||||
if(win==NULL)
|
if(win==NULL)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@@ -314,10 +321,11 @@ bool wxTopLevelWindowPalm::HandleControlRepeat(EventType* event)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxTopLevelWindowPalm::HandleSize(EventType* event)
|
bool wxTopLevelWindowPalm::HandleSize(WXEVENTPTR event)
|
||||||
{
|
{
|
||||||
wxSize newSize(event->data.winResized.newBounds.extent.x,
|
const EventType *palmEvent = (EventType *)event;
|
||||||
event->data.winResized.newBounds.extent.y);
|
wxSize newSize(palmEvent->data.winResized.newBounds.extent.x,
|
||||||
|
palmEvent->data.winResized.newBounds.extent.y);
|
||||||
wxSizeEvent eventWx(newSize,GetId());
|
wxSizeEvent eventWx(newSize,GetId());
|
||||||
eventWx.SetEventObject(this);
|
eventWx.SetEventObject(this);
|
||||||
return GetEventHandler()->ProcessEvent(eventWx);
|
return GetEventHandler()->ProcessEvent(eventWx);
|
||||||
@@ -341,7 +349,7 @@ void wxTopLevelWindowPalm::OnActivate(wxActivateEvent& event)
|
|||||||
* finds a better solution, please let me know. My email address is
|
* finds a better solution, please let me know. My email address is
|
||||||
* wbo@freeshell.org
|
* wbo@freeshell.org
|
||||||
*/
|
*/
|
||||||
static Boolean FrameFormHandleEvent(EventType* event)
|
static Boolean FrameFormHandleEvent(EventType *event)
|
||||||
{
|
{
|
||||||
// frame and tlw point to the same object but they are for convenience
|
// frame and tlw point to the same object but they are for convenience
|
||||||
// of calling proper structure withiout later dynamic typcasting
|
// of calling proper structure withiout later dynamic typcasting
|
||||||
|
@@ -39,6 +39,7 @@
|
|||||||
#include <MemoryMgr.h>
|
#include <MemoryMgr.h>
|
||||||
#include <DLServer.h>
|
#include <DLServer.h>
|
||||||
#include <SoundMgr.h>
|
#include <SoundMgr.h>
|
||||||
|
#include <SysUtils.h>
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
// implementation
|
// implementation
|
||||||
|
@@ -39,7 +39,8 @@
|
|||||||
#include "wx/arrstr.h"
|
#include "wx/arrstr.h"
|
||||||
#include "wx/volume.h"
|
#include "wx/volume.h"
|
||||||
|
|
||||||
#include "VFSMgr.h"
|
#include <VFSMgr.h>
|
||||||
|
#include <PalmTypesCompatibility.h>
|
||||||
|
|
||||||
#if wxUSE_BASE
|
#if wxUSE_BASE
|
||||||
|
|
||||||
|
@@ -85,6 +85,8 @@
|
|||||||
#include "wx/listctrl.h"
|
#include "wx/listctrl.h"
|
||||||
#include "wx/window.h"
|
#include "wx/window.h"
|
||||||
|
|
||||||
|
#include <Window.h>
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
// global variables
|
// global variables
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
@@ -272,13 +274,13 @@ bool wxWindowPalm::Create(wxWindow *parent,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
FormType *wxWindowPalm::GetFormPtr()
|
WXFORMPTR wxWindowPalm::GetFormPtr()
|
||||||
{
|
{
|
||||||
return FrameForm;
|
return FrameForm;
|
||||||
}
|
}
|
||||||
void wxWindowPalm::SetFormPtr(FormType *FormPtr)
|
void wxWindowPalm::SetFormPtr(WXFORMPTR FormPtr)
|
||||||
{
|
{
|
||||||
FrameForm=FormPtr;
|
FrameForm = FormPtr;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
@@ -442,7 +444,7 @@ void wxWindowPalm::Thaw()
|
|||||||
|
|
||||||
void wxWindowPalm::Refresh(bool eraseBack, const wxRect *rect)
|
void wxWindowPalm::Refresh(bool eraseBack, const wxRect *rect)
|
||||||
{
|
{
|
||||||
WinHandle handle = GetWinHandle();
|
WinHandle handle = (WinHandle)GetWinHandle();
|
||||||
if(handle)
|
if(handle)
|
||||||
{
|
{
|
||||||
if(rect)
|
if(rect)
|
||||||
|
Reference in New Issue
Block a user