Committing in .

Modified Files:
 	wxWindows/setup.h_vms wxWindows/src/common/descrip.mms
 	wxWindows/src/common/mimecmn.cpp
 	wxWindows/src/generic/descrip.mms
 	wxWindows/src/gtk/descrip.mms wxWindows/src/unix/mimetype.cpp

  Updated compile support for OpenVMS

 ----------------------------------------------------------------------


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jouk Jansen 2001-05-01 14:46:48 +00:00
parent d9a4f62064
commit 2900bd1c81
7 changed files with 39 additions and 16 deletions

View File

@ -620,6 +620,11 @@
*/ */
#define wxUSE_ZIPSTREAM 1 #define wxUSE_ZIPSTREAM 1
/*
* wxImage support
*/
#define wxUSE_IMAGE 1
/* /*
* GIF image format support * GIF image format support
*/ */
@ -635,6 +640,11 @@
*/ */
#define wxUSE_PNM 1 #define wxUSE_PNM 1
/*
* XPM image format support
*/
#define wxUSE_XPM 1
/* /*
* Disable this if your compiler can't cope * Disable this if your compiler can't cope
* with omission of prototype parameters. * with omission of prototype parameters.
@ -665,6 +675,9 @@
* present */ * present */
#define WX_GMTOFF_IN_TM #define WX_GMTOFF_IN_TM
/* iconv()'s 2nd argument is char ** and not const char ** */
#define WX_ICONV_TAKES_CHAR 1
/* Define if you have pw_gecos field in struct passwd */ /* Define if you have pw_gecos field in struct passwd */
#undef HAVE_PW_GECOS #undef HAVE_PW_GECOS

View File

@ -89,6 +89,7 @@ OBJECTS1=framecmn.obj,\
imagpng.obj,\ imagpng.obj,\
imagpnm.obj,\ imagpnm.obj,\
imagtiff.obj,\ imagtiff.obj,\
imagxpm.obj,\
intl.obj,\ intl.obj,\
ipcbase.obj,\ ipcbase.obj,\
layout.obj,\ layout.obj,\
@ -136,6 +137,7 @@ OBJECTS1=framecmn.obj,\
wincmn.obj,\ wincmn.obj,\
wxchar.obj,\ wxchar.obj,\
wxexpr.obj,\ wxexpr.obj,\
xpmdecod.obj,\
zipstrm.obj,\ zipstrm.obj,\
zstream.obj zstream.obj
@ -190,6 +192,7 @@ SOURCES = \
imagpng.cpp,\ imagpng.cpp,\
imagpnm.cpp,\ imagpnm.cpp,\
imagtiff.cpp,\ imagtiff.cpp,\
imagxpm.cpp,\
intl.cpp,\ intl.cpp,\
ipcbase.cpp,\ ipcbase.cpp,\
layout.cpp,\ layout.cpp,\
@ -237,6 +240,7 @@ SOURCES = \
wincmn.cpp,\ wincmn.cpp,\
wxchar.cpp,\ wxchar.cpp,\
wxexpr.cpp,\ wxexpr.cpp,\
xpmdecod.cpp,\
zipstrm.cpp,\ zipstrm.cpp,\
zstream.cpp zstream.cpp
@ -321,6 +325,7 @@ imagpcx.obj : imagpcx.cpp
imagpng.obj : imagpng.cpp imagpng.obj : imagpng.cpp
imagpnm.obj : imagpnm.cpp imagpnm.obj : imagpnm.cpp
imagtiff.obj : imagtiff.cpp imagtiff.obj : imagtiff.cpp
imagxpm.obj : imagxpm.cpp
intl.obj : intl.cpp intl.obj : intl.cpp
ipcbase.obj : ipcbase.cpp ipcbase.obj : ipcbase.cpp
layout.obj : layout.cpp layout.obj : layout.cpp
@ -368,5 +373,6 @@ wfstream.obj : wfstream.cpp
wincmn.obj : wincmn.cpp wincmn.obj : wincmn.cpp
wxchar.obj : wxchar.cpp wxchar.obj : wxchar.cpp
wxexpr.obj : wxexpr.cpp wxexpr.obj : wxexpr.cpp
xpmdecod.obj : xpmdecod.cpp
zipstrm.obj : zipstrm.cpp zipstrm.obj : zipstrm.cpp
zstream.obj : zstream.cpp zstream.obj : zstream.cpp

View File

