OS/2 updates to catch the port up with the rest of the library.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20226 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
2003-04-15 21:08:31 +00:00
parent b823f462a1
commit 4f5c180eba
10 changed files with 305 additions and 1070 deletions

View File

@@ -80,19 +80,6 @@ protected:
private: private:
size_t m_nItemHeight; // height of checklistbox items (the same for all) size_t m_nItemHeight; // height of checklistbox items (the same for all)
//
// Virtual function hiding suppression, do not use
//
virtual wxControl* CreateItem( const wxItemResource* pChildResource
,const wxItemResource* pParentResource
,const wxResourceTable* pTable = (const wxResourceTable *) NULL
)
{
return(wxWindowBase::CreateItem( pChildResource
,pParentResource
,pTable
));
}
DECLARE_DYNAMIC_CLASS(wxCheckListBox) DECLARE_DYNAMIC_CLASS(wxCheckListBox)
DECLARE_EVENT_TABLE() DECLARE_EVENT_TABLE()
}; // end of CLASS wxCheckListBoxItem }; // end of CLASS wxCheckListBoxItem

View File

@@ -145,21 +145,6 @@ protected:
#endif #endif
private: private:
#if wxUSE_WX_RESOURCES
# if wxUSE_OWNER_DRAWN
virtual wxControl* CreateItem( const wxItemResource* pChildResource
,const wxItemResource* pParentResource
,const wxResourceTable* pTable = (const wxResourceTable *) NULL
)
{
return(wxWindowBase::CreateItem( pChildResource
,pParentResource
,pTable
)
);
}
# endif
#endif
DECLARE_DYNAMIC_CLASS(wxListBox) DECLARE_DYNAMIC_CLASS(wxListBox)
}; // end of wxListBox }; // end of wxListBox

View File

@@ -170,6 +170,22 @@ public:
wxRegionContain Contains( wxCoord lX wxRegionContain Contains( wxCoord lX
,wxCoord lY ,wxCoord lY
) const; ) const;
//
// Convert the region to a B&W bitmap with the black pixels being inside
// the region.
//
wxBitmap ConvertToBitmap(void) const;
// Use the non-transparent pixels of a wxBitmap for the region to combine
// with this region. If the bitmap has a mask then it will be used,
// otherwise the colour to be treated as transparent may be specified,
// along with an optional tolerance value.
bool Union( const wxBitmap& rBmp
,const wxColour& rTransColour = wxNullColour
,int nTolerance = 0
);
// //
// Does the region contain the point pt? // Does the region contain the point pt?
// //

View File

@@ -143,7 +143,7 @@
#define wxUSE_RESOURCE_LOADING_IN_OS2 1 #define wxUSE_RESOURCE_LOADING_IN_OS2 1
// Use dynamic icon/cursor loading/saving code // Use dynamic icon/cursor loading/saving code
// under OS2. // under OS2.
#define wxUSE_WX_RESOURCES 1 #define wxUSE_WX_RESOURCES 0
// Use .wxr resource mechanism (requires PrologIO library) // Use .wxr resource mechanism (requires PrologIO library)
// support for startup tips (wxShowTip &c) // support for startup tips (wxShowTip &c)

View File

@@ -205,6 +205,15 @@ private:
wxCoord m_vXMouse; wxCoord m_vXMouse;
wxCoord m_vYMouse; wxCoord m_vYMouse;
//
// Virtual function hiding supression
virtual wxToolBarToolBase *InsertTool (size_t nPos, wxToolBarToolBase* pTool)
{
return( wxToolBarBase::InsertTool( nPos
,pTool
));
}
DECLARE_EVENT_TABLE() DECLARE_EVENT_TABLE()
DECLARE_DYNAMIC_CLASS(wxToolBar) DECLARE_DYNAMIC_CLASS(wxToolBar)
}; };

View File

@@ -79,7 +79,7 @@
#endif #endif
#include <stdlib.h> #include <stdlib.h>
#include <ctype.h> #include <ctype.h>
extern bool wxIsDriveAvailable(const wxString& dirName);
#endif // __WXPM__ #endif // __WXPM__
#if defined(__WXMAC__) #if defined(__WXMAC__)
@@ -530,7 +530,7 @@ void wxGenericDirCtrl::AddSection(const wxString& path, const wxString& name, in
wxDirItemData *dir_item = new wxDirItemData(path,name,TRUE); wxDirItemData *dir_item = new wxDirItemData(path,name,TRUE);
wxTreeItemId id = m_treeCtrl->AppendItem( m_rootId, name, imageId, -1, dir_item); wxTreeItemId id = m_treeCtrl->AppendItem( m_rootId, name, imageId, -1, dir_item);
m_treeCtrl->SetItemHasChildren(id); m_treeCtrl->SetItemHasChildren(id);
} }
@@ -540,7 +540,7 @@ void wxGenericDirCtrl::SetupSections()
wxArrayInt icons; wxArrayInt icons;
size_t n, count = wxGetAvailableDrives(paths, names, icons); size_t n, count = wxGetAvailableDrives(paths, names, icons);
for (n = 0; n < count; n++) for (n = 0; n < count; n++)
{ {
AddSection(paths[n], names[n], icons[n]); AddSection(paths[n], names[n], icons[n]);

View File

@@ -145,7 +145,7 @@ int wxFileDataTimeCompare( long data1, long data2, long data)
#define IsTopMostDir(dir) (dir.IsEmpty()) #define IsTopMostDir(dir) (dir.IsEmpty())
#endif #endif
#if defined(__DOS__) || defined(__WINDOWS__) #if defined(__DOS__) || defined(__WINDOWS__) || defined(__OS2__)
// defined in src/generic/dirctrlg.cpp // defined in src/generic/dirctrlg.cpp
extern bool wxIsDriveAvailable(const wxString& dirName); extern bool wxIsDriveAvailable(const wxString& dirName);
#endif #endif
@@ -872,7 +872,7 @@ wxGenericFileDialog::wxGenericFileDialog(wxWindow *parent,
m_filterExtension = wxEmptyString; m_filterExtension = wxEmptyString;
// layout // layout
bool is_pda = (wxSystemSettings::GetScreenType() <= wxSYS_SCREEN_PDA); bool is_pda = (wxSystemSettings::GetScreenType() <= wxSYS_SCREEN_PDA);
wxBoxSizer *mainsizer = new wxBoxSizer( wxVERTICAL ); wxBoxSizer *mainsizer = new wxBoxSizer( wxVERTICAL );

View File

@@ -22,3 +22,17 @@ wxCursor *g_globalCursor = NULL;
wxNativeFontInfo wxNullNativeFontInfo; wxNativeFontInfo wxNullNativeFontInfo;
//
// Class names
//
const wxChar* wxFrameClassName = wxT("wxFrameClass");
const wxChar* wxFrameClassNameNoRedraw = wxT("wxFrameClassNR");
const wxChar* wxMDIFrameClassName = wxT("wxMDIFrameClass");
const wxChar* wxMDIFrameClassNameNoRedraw = wxT("wxMDIFrameClassNR");
const wxChar* wxMDIChildFrameClassName = wxT("wxMDIChildFrameClass");
const wxChar* wxMDIChildFrameClassNameNoRedraw = wxT("wxMDIChildFrameClassNR");
const wxChar* wxPanelClassName = wxT("wxPanelClass");
const wxChar* wxPanelClassNameNR = wxT("wxPanelClassNR");
const wxChar* wxCanvasClassName = wxT("wxCanvasClass");
const wxChar* wxCanvasClassNameNR = wxT("wxCanvasClassNR");

View File

@@ -134,7 +134,6 @@ GENERICOBJS= \
..\generic\$D\textdlgg.obj \ ..\generic\$D\textdlgg.obj \
..\generic\$D\tipdlg.obj \ ..\generic\$D\tipdlg.obj \
..\generic\$D\tipwin.obj \ ..\generic\$D\tipwin.obj \
..\generic\$D\treelay.obj \
..\generic\$D\wizard.obj ..\generic\$D\wizard.obj
# ..\generic\$D\gridg.obj \ # ..\generic\$D\gridg.obj \
@@ -179,7 +178,6 @@ GENLIBOBJS= \
textdlgg.obj \ textdlgg.obj \
tipdlg.obj \ tipdlg.obj \
tipwin.obj \ tipwin.obj \
treelay.obj \
wizard.obj wizard.obj
# These are generic things that don't need to be compiled on PM, # These are generic things that don't need to be compiled on PM,
@@ -188,6 +186,7 @@ NONESSENTIALOBJS= \
..\generic\$D\msgdlgg.obj ..\generic\$D\msgdlgg.obj
COMMONOBJS = \ COMMONOBJS = \
..\common\$D\accesscmn.obj \
..\common\$D\artprov.obj \ ..\common\$D\artprov.obj \
..\common\$D\artstd.obj \ ..\common\$D\artstd.obj \
..\common\$D\appcmn.obj \ ..\common\$D\appcmn.obj \
@@ -202,14 +201,9 @@ COMMONOBJS = \
..\common\$D\cshelp.obj \ ..\common\$D\cshelp.obj \
..\common\$D\ctrlcmn.obj \ ..\common\$D\ctrlcmn.obj \
..\common\$D\ctrlsub.obj \ ..\common\$D\ctrlsub.obj \
..\common\$D\datacmn.obj \
..\common\$D\datetime.obj \ ..\common\$D\datetime.obj \
..\common\$D\datstrm.obj \ ..\common\$D\datstrm.obj \
!if "$(WXMAKINGDLL)" != "1"
# don't have an ODBC database
..\common\$D\db.obj \
..\common\$D\dbgrid.obj \
..\common\$D\dbtable.obj \
!endif
..\common\$D\dcbase.obj \ ..\common\$D\dcbase.obj \
..\common\$D\dircmn.obj \ ..\common\$D\dircmn.obj \
..\common\$D\dlgcmn.obj \ ..\common\$D\dlgcmn.obj \
@@ -217,6 +211,7 @@ COMMONOBJS = \
..\common\$D\dobjcmn.obj \ ..\common\$D\dobjcmn.obj \
..\common\$D\docmdi.obj \ ..\common\$D\docmdi.obj \
..\common\$D\docview.obj \ ..\common\$D\docview.obj \
..\common\$D\dpycmn.obj \
..\common\$D\dseldlg.obj \ ..\common\$D\dseldlg.obj \
..\common\$D\dynarray.obj \ ..\common\$D\dynarray.obj \
..\common\$D\dynlib.obj \ ..\common\$D\dynlib.obj \
@@ -276,10 +271,6 @@ COMMONOBJS = \
..\common\$D\mstream.obj \ ..\common\$D\mstream.obj \
..\common\$D\nbkbase.obj \ ..\common\$D\nbkbase.obj \
..\common\$D\object.obj \ ..\common\$D\object.obj \
!if "$(WXMAKINGDLL)" != "1"
# don't have an ODBC database
..\common\$D\odbc.obj \
!endif
..\common\$D\paper.obj \ ..\common\$D\paper.obj \
..\common\$D\popupcmn.obj \ ..\common\$D\popupcmn.obj \
..\common\$D\prntbase.obj \ ..\common\$D\prntbase.obj \
@@ -288,7 +279,7 @@ COMMONOBJS = \
..\common\$D\quantize.obj \ ..\common\$D\quantize.obj \
..\common\$D\radiocmn.obj \ ..\common\$D\radiocmn.obj \
..\common\$D\regex.obj \ ..\common\$D\regex.obj \
..\common\$D\resource.obj \ ..\common\$D\rgncmn.obj \
..\common\$D\sckaddr.obj \ ..\common\$D\sckaddr.obj \
..\common\$D\sckfile.obj \ ..\common\$D\sckfile.obj \
..\common\$D\sckipc.obj \ ..\common\$D\sckipc.obj \
@@ -316,17 +307,15 @@ COMMONOBJS = \
..\common\$D\valgen.obj \ ..\common\$D\valgen.obj \
..\common\$D\validate.obj \ ..\common\$D\validate.obj \
..\common\$D\valtext.obj \ ..\common\$D\valtext.obj \
..\common\$D\variant.obj \
..\common\$D\wfstream.obj \ ..\common\$D\wfstream.obj \
..\common\$D\wincmn.obj \ ..\common\$D\wincmn.obj \
..\common\$D\wxchar.obj \ ..\common\$D\wxchar.obj \
..\common\$D\wxexpr.obj \
..\common\$D\xpmdecod.obj \ ..\common\$D\xpmdecod.obj \
..\common\$D\y_tab.obj \
..\common\$D\zipstrm.obj \ ..\common\$D\zipstrm.obj \
..\common\$D\zstream.obj ..\common\$D\zstream.obj
COMLIBOBJS1 = \ COMLIBOBJS1 = \
accesscmn.obj \
artprov.obj \ artprov.obj \
artstd.obj \ artstd.obj \
appcmn.obj \ appcmn.obj \
@@ -341,11 +330,9 @@ COMLIBOBJS1 = \
cshelp.obj \ cshelp.obj \
ctrlcmn.obj \ ctrlcmn.obj \
ctrlsub.obj \ ctrlsub.obj \
datacmn.obj \
datetime.obj \ datetime.obj \
datstrm.obj \ datstrm.obj \
db.obj \
dbgrid.obj \
dbtable.obj \
dcbase.obj \ dcbase.obj \
dircmn.obj \ dircmn.obj \
dndcmn.obj \ dndcmn.obj \
@@ -354,6 +341,7 @@ COMLIBOBJS1 = \
docmdi.obj \ docmdi.obj \
docview.obj \ docview.obj \
dseldlg.obj \ dseldlg.obj \
dpycmn.obj \
dynarray.obj \ dynarray.obj \
dynlib.obj \ dynlib.obj \
dynload.obj \ dynload.obj \
@@ -369,7 +357,7 @@ COMLIBOBJS1 = \
filename.obj \ filename.obj \
filesys.obj \ filesys.obj \
fontcmn.obj \ fontcmn.obj \
fontmap.obj fontmap.obj \
COMLIBOBJS2 = \ COMLIBOBJS2 = \
framecmn.obj \ framecmn.obj \
@@ -416,7 +404,6 @@ COMLIBOBJS2 = \
object.obj object.obj
COMLIBOBJS3 = \ COMLIBOBJS3 = \
odbc.obj \
paper.obj \ paper.obj \
popupcmn.obj \ popupcmn.obj \
prntbase.obj \ prntbase.obj \
@@ -425,7 +412,7 @@ COMLIBOBJS3 = \
quantize.obj \ quantize.obj \
radiocmn.obj \ radiocmn.obj \
regex.obj \ regex.obj \
resource.obj \ rgncmn.obj \
sckaddr.obj \ sckaddr.obj \
sckfile.obj \ sckfile.obj \
sckipc.obj \ sckipc.obj \
@@ -453,15 +440,12 @@ COMLIBOBJS3 = \
valgen.obj \ valgen.obj \
validate.obj \ validate.obj \
valtext.obj \ valtext.obj \
variant.obj \
wfstream.obj \ wfstream.obj \
wincmn.obj \ wincmn.obj \
wxchar.obj \ wxchar.obj \
wxexpr.obj \
xpmdecod.obj xpmdecod.obj
COMLIBOBJS4 = \ COMLIBOBJS4 = \
y_tab.obj \
zipstrm.obj \ zipstrm.obj \
zstream.obj zstream.obj
@@ -533,7 +517,6 @@ OS2OBJS = \
..\os2\$D\statline.obj \ ..\os2\$D\statline.obj \
..\os2\$D\stattext.obj \ ..\os2\$D\stattext.obj \
..\os2\$D\tabctrl.obj \ ..\os2\$D\tabctrl.obj \
..\os2\$D\taskbar.obj \
..\os2\$D\textctrl.obj \ ..\os2\$D\textctrl.obj \
..\os2\$D\thread.obj \ ..\os2\$D\thread.obj \
..\os2\$D\timer.obj \ ..\os2\$D\timer.obj \
@@ -616,7 +599,6 @@ OS2LIBOBJS2 = \
stattext.obj \ stattext.obj \
statline.obj \ statline.obj \
tabctrl.obj \ tabctrl.obj \
taskbar.obj \
textctrl.obj \ textctrl.obj \
thread.obj \ thread.obj \
timer.obj \ timer.obj \
@@ -699,6 +681,7 @@ $D\dummydll.obj: dummydll.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\w
icc $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummydll.obj /Tp dummydll.cpp icc $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummydll.obj /Tp dummydll.cpp
$(COMLIBOBJS1): $(COMLIBOBJS1):
copy ..\common\$D\accesscmn.obj
copy ..\common\$D\artprov.obj copy ..\common\$D\artprov.obj
copy ..\common\$D\artstd.obj copy ..\common\$D\artstd.obj
copy ..\common\$D\appcmn.obj copy ..\common\$D\appcmn.obj
@@ -713,11 +696,9 @@ $(COMLIBOBJS1):
copy ..\common\$D\cshelp.obj copy ..\common\$D\cshelp.obj
copy ..\common\$D\ctrlcmn.obj copy ..\common\$D\ctrlcmn.obj
copy ..\common\$D\ctrlsub.obj copy ..\common\$D\ctrlsub.obj
copy ..\common\$D\datacmn.obj
copy ..\common\$D\datetime.obj copy ..\common\$D\datetime.obj
copy ..\common\$D\datstrm.obj copy ..\common\$D\datstrm.obj
copy ..\common\$D\db.obj
copy ..\common\$D\dbgrid.obj
copy ..\common\$D\dbtable.obj
copy ..\common\$D\dcbase.obj copy ..\common\$D\dcbase.obj
copy ..\common\$D\dlgcmn.obj copy ..\common\$D\dlgcmn.obj
copy ..\common\$D\dircmn.obj copy ..\common\$D\dircmn.obj
@@ -725,6 +706,7 @@ $(COMLIBOBJS1):
copy ..\common\$D\dobjcmn.obj copy ..\common\$D\dobjcmn.obj
copy ..\common\$D\docmdi.obj copy ..\common\$D\docmdi.obj
copy ..\common\$D\docview.obj copy ..\common\$D\docview.obj
copy ..\common\$D\dpycmn.obj
copy ..\common\$D\dseldlg.obj copy ..\common\$D\dseldlg.obj
copy ..\common\$D\dynarray.obj copy ..\common\$D\dynarray.obj
copy ..\common\$D\dynlib.obj copy ..\common\$D\dynlib.obj
@@ -788,7 +770,6 @@ $(COMLIBOBJS2):
copy ..\common\$D\object.obj copy ..\common\$D\object.obj
$(COMLIBOBJS3): $(COMLIBOBJS3):
copy ..\common\$D\odbc.obj
copy ..\common\$D\paper.obj copy ..\common\$D\paper.obj
copy ..\common\$D\popupcmn.obj copy ..\common\$D\popupcmn.obj
copy ..\common\$D\prntbase.obj copy ..\common\$D\prntbase.obj
@@ -797,7 +778,7 @@ $(COMLIBOBJS3):
copy ..\common\$D\quantize.obj copy ..\common\$D\quantize.obj
copy ..\common\$D\radiocmn.obj copy ..\common\$D\radiocmn.obj
copy ..\common\$D\regex.obj copy ..\common\$D\regex.obj
copy ..\common\$D\resource.obj copy ..\common\$D\rgncmn.obj
copy ..\common\$D\sckaddr.obj copy ..\common\$D\sckaddr.obj
copy ..\common\$D\sckfile.obj copy ..\common\$D\sckfile.obj
copy ..\common\$D\sckipc.obj copy ..\common\$D\sckipc.obj
@@ -825,15 +806,12 @@ $(COMLIBOBJS3):
copy ..\common\$D\valgen.obj copy ..\common\$D\valgen.obj
copy ..\common\$D\validate.obj copy ..\common\$D\validate.obj
copy ..\common\$D\valtext.obj copy ..\common\$D\valtext.obj
copy ..\common\$D\variant.obj
copy ..\common\$D\wfstream.obj copy ..\common\$D\wfstream.obj
copy ..\common\$D\wincmn.obj copy ..\common\$D\wincmn.obj
copy ..\common\$D\wxchar.obj copy ..\common\$D\wxchar.obj
copy ..\common\$D\wxexpr.obj
copy ..\common\$D\xpmdecod.obj copy ..\common\$D\xpmdecod.obj
$(COMLIBOBJS4): $(COMLIBOBJS4):
copy ..\common\$D\y_tab.obj
copy ..\common\$D\zipstrm.obj copy ..\common\$D\zipstrm.obj
copy ..\common\$D\zstream.obj copy ..\common\$D\zstream.obj
@@ -876,7 +854,6 @@ $(GENLIBOBJS):
copy ..\generic\$D\textdlgg.obj copy ..\generic\$D\textdlgg.obj
copy ..\generic\$D\tipdlg.obj copy ..\generic\$D\tipdlg.obj
copy ..\generic\$D\tipwin.obj copy ..\generic\$D\tipwin.obj
copy ..\generic\$D\treelay.obj
copy ..\generic\$D\wizard.obj copy ..\generic\$D\wizard.obj
$(HTMLLIBOBJS): $(HTMLLIBOBJS):
@@ -971,7 +948,6 @@ $(OS2LIBOBJS2):
copy ..\os2\$D\statline.obj copy ..\os2\$D\statline.obj
copy ..\os2\$D\stattext.obj copy ..\os2\$D\stattext.obj
copy ..\os2\$D\tabctrl.obj copy ..\os2\$D\tabctrl.obj
copy ..\os2\$D\taskbar.obj
copy ..\os2\$D\textctrl.obj copy ..\os2\$D\textctrl.obj
copy ..\os2\$D\thread.obj copy ..\os2\$D\thread.obj
copy ..\os2\$D\timer.obj copy ..\os2\$D\timer.obj
@@ -1130,17 +1106,6 @@ $(WXDIR)\lib\wx25.dll: $(OBJECTS)
$(CPPFLAGS2) /Fo$@ $(COMMDIR)\extended.c $(CPPFLAGS2) /Fo$@ $(COMMDIR)\extended.c
<< <<
..\common\$D\y_tab.obj: ..\common\y_tab.c ..\common\lex_yy.c
icc @<<
$(CPPFLAGS2) /DUSE_DEFINE /DYY_USE_PROTOS /Fo$@ ..\common\y_tab.c
<<
..\common\y_tab.c: ..\common\dosyacc.c
copy "..\common"\dosyacc.c "..\common"\y_tab.c
..\common\lex_yy.c: ..\common\doslex.c
copy "..\common"\doslex.c "..\common"\lex_yy.c
$(OBJECTS): $(WXDIR)/include/wx/setup.h $(OBJECTS): $(WXDIR)/include/wx/setup.h
..\common\$D\unzip.obj: ..\common\unzip.c ..\common\$D\unzip.obj: ..\common\unzip.c
@@ -1202,8 +1167,6 @@ clean: $(PERIPH_CLEAN_TARGET) clean_png clean_zlib clean_jpeg clean_tiff
!if "$(WXMAKINGDLL)" == "1" !if "$(WXMAKINGDLL)" == "1"
erase /N ..\..\lib\wx25.lib erase /N ..\..\lib\wx25.lib
!endif !endif
erase /N $(COMMDIR)\y_tab.c
erase /N $(COMMDIR)\lex_yy.c
cleanall: clean cleanall: clean

File diff suppressed because it is too large Load Diff