OS/2 update for wxUniv merge.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -69,6 +69,10 @@ protected:
 | 
			
		||||
    // the margins around the bitmap
 | 
			
		||||
    int m_marginX,
 | 
			
		||||
        m_marginY;
 | 
			
		||||
private:
 | 
			
		||||
    // Prevent Virtual function hiding warnings
 | 
			
		||||
    void SetLabel(const wxString& rsLabel)
 | 
			
		||||
    { wxWindowBase::SetLabel(rsLabel); }
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#if defined(__WXUNIVERSAL__)
 | 
			
		||||
 
 | 
			
		||||
@@ -318,6 +318,28 @@ protected:
 | 
			
		||||
    #endif
 | 
			
		||||
#elif defined(__WXPM__)
 | 
			
		||||
    #include "wx/os2/frame.h"
 | 
			
		||||
    #ifndef __WXUNIVERSAL__
 | 
			
		||||
 | 
			
		||||
    class WXDLLEXPORT wxFrame : public wxFrameOS2
 | 
			
		||||
    {
 | 
			
		||||
    public:
 | 
			
		||||
        // construction
 | 
			
		||||
        wxFrame() { Init(); }
 | 
			
		||||
        wxFrame(wxWindow *parent,
 | 
			
		||||
                   wxWindowID id,
 | 
			
		||||
                   const wxString& title,
 | 
			
		||||
                   const wxPoint& pos = wxDefaultPosition,
 | 
			
		||||
                   const wxSize& size = wxDefaultSize,
 | 
			
		||||
                   long style = wxDEFAULT_FRAME_STYLE,
 | 
			
		||||
                   const wxString& name = wxFrameNameStr)
 | 
			
		||||
        {
 | 
			
		||||
            Init();
 | 
			
		||||
            Create(parent, id, title, pos, size, style, name);
 | 
			
		||||
        }
 | 
			
		||||
        DECLARE_DYNAMIC_CLASS(wxFrame)
 | 
			
		||||
    };
 | 
			
		||||
    #endif
 | 
			
		||||
 | 
			
		||||
#elif defined(__WXSTUBS__)
 | 
			
		||||
    #include "wx/stubs/frame.h"
 | 
			
		||||
#endif
 | 
			
		||||
 
 | 
			
		||||
@@ -189,6 +189,10 @@ protected:
 | 
			
		||||
    friend wxListMainWindow;
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
    // Virtual function hiding supression
 | 
			
		||||
    void Update(void)
 | 
			
		||||
    { wxWindowBase::Update(); }
 | 
			
		||||
 | 
			
		||||
    // create the header window
 | 
			
		||||
    void CreateHeaderWindow();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -116,6 +116,10 @@ private:
 | 
			
		||||
   class WXDLLEXPORT wxWindowDisabler *m_winDisabler;
 | 
			
		||||
 | 
			
		||||
   DECLARE_EVENT_TABLE()
 | 
			
		||||
private:
 | 
			
		||||
    // Virtual function hiding supression
 | 
			
		||||
    void Update()
 | 
			
		||||
    { wxWindowBase::Update(); }
 | 
			
		||||
};
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -28,26 +28,6 @@ class WXDLLEXPORT wxAcceleratorTable;
 | 
			
		||||
 // Hold no key down
 | 
			
		||||
#define wxACCEL_NORMAL  0x00
 | 
			
		||||
 | 
			
		||||
class WXDLLEXPORT wxAcceleratorEntry
 | 
			
		||||
{
 | 
			
		||||
public:
 | 
			
		||||
    wxAcceleratorEntry(int flags = 0, int keyCode = 0, int cmd = 0)
 | 
			
		||||
    {
 | 
			
		||||
        m_flags = flags; m_keyCode = keyCode; m_command = cmd;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    inline void Set(int flags, int keyCode, int cmd)
 | 
			
		||||
         { m_flags = flags; m_keyCode = keyCode; m_command = cmd; }
 | 
			
		||||
 | 
			
		||||
    inline int GetFlags() const { return m_flags; }
 | 
			
		||||
    inline int GetKeyCode() const { return m_keyCode; }
 | 
			
		||||
    inline int GetCommand() const { return m_command; }
 | 
			
		||||
 | 
			
		||||
    int             m_flags;
 | 
			
		||||
    int			    m_keyCode; // ASCII or virtual keycode
 | 
			
		||||
    int			    m_command; // Command id to generate
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
class WXDLLEXPORT wxAcceleratorTable: public wxObject
 | 
			
		||||
{
 | 
			
		||||
DECLARE_DYNAMIC_CLASS(wxAcceleratorTable)
 | 
			
		||||
 
 | 
			
		||||
@@ -18,7 +18,7 @@ WXDLLEXPORT_DATA(extern const char*) wxButtonNameStr;
 | 
			
		||||
 | 
			
		||||
#define wxDEFAULT_BUTTON_MARGIN 4
 | 
			
		||||
 | 
			
		||||
class WXDLLEXPORT wxBitmapButton: public wxButton
 | 
			
		||||
class WXDLLEXPORT wxBitmapButton: public wxBitmapButtonBase
 | 
			
		||||
{
 | 
			
		||||
  DECLARE_DYNAMIC_CLASS(wxBitmapButton)
 | 
			
		||||
 public:
 | 
			
		||||
 
 | 
			
		||||
@@ -17,9 +17,8 @@
 | 
			
		||||
WXDLLEXPORT_DATA(extern const char*) wxButtonNameStr;
 | 
			
		||||
 | 
			
		||||
// Pushbutton
 | 
			
		||||
class WXDLLEXPORT wxButton: public wxControl
 | 
			
		||||
class WXDLLEXPORT wxButton: public wxButtonBase
 | 
			
		||||
{
 | 
			
		||||
  DECLARE_DYNAMIC_CLASS(wxButton)
 | 
			
		||||
 public:
 | 
			
		||||
  inline wxButton() {}
 | 
			
		||||
  inline wxButton(wxWindow *parent, wxWindowID id, const wxString& label,
 | 
			
		||||
@@ -60,6 +59,8 @@ protected:
 | 
			
		||||
    bool SendClickEvent();
 | 
			
		||||
 | 
			
		||||
    virtual wxSize DoGetBestSize() const;
 | 
			
		||||
private:
 | 
			
		||||
  DECLARE_DYNAMIC_CLASS(wxButton)
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 
 | 
			
		||||
@@ -18,10 +18,8 @@ WXDLLEXPORT_DATA(extern const char*) wxCheckBoxNameStr;
 | 
			
		||||
 | 
			
		||||
// Checkbox item (single checkbox)
 | 
			
		||||
class WXDLLEXPORT wxBitmap;
 | 
			
		||||
class WXDLLEXPORT wxCheckBox: public wxControl
 | 
			
		||||
class WXDLLEXPORT wxCheckBox : public wxCheckBoxBase
 | 
			
		||||
{
 | 
			
		||||
  DECLARE_DYNAMIC_CLASS(wxCheckBox)
 | 
			
		||||
 | 
			
		||||
 public:
 | 
			
		||||
  inline wxCheckBox() { }
 | 
			
		||||
  inline wxCheckBox(wxWindow *parent, wxWindowID id, const wxString& label,
 | 
			
		||||
@@ -54,6 +52,8 @@ class WXDLLEXPORT wxCheckBox: public wxControl
 | 
			
		||||
 | 
			
		||||
protected:
 | 
			
		||||
  virtual wxSize DoGetBestSize() const;
 | 
			
		||||
private:
 | 
			
		||||
  DECLARE_DYNAMIC_CLASS(wxCheckBox)
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
class WXDLLEXPORT wxBitmapCheckBox: public wxCheckBox
 | 
			
		||||
 
 | 
			
		||||
@@ -157,6 +157,8 @@ public:
 | 
			
		||||
    const wxBitmap& GetSelectedBitmap(void) const { return m_vSelectedBitmap; }
 | 
			
		||||
    wxBitmap&       GetSelectedBitmap(void) { return m_vSelectedBitmap; }
 | 
			
		||||
 | 
			
		||||
    void            UpdateClipBox();
 | 
			
		||||
 | 
			
		||||
protected:
 | 
			
		||||
    virtual void DoFloodFill( wxCoord         vX
 | 
			
		||||
                             ,wxCoord         vY
 | 
			
		||||
 
 | 
			
		||||
@@ -52,15 +52,18 @@ class WXDLLEXPORT wxClientDC : public wxWindowDC
 | 
			
		||||
{
 | 
			
		||||
public:
 | 
			
		||||
    wxClientDC();
 | 
			
		||||
    virtual ~wxClientDC();
 | 
			
		||||
 | 
			
		||||
    // Create a DC corresponding to the client area of the window
 | 
			
		||||
    wxClientDC(wxWindow *win);
 | 
			
		||||
 | 
			
		||||
protected:
 | 
			
		||||
    void InitDC(void);
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
    DECLARE_DYNAMIC_CLASS(wxClientDC)
 | 
			
		||||
}; // end of CLASS wxClientDC
 | 
			
		||||
 | 
			
		||||
class WXDLLEXPORT wxPaintDC : public wxWindowDC
 | 
			
		||||
class WXDLLEXPORT wxPaintDC : public wxClientDC
 | 
			
		||||
{
 | 
			
		||||
public:
 | 
			
		||||
    wxPaintDC();
 | 
			
		||||
 
 | 
			
		||||
@@ -17,12 +17,12 @@
 | 
			
		||||
//
 | 
			
		||||
#include "wx/os2/wxOs2.h"
 | 
			
		||||
 | 
			
		||||
class WXDLLEXPORT wxFrame : public wxFrameBase
 | 
			
		||||
class WXDLLEXPORT wxFrameOS2 : public wxFrameBase
 | 
			
		||||
{
 | 
			
		||||
public:
 | 
			
		||||
    // construction
 | 
			
		||||
    wxFrame() { Init(); }
 | 
			
		||||
    wxFrame( wxWindow*       pParent
 | 
			
		||||
    wxFrameOS2() { Init(); }
 | 
			
		||||
    wxFrameOS2( wxWindow*       pParent
 | 
			
		||||
               ,wxWindowID      vId
 | 
			
		||||
               ,const wxString& rsTitle
 | 
			
		||||
               ,const wxPoint&  rPos = wxDefaultPosition
 | 
			
		||||
@@ -45,7 +45,7 @@ public:
 | 
			
		||||
                ,const wxString& rsName = wxFrameNameStr
 | 
			
		||||
               );
 | 
			
		||||
 | 
			
		||||
    virtual ~wxFrame();
 | 
			
		||||
    virtual ~wxFrameOS2();
 | 
			
		||||
 | 
			
		||||
    // implement base class pure virtuals
 | 
			
		||||
    virtual void Maximize(bool bMaximize = TRUE);
 | 
			
		||||
@@ -242,7 +242,7 @@ private:
 | 
			
		||||
    SWP                             m_vSwpToolBar;
 | 
			
		||||
 | 
			
		||||
    DECLARE_EVENT_TABLE()
 | 
			
		||||
    DECLARE_DYNAMIC_CLASS(wxFrame)
 | 
			
		||||
    DECLARE_DYNAMIC_CLASS(wxFrameOS2)
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 
 | 
			
		||||
@@ -73,12 +73,6 @@ public:
 | 
			
		||||
    }
 | 
			
		||||
#endif // wxUSE_MENU_CALLBACK
 | 
			
		||||
 | 
			
		||||
    //
 | 
			
		||||
    // OS2-specific
 | 
			
		||||
    //
 | 
			
		||||
    bool ProcessCommand(wxCommandEvent& rEvent);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    //
 | 
			
		||||
    // Implementation only from now on
 | 
			
		||||
    // -------------------------------
 | 
			
		||||
@@ -101,12 +95,6 @@ public:
 | 
			
		||||
    //
 | 
			
		||||
    WXHMENU GetHMenu() const { return m_hMenu; }
 | 
			
		||||
 | 
			
		||||
    //
 | 
			
		||||
    // Attach/detach menu to/from wxMenuBar
 | 
			
		||||
    //
 | 
			
		||||
    void Attach(wxMenuBar* pMenubar);
 | 
			
		||||
    void Detach(void);
 | 
			
		||||
 | 
			
		||||
#if wxUSE_ACCEL
 | 
			
		||||
    //
 | 
			
		||||
    // Called by wxMenuBar to build its accel table from the accels of all menus
 | 
			
		||||
@@ -254,22 +242,8 @@ public:
 | 
			
		||||
    // Implementation from now on
 | 
			
		||||
    //
 | 
			
		||||
    WXHMENU                   Create(void);
 | 
			
		||||
    void                      Detach(void);
 | 
			
		||||
 | 
			
		||||
    //
 | 
			
		||||
    // Returns TRUE if we're attached to a frame
 | 
			
		||||
    //
 | 
			
		||||
    bool                      IsAttached(void) const { return m_pMenuBarFrame != NULL; }
 | 
			
		||||
 | 
			
		||||
    //
 | 
			
		||||
    // Get the frame we live in
 | 
			
		||||
    //
 | 
			
		||||
    wxFrame *                 GetFrame(void) const { return m_pMenuBarFrame; }
 | 
			
		||||
 | 
			
		||||
    //
 | 
			
		||||
    // Attach to a frame
 | 
			
		||||
    //
 | 
			
		||||
    void                      Attach(wxFrame* pFrame);
 | 
			
		||||
    virtual void              Detach(void);
 | 
			
		||||
    virtual void              Attach(wxFrame* pFrame);
 | 
			
		||||
 | 
			
		||||
#if wxUSE_ACCEL
 | 
			
		||||
    //
 | 
			
		||||
@@ -305,7 +279,6 @@ protected:
 | 
			
		||||
 | 
			
		||||
    wxArrayString m_titles;
 | 
			
		||||
 | 
			
		||||
    wxFrame*                        m_pMenuBarFrame;
 | 
			
		||||
    WXHMENU                         m_hMenu;
 | 
			
		||||
 | 
			
		||||
#if wxUSE_ACCEL
 | 
			
		||||
@@ -315,6 +288,8 @@ protected:
 | 
			
		||||
    wxAcceleratorTable              m_vAccelTable;
 | 
			
		||||
#endif // wxUSE_ACCEL
 | 
			
		||||
 | 
			
		||||
    wxFrame*                        m_pMenuBarFrame;
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
    //
 | 
			
		||||
    // Virtual function hiding suppression
 | 
			
		||||
 
 | 
			
		||||
@@ -60,10 +60,6 @@ public:
 | 
			
		||||
    virtual void Check(bool bDoCheck = TRUE);
 | 
			
		||||
    virtual bool IsChecked(void) const;
 | 
			
		||||
 | 
			
		||||
#if wxUSE_ACCEL
 | 
			
		||||
    virtual wxAcceleratorEntry* GetAccel(void) const;
 | 
			
		||||
#endif // wxUSE_ACCEL
 | 
			
		||||
 | 
			
		||||
    // unfortunately needed to resolve ambiguity between
 | 
			
		||||
    // wxMenuItemBase::IsCheckable() and wxOwnerDrawn::IsCheckable()
 | 
			
		||||
    bool IsCheckable(void) const { return wxMenuItemBase::IsCheckable(); }
 | 
			
		||||
 
 | 
			
		||||
@@ -42,14 +42,5 @@ protected:
 | 
			
		||||
    wxWindow*                       m_pParent;
 | 
			
		||||
}; // end of CLASS wxMessageDialog
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
int WXDLLEXPORT wxMessageBox( const wxString& rsMessage
 | 
			
		||||
                             ,const wxString& rsCaption = wxMessageBoxCaptionStr
 | 
			
		||||
                             ,long            lStyle = wxOK|wxCENTRE
 | 
			
		||||
                             ,wxWindow*       pParent = NULL
 | 
			
		||||
                             ,int             nX = -1
 | 
			
		||||
                             ,int             nY = -1
 | 
			
		||||
                            );
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
    // _WX_MSGBOXDLG_H_
 | 
			
		||||
 
 | 
			
		||||
@@ -17,7 +17,7 @@
 | 
			
		||||
 | 
			
		||||
#include "wx/dynarray.h"
 | 
			
		||||
#include "wx/string.h"
 | 
			
		||||
#include "wx/control.h"
 | 
			
		||||
#include "wx/notebook.h"
 | 
			
		||||
 | 
			
		||||
// ----------------------------------------------------------------------------
 | 
			
		||||
// types
 | 
			
		||||
@@ -38,7 +38,7 @@ WX_DEFINE_ARRAY(wxNotebookPage *, wxArrayNBPages);
 | 
			
		||||
// FIXME this class should really derive from wxTabCtrl, but the interface is not
 | 
			
		||||
//       exactly the same, so I can't do it right now and instead we reimplement
 | 
			
		||||
//       part of wxTabCtrl here
 | 
			
		||||
class WXDLLEXPORT wxNotebook : public wxControl
 | 
			
		||||
class WXDLLEXPORT wxNotebook : public wxNotebookBase
 | 
			
		||||
{
 | 
			
		||||
public:
 | 
			
		||||
  // ctors
 | 
			
		||||
 
 | 
			
		||||
@@ -12,14 +12,12 @@
 | 
			
		||||
#ifndef _WX_RADIOBOX_H_
 | 
			
		||||
#define _WX_RADIOBOX_H_
 | 
			
		||||
 | 
			
		||||
#include "wx/control.h"
 | 
			
		||||
 | 
			
		||||
WXDLLEXPORT_DATA(extern const char*) wxRadioBoxNameStr;
 | 
			
		||||
 | 
			
		||||
// List box item
 | 
			
		||||
class WXDLLEXPORT wxBitmap ;
 | 
			
		||||
 | 
			
		||||
class WXDLLEXPORT wxRadioBox: public wxControl
 | 
			
		||||
class WXDLLEXPORT wxRadioBox: public wxControl, public wxRadioBoxBase
 | 
			
		||||
{
 | 
			
		||||
  DECLARE_DYNAMIC_CLASS(wxRadioBox)
 | 
			
		||||
public:
 | 
			
		||||
@@ -53,7 +51,11 @@ public:
 | 
			
		||||
  int FindString(const wxString& s) const;
 | 
			
		||||
  void SetSelection(int N);
 | 
			
		||||
  int GetSelection() const;
 | 
			
		||||
  virtual int GetCount() const;
 | 
			
		||||
  wxString GetString(int N) const;
 | 
			
		||||
  virtual void SetString(int n, const wxString& label);
 | 
			
		||||
  virtual int GetColumnCount() const;
 | 
			
		||||
  virtual int GetRowCount() const;
 | 
			
		||||
 | 
			
		||||
  void GetSize(int *x, int *y) const;
 | 
			
		||||
  void GetPosition(int *x, int *y) const;
 | 
			
		||||
 
 | 
			
		||||
@@ -51,47 +51,5 @@ class WXDLLEXPORT wxRadioButton: public wxControl
 | 
			
		||||
  void Command(wxCommandEvent& event);
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
// Not implemented
 | 
			
		||||
class WXDLLEXPORT wxBitmap ;
 | 
			
		||||
 | 
			
		||||
WXDLLEXPORT_DATA(extern const char*) wxBitmapRadioButtonNameStr;
 | 
			
		||||
 | 
			
		||||
class WXDLLEXPORT wxBitmapRadioButton: public wxRadioButton
 | 
			
		||||
{
 | 
			
		||||
  DECLARE_DYNAMIC_CLASS(wxBitmapRadioButton)
 | 
			
		||||
 protected:
 | 
			
		||||
  wxBitmap *theButtonBitmap;
 | 
			
		||||
 public:
 | 
			
		||||
  inline wxBitmapRadioButton() { theButtonBitmap = NULL; }
 | 
			
		||||
  inline wxBitmapRadioButton(wxWindow *parent, wxWindowID id,
 | 
			
		||||
           const wxBitmap *label,
 | 
			
		||||
           const wxPoint& pos = wxDefaultPosition,
 | 
			
		||||
           const wxSize& size = wxDefaultSize, long style = 0,
 | 
			
		||||
#if wxUSE_VALIDATORS
 | 
			
		||||
           const wxValidator& validator = wxDefaultValidator,
 | 
			
		||||
#endif
 | 
			
		||||
           const wxString& name = wxBitmapRadioButtonNameStr)
 | 
			
		||||
  {
 | 
			
		||||
      Create(parent, id, label, pos, size, style, validator, name);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  bool Create(wxWindow *parent, wxWindowID id,
 | 
			
		||||
           const wxBitmap *label,
 | 
			
		||||
           const wxPoint& pos = wxDefaultPosition,
 | 
			
		||||
           const wxSize& size = wxDefaultSize, long style = 0,
 | 
			
		||||
#if wxUSE_VALIDATORS
 | 
			
		||||
           const wxValidator& validator = wxDefaultValidator,
 | 
			
		||||
#endif
 | 
			
		||||
           const wxString& name = wxBitmapRadioButtonNameStr);
 | 
			
		||||
 | 
			
		||||
  virtual void SetLabel(const wxBitmap *label);
 | 
			
		||||
  virtual void SetValue(bool val) ;
 | 
			
		||||
  virtual bool GetValue() const ;
 | 
			
		||||
private:
 | 
			
		||||
  // virtual function hiding suppression, do not use
 | 
			
		||||
  virtual void SetLabel(const wxString& label)
 | 
			
		||||
  { wxRadioButton::SetLabel(label); };
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
    // _WX_RADIOBUT_H_
 | 
			
		||||
 
 | 
			
		||||
@@ -12,12 +12,12 @@
 | 
			
		||||
#ifndef _WX_SCROLBAR_H_
 | 
			
		||||
#define _WX_SCROLBAR_H_
 | 
			
		||||
 | 
			
		||||
#include "wx/control.h"
 | 
			
		||||
#include "wx/scrolbar.h"
 | 
			
		||||
 | 
			
		||||
WXDLLEXPORT_DATA(extern const char*) wxScrollBarNameStr;
 | 
			
		||||
 | 
			
		||||
// Scrollbar item
 | 
			
		||||
class WXDLLEXPORT wxScrollBar: public wxControl
 | 
			
		||||
class WXDLLEXPORT wxScrollBar: public wxScrollBarBase
 | 
			
		||||
{
 | 
			
		||||
  DECLARE_DYNAMIC_CLASS(wxScrollBar)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -34,6 +34,8 @@
 | 
			
		||||
 | 
			
		||||
#define wxUSE_NET_API          1 // Utilize OS/2's UPM netapi's
 | 
			
		||||
 | 
			
		||||
#define wxUSE_DATETIME         1 // Utilize the date-time classes
 | 
			
		||||
 | 
			
		||||
#define wxUSE_CONFIG           1
 | 
			
		||||
                                // Use wxConfig, with CreateConfig in wxApp
 | 
			
		||||
 | 
			
		||||
@@ -74,40 +76,62 @@
 | 
			
		||||
#define wxUSE_DRAG_AND_DROP 1
 | 
			
		||||
                                // 0 for no drag and drop
 | 
			
		||||
 | 
			
		||||
#define wxUSE_CONTROLS     1    // Do not change
 | 
			
		||||
#define wxUSE_POPUPWIN     0    // OS/2 does not use this
 | 
			
		||||
 | 
			
		||||
// Recommended setting: 1
 | 
			
		||||
#define wxUSE_BUTTON       1    // wxButton
 | 
			
		||||
#define wxUSE_BMPBUTTON    1    // wxBitmapButton
 | 
			
		||||
#define wxUSE_CALENDARCTRL 1    // wxCalendarCtrl
 | 
			
		||||
#define wxUSE_CHECKBOX     1    // wxCheckBox
 | 
			
		||||
#define wxUSE_CHECKLISTBOX 1    // wxCheckListBox (requires wxUSE_OWNER_DRAWN)
 | 
			
		||||
#define wxUSE_CHOICE       1    // wxChoice
 | 
			
		||||
#define wxUSE_COMBOBOX     1    // wxComboBox
 | 
			
		||||
#define wxUSE_GAUGE        1    // wxGauge
 | 
			
		||||
#define wxUSE_LISTBOX      1    // wxListBox
 | 
			
		||||
#define wxUSE_LISTCTRL     1    // wxListCtrl
 | 
			
		||||
#define wxUSE_RADIOBOX     1    // wxRadioBox
 | 
			
		||||
#define wxUSE_RADIOBTN     1    // wxRadioButton
 | 
			
		||||
#define wxUSE_SCROLLBAR    1    // wxScrollBar
 | 
			
		||||
#define wxUSE_SLIDER       1    // wxSlider
 | 
			
		||||
#define wxUSE_SPINBTN      1    // wxSpinButton
 | 
			
		||||
#define wxUSE_SPINCTRL     1    // wxSpinCtrl
 | 
			
		||||
#define wxUSE_STATBOX      1    // wxStaticBox
 | 
			
		||||
#define wxUSE_STATLINE     1    // wxStaticLine
 | 
			
		||||
#define wxUSE_STATTEXT     1    // wxStaticText
 | 
			
		||||
#define wxUSE_STATBMP      1    // wxStaticBitmap
 | 
			
		||||
#define wxUSE_TEXTCTRL     1    // wxTextCtrl
 | 
			
		||||
#define wxUSE_TOGGLEBTN    1    // requires wxButton
 | 
			
		||||
#define wxUSE_TREECTRL     1    // wxTreeCtrl
 | 
			
		||||
#define wxUSE_CHOICEDLG    1
 | 
			
		||||
#define wxUSE_COLOURDLG    1
 | 
			
		||||
#define wxUSE_DATAOBJ      1
 | 
			
		||||
#define wxUSE_FILEDLG      1
 | 
			
		||||
#define wxUSE_FONTDLG      1
 | 
			
		||||
#define wxUSE_FONTMAP      1
 | 
			
		||||
#define wxUSE_GRID         1
 | 
			
		||||
#define wxUSE_IMAGLIST     1
 | 
			
		||||
#define wxUSE_LOGGUI       1
 | 
			
		||||
#define wxUSE_LOGWINDOW    1
 | 
			
		||||
#define wxUSE_LOG_DIALOG   1
 | 
			
		||||
#define wxUSE_MIMETYPE     1
 | 
			
		||||
#define wxUSE_MSGDLG       1
 | 
			
		||||
#define wxUSE_NOTEBOOK     1
 | 
			
		||||
#define wxUSE_SPLITTER     1
 | 
			
		||||
#define wxUSE_STOPWATCH    1
 | 
			
		||||
#define wxUSE_TAB_DIALOG   1
 | 
			
		||||
#define wxUSE_WXHTML_HELP  1
 | 
			
		||||
 | 
			
		||||
#define wxUSE_BUTTONBAR     1
 | 
			
		||||
                                    // Define 1 to use buttonbar classes (enhanced toolbar
 | 
			
		||||
                                    // for MS Windows)
 | 
			
		||||
#define wxUSE_GAUGE         1
 | 
			
		||||
                                    // Define 1 to use Microsoft's gauge (Windows)
 | 
			
		||||
                                    // or Bull's gauge (Motif) library (both in contrib).
 | 
			
		||||
#define wxUSE_COMBOBOX      1
 | 
			
		||||
                                    // Define 1 to use COMBOXBOX control (Windows)
 | 
			
		||||
                                    // or FWW's ComboBox widget (Motif).
 | 
			
		||||
#define wxUSE_CHOICE      1
 | 
			
		||||
                                    // Define 1 to use CHOICE
 | 
			
		||||
 | 
			
		||||
#define wxUSE_RADIOBUTTON   1
 | 
			
		||||
                                    // Define 1 to use radio button control
 | 
			
		||||
#define wxUSE_RADIOBTN   1
 | 
			
		||||
                                    // Unfortunately someone introduced this one, too
 | 
			
		||||
 | 
			
		||||
#define wxUSE_SCROLLBAR   1
 | 
			
		||||
                                    // Define 1 to compile contributed wxScrollBar class
 | 
			
		||||
 | 
			
		||||
#define wxUSE_CHECKBOX 1
 | 
			
		||||
                                    // Define 1 to compile checkbox
 | 
			
		||||
 | 
			
		||||
#define wxUSE_LISTBOX 1
 | 
			
		||||
                                    // Define 1 to compile listbox
 | 
			
		||||
 | 
			
		||||
#define wxUSE_SPINBTN 1
 | 
			
		||||
                                    // Define 1 to compile spin button
 | 
			
		||||
 | 
			
		||||
// use wxStaticLine class (separator line in the dialog)?
 | 
			
		||||
#define wxUSE_STATLINE 1
 | 
			
		||||
 | 
			
		||||
#define wxUSE_CHECKLISTBOX 1
 | 
			
		||||
                                    // Define 1 to compile check listbox
 | 
			
		||||
#define wxUSE_CARET       1
 | 
			
		||||
                                    // Define 1 to use wxCaret class
 | 
			
		||||
#define wxUSE_TREECTRL    1
 | 
			
		||||
@@ -252,6 +276,7 @@
 | 
			
		||||
#define wxUSE_ZIPSTREAM     1
 | 
			
		||||
                                  // input stream for reading from zip archives
 | 
			
		||||
 | 
			
		||||
#define wxUSE_TIMER         1     // use the timer class
 | 
			
		||||
/*
 | 
			
		||||
 * Finer detail
 | 
			
		||||
 *
 | 
			
		||||
@@ -265,6 +290,8 @@
 | 
			
		||||
// use wxFile class - required by i18n code, wxConfig and others - recommended
 | 
			
		||||
#define wxUSE_FILE                1
 | 
			
		||||
 | 
			
		||||
#define wxUSE_FFILE         1
 | 
			
		||||
 | 
			
		||||
// use wxTextFile class: requires wxFile, required by wxConfig
 | 
			
		||||
#define wxUSE_TEXTFILE            1
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -36,7 +36,6 @@
 | 
			
		||||
 | 
			
		||||
#define wxUSE_CONFIG           1
 | 
			
		||||
                                // Use wxConfig, with CreateConfig in wxApp
 | 
			
		||||
 | 
			
		||||
#define wxUSE_POSTSCRIPT  1
 | 
			
		||||
                            // 0 for no PostScript device context
 | 
			
		||||
#define wxUSE_AFM_FOR_POSTSCRIPT 1
 | 
			
		||||
 
 | 
			
		||||
@@ -17,7 +17,7 @@
 | 
			
		||||
WXDLLEXPORT_DATA(extern const char*) wxSliderNameStr;
 | 
			
		||||
 | 
			
		||||
// Slider
 | 
			
		||||
class WXDLLEXPORT wxSlider: public wxControl
 | 
			
		||||
class WXDLLEXPORT wxSlider: public wxSliderBase
 | 
			
		||||
{
 | 
			
		||||
  DECLARE_DYNAMIC_CLASS(wxSlider)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -21,9 +21,8 @@
 | 
			
		||||
 | 
			
		||||
WXDLLEXPORT_DATA(extern const char*) wxStaticBitmapNameStr;
 | 
			
		||||
 | 
			
		||||
class WXDLLEXPORT wxStaticBitmap: public wxControl
 | 
			
		||||
class WXDLLEXPORT wxStaticBitmap : public wxStaticBitmapBase
 | 
			
		||||
{
 | 
			
		||||
    DECLARE_DYNAMIC_CLASS(wxStaticBitmap)
 | 
			
		||||
 public:
 | 
			
		||||
    inline wxStaticBitmap() { Init(); }
 | 
			
		||||
 | 
			
		||||
@@ -56,7 +55,7 @@ class WXDLLEXPORT wxStaticBitmap: public wxControl
 | 
			
		||||
    // vice versa
 | 
			
		||||
    const wxIcon& GetIcon() const
 | 
			
		||||
      { wxASSERT( m_bIsIcon ); return *(wxIcon *)m_pImage; }
 | 
			
		||||
    const wxBitmap& GetBitmap() const
 | 
			
		||||
    wxBitmap GetBitmap() const
 | 
			
		||||
      { wxASSERT( !m_bIsIcon ); return *(wxBitmap *)m_pImage; }
 | 
			
		||||
 | 
			
		||||
    // overriden base class virtuals
 | 
			
		||||
@@ -76,6 +75,8 @@ protected:
 | 
			
		||||
    // we can have either an icon or a bitmap
 | 
			
		||||
    bool                            m_bIsIcon;
 | 
			
		||||
    wxGDIImage*                     m_pImage;
 | 
			
		||||
private:
 | 
			
		||||
    DECLARE_DYNAMIC_CLASS(wxStaticBitmap)
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 
 | 
			
		||||
@@ -17,7 +17,7 @@
 | 
			
		||||
WXDLLEXPORT_DATA(extern const char*) wxStaticBoxNameStr;
 | 
			
		||||
 | 
			
		||||
// Group box
 | 
			
		||||
class WXDLLEXPORT wxStaticBox: public wxControl
 | 
			
		||||
class WXDLLEXPORT wxStaticBox : public wxStaticBoxBase
 | 
			
		||||
{
 | 
			
		||||
  DECLARE_DYNAMIC_CLASS(wxStaticBox)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -44,15 +44,15 @@ enum
 | 
			
		||||
// wxWindow declaration for OS/2 PM
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
class WXDLLEXPORT wxWindow : public wxWindowBase
 | 
			
		||||
class WXDLLEXPORT wxWindowOS2 : public wxWindowBase
 | 
			
		||||
{
 | 
			
		||||
public:
 | 
			
		||||
    wxWindow()
 | 
			
		||||
    wxWindowOS2()
 | 
			
		||||
    {
 | 
			
		||||
        Init();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    wxWindow( wxWindow*       pParent
 | 
			
		||||
    wxWindowOS2( wxWindow*       pParent
 | 
			
		||||
                ,wxWindowID      vId
 | 
			
		||||
                ,const wxPoint&  rPos = wxDefaultPosition
 | 
			
		||||
                ,const wxSize&   rSize = wxDefaultSize
 | 
			
		||||
@@ -70,7 +70,7 @@ public:
 | 
			
		||||
              );
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    virtual ~wxWindow();
 | 
			
		||||
    virtual ~wxWindowOS2();
 | 
			
		||||
 | 
			
		||||
    bool Create( wxWindow*       pParent
 | 
			
		||||
                ,wxWindowID      vId
 | 
			
		||||
@@ -550,8 +550,8 @@ private:
 | 
			
		||||
    // the helper functions used by HandleChar/KeyXXX methods
 | 
			
		||||
    wxKeyEvent CreateKeyEvent(wxEventType evType, int id, WXLPARAM lp) const;
 | 
			
		||||
 | 
			
		||||
    DECLARE_DYNAMIC_CLASS(wxWindow);
 | 
			
		||||
    DECLARE_NO_COPY_CLASS(wxWindow);
 | 
			
		||||
    DECLARE_DYNAMIC_CLASS(wxWindowOS2);
 | 
			
		||||
    DECLARE_NO_COPY_CLASS(wxWindowOS2)
 | 
			
		||||
    DECLARE_EVENT_TABLE()
 | 
			
		||||
private:
 | 
			
		||||
    HWND                            m_hWndScrollBarHorz;
 | 
			
		||||
 
 | 
			
		||||
@@ -981,6 +981,12 @@ private:
 | 
			
		||||
    #endif // wxUniv
 | 
			
		||||
    #include "wx/mac/window.h"
 | 
			
		||||
#elif defined(__WXPM__)
 | 
			
		||||
    #ifdef __WXUNIVERSAL__
 | 
			
		||||
        #define wxWindowNative wxWindowOS2
 | 
			
		||||
    #else // !wxUniv
 | 
			
		||||
        #define wxWindowOS2 wxWindow
 | 
			
		||||
        #define sm_classwxWindowOS2 sm_classwxWindow
 | 
			
		||||
    #endif // wxUniv/!wxUniv
 | 
			
		||||
    #include "wx/os2/window.h"
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user