@ -351,7 +351,7 @@ size_t wxFileType::GetAllCommands(wxArrayString *verbs,
if ( commands ) if ( commands )
commands->Clear(); commands->Clear();
#if defined (__WXMSW__) || (__UNIX__) #if defined (__WXMSW__) || defined(__UNIX__)
return m_impl->GetAllCommands(verbs, commands, params); return m_impl->GetAllCommands(verbs, commands, params);
#else // !__WXMSW__ || Unix #else // !__WXMSW__ || Unix
// we don't know how to retrieve all commands, so just try the 2 we know // we don't know how to retrieve all commands, so just try the 2 we know
@ -385,21 +385,19 @@ bool wxFileType::Unassociate()
{ {
#if defined(__WXMSW__) #if defined(__WXMSW__)
return m_impl->Unassociate(); return m_impl->Unassociate();
#endif #elif defined(__UNIX__)
#if defined(__UNIX__)
return m_impl->Unassociate(this); return m_impl->Unassociate(this);
#endif #else
wxFAIL_MSG( _T("not implemented") ); // TODO wxFAIL_MSG( _T("not implemented") ); // TODO
return FALSE; return FALSE;
#endif
} }
bool wxFileType::SetCommand(const wxString& cmd, const wxString& verb, bool wxFileType::SetCommand(const wxString& cmd, const wxString& verb,
bool overwriteprompt) bool overwriteprompt)
{ {
#if defined (__WXMSW__) || (__UNIX__) #if defined (__WXMSW__) || defined(__UNIX__)
return m_impl->SetCommand(cmd, verb, overwriteprompt); return m_impl->SetCommand(cmd, verb, overwriteprompt);
#else #else
wxFAIL_MSG(_T("not implemented")); wxFAIL_MSG(_T("not implemented"));
@ -419,7 +417,7 @@ bool wxFileType::SetDefaultIcon(const wxString& cmd, int index)
#endif #endif
wxCHECK_MSG( !sTmp.empty(), FALSE, _T("need the icon file") ); wxCHECK_MSG( !sTmp.empty(), FALSE, _T("need the icon file") );
#if defined (__WXMSW__) || (__UNIX__) #if defined (__WXMSW__) || defined(__UNIX__)
return m_impl->SetDefaultIcon (cmd, index); return m_impl->SetDefaultIcon (cmd, index);
#else #else
wxFAIL_MSG(_T("not implemented")); wxFAIL_MSG(_T("not implemented"));

View File

@ -93,6 +93,7 @@ SOURCES = \
msgdlgg.cpp,\ msgdlgg.cpp,\
notebook.cpp,\ notebook.cpp,\
numdlgg.cpp,\ numdlgg.cpp,\
paletteg.cpp,\
panelg.cpp,\ panelg.cpp,\
printps.cpp,\ printps.cpp,\
prntdlgg.cpp,\ prntdlgg.cpp,\
@ -117,8 +118,7 @@ SOURCES = \
OBJECTS0=,statline.obj,\ OBJECTS0=,statline.obj,\
notebook.obj notebook.obj
.else .else
OBJECTS0=,filedlgg.obj OBJECTS0=,filedlgg.obj,paletteg.obj
.endif .endif
all : $(SOURCES) all : $(SOURCES)
@ -153,6 +153,7 @@ logg.obj : logg.cpp
msgdlgg.obj : msgdlgg.cpp msgdlgg.obj : msgdlgg.cpp
notebook.obj : notebook.cpp notebook.obj : notebook.cpp
numdlgg.obj : numdlgg.cpp numdlgg.obj : numdlgg.cpp
paletteg.obj : paletteg.cpp
panelg.obj : panelg.cpp panelg.obj : panelg.cpp
printps.obj : printps.cpp printps.obj : printps.cpp
prntdlgg.obj : prntdlgg.cpp prntdlgg.obj : prntdlgg.cpp

View File

@ -56,12 +56,12 @@ OBJECTS = \
menu.obj,\ menu.obj,\
minifram.obj,\ minifram.obj,\
notebook.obj,\ notebook.obj,\
palette.obj,\
pen.obj,\ pen.obj,\
radiobox.obj,\ radiobox.obj,\
radiobut.obj,\ radiobut.obj,\
region.obj,\ region.obj,\
scrolbar.obj,\ scrolbar.obj,\
scrolwin.obj,\
settings.obj,\ settings.obj,\
slider.obj,\ slider.obj,\
spinbutt.obj,\ spinbutt.obj,\
@ -117,12 +117,12 @@ SOURCES =\
menu.cpp,\ menu.cpp,\
minifram.cpp,\ minifram.cpp,\
notebook.cpp,\ notebook.cpp,\
palette.cpp,\
pen.cpp,\ pen.cpp,\
radiobox.cpp,\ radiobox.cpp,\
radiobut.cpp,\ radiobut.cpp,\
region.cpp,\ region.cpp,\
scrolbar.cpp,\ scrolbar.cpp,\
scrolwin.cpp,\
settings.cpp,\ settings.cpp,\
slider.cpp,\ slider.cpp,\
spinbutt.cpp,\ spinbutt.cpp,\
@ -181,12 +181,12 @@ mdi.obj : mdi.cpp
menu.obj : menu.cpp menu.obj : menu.cpp
minifram.obj : minifram.cpp minifram.obj : minifram.cpp
notebook.obj : notebook.cpp notebook.obj : notebook.cpp
palette.obj : palette.cpp
pen.obj : pen.cpp pen.obj : pen.cpp
radiobox.obj : radiobox.cpp radiobox.obj : radiobox.cpp
radiobut.obj : radiobut.cpp radiobut.obj : radiobut.cpp
region.obj : region.cpp region.obj : region.cpp
scrolbar.obj : scrolbar.cpp scrolbar.obj : scrolbar.cpp
scrolwin.obj : scrolwin.cpp
settings.obj : settings.cpp settings.obj : settings.cpp
slider.obj : slider.cpp slider.obj : slider.cpp
spinbutt.obj : spinbutt.cpp spinbutt.obj : spinbutt.cpp

View File

@ -56,12 +56,12 @@ OBJECTS = \
menu.obj,\ menu.obj,\
minifram.obj,\ minifram.obj,\
notebook.obj,\ notebook.obj,\
palette.obj,\
pen.obj,\ pen.obj,\
radiobox.obj,\ radiobox.obj,\
radiobut.obj,\ radiobut.obj,\
region.obj,\ region.obj,\
scrolbar.obj,\ scrolbar.obj,\
scrolwin.obj,\
settings.obj,\ settings.obj,\
slider.obj,\ slider.obj,\
spinbutt.obj,\ spinbutt.obj,\
@ -117,12 +117,12 @@ SOURCES =\
menu.cpp,\ menu.cpp,\
minifram.cpp,\ minifram.cpp,\
notebook.cpp,\ notebook.cpp,\
palette.cpp,\
pen.cpp,\ pen.cpp,\
radiobox.cpp,\ radiobox.cpp,\
radiobut.cpp,\ radiobut.cpp,\
region.cpp,\ region.cpp,\
scrolbar.cpp,\ scrolbar.cpp,\
scrolwin.cpp,\
settings.cpp,\ settings.cpp,\
slider.cpp,\ slider.cpp,\
spinbutt.cpp,\ spinbutt.cpp,\
@ -181,12 +181,12 @@ mdi.obj : mdi.cpp
menu.obj : menu.cpp menu.obj : menu.cpp
minifram.obj : minifram.cpp minifram.obj : minifram.cpp
notebook.obj : notebook.cpp notebook.obj : notebook.cpp
palette.obj : palette.cpp
pen.obj : pen.cpp pen.obj : pen.cpp
radiobox.obj : radiobox.cpp radiobox.obj : radiobox.cpp
radiobut.obj : radiobut.cpp radiobut.obj : radiobut.cpp
region.obj : region.cpp region.obj : region.cpp
scrolbar.obj : scrolbar.cpp scrolbar.obj : scrolbar.cpp
scrolwin.obj : scrolwin.cpp
settings.obj : settings.cpp settings.obj : settings.cpp
slider.obj : slider.cpp slider.obj : slider.cpp
spinbutt.obj : spinbutt.cpp spinbutt.obj : spinbutt.cpp

View File

@ -79,6 +79,11 @@
// other standard headers // other standard headers
#include <ctype.h> #include <ctype.h>
#ifdef __VMS
/* silence warnings for comparing unsigned int's <0 */
# pragma message disable unscomzer
#endif
// this is a class to extend wxArrayString... // this is a class to extend wxArrayString...
class wxMimeArrayString : public wxArrayString class wxMimeArrayString : public wxArrayString
{ {