]> git.saurik.com Git - wxWidgets.git/commitdiff
Hardware defines spec.
authorWłodzimierz Skiba <abx@abx.art.pl>
Wed, 29 Sep 2004 08:03:26 +0000 (08:03 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Wed, 29 Sep 2004 08:03:26 +0000 (08:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 files changed:
include/wx/chkconf.h
include/wx/choice.h
include/wx/dirdlg.h
include/wx/msw/filedlg.h
include/wx/msw/toplevel.h
include/wx/msw/wince/choicece.h
include/wx/msw/wince/libraries.h
include/wx/msw/wince/smartphone.rc
include/wx/msw/wince/textctrlce.h
include/wx/platform.h
include/wx/textctrl.h
include/wx/toplevel.h

index 928442094509d83ff5e7aa9603b1cf82b67fec14..5ced93cfefcaeee3838493c358c0dcda3c811d23 100644 (file)
 #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 */
index c11aa3555030e04456db752875597fa8ecf164bd..43c3846744c083533700ea784e7857fba27cb0ab 100644 (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"
index bf8053e4e7860bcd904eee23385feaac856753df..d2d38c0bdde9ed57485f5d72681f99916cc050f7 100644 (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__)
 
index 8a8deee9af359904c473eafdcd0e05f326f8beb4..5bdd3957fe3170dbb161ebd27449574efd3a6aa6 100644 (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;
index c4b7e47287a3f48b7c9961049e3db666095eddeb..2033fb0d4e4b8b55116791d6c6195ea8992ff741 100644 (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)
index bb893609f3150e509dc78cc78144eee7fc4d8321..75aedb775fee820d5ab28fb4260f8de5078ed0a2 100644 (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
index b03e41a9ba6d20dae4b030389a9ba74835fc7990..608b82f9cc404601d821fac00fdc8436f20233fb 100644 (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_
index 07b39c58cabeb565d08bb640bcc4d46f6b3c4679..3a027551107de435f4be18709d7b10a7f22a06e2 100644 (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
index 68741c84c4069fdec035d75c37df4a120bbac202..c328911a424429d2b94b0d92828e4e6e1a3ea78a 100644 (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
index 38415f572ec483d09b103f98b1ad876d92cce858..aed9b04776ed952996fa34807528bdc0484ae7d2 100644 (file)
 #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)
 #           define __HANDHELDPC__
 #       endif
 #   endif
+#   ifndef __WXWINCE__
+#       define __WXWINCE__
+#   endif
 #endif
 
 /*
index 40120e6251a6aaedf2b4e64efec7be40dc1f0cb8..1af64850c2de36411a882ea81f74df59ec69c478 100644 (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"
index a18741217d9c19e5897f6c0c0c0e8a36fff9d6e1..d4337bc783db176997605bd598a25b484a6351ed 100644 (file)
@@ -174,11 +174,16 @@ public:
     // Attracts the users attention to this window if the application is
     // inactive (should be called when a background event occurs)
     virtual void RequestUserAttention(int flags = wxUSER_ATTENTION_INFO);
-    
+
     // Is this the active frame (highlighted in the taskbar)?
     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
     // -------------------------------