Hardware defines spec.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2004-09-29 08:03:26 +00:00
parent 927330abae
commit 9b1414681c
12 changed files with 57 additions and 35 deletions

View File

@@ -1170,12 +1170,12 @@
#endif /* wxMGL */
/* Hopefully we can emulate these dialogs in due course */
#ifdef __SMARTPHONE__
#if defined(__SMARTPHONE__) && defined(__WXWINCE__)
# ifdef wxUSE_COLOURDLG
# undef wxUSE_COLOURDLG
# define wxUSE_COLOURDLG 0
# endif
#endif /* __SMARTPHONE__ */
#endif /* __SMARTPHONE__ && __WXWINCE__ */
/* generic controls dependencies */

View File

@@ -67,7 +67,7 @@ private:
#if defined(__WXUNIVERSAL__)
#include "wx/univ/choice.h"
#elif defined(__SMARTPHONE__)
#elif defined(__SMARTPHONE__) && defined(__WXWINCE__)
#include "wx/msw/wince/choicece.h"
#elif defined(__WXMSW__)
#include "wx/msw/choice.h"

View File

@@ -44,7 +44,6 @@ public:
// Universal and non-port related switches with need for generic implementation
#if defined(__WXMSW__) && (defined(__WXUNIVERSAL__) || \
defined(__SMARTPHONE__) || \
defined(__SALFORDC__) || \
!wxUSE_OLE || \
(defined (__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS))
@@ -52,6 +51,12 @@ public:
#include "wx/generic/dirdlgg.h"
#define wxDirDialog wxGenericDirDialog
// MS Smartphone
#elif defined(__SMARTPHONE__) && defined(__WXWINCE__)
#include "wx/generic/dirdlgg.h"
#define wxDirDialog wxGenericDirDialog
// Native MSW
#elif defined(__WXMSW__)

View File

@@ -39,11 +39,11 @@ public:
protected:
#ifndef __SMARTPHONE__
#if !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
virtual void DoMoveWindow(int x, int y, int width, int height);
virtual void DoGetSize( int *width, int *height ) const;
virtual void DoGetPosition( int *x, int *y ) const;
#endif // __SMARTPHONE__
#endif // !(__SMARTPHONE__ && __WXWINCE__)
private:
wxArrayString m_fileNames;

View File

@@ -82,11 +82,11 @@ public:
void SetLastFocus(wxWindow *win) { m_winLastFocused = win; }
wxWindow *GetLastFocus() const { return m_winLastFocused; }
#ifdef __SMARTPHONE__
void SetLeftMenu(int id = wxID_ANY, const wxString& label = wxEmptyString, wxMenu *subMenu = NULL);
void SetRightMenu(int id = wxID_ANY, const wxString& label = wxEmptyString, wxMenu *subMenu = NULL);
#if defined(__SMARTPHONE__) && defined(__WXWINCE__)
virtual void SetLeftMenu(int id = wxID_ANY, const wxString& label = wxEmptyString, wxMenu *subMenu = NULL);
virtual void SetRightMenu(int id = wxID_ANY, const wxString& label = wxEmptyString, wxMenu *subMenu = NULL);
bool HandleCommand(WXWORD id, WXWORD cmd, WXHWND control);
#endif // __SMARTPHONE__
#endif // __SMARTPHONE__ && __WXWINCE__
protected:
// common part of all ctors
@@ -130,7 +130,7 @@ protected:
// the last focused child: we restore focus to it on activation
wxWindow *m_winLastFocused;
#ifdef __SMARTPHONE__
#if defined(__SMARTPHONE__) && defined(__WXWINCE__)
class ButtonMenu
{
public:
@@ -163,7 +163,7 @@ protected:
void ReloadButton(ButtonMenu& button, UINT menuID);
void ReloadAllButtons();
#endif // __SMARTPHONE__
#endif // __SMARTPHONE__ && __WXWINCE__
DECLARE_EVENT_TABLE()
DECLARE_NO_COPY_CLASS(wxTopLevelWindowMSW)

View File

@@ -1,6 +1,6 @@
///////////////////////////////////////////////////////////////////////////////
// Name: wx/msw/wince/choicece.h
// Purpose: wxChoice implementation for Smartphones
// Purpose: wxChoice implementation for smart phones driven by WinCE
// Author: Wlodzimierz ABX Skiba
// Modified by:
// Created: 29.07.2004

View File

@@ -21,7 +21,7 @@
// VC++'s #pragma to link against the libraries conditionally, instead of
// including libraries in project files.
#ifdef __VISUALC__
#if defined(__VISUALC__) && defined(__WXWINCE__)
#if _WIN32_WCE >= 400
#pragma comment(lib,"commdlg.lib")
@@ -47,6 +47,6 @@
#error "Unknown SDK, please fill-in missing pieces"
#endif
#endif // __VISUALC__
#endif // __VISUALC__ && __WXWINCE__
#endif // _WX_LIBRARIES_H_

View File

@@ -1,6 +1,6 @@
///////////////////////////////////////////////////////////////////////////////
// Name: wx/msw/wince/smartphone.h
// Purpose: resources for Smartphone build
// Purpose: resources for MS Smartphone build
// Author: Wlodzimierz ABX Skiba
// Modified by:
// Created: 01.05.2004

View File

@@ -1,6 +1,6 @@
/////////////////////////////////////////////////////////////////////////////
// Name: wx/msw/wince/textctrlce.h
// Purpose: wxTextCtrl class - Smartphone implementation
// Purpose: wxTextCtrl implementation for smart phones driven by WinCE
// Author: Wlodzimierz ABX Skiba
// Modified by:
// Created: 30.08.2004

View File

@@ -143,36 +143,45 @@
#endif /* Win32 */
#if defined(__WXMSW__) || defined(__WIN32__)
# if !defined(__WINDOWS__)
# define __WINDOWS__
# endif
# if !defined(__WINDOWS__)
# define __WINDOWS__
# endif
#endif
#ifdef __WINE__
# ifndef __WIN95__
# define __WIN95__
# endif
# ifndef __WIN95__
# define __WIN95__
# endif
#endif /* WINE */
/* detect SmartPhone */
/* detect MS SmartPhone */
#if defined( WIN32_PLATFORM_WFSP )
# ifndef __SMARTPHONE__
# define __SMARTPHONE__
# endif
# ifndef __SMARTPHONE__
# define __SMARTPHONE__
# endif
# ifndef __WXWINCE__
# define __WXWINCE__
# endif
#endif
/* detect PocketPC */
#if defined( WIN32_PLATFORM_PSPC )
# ifndef __POCKETPC__
# define __POCKETPC__
# endif
# ifndef __POCKETPC__
# define __POCKETPC__
# endif
# ifndef __WXWINCE__
# define __WXWINCE__
# endif
#endif
/* detect Standard WinCE SDK */
#if defined( WCE_PLATFORM_STANDARDSDK )
# ifndef __WINCE_STANDARDSDK__
# define __WINCE_STANDARDSDK__
# endif
# ifndef __WINCE_STANDARDSDK__
# define __WINCE_STANDARDSDK__
# endif
# ifndef __WXWINCE__
# define __WXWINCE__
# endif
#endif
#if defined(_WIN32_WCE) && !defined(WIN32_PLATFORM_WFSP) && !defined(WIN32_PLATFORM_PSPC)
@@ -185,6 +194,9 @@
# define __HANDHELDPC__
# endif
# endif
# ifndef __WXWINCE__
# define __WXWINCE__
# endif
#endif
/*

View File

@@ -399,7 +399,7 @@ protected:
#include "wx/x11/textctrl.h"
#elif defined(__WXUNIVERSAL__)
#include "wx/univ/textctrl.h"
#elif defined(__SMARTPHONE__)
#elif defined(__SMARTPHONE__) && defined(__WXWINCE__)
#include "wx/msw/wince/textctrlce.h"
#elif defined(__WXMSW__)
#include "wx/msw/textctrl.h"

View File

@@ -179,6 +179,11 @@ public:
virtual bool IsActive()
{ return (wxGetTopLevelParent(FindFocus()) == this); }
#if defined(__SMARTPHONE__)
virtual void SetLeftMenu(int id = wxID_ANY, const wxString& label = wxEmptyString, wxMenu *subMenu = NULL) = 0;
virtual void SetRightMenu(int id = wxID_ANY, const wxString& label = wxEmptyString, wxMenu *subMenu = NULL) = 0;
#endif // __SMARTPHONE__
// implementation only from now on
// -------------------------------