Doc & Symantec C++ fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 1999-01-07 08:43:47 +00:00
parent 06cfab1738
commit 2432b92dd7
97 changed files with 576 additions and 326 deletions

View File

@ -1,4 +1,6 @@
src/make_cw.mcp src/make_cw.mcp
src/common/cwy_tab.c
src/common/cwlex_yy.c
include/wx_cw.pch include/wx_cw.pch
include/wx_cw.pch++ include/wx_cw.pch++
include/wx_cw_d.pch include/wx_cw_d.pch

View File

@ -17,7 +17,7 @@ functions that take a wxCloseEvent argument.
event applies to wxFrame and wxDialog classes.} event applies to wxFrame and wxDialog classes.}
\twocolitem{{\bf EVT\_QUERY\_END\_SESSION(func)}}{Process a query end session event, supplying the member function. \twocolitem{{\bf EVT\_QUERY\_END\_SESSION(func)}}{Process a query end session event, supplying the member function.
This event applies to wxApp only.} This event applies to wxApp only.}
\twocolitem{{\bf EVT\__END\_SESSION(func)}}{Process an end session event, supplying the member function. \twocolitem{{\bf EVT\_END\_SESSION(func)}}{Process an end session event, supplying the member function.
This event applies to wxApp only.} This event applies to wxApp only.}
\end{twocollist}% \end{twocollist}%

View File

@ -31,7 +31,7 @@ typically correspond to the extension ".txt", but may as well be associated with
\wxheading{Required headers} \wxheading{Required headers}
#include <wx/mimetype.h> <wx/mimetype.h>
\wxheading{Derived from} \wxheading{Derived from}
@ -64,10 +64,10 @@ function, for example:
\begin{verbatim} \begin{verbatim}
// provide the message parameters for the MIME type manager // provide the message parameters for the MIME type manager
class MailMessageParamaters : public wxFileType::MessageParameters class MailMessageParameters : public wxFileType::MessageParameters
{ {
public: public:
MailMessageParamaters(const wxString& filename, MailMessageParameters(const wxString& filename,
const wxString& mimetype) const wxString& mimetype)
: wxFileType::MessageParameters(filename, mimetype) : wxFileType::MessageParameters(filename, mimetype)
{ {
@ -85,7 +85,7 @@ public:
\end{verbatim} \end{verbatim}
Now you only need to create an object of this class and pass it to, for example, Now you only need to create an object of this class and pass it to, for example,
\helpref{GetOpenCommand}{wxfiletypegetopencommand} like this: \rtfsp\helpref{GetOpenCommand}{wxfiletypegetopencommand} like this:
\begin{verbatim} \begin{verbatim}
wxString command; wxString command;
@ -99,7 +99,6 @@ else
{ {
// we don't know how to handle such files... // we don't know how to handle such files...
} }
\end{verbatim} \end{verbatim}
{\bf Windows:} As only the file name is used by the program associated with the {\bf Windows:} As only the file name is used by the program associated with the
@ -107,25 +106,28 @@ given extension anyhow (but no other message parameters), there is no need to
ever derive from MessageParameters class for a Windows-only program. ever derive from MessageParameters class for a Windows-only program.
\membersection{wxFileType::wxFileType}\label{wxfiletypewxfiletype} \membersection{wxFileType::wxFileType}\label{wxfiletypewxfiletype}
\func{}{wxFileType}{\void} \func{}{wxFileType}{\void}
The default constructor is private because you should never create objects of The default constructor is private because you should never create objects of
this type: they are only returned by this type: they are only returned by \helpref{wxMimeTypesManager}{wxmimetypesmanager} methods.
\helpref{wxMimeTypesManager}{wxmimetypesmanager} methods.
\membersection{wxFileType::\destruct{wxFileType}}\label{wxfiletypedtor} \membersection{wxFileType::\destruct{wxFileType}}\label{wxfiletypedtor}
\func{}{\destruct{wxFileType}{\void}
\func{}{\destruct{wxFileType}}{\void}
The destructor of this class is not virtual, so it should not be derived from. The destructor of this class is not virtual, so it should not be derived from.
\membersection{wxFileType::GetMimeType}\label{wxfiletypegetmimetype} \membersection{wxFileType::GetMimeType}\label{wxfiletypegetmimetype}
\func{bool}{GetMimeType}{\param{wxString *}{mimeType}}
\func{bool}{GetMimeType}{\param{wxString*}{ mimeType}}
If the function returns TRUE, the string pointed to by {\it mimeType} is filled If the function returns TRUE, the string pointed to by {\it mimeType} is filled
with full MIME type specification for this file type: for example, "text/plain". with full MIME type specification for this file type: for example, "text/plain".
\membersection{wxFileType::GetExtensions}\label{wxfiletypegetextensions} \membersection{wxFileType::GetExtensions}\label{wxfiletypegetextensions}
\func{bool}{GetExtensions}{\param{wxArrayString \&}{extensions}}
\func{bool}{GetExtensions}{\param{wxArrayString\&}{ extensions}}
If the function returns TRUE, the array {\it extensions} is filled If the function returns TRUE, the array {\it extensions} is filled
with all extensions associated with this file type: for example, it may with all extensions associated with this file type: for example, it may
@ -139,7 +141,8 @@ by \helpref{GetFileTypeFromExtension}{wxmimetypesmanagergetfiletypefromextension
function in the first place. function in the first place.
\membersection{wxFileType::GetIcon}\label{wxfiletypegeticon} \membersection{wxFileType::GetIcon}\label{wxfiletypegeticon}
\func{bool}{GetIcon}{\param{wxIcon *}{icon}}
\func{bool}{GetIcon}{\param{wxIcon*}{ icon}}
If the function returns TRUE, the icon associated with this file type will be If the function returns TRUE, the icon associated with this file type will be
created and assigned to the {\it icon} parameter. created and assigned to the {\it icon} parameter.
@ -147,14 +150,16 @@ created and assigned to the {\it icon} parameter.
{\bf Unix:} This function always returns FALSE under Unix. {\bf Unix:} This function always returns FALSE under Unix.
\membersection{wxFileType::GetDescription}\label{wxfiletypegetdescription} \membersection{wxFileType::GetDescription}\label{wxfiletypegetdescription}
\func{bool}{GetDescription}{\param{wxString *}{desc}}
\func{bool}{GetDescription}{\param{wxString*}{ desc}}
If the function returns TRUE, the string pointed to by {\it desc} is filled If the function returns TRUE, the string pointed to by {\it desc} is filled
with a brief description for this file type: for example, "text document" for with a brief description for this file type: for example, "text document" for
the "text/plain" MIME type. the "text/plain" MIME type.
\membersection{wxFileType::GetOpenCommand}\label{wxfiletypegetopencommand} \membersection{wxFileType::GetOpenCommand}\label{wxfiletypegetopencommand}
\func{bool}{GetOpenCommand}{\param{wxString *}{command},\param{MessageParameters \&}{params}}
\func{bool}{GetOpenCommand}{\param{wxString*}{ command}, \param{MessageParameters\&}{ params}}
If the function returns TRUE, the string pointed to by {\it command} is filled If the function returns TRUE, the string pointed to by {\it command} is filled
with the command which must be executed (see \helpref{wxExecute}{wxexecute}) in with the command which must be executed (see \helpref{wxExecute}{wxexecute}) in
@ -162,7 +167,8 @@ order to open the file of the given type. The name of the file is
retrieved from \helpref{MessageParameters}{wxfiletypemessageparameters} class. retrieved from \helpref{MessageParameters}{wxfiletypemessageparameters} class.
\membersection{wxFileType::GetPrintCommand}\label{wxfiletypegetprintcommand} \membersection{wxFileType::GetPrintCommand}\label{wxfiletypegetprintcommand}
\func{bool}{GetPrintCommand}{\param{wxString *}{command},\param{MessageParameters \&}{params}}
\func{bool}{GetPrintCommand}{\param{wxString*}{ command},\param{MessageParameters\&}{ params}}
If the function returns TRUE, the string pointed to by {\it command} is filled If the function returns TRUE, the string pointed to by {\it command} is filled
with the command which must be executed (see \helpref{wxExecute}{wxexecute}) in with the command which must be executed (see \helpref{wxExecute}{wxexecute}) in
@ -170,13 +176,15 @@ order to print the file of the given type. The name of the file is
retrieved from \helpref{MessageParameters}{wxfiletypemessageparameters} class. retrieved from \helpref{MessageParameters}{wxfiletypemessageparameters} class.
\membersection{wxFileType::ExpandCommand}\label{wxfiletypeexpandcommand} \membersection{wxFileType::ExpandCommand}\label{wxfiletypeexpandcommand}
\func{static wxString}{ExpandCommand}{\param{const wxString \&}{command},\param{MessageParameters \&}{params}}
\func{static wxString}{ExpandCommand}{\param{const wxString\&}{ command}, \param{MessageParameters\&}{ params}}
This function is primarly intended for GetOpenCommand and GetPrintCommand This function is primarly intended for GetOpenCommand and GetPrintCommand
usage but may be also used by the application directly if, for example, you want usage but may be also used by the application directly if, for example, you want
to use some non default command to open the file. to use some non default command to open the file.
The function replaces all occurences of The function replaces all occurences of
\twocolwidtha{7cm} \twocolwidtha{7cm}
\begin{twocollist}\itemsep=0pt \begin{twocollist}\itemsep=0pt
\twocolitem{format specificator}{with} \twocolitem{format specificator}{with}
@ -184,6 +192,7 @@ The function replaces all occurences of
\twocolitem{\%t}{the MIME type} \twocolitem{\%t}{the MIME type}
\twocolitem{\%\{param\}}{the value of the parameter {\it param}} \twocolitem{\%\{param\}}{the value of the parameter {\it param}}
\end{twocollist} \end{twocollist}
using the MessageParameters object you pass to it. using the MessageParameters object you pass to it.
If there is no '\%s' in the command string (and the string is not empty), it is If there is no '\%s' in the command string (and the string is not empty), it is
@ -192,3 +201,4 @@ as "< \%s" were appended to the string.
Unlike all other functions of this class, there is no error return for this Unlike all other functions of this class, there is no error return for this
function. function.

View File

@ -19,7 +19,7 @@ appropriate class is aliased to the name wxHelpController for each platform.
There are currently the following help controller classes defined: There are currently the following help controller classes defined:
\begin{itemize}\itemsep=0 \begin{itemize}\itemsep=0pt
\item wxWinHelpController, for controlling Windows Help. \item wxWinHelpController, for controlling Windows Help.
\item wxExtHelpController, for controlling external browsers under Unix. \item wxExtHelpController, for controlling external browsers under Unix.
The default browser is Netscape Navigator. The default browser is Netscape Navigator.

View File

@ -419,8 +419,6 @@ Returns TRUE if the images were unequal, FALSE otherwise.
\section{\class{wxImageHandler}}\label{wximagehandler} \section{\class{wxImageHandler}}\label{wximagehandler}
\overview{Overview}{wximageoverview}
This is the base class for implementing image file loading/saving, and image creation from data. This is the base class for implementing image file loading/saving, and image creation from data.
It is used within wxImage and is not normally seen by the application. It is used within wxImage and is not normally seen by the application.

View File

@ -11,7 +11,7 @@ wxOwnerDrawn (Windows only)\\
\wxheading{See also} \wxheading{See also}
\helpref{wxMenuBar}{wxmenubar}, \helpref{wxMenu}{wxmenu}, \helpref{wxOwnerDrawn}{wxownerdrawn} \helpref{wxMenuBar}{wxmenubar}, \helpref{wxMenu}{wxmenu}
\latexignore{\rtfignore{\wxheading{Members}}} \latexignore{\rtfignore{\wxheading{Members}}}

View File

@ -24,7 +24,7 @@ but it will support modifying it as well in the future versions.
\wxheading{Required headers} \wxheading{Required headers}
#include <wx/mimetype.h> <wx/mimetype.h>
\wxheading{Derived from} \wxheading{Derived from}
@ -46,18 +46,18 @@ program.
\membersection{Query database} \membersection{Query database}
These functions are the heart of this class: they allow to find a These functions are the heart of this class: they allow to find a \helpref{file type}{wxfiletype} object
\helpref{file type}{wxfiletype} object from either file extension or MIME type. from either file extension or MIME type.
If the function is successful, it returns a pointer to the wxFileType object If the function is successful, it returns a pointer to the wxFileType object
which {\bf must be deleted by the caller}, otherwise NULL will be returned. which {\bf must} be deleted by the caller, otherwise NULL will be returned.
\helpref{GetFileTypeFromMimeType}{wxmimetypesmanagergetfiletypefrommimetype}\\ \helpref{GetFileTypeFromMimeType}{wxmimetypesmanagergetfiletypefrommimetype}\\
\helpref{GetFileTypeFromExtension}{wxmimetypesmanagergetfiletypefromextension} \helpref{GetFileTypeFromExtension}{wxmimetypesmanagergetfiletypefromextension}
\membersection{Initialization functions} \membersection{Initialization functions}\label{wxmimetypesmanagerinit}
{\bf Unix:} These functions may be used to load additional (except for the {\bf Unix:} These functions may be used to load additional files (except for the
default ones which are loaded automatically) files containing MIME default ones which are loaded automatically) containing MIME
information in either mailcap(5) or mime.types(5) format. information in either mailcap(5) or mime.types(5) format.
\helpref{ReadMailcap}{wxmimetypesmanagerreadmailcap}\\ \helpref{ReadMailcap}{wxmimetypesmanagerreadmailcap}\\
@ -71,6 +71,7 @@ information in either mailcap(5) or mime.types(5) format.
}} }}
\membersection{wxMimeTypesManager::wxMimeTypesManager}\label{wxmimetypesmanagerctor} \membersection{wxMimeTypesManager::wxMimeTypesManager}\label{wxmimetypesmanagerctor}
\func{}{wxMimeTypesManager}{\void} \func{}{wxMimeTypesManager}{\void}
Constructor puts the object in the "working" state, no additional initialization Constructor puts the object in the "working" state, no additional initialization
@ -78,34 +79,40 @@ are needed - but \helpref{ReadXXX}{wxmimetypesmanagerinit} may be used to load
additional mailcap/mime.types files. additional mailcap/mime.types files.
\membersection{wxMimeTypesManager::\destruct{wxMimeTypesManager}}\label{wxmimetypesmanagerdtor} \membersection{wxMimeTypesManager::\destruct{wxMimeTypesManager}}\label{wxmimetypesmanagerdtor}
\func{}{\destruct{wxMimeTypesManager}{\void}
\func{}{\destruct{wxMimeTypesManager}}{\void}
Destructor is not virtual, so this class should not be derived from. Destructor is not virtual, so this class should not be derived from.
\membersection{wxMimeTypesManager::GetFileTypeFromExtension}\label{wxmimetypesmanagergetfiletypefromextension} \membersection{wxMimeTypesManager::GetFileTypeFromExtension}\label{wxmimetypesmanagergetfiletypefromextension}
\func{wxFileType *}{GetFileTypeFromExtension}{\param{const wxString \&}{extension}}
\func{wxFileType*}{GetFileTypeFromExtension}{\param{const wxString\&}{ extension}}
Gather information about the files with given extension and return the Gather information about the files with given extension and return the
corresponding \helpref{wxFileType}{wxfiletype} object or NULL if the extension corresponding \helpref{wxFileType}{wxfiletype} object or NULL if the extension
is unknown. is unknown.
\membersection{wxMimeTypesManager::GetFileTypeFromMimeType}\label{wxmimetypesmanagergetfiletypefrommimetype} \membersection{wxMimeTypesManager::GetFileTypeFromMimeType}\label{wxmimetypesmanagergetfiletypefrommimetype}
\func{wxFileType *}{GetFileTypeFromMimeType}{\param{const wxString \&}{mimeType}}
\func{wxFileType*}{GetFileTypeFromMimeType}{\param{const wxString\&}{ mimeType}}
Gather information about the files with given MIME type and return the Gather information about the files with given MIME type and return the
corresponding \helpref{wxFileType}{wxfiletype} object or NULL if the MIME type corresponding \helpref{wxFileType}{wxfiletype} object or NULL if the MIME type
is unknown. is unknown.
\membersection{wxMimeTypesManager::ReadMailcap}\label{wxmimetypesmanagerreadmailcap} \membersection{wxMimeTypesManager::ReadMailcap}\label{wxmimetypesmanagerreadmailcap}
\func{\void}{ReadMailcap}{\param{const wxString \&}{filename}}
\func{void}{ReadMailcap}{\param{const wxString\&}{ filename}}
Load additional file containing information about MIME types and associated Load additional file containing information about MIME types and associated
information in mailcap format. See metamail(1) and mailcap(5) for more information in mailcap format. See metamail(1) and mailcap(5) for more
information. information.
\membersection{wxMimeTypesManager::ReadMimeTypes}\label{wxmimetypesmanagerreadmimetypes} \membersection{wxMimeTypesManager::ReadMimeTypes}\label{wxmimetypesmanagerreadmimetypes}
\func{\void}{ReadMimeTypes}{\param{const wxString \&}{filename}}
\func{void}{ReadMimeTypes}{\param{const wxString\&}{ filename}}
Load additional file containing information about MIME types and associated Load additional file containing information about MIME types and associated
information in mime.types file format. See metamail(1) and mailcap(5) for more information in mime.types file format. See metamail(1) and mailcap(5) for more
information. information.

View File

@ -13,24 +13,27 @@ None.
\wxheading{See also} \wxheading{See also}
\helpref{wxMutex}{wxmutex}, \helpref{wxMutex}{wxmutex}, \helpref{wxCriticalSectionLocker}{wxcriticalsectionlocker}
\helpref{wxCriticalSectionLocker}{wxcriticalsectionlocker}
\latexignore{\rtfignore{\wxheading{Members}}} \latexignore{\rtfignore{\wxheading{Members}}}
\membersection{wxMutexLocker::wxMutexLocker}\label{wxmutexlockerctor} \membersection{wxMutexLocker::wxMutexLocker}\label{wxmutexlockerctor}
\func{}{wxMutexLocker}{\param{wxMutex *}{mutex}} \func{}{wxMutexLocker}{\param{wxMutex *}{mutex}}
Constructs a wxMutexLocker object associated with mutex which must be non NULL Constructs a wxMutexLocker object associated with mutex which must be non NULL
and locks it. Call \helpref{IsOk}{wxmutexisok} to check if the mutex was and locks it. Call \helpref{IsLocked}{wxmutexlockerisok} to check if the mutex was
successfully locked. successfully locked.
\membersection{wxMutexLocker::\destruct{wxMutexLocker}}\label{wxmutexlockerdtor} \membersection{wxMutexLocker::\destruct{wxMutexLocker}}\label{wxmutexlockerdtor}
\func{}{\destruct{wxMutexLocker}}{\void} \func{}{\destruct{wxMutexLocker}}{\void}
Destuctor releases the mutex if it was successfully acquired in the ctor. Destuctor releases the mutex if it was successfully acquired in the ctor.
\membersection{wxMutexLocker::IsOk}\label{wxmutexlockerisok} \membersection{wxMutexLocker::IsOk}\label{wxmutexlockerisok}
\constfunc{bool}{IsOk}{\void} \constfunc{bool}{IsOk}{\void}
Returns TRUE if mutex was acquired in the constructor, FALSE otherwise. Returns TRUE if mutex was acquired in the constructor, FALSE otherwise.

View File

@ -16,9 +16,9 @@ functions that take a wxNotebookEvent argument.
\twocolwidtha{7cm} \twocolwidtha{7cm}
\begin{twocollist}\itemsep=0pt \begin{twocollist}\itemsep=0pt
\twocolitem{{\bf EVT\_NOTEBOOK_PAGE_CHANGED(id, func)}}{The page selection was changed. Processes a \twocolitem{{\bf EVT\_NOTEBOOK\_PAGE\_CHANGED(id, func)}}{The page selection was changed. Processes a
wxEVT\_COMMAND\_NOTEBOOK\_PAGE\_CHANGED event.} wxEVT\_COMMAND\_NOTEBOOK\_PAGE\_CHANGED event.}
\twocolitem{{\bf EVT\_NOTEBOOK_PAGE_CHANGING(id, func)}}{The page selection is about to be changed. \twocolitem{{\bf EVT\_NOTEBOOK\_PAGE\_CHANGING(id, func)}}{The page selection is about to be changed.
Processes a wxEVT\_COMMAND\_NOTEBOOK\_PAGE\_CHANGING event.} Processes a wxEVT\_COMMAND\_NOTEBOOK\_PAGE\_CHANGING event.}
\end{twocollist}% \end{twocollist}%

View File

@ -182,9 +182,6 @@ Call this function to make a sash visible or invisible on a particular edge.
\helpref{wxSashWindow::GetSashVisible}{wxsashwindowgetsashvisible} \helpref{wxSashWindow::GetSashVisible}{wxsashwindowgetsashvisible}
// Set whether there's a border in this position
inline void SetSashBorder(wxSashEdgePosition edge, bool border) { m_sashes[edge].m_border = border; }
\membersection{wxSashWindow::SetSashBorder}\label{wxsashwindowsetsashborder} \membersection{wxSashWindow::SetSashBorder}\label{wxsashwindowsetsashborder}
\func{void}{SetSashBorder}{\param{wxSashEdgePosition }{edge}, \param{bool}{ hasBorder}} \func{void}{SetSashBorder}{\param{wxSashEdgePosition }{edge}, \param{bool}{ hasBorder}}

View File

@ -92,7 +92,7 @@ this, \helpref{GetFormatCount}{wxdroptargetgetformatcount} and \helpref{GetForma
used and if the format is used and if the format is
supported (i.e. is one of returned by GetFormat()), supported (i.e. is one of returned by GetFormat()),
then \helpref{OnDrop}{wxdroptargetondrop} is called. then \helpref{OnDrop}{wxdroptargetondrop} is called.
Otherwise, \helpref{wxDragNone}{stdformat} is returned by DoDragDrop() and Otherwise, wxDragNone is returned by DoDragDrop() and
nothing happens. nothing happens.
\item {\bf The end:} After processing the data, DoDragDrop() returns either \item {\bf The end:} After processing the data, DoDragDrop() returns either

View File

@ -5,73 +5,52 @@ Todo on wxWin 2.0, Windows platform
HIGH PRIORITY HIGH PRIORITY
------------- -------------
Find/add wxThread sample - Arthur T-D? Add further controls and properties to Dialog Editor.
Implement wxDC floating point transformations.
Add wxDC::DeviceToLogical -> wxPoint etc (convenience accessors).
Revamp Dialog Editor for new controls and properties (e.g.
window id).
Update manual. Update manual.
wxApp changes DONE
wxMenu changes DONE
wxModule DONE
wxRegion DONE
wxFile DONE
wxTempFile wxTempFile
wxMask DONE
wxDC:Blit DONE
wxTaskBarIcon DONE
wxMsgCatalog etc. wxMsgCatalog etc.
wxLog
wxConfig DONE
wxRegKey wxRegKey
wxTabCtrl DONE
wxNotebook DONE (some more explanation required)
wxWave DONE
wxJoystick DONE
wxStatusBar95 and wxFrame status bar functions wxStatusBar95 and wxFrame status bar functions
wxListBox changes (for ownerdraw functionality) wxListBox changes (for ownerdraw functionality)
wxThread DONE (except for topic overview) wxThread DONE (except for topic overview)
wxHelpController classes DONE (except for Unix ones)
wxString PARTLY DONE wxString PARTLY DONE
Drag and drop (change API if required, e.g. const). Drag and drop (change API if required, e.g. const).
wxCheckListBox DONE
wxAcceleratorTable DONE
wxBaseArray, other arrays wxBaseArray, other arrays
(wxOwnerDrawn) (wxOwnerDrawn)
Document the include file for each class Document the include file for each class
Macros, e.g. wxASSERT
Stream classes Stream classes
wxSocket topic overview
Functions Functions
Write tutorial. Makefiles and/or IDE files for other compilers: Symantec C++,
Salford C++. IDE files for BC++.
A wxDC function (or two) for drawing 3D edges. Check TODO entries in source and manual.
Makefiles for other compilers. Generic makefiles? Add centring, right justify styles to wxStaticText.
Rewrite makefiles to maintain simultaneous debug/release
objects. Extend wxSystemSettings to get symbols for current nationality,
e.g. ',' instead of '.' for decimal points.
LOW PRIORITY (MEDIUM TERM)
--------------------------
Convert remaining utilities e.g. wxGraphLayout.
More wxSystemSettings (see comment in settings.cpp). More wxSystemSettings (see comment in settings.cpp).
Convert remaining utilities e.g. (GLCanvas; wxGraphLayout) and samples Synchronize drawing functions on all platforms, using Chris's
code to test them.
Check TODO entries.
Shell function to invoke a document with open, print, whatever... Shell function to invoke a document with open, print, whatever...
Make use of Vadim's gettext implementation throughout wxWin code. Write tutorial.
Document it.
Retain callback functions; have semi-compatible callback function prototypes Add wxDC::DeviceToLogical -> wxPoint etc (convenience accessors).
for all controls, at least in WXWIN_COMPATIBLE mode, but
retain (Set)Callback for all compilations. This is following a
panicky response to losing callbacks.
Merge dib.cpp, dibutils.cpp (see also some DIB code in bitmap.cpp). Generic makefiles? Rewrite makefiles to maintain simultaneous debug/release
objects.
Add a wxTabCtrl sample. Add a wxTabCtrl sample.
@ -81,16 +60,7 @@ printer characteristics) and more reliable printing framework.
Add GetIcon, GetBitmap to wxImageList. Perhaps store bitmaps Add GetIcon, GetBitmap to wxImageList. Perhaps store bitmaps
in image list so we can get them later. in image list so we can get them later.
Add centring, right justify styles to wxStaticText. Merge dib.cpp, dibutils.cpp (see also some DIB code in bitmap.cpp).
Synchronize drawing functions on all platforms, using Chris's
code to test them.
Extend wxSystemSettings to get symbols for current nationality,
e.g. ',' instead of '.' for decimal points.
LOW PRIORITY
------------
Debug PNG support in wxBitmap (no 4-bit support), and possibly add a convertor from PNG Debug PNG support in wxBitmap (no 4-bit support), and possibly add a convertor from PNG
to HICON. We could perhaps also support inclusion of PNGs into to HICON. We could perhaps also support inclusion of PNGs into
@ -100,46 +70,25 @@ Fonts: ability to enumerate them.
Angled text. Angled text.
Eliminate Set/GetDefaultBackgroundColour? Just take background
colour for child control instead.
Think about reimplementing wxBitmapButton, wxStaticBitmap using Think about reimplementing wxBitmapButton, wxStaticBitmap using
BS_BITMAP, SS_BITMAP - but this may not allow wxBitmap BS_BITMAP, SS_BITMAP - but this may not allow wxBitmap
argument, so instead just allow controls loaded from native argument, so instead just allow controls loaded from native
resource to deal with this style and call default processing. resource to deal with this style and call default processing.
Better clipboard support. Better clipboard support (as per Robert's class).
wxWizard class? wxWizard class?
Doc/view - have some standard views/docs e.g. wxTextView. Doc/view - have some standard views/docs e.g. wxTextView.
wxClassWizard for generating files, chunks of code.
Miscellaneous file/system function wrappers. Miscellaneous file/system function wrappers.
wxImage or replacement; further wxBitmap/wxIcon etc. functions
(load animated icos).
Integrate existing multimedia classes.
Rich text class?
Look at WinCE stuff incl. database classes.
Improve conversion guide, compatibility classes, tools?
Bug database. Bug database.
ActiveX support? OpenGL integration: check that wxGLCanvas works cross-platform.
OpenGL integration.
Menu bitmaps - document Vadim's enhancements. Menu bitmaps - document Vadim's enhancements.
Enhance Tex2RTF to generate Microsoft HTML help, perhaps Netscape
HTML help also.
wxCreateDynamicObject is apparently slow: ~ 2000 calls to strcmp. Need to wxCreateDynamicObject is apparently slow: ~ 2000 calls to strcmp. Need to
use some kind of hash table scheme. use some kind of hash table scheme.
@ -149,8 +98,6 @@ to wxFrame to mirror the X situation (multiple displays).
Write translator between old and new .wxr formats (including Write translator between old and new .wxr formats (including
substituting static text for obsolete labels). substituting static text for obsolete labels).
Improve and expand wxSizer classes.
Write more validators. Also, how do they work if loading the Write more validators. Also, how do they work if loading the
dialog from a .wxr? Could call SetValidator from within dialog from a .wxr? Could call SetValidator from within
InitDialog for all controls, then call TransferDataToWindow. InitDialog for all controls, then call TransferDataToWindow.
@ -159,6 +106,30 @@ Classes for file/OS utility functions.
Add support for more static controls e.g. wxStaticLine. Add support for more static controls e.g. wxStaticLine.
Perhaps rewrite wxFile to use FILE* descriptors, so Eof and Flush
can work.
Find out how to set wxFileDialog position.
Maybe bundle Andrew Tucker's DBWIN32 with wxWindows (it's only
26KB), for viewing debug messages without a debugger.
Implement wxDC floating point transformations.
A wxDC function (or two) for drawing 3D edges?
LOW PRIORITY (LONG TERM)
------------------------
Improve and expand wxSizer classes.
ActiveX support
Look at porting to WinCE
Enhance Tex2RTF to generate Microsoft HTML help, perhaps Netscape
HTML help also.
GDI objects could be optimised further in constructors by GDI objects could be optimised further in constructors by
searching for a matching, pre-existing object, and assigning from searching for a matching, pre-existing object, and assigning from
that, thus sharing the internal handle. A problem with this that, thus sharing the internal handle. A problem with this
@ -181,10 +152,9 @@ needed to ensure that the operation was maximally efficient
(creating a new object rather than searching may or may not be (creating a new object rather than searching may or may not be
more efficient). more efficient).
Perhaps rewrite wxFile to use FILE* descriptors, so Eof and Flush Integrate Guilhem's multimedia classes: documentation, makefiles,
can work. different platforms.
Rich text class.
Find out how to set wxFileSelector position.
Maybe bundle Andrew Tucker's DBWIN32 with wxWindows (it's only
26KB), for viewing debug messages without a debugger.

View File

@ -107,6 +107,8 @@
#if (__MWERKS__ < 0x1000) || !__option(bool) #if (__MWERKS__ < 0x1000) || !__option(bool)
typedef unsigned int bool; typedef unsigned int bool;
#endif #endif
#elif defined(__SC__)
typedef unsigned int bool;
#elif defined(_MSC_VER) && (_MSC_VER <= 1000) #elif defined(_MSC_VER) && (_MSC_VER <= 1000)
typedef unsigned int bool; typedef unsigned int bool;
#elif defined(_MSC_VER) && (_MSC_VER == 1020) #elif defined(_MSC_VER) && (_MSC_VER == 1020)
@ -120,7 +122,7 @@
typedef unsigned char bool; typedef unsigned char bool;
#endif #endif
#if ( defined(_MSC_VER) && (_MSC_VER <= 800) ) || defined(__GNUWIN32__) || (defined(__BORLANDC__) && defined(__WIN16__)) #if ( defined(_MSC_VER) && (_MSC_VER <= 800) ) || defined(__GNUWIN32__) || (defined(__BORLANDC__) && defined(__WIN16__)) || defined(__SC__)
#define byte unsigned char #define byte unsigned char
#endif #endif

View File

@ -37,6 +37,10 @@ typedef long off_t;
typedef long off_t; typedef long off_t;
#endif #endif
#if defined(__SC__)
typedef long off_t;
#endif
const off_t wxInvalidOffset = (off_t)-1; const off_t wxInvalidOffset = (off_t)-1;
typedef enum { typedef enum {

View File

@ -127,6 +127,8 @@ private:
// wxNodeBase class is a (base for) node in a double linked list // wxNodeBase class is a (base for) node in a double linked list
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
WXDLLEXPORT_DATA(extern wxListKey) wxDefaultListKey;
class WXDLLEXPORT wxNodeBase class WXDLLEXPORT wxNodeBase
{ {
friend class wxListBase; friend class wxListBase;
@ -136,7 +138,7 @@ public:
wxNodeBase *previous = (wxNodeBase *)NULL, wxNodeBase *previous = (wxNodeBase *)NULL,
wxNodeBase *next = (wxNodeBase *)NULL, wxNodeBase *next = (wxNodeBase *)NULL,
void *data = NULL, void *data = NULL,
const wxListKey& key = wxListKey()); const wxListKey& key = wxDefaultListKey);
virtual ~wxNodeBase(); virtual ~wxNodeBase();
@ -221,7 +223,7 @@ protected:
// create a node for the list of this type // create a node for the list of this type
virtual wxNodeBase *CreateNode(wxNodeBase *prev, wxNodeBase *next, virtual wxNodeBase *CreateNode(wxNodeBase *prev, wxNodeBase *next,
void *data, void *data,
const wxListKey& key = wxListKey()) = 0; const wxListKey& key = wxDefaultListKey) = 0;
// ctors // ctors
// from an array // from an array
@ -334,7 +336,7 @@ private:
nodetype *previous = (nodetype *)NULL, \ nodetype *previous = (nodetype *)NULL, \
nodetype *next = (nodetype *)NULL, \ nodetype *next = (nodetype *)NULL, \
T *data = (T *)NULL, \ T *data = (T *)NULL, \
const wxListKey& key = wxListKey()) \ const wxListKey& key = wxDefaultListKey) \
: wxNodeBase(list, previous, next, data, key) { } \ : wxNodeBase(list, previous, next, data, key) { } \
\ \
nodetype *GetNext() const \ nodetype *GetNext() const \
@ -408,7 +410,7 @@ private:
protected: \ protected: \
wxNodeBase *CreateNode(wxNodeBase *prev, wxNodeBase *next, \ wxNodeBase *CreateNode(wxNodeBase *prev, wxNodeBase *next, \
void *data, \ void *data, \
const wxListKey& key = wxListKey()) \ const wxListKey& key = wxDefaultListKey) \
{ \ { \
return new nodetype(this, \ return new nodetype(this, \
(nodetype *)prev, (nodetype *)next, \ (nodetype *)prev, (nodetype *)next, \

View File

@ -17,6 +17,7 @@
#endif #endif
#include "wx/defs.h" #include "wx/defs.h"
#include "wx/string.h"
/* /*
The macro which will be expanded to include the file and line number The macro which will be expanded to include the file and line number
@ -37,8 +38,6 @@
# endif # endif
#endif #endif
#include "wx/string.h"
#ifdef __WXDEBUG__ #ifdef __WXDEBUG__
void * wxDebugAlloc(size_t size, char * fileName, int lineNum, bool isObject, bool isVect = FALSE); void * wxDebugAlloc(size_t size, char * fileName, int lineNum, bool isObject, bool isVect = FALSE);
@ -83,7 +82,9 @@ void operator delete[](void *buf, char*, int);
#endif #endif
#endif #endif
// wxUSE_GLOBAL_MEMORY_OPERATORS
#endif #endif
// __WXDEBUG__
typedef unsigned int wxMarkerType; typedef unsigned int wxMarkerType;

View File

@ -21,6 +21,7 @@
#include "wx/icon.h" #include "wx/icon.h"
#include "wx/font.h" #include "wx/font.h"
#include "wx/gdicmn.h" #include "wx/gdicmn.h"
#include "wx/window.h"
class WXDLLEXPORT wxDC: public wxObject class WXDLLEXPORT wxDC: public wxObject
{ {

View File

@ -18,6 +18,8 @@
#include "wx/dialog.h" #include "wx/dialog.h"
WXDLLEXPORT_DATA(extern const char*) wxFileSelectorPromptStr;
class WXDLLEXPORT wxDirDialog: public wxDialog class WXDLLEXPORT wxDirDialog: public wxDialog
{ {
DECLARE_DYNAMIC_CLASS(wxDirDialog) DECLARE_DYNAMIC_CLASS(wxDirDialog)

View File

@ -17,6 +17,7 @@
#endif #endif
#include "wx/gdiobj.h" #include "wx/gdiobj.h"
#include "wx/bitmap.h"
typedef WXDWORD wxDash ; typedef WXDWORD wxDash ;

View File

@ -177,6 +177,10 @@ inline bool wxStyleHasBorder(long style)
#define WS_EX_CLIENTEDGE 0 #define WS_EX_CLIENTEDGE 0
#endif #endif
#if defined(__WIN32__) && !defined(WS_EX_CLIENTEDGE)
#define WS_EX_CLIENTEDGE 0x00000200L
#endif
#if defined(__WIN95__) && defined(__WXDEBUG__) && wxUSE_DBWIN32 #if defined(__WIN95__) && defined(__WXDEBUG__) && wxUSE_DBWIN32
#ifdef OutputDebugString #ifdef OutputDebugString
#undef OutputDebugString #undef OutputDebugString

View File

@ -18,6 +18,7 @@
#include "wx/list.h" #include "wx/list.h"
#include "wx/gdiobj.h" #include "wx/gdiobj.h"
#include "wx/gdicmn.h"
class WXDLLEXPORT wxRect; class WXDLLEXPORT wxRect;
class WXDLLEXPORT wxPoint; class WXDLLEXPORT wxPoint;

View File

@ -59,8 +59,8 @@ public:
m_bmpUnchecked = bmpUnchecked; m_bmpUnchecked = bmpUnchecked;
m_bOwnerDrawn = TRUE; } m_bOwnerDrawn = TRUE; }
inline wxBitmap& GetBitmap(bool bChecked = TRUE) const inline const wxBitmap& GetBitmap(bool bChecked = TRUE) const
{ return (wxBitmap &)(bChecked ? m_bmpChecked : m_bmpUnchecked); } { return (bChecked ? m_bmpChecked : m_bmpUnchecked); }
// the height of the menu checkmark (or bitmap) is determined by the font // the height of the menu checkmark (or bitmap) is determined by the font
// for the current item, but the width should be always the same (for the // for the current item, but the width should be always the same (for the

View File

@ -275,7 +275,7 @@ class wxPropertyFormFrame: public wxFrame
public: public:
wxPropertyFormFrame(wxPropertyFormView *v, wxFrame *parent, const wxString& title, wxPropertyFormFrame(wxPropertyFormView *v, wxFrame *parent, const wxString& title,
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME, const wxString& name = "frame"): long style = wxDEFAULT_FRAME_STYLE, const wxString& name = "frame"):
wxFrame(parent, -1, title, pos, size, style, name) wxFrame(parent, -1, title, pos, size, style, name)
{ {
m_view = v; m_view = v;

View File

@ -57,7 +57,9 @@
#define wxPROP_PULLDOWN 64 #define wxPROP_PULLDOWN 64
#define wxPROP_SHOWVALUES 128 #define wxPROP_SHOWVALUES 128
#ifdef __XVIEW__ // Show OK/Cancel buttons on X-based systems where window management is
// more awkward
#if defined(__WXMOTIF__) || defined(__WXGTK__)
#define wxPROP_BUTTON_DEFAULT wxPROP_BUTTON_OK | wxPROP_BUTTON_CANCEL | wxPROP_BUTTON_CHECK_CROSS | wxPROP_PULLDOWN #define wxPROP_BUTTON_DEFAULT wxPROP_BUTTON_OK | wxPROP_BUTTON_CANCEL | wxPROP_BUTTON_CHECK_CROSS | wxPROP_PULLDOWN
#else #else
#define wxPROP_BUTTON_DEFAULT wxPROP_BUTTON_CHECK_CROSS | wxPROP_PULLDOWN | wxPROP_SHOWVALUES #define wxPROP_BUTTON_DEFAULT wxPROP_BUTTON_CHECK_CROSS | wxPROP_PULLDOWN | wxPROP_SHOWVALUES
@ -330,7 +332,7 @@ class wxPropertyListFrame: public wxFrame
public: public:
wxPropertyListFrame(wxPropertyListView *v, wxFrame *parent, const wxString& title, wxPropertyListFrame(wxPropertyListView *v, wxFrame *parent, const wxString& title,
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME, const wxString& name = "frame"): long style = wxDEFAULT_FRAME_STYLE, const wxString& name = "frame"):
wxFrame(parent, -1, title, pos, size, style, name) wxFrame(parent, -1, title, pos, size, style, name)
{ {
m_view = v; m_view = v;

View File

@ -90,6 +90,8 @@ inline int WXDLLEXPORT Stricmp(const char *psz1, const char *psz2)
{ {
#if defined(_MSC_VER) #if defined(_MSC_VER)
return _stricmp(psz1, psz2); return _stricmp(psz1, psz2);
#elif defined(__SC__)
return _stricmp(psz1, psz2);
#elif defined(__BORLANDC__) #elif defined(__BORLANDC__)
return stricmp(psz1, psz2); return stricmp(psz1, psz2);
#elif defined(__WATCOMC__) #elif defined(__WATCOMC__)

View File

@ -46,7 +46,7 @@ bool MyApp::OnInit(void)
RegisterValidators(); RegisterValidators();
// Create the main frame window // Create the main frame window
m_mainFrame = new MyFrame(NULL, "wxPropertySheet Demo", wxPoint(0, 0), wxSize(300, 400), wxDEFAULT_FRAME); m_mainFrame = new MyFrame(NULL, "wxPropertySheet Demo", wxPoint(0, 0), wxSize(300, 400), wxDEFAULT_FRAME_STYLE);
// Make a menubar // Make a menubar
wxMenu *file_menu = new wxMenu; wxMenu *file_menu = new wxMenu;

View File

@ -61,7 +61,7 @@ class PropListFrame: public wxPropertyListFrame
public: public:
PropListFrame(wxPropertyListView *v, wxFrame *parent, const wxString& title, PropListFrame(wxPropertyListView *v, wxFrame *parent, const wxString& title,
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME, const wxString& name = "frame"): long style = wxDEFAULT_FRAME_STYLE, const wxString& name = "frame"):
wxPropertyListFrame(v, parent, title, pos, size, style, name) wxPropertyListFrame(v, parent, title, pos, size, style, name)
{ {
} }

View File

@ -38,7 +38,8 @@
#include <commdlg.h> #include <commdlg.h>
#endif #endif
#if defined(__WATCOMC__) #if defined(__WATCOMC__) || defined(__SC__)
#include <windowsx.h>
#include <commdlg.h> #include <commdlg.h>
#endif #endif

View File

@ -19,6 +19,10 @@
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
#include <wx/confbase.h> #include <wx/confbase.h>
#ifdef wxUSE_CONFIG #ifdef wxUSE_CONFIG
@ -27,11 +31,6 @@
#pragma hdrstop #pragma hdrstop
#endif //__BORLANDC__ #endif //__BORLANDC__
#ifndef WX_PRECOMP
#include <wx/string.h>
#include <wx/intl.h>
#endif //WX_PRECOMP
#include <wx/app.h> #include <wx/app.h>
#include <wx/file.h> #include <wx/file.h>
#include <wx/log.h> #include <wx/log.h>

View File

@ -1258,7 +1258,7 @@ wxDocTemplate *wxDocManager::SelectViewType(wxDocTemplate **templates,
int n = 0; int n = 0;
for (i = 0; i < noTemplates; i++) for (i = 0; i < noTemplates; i++)
{ {
if (templates[i]->IsVisible() && templates[i]->GetViewName()) if (templates[i]->IsVisible() && (templates[i]->GetViewName() != ""))
{ {
strings[n] = WXSTRINGCAST templates[i]->m_viewTypeName; strings[n] = WXSTRINGCAST templates[i]->m_viewTypeName;
data[n] = (char *)templates[i]; data[n] = (char *)templates[i];
@ -1706,7 +1706,7 @@ void wxCommandProcessor::SetMenuStrings(void)
// we've undone to the start of the list, but can redo the first. // we've undone to the start of the list, but can redo the first.
wxCommand *redoCommand = (wxCommand *)m_commands.First()->Data(); wxCommand *redoCommand = (wxCommand *)m_commands.First()->Data();
wxString redoCommandName(redoCommand->GetName()); wxString redoCommandName(redoCommand->GetName());
if (!redoCommandName) redoCommandName = _("Unnamed command"); if (redoCommandName == "") redoCommandName = _("Unnamed command");
buf = wxString(_("&Redo ")) + redoCommandName; buf = wxString(_("&Redo ")) + redoCommandName;
m_commandEditMenu->SetLabel(wxID_REDO, buf); m_commandEditMenu->SetLabel(wxID_REDO, buf);
m_commandEditMenu->Enable(wxID_REDO, TRUE); m_commandEditMenu->Enable(wxID_REDO, TRUE);

View File

@ -395,7 +395,11 @@ bool wxEvtHandler::SearchEventTable(wxEventTable& table, wxEvent& event)
// BC++ doesn't like while (table.entries[i].m_fn) // BC++ doesn't like while (table.entries[i].m_fn)
#ifdef __SC__
while (table.entries[i].m_fn != 0)
#else
while (table.entries[i].m_fn != 0L) while (table.entries[i].m_fn != 0L)
#endif
{ {
if ((event.GetEventType() == table.entries[i].m_eventType) && if ((event.GetEventType() == table.entries[i].m_eventType) &&
(table.entries[i].m_id == -1 || // Match, if event spec says any id will do (id == -1) (table.entries[i].m_id == -1 || // Match, if event spec says any id will do (id == -1)

View File

@ -28,8 +28,7 @@
#endif //__BORLANDC__ #endif //__BORLANDC__
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/string.h" #include "wx/wx.h"
#include "wx/intl.h"
#endif //WX_PRECOMP #endif //WX_PRECOMP
#include "wx/app.h" #include "wx/app.h"

View File

@ -241,7 +241,7 @@ wxFileExists (const wxString& filename)
#else #else
struct stat stbuf; struct stat stbuf;
if (filename && stat ((char *)(const char *)filename, &stbuf) == 0) if ((filename != "") && stat ((char *)(const char *)filename, &stbuf) == 0)
return TRUE; return TRUE;
return FALSE; return FALSE;
#endif #endif
@ -582,8 +582,8 @@ wxContractPath (const wxString& filename, const wxString& envname, const wxStrin
strncmp(dest, val, len) == 0) strncmp(dest, val, len) == 0)
{ {
strcpy(wxBuffer, "~"); strcpy(wxBuffer, "~");
if (user && *user) if (user != "")
strcat(wxBuffer, user); strcat(wxBuffer, (const char*) user);
#ifdef __WXMSW__ #ifdef __WXMSW__
// strcat(wxBuffer, "\\"); // strcat(wxBuffer, "\\");
#else #else

View File

@ -20,7 +20,7 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#include "wx/event.h"
#include "wx/gdicmn.h" #include "wx/gdicmn.h"
#include "wx/brush.h" #include "wx/brush.h"
#include "wx/pen.h" #include "wx/pen.h"
@ -598,7 +598,7 @@ wxFont *wxFontList::
// each_font->GetFontId () == FamilyOrFontId) /* New font system */ // each_font->GetFontId () == FamilyOrFontId) /* New font system */
//#else //#else
each_font->GetFamily () == FamilyOrFontId && each_font->GetFamily () == FamilyOrFontId &&
(!each_font->GetFaceName() || each_font->GetFaceName() == Face)) ((each_font->GetFaceName() == "") || each_font->GetFaceName() == Face))
//#endif //#endif
return each_font; return each_font;
} }

View File

@ -27,6 +27,10 @@
#endif #endif
#include "wx/filefn.h" #include "wx/filefn.h"
#ifdef __WXMSW__
#include <windows.h>
#endif
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// wxImage // wxImage
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------

View File

@ -29,13 +29,13 @@
// wxWindows // wxWindows
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include <wx/event.h>
#include <wx/app.h> #include <wx/app.h>
#include <wx/string.h> #include <wx/string.h>
#include <wx/intl.h> #include <wx/intl.h>
#include <wx/menu.h> #include <wx/menu.h>
#include <wx/frame.h> #include <wx/frame.h>
#include <wx/msgdlg.h>
#include <wx/generic/msgdlgg.h>
#include <wx/filedlg.h> #include <wx/filedlg.h>
#include <wx/textctrl.h> #include <wx/textctrl.h>
#endif //WX_PRECOMP #endif //WX_PRECOMP

View File

@ -31,14 +31,17 @@
// wxWindows // wxWindows
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/string.h" #include "wx/string.h"
#include "wx/icon.h"
#endif //WX_PRECOMP #endif //WX_PRECOMP
#include "wx/log.h" #include "wx/log.h"
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/dynarray.h" #include "wx/dynarray.h"
#include "wx/confbase.h"
#ifdef __WXMSW__ #ifdef __WXMSW__
#include "wx/msw/registry.h" #include "wx/msw/registry.h"
#include "windows.h"
#else // Unix #else // Unix
#include "wx/textfile.h" #include "wx/textfile.h"
#endif // OS #endif // OS

View File

@ -408,7 +408,7 @@ void wxPreviewControlBar::SetZoomControl(int zoom)
int wxPreviewControlBar::GetZoomControl() int wxPreviewControlBar::GetZoomControl()
{ {
char buf[20]; char buf[20];
if (m_zoomControl && m_zoomControl->GetStringSelection()) if (m_zoomControl && (m_zoomControl->GetStringSelection() != ""))
{ {
strcpy(buf, m_zoomControl->GetStringSelection()); strcpy(buf, m_zoomControl->GetStringSelection());
buf[strlen(buf) - 1] = 0; buf[strlen(buf) - 1] = 0;

View File

@ -39,12 +39,14 @@
#include "wx/button.h" #include "wx/button.h"
#include "wx/bmpbuttn.h" #include "wx/bmpbuttn.h"
#include "wx/radiobox.h" #include "wx/radiobox.h"
#include "wx/radiobut.h"
#include "wx/listbox.h" #include "wx/listbox.h"
#include "wx/choice.h" #include "wx/choice.h"
#include "wx/checkbox.h" #include "wx/checkbox.h"
#include "wx/settings.h" #include "wx/settings.h"
#include "wx/slider.h" #include "wx/slider.h"
#include "wx/statbox.h" #include "wx/statbox.h"
#include "wx/statbmp.h"
#if wxUSE_GAUGE #if wxUSE_GAUGE
#include "wx/gauge.h" #include "wx/gauge.h"
#endif #endif
@ -1321,18 +1323,18 @@ wxItemResource *wxResourceInterpretBitmap(wxResourceTable& WXUNUSED(table), wxEx
wxExpr *coloursExpr = listExpr->Nth(3); wxExpr *coloursExpr = listExpr->Nth(3);
wxExpr *xresExpr = listExpr->Nth(4); wxExpr *xresExpr = listExpr->Nth(4);
wxExpr *yresExpr = listExpr->Nth(5); wxExpr *yresExpr = listExpr->Nth(5);
if (nameExpr && nameExpr->StringValue()) if (nameExpr && nameExpr->StringValue() != "")
{ {
bitmapSpec->SetName(nameExpr->StringValue()); bitmapSpec->SetName(nameExpr->StringValue());
} }
if (typeExpr && typeExpr->StringValue()) if (typeExpr && typeExpr->StringValue() != "")
{ {
bitmapSpec->SetValue1(wxParseWindowStyle(typeExpr->StringValue())); bitmapSpec->SetValue1(wxParseWindowStyle(typeExpr->StringValue()));
} }
else else
bitmapSpec->SetValue1(0); bitmapSpec->SetValue1(0);
if (platformExpr && platformExpr->StringValue()) if (platformExpr && platformExpr->StringValue() != "")
{ {
wxString plat(platformExpr->StringValue()); wxString plat(platformExpr->StringValue());
if (plat == "windows" || plat == "WINDOWS") if (plat == "windows" || plat == "WINDOWS")
@ -2034,7 +2036,7 @@ wxBitmap wxResourceCreateBitmap(const wxString& resource, wxResourceTable *table
wxItemResource *item = table->FindResource(resource); wxItemResource *item = table->FindResource(resource);
if (item) if (item)
{ {
if (!item->GetType() || strcmp(item->GetType(), "wxBitmap") != 0) if ((item->GetType() == "") || (item->GetType() != "wxBitmap"))
{ {
wxLogWarning(_("%s not a bitmap resource specification."), (const char*) resource); wxLogWarning(_("%s not a bitmap resource specification."), (const char*) resource);
return wxNullBitmap; return wxNullBitmap;
@ -2812,8 +2814,8 @@ bool wxWindow::LoadFromResource(wxWindow *parent, const wxString& resourceName,
wxItemResource *resource = table->FindResource((const char *)resourceName); wxItemResource *resource = table->FindResource((const char *)resourceName);
// if (!resource || (resource->GetType() != wxTYPE_DIALOG_BOX)) // if (!resource || (resource->GetType() != wxTYPE_DIALOG_BOX))
if (!resource || !resource->GetType() || if (!resource || (resource->GetType() == "") ||
! ((strcmp(resource->GetType(), "wxDialog") == 0) || (strcmp(resource->GetType(), "wxPanel") == 0))) ! ((resource->GetType() == "wxDialog") || (resource->GetType() == "wxPanel")))
return FALSE; return FALSE;
wxString title(resource->GetTitle()); wxString title(resource->GetTitle());

View File

@ -106,8 +106,10 @@ extern const char *g_szNul = &g_strEmpty.dummy;
// always available), but it's unsafe because it doesn't check for buffer // always available), but it's unsafe because it doesn't check for buffer
// size - so give a warning // size - so give a warning
#define wxVsprintf(buffer,len,format,argptr) vsprintf(buffer,format, argptr) #define wxVsprintf(buffer,len,format,argptr) vsprintf(buffer,format, argptr)
#ifndef __SC__
#pragma message("Using sprintf() because no snprintf()-like function defined") #pragma message("Using sprintf() because no snprintf()-like function defined")
#endif #endif
#endif
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// global functions // global functions

View File

@ -21,6 +21,9 @@
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/object.h"
#include "wx/font.h"
#include "wx/colour.h"
#include "wx/settings.h" #include "wx/settings.h"
#endif #endif

View File

@ -1908,7 +1908,7 @@ void wxPropertyStringListEditorDialog::OnCancel(wxCommandEvent& WXUNUSED(event))
void wxPropertyStringListEditorDialog::OnText(wxCommandEvent& event) void wxPropertyStringListEditorDialog::OnText(wxCommandEvent& event)
{ {
if (event.GetEventType() == wxEVENT_TYPE_TEXT_ENTER_COMMAND) if (event.GetEventType() == wxEVT_COMMAND_TEXT_ENTER)
{ {
SaveCurrentSelection(); SaveCurrentSelection();
} }

View File

@ -2,19 +2,25 @@
WXDIR = $(WXWIN) WXDIR = $(WXWIN)
INCDIR = $(WXDIR)\include INCDIR = $(WXDIR)\include
MSWINC = $(INCDIR)\msw LIBDIR = $(WXDIR)\lib
BASEINC = $(INCDIR)\base
SRCSUFF = cpp SRCSUFF = cpp
OBJSUFF = obj OBJSUFF = obj
INCLUDE=$(INCDIR)
# default values # default values
CC=sc CC=sc
RC=rc RC=rc
CFLAGS = -o -ml -W -D__WXMSW__
LDFLAGS = -ml -W CFLAGS = -o -mn -W -D__NT__ -DWIN32 -D__WIN32__ -D__WINDOWS__ -D__WXMSW__ -D__SC__ -D__WXDEBUG__ $(EXTRACPPFLAGS)
LDFLAGS = $(EXTRALDFLAGS)
.$(SRCSUFF).obj: .$(SRCSUFF).obj:
*$(CC) -c $(CFLAGS) -I$(INCLUDE) $(OPTIONS) $< *$(CC) -c $(CFLAGS) -I$(INCLUDE) $(OPTIONS) $< -o$@
# -Jm: relaxed type checking
.c.obj:
*$(CC) -c $(CFLAGS) -I$(INCLUDE) $(OPTIONS) -DUSE_DEFINE -Jm $< -o$@

View File

@ -23,6 +23,7 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include <stdio.h> #include <stdio.h>
#include "wx/setup.h" #include "wx/setup.h"
#include "wx/window.h"
#endif #endif
#include "wx/msw/private.h" #include "wx/msw/private.h"

View File

@ -51,7 +51,7 @@
// if you don't do the same for the Ole calls further down. // if you don't do the same for the Ole calls further down.
// Also, OLE is used not just for drag and drop (it's used by automatn.cpp). // Also, OLE is used not just for drag and drop (it's used by automatn.cpp).
// #if wxUSE_DRAG_AND_DROP // #if wxUSE_DRAG_AND_DROP
#ifndef __GNUWIN32__ #if !defined(__GNUWIN32__) && !defined(__SC__)
#include <ole2.h> #include <ole2.h>
#endif #endif
// #endif // #endif
@ -200,7 +200,7 @@ bool wxApp::Initialize()
} }
*/ */
#ifndef __GNUWIN32__ #if !defined(__GNUWIN32__) && !defined(__SC__)
// we need to initialize OLE library // we need to initialize OLE library
if ( FAILED(::OleInitialize(NULL)) ) if ( FAILED(::OleInitialize(NULL)) )
wxFatalError(_("Cannot initialize OLE")); wxFatalError(_("Cannot initialize OLE"));
@ -517,7 +517,7 @@ void wxApp::CleanUp()
if ( wxDisableButtonBrush ) if ( wxDisableButtonBrush )
::DeleteObject( wxDisableButtonBrush ) ; ::DeleteObject( wxDisableButtonBrush ) ;
#ifndef __GNUWIN32__ #if !defined(__GNUWIN32__) && !defined(__SC__)
::OleUninitialize(); ::OleUninitialize();
#endif #endif

View File

@ -27,6 +27,7 @@
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/palette.h" #include "wx/palette.h"
#include "wx/dcmemory.h"
#include "wx/bitmap.h" #include "wx/bitmap.h"
#include "wx/icon.h" #include "wx/icon.h"
#endif #endif

View File

@ -22,6 +22,7 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/button.h" #include "wx/button.h"
#include "wx/brush.h"
#endif #endif
#include "wx/msw/private.h" #include "wx/msw/private.h"

View File

@ -22,6 +22,7 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/checkbox.h" #include "wx/checkbox.h"
#include "wx/brush.h"
#endif #endif
#include "wx/msw/private.h" #include "wx/msw/private.h"
@ -169,6 +170,10 @@ void wxCheckBox::SetValue(bool val)
SendMessage((HWND) GetHWND(), BM_SETCHECK, val, 0); SendMessage((HWND) GetHWND(), BM_SETCHECK, val, 0);
} }
#ifndef BST_CHECKED
#define BST_CHECKED 0x0001
#endif
bool wxCheckBox::GetValue(void) const bool wxCheckBox::GetValue(void) const
{ {
#ifdef __WIN32__ #ifdef __WIN32__

View File

@ -24,7 +24,15 @@
#include <windows.h> #include <windows.h>
#include "wx/object.h"
#include "wx/colour.h"
#include "wx/font.h"
#include "wx/bitmap.h"
#include "wx/window.h"
#include "wx/listbox.h"
#include "wx/ownerdrw.h" #include "wx/ownerdrw.h"
#include "wx/settings.h"
#include "wx/dcmemory.h"
#include "wx/msw/checklst.h" #include "wx/msw/checklst.h"
// ============================================================================ // ============================================================================
@ -120,7 +128,9 @@ bool wxCheckListBoxItem::OnDrawItem(wxDC& dc, const wxRect& rc,
RECT rect = { 0, 0, nCheckWidth, nCheckHeight }; RECT rect = { 0, 0, nCheckWidth, nCheckHeight };
#ifdef __WIN32__ #ifdef __WIN32__
#ifndef __SC__
DrawFrameControl(hdcMem, &rect, DFC_MENU, DFCS_MENUCHECK); DrawFrameControl(hdcMem, &rect, DFC_MENU, DFCS_MENUCHECK);
#endif
#else #else
// In WIN16, draw a cross // In WIN16, draw a cross
HPEN blackPen = CreatePen(PS_SOLID, 1, RGB(0, 0, 0)); HPEN blackPen = CreatePen(PS_SOLID, 1, RGB(0, 0, 0));

View File

@ -22,6 +22,7 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/choice.h" #include "wx/choice.h"
#include "wx/utils.h"
#endif #endif
#include "wx/msw/private.h" #include "wx/msw/private.h"

View File

@ -27,6 +27,8 @@
#if wxUSE_CLIPBOARD #if wxUSE_CLIPBOARD
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/object.h"
#include "wx/event.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/frame.h" #include "wx/frame.h"
#include "wx/bitmap.h" #include "wx/bitmap.h"

View File

@ -23,8 +23,10 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include <stdio.h> #include <stdio.h>
#include "wx/defs.h" #include "wx/defs.h"
#include "wx/bitmap.h"
#include "wx/pen.h" #include "wx/pen.h"
#include "wx/brush.h" #include "wx/brush.h"
#include "wx/colour.h"
#include "wx/gdicmn.h" #include "wx/gdicmn.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/frame.h" #include "wx/frame.h"

View File

@ -21,10 +21,13 @@
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/event.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/dcclient.h" #include "wx/dcclient.h"
#endif #endif
#include "wx/control.h"
#include "wx/msw/private.h" #include "wx/msw/private.h"
#if defined(__WIN95__) && !defined(__GNUWIN32__) #if defined(__WIN95__) && !defined(__GNUWIN32__)
@ -61,7 +64,7 @@ wxControl::~wxControl(void)
wxWindow *parent = (wxWindow *)GetParent(); wxWindow *parent = (wxWindow *)GetParent();
if (parent) if (parent)
{ {
if (parent->GetDefaultItem() == this) if (parent->GetDefaultItem() == (wxButton*) this)
parent->SetDefaultItem(NULL); parent->SetDefaultItem(NULL);
} }
} }

View File

@ -26,6 +26,8 @@
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/dialog.h" #include "wx/dialog.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/bitmap.h"
#include "wx/dcmemory.h"
#endif #endif
#include "wx/dcprint.h" #include "wx/dcprint.h"
@ -603,7 +605,7 @@ void wxDC::DrawEllipticArc(long x,long y,long w,long h,double sa,double ea)
void wxDC::DrawIcon(const wxIcon& icon, long x, long y) void wxDC::DrawIcon(const wxIcon& icon, long x, long y)
{ {
#if defined(__WIN32__) #if defined(__WIN32__) && !defined(__SC__)
::DrawIconEx((HDC) m_hDC, XLOG2DEV(x), YLOG2DEV(y), (HICON) icon.GetHICON(), ::DrawIconEx((HDC) m_hDC, XLOG2DEV(x), YLOG2DEV(y), (HICON) icon.GetHICON(),
icon.GetWidth(), icon.GetHeight(), 0, 0, DI_NORMAL); icon.GetWidth(), icon.GetHeight(), 0, 0, DI_NORMAL);
#else #else

View File

@ -21,6 +21,7 @@
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/utils.h"
#endif #endif
#include "wx/dcmemory.h" #include "wx/dcmemory.h"

View File

@ -35,6 +35,7 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/setup.h" #include "wx/setup.h"
#include "wx/defs.h" #include "wx/defs.h"
#include "wx/bitmap.h"
#endif #endif
#include <windows.h> #include <windows.h>
@ -688,7 +689,7 @@ HPALETTE MakeDIBPalette(LPBITMAPINFOHEADER lpInfo)
return((HPALETTE) GetStockObject(DEFAULT_PALETTE)); return((HPALETTE) GetStockObject(DEFAULT_PALETTE));
} }
bool wxLoadIntoBitmap(char *filename, wxBitmap *bitmap, wxColourMap **pal) bool wxLoadIntoBitmap(char *filename, wxBitmap *bitmap, wxPalette **pal)
{ {
HBITMAP hBitmap; HBITMAP hBitmap;
HPALETTE hPalette; HPALETTE hPalette;
@ -705,7 +706,7 @@ bool wxLoadIntoBitmap(char *filename, wxBitmap *bitmap, wxColourMap **pal)
{ {
if (pal) if (pal)
{ {
*pal = new wxColourMap; *pal = new wxPalette;
(*pal)->SetHPALETTE((WXHPALETTE) hPalette); (*pal)->SetHPALETTE((WXHPALETTE) hPalette);
} }
else else
@ -729,7 +730,7 @@ bool wxLoadIntoBitmap(char *filename, wxBitmap *bitmap, wxColourMap **pal)
else return FALSE; else return FALSE;
} }
wxBitmap *wxLoadBitmap(char *filename, wxColourMap **pal) wxBitmap *wxLoadBitmap(char *filename, wxPalette **pal)
{ {
wxBitmap *bitmap = new wxBitmap; wxBitmap *bitmap = new wxBitmap;
if (wxLoadIntoBitmap(filename, bitmap, pal)) if (wxLoadIntoBitmap(filename, bitmap, pal))
@ -918,7 +919,7 @@ HANDLE BitmapToDIB (HBITMAP hBitmap, HPALETTE hPal)
return hDIB; return hDIB;
} }
bool wxSaveBitmap(char *filename, wxBitmap *bitmap, wxColourMap *colourmap) bool wxSaveBitmap(char *filename, wxBitmap *bitmap, wxPalette *colourmap)
{ {
HPALETTE hPalette = 0; HPALETTE hPalette = 0;
if (colourmap) if (colourmap)

View File

@ -133,7 +133,7 @@ int DibWriteFile(LPSTR szFile, LPBITMAPINFOHEADER lpbi)
bmf.bfReserved1 = 0; bmf.bfReserved1 = 0;
bmf.bfReserved2 = 0; bmf.bfReserved2 = 0;
bmf.bfOffBits = sizeof(bmf) + (char far*)(DibPtr(lpbi)) - (char far*)lpbi; bmf.bfOffBits = sizeof(bmf) + (char far*)(DibPtr(lpbi)) - (char far*)lpbi;
#if defined( __WATCOMC__) || defined(_MSC_VER) #if defined( __WATCOMC__) || defined(_MSC_VER) || defined(__SC__)
if (_hwrite(fh, (LPCSTR)(&bmf), sizeof(bmf))<0 || if (_hwrite(fh, (LPCSTR)(&bmf), sizeof(bmf))<0 ||
_hwrite(fh, (LPCSTR)lpbi, size)<0) { _hwrite(fh, (LPCSTR)lpbi, size)<0) {
_lclose(fh); _lclose(fh);

View File

@ -24,8 +24,10 @@
#include <stdio.h> #include <stdio.h>
#include "wx/defs.h" #include "wx/defs.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/msgdlg.h"
#include "wx/dialog.h" #include "wx/dialog.h"
#include "wx/filedlg.h" #include "wx/filedlg.h"
#include "wx/intl.h"
#endif #endif
#include <windows.h> #include <windows.h>

View File

@ -612,7 +612,7 @@ void wxFrame::MSWCreate(int id, wxWindow *parent, const char *wclass, wxWindow *
WXDWORD extendedStyle = MakeExtendedStyle(style); WXDWORD extendedStyle = MakeExtendedStyle(style);
#ifndef __WIN16__ #if !defined(__WIN16__) && !defined(__SC__)
if (style & wxFRAME_TOOL_WINDOW) if (style & wxFRAME_TOOL_WINDOW)
extendedStyle |= WS_EX_TOOLWINDOW; extendedStyle |= WS_EX_TOOLWINDOW;
#endif #endif

View File

@ -22,6 +22,7 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/defs.h" #include "wx/defs.h"
#include "wx/utils.h"
#endif #endif
#if wxUSE_GAUGE #if wxUSE_GAUGE

View File

@ -96,7 +96,7 @@ bool wxWinHelpController::DisplaySection(int section)
bool wxWinHelpController::DisplayBlock(long block) bool wxWinHelpController::DisplayBlock(long block)
{ {
// Use context number -- a very rough equivalent to block id! // Use context number -- a very rough equivalent to block id!
if (!m_helpFile) return FALSE; if (m_helpFile == "") return FALSE;
char buf[_MAXPATHLEN]; char buf[_MAXPATHLEN];
strcpy(buf, m_helpFile); strcpy(buf, m_helpFile);

View File

@ -142,7 +142,7 @@ bool wxICOResourceHandler::LoadFile(wxBitmap *bitmap, const wxString& name, long
{ {
if ( bitmap->IsKindOf(CLASSINFO(wxIcon)) ) if ( bitmap->IsKindOf(CLASSINFO(wxIcon)) )
{ {
#if defined(__WIN32__) #if defined(__WIN32__) && !defined(__SC__)
if (desiredWidth > -1 && desiredHeight > -1) if (desiredWidth > -1 && desiredHeight > -1)
{ {
M_ICONHANDLERDATA->m_hIcon = (WXHICON) ::LoadImage(wxGetInstance(), name, IMAGE_ICON, desiredWidth, desiredHeight, LR_DEFAULTCOLOR); M_ICONHANDLERDATA->m_hIcon = (WXHICON) ::LoadImage(wxGetInstance(), name, IMAGE_ICON, desiredWidth, desiredHeight, LR_DEFAULTCOLOR);

View File

@ -23,7 +23,9 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include <wx/string.h> #include <wx/string.h>
#include <wx/intl.h> #include <wx/intl.h>
#include <wx/event.h>
#include <wx/app.h> #include <wx/app.h>
#include <wx/utils.h>
#endif //WX_PRECOMP #endif //WX_PRECOMP
#include <wx/dynarray.h> #include <wx/dynarray.h>
@ -401,9 +403,15 @@ bool wxIniConfig::Flush(bool /* bCurrentOnly */)
bool wxIniConfig::DeleteEntry(const wxString& szKey, bool bGroupIfEmptyAlso) bool wxIniConfig::DeleteEntry(const wxString& szKey, bool bGroupIfEmptyAlso)
{ {
// passing NULL as value to WritePrivateProfileString deletes the key // passing NULL as value to WritePrivateProfileString deletes the key
if ( !Write(szKey, (const char *)NULL) ) // if ( !Write(szKey, (const char *)NULL) )
// return FALSE;
wxConfigPathChanger path(this, szKey);
wxString strKey = GetPrivateKeyName(path.Name());
if (WritePrivateProfileString(m_strGroup, szKey,
(const char*) NULL, m_strLocalFilename) == 0)
return FALSE; return FALSE;
if ( !bGroupIfEmptyAlso || !IsEmpty() ) if ( !bGroupIfEmptyAlso || !IsEmpty() )
return TRUE; return TRUE;

View File

@ -23,6 +23,9 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/listbox.h" #include "wx/listbox.h"
#include "wx/settings.h" #include "wx/settings.h"
#include "wx/brush.h"
#include "wx/font.h"
#include "wx/dc.h"
#endif #endif
#include "wx/msw/private.h" #include "wx/msw/private.h"

View File

@ -20,6 +20,7 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#include "wx/event.h"
#include "wx/app.h" #include "wx/app.h"
#include <windows.h> #include <windows.h>

View File

@ -116,6 +116,7 @@ COMMONOBJS = \
$(MSWDIR)\log.obj \ $(MSWDIR)\log.obj \
$(MSWDIR)\layout.obj \ $(MSWDIR)\layout.obj \
$(MSWDIR)\memory.obj \ $(MSWDIR)\memory.obj \
$(MSWDIR)\mimetype.obj \
$(MSWDIR)\module.obj \ $(MSWDIR)\module.obj \
$(MSWDIR)\object.obj \ $(MSWDIR)\object.obj \
$(MSWDIR)\postscrp.obj \ $(MSWDIR)\postscrp.obj \
@ -511,6 +512,8 @@ $(MSWDIR)\log.obj: $(COMMDIR)\log.$(SRCSUFF)
$(MSWDIR)\memory.obj: $(COMMDIR)\memory.$(SRCSUFF) $(MSWDIR)\memory.obj: $(COMMDIR)\memory.$(SRCSUFF)
$(MSWDIR)\mimetype.obj: $(COMMDIR)\mimetype.$(SRCSUFF)
$(MSWDIR)\module.obj: $(COMMDIR)\module.$(SRCSUFF) $(MSWDIR)\module.obj: $(COMMDIR)\module.$(SRCSUFF)
$(MSWDIR)\object.obj: $(COMMDIR)\object.$(SRCSUFF) $(MSWDIR)\object.obj: $(COMMDIR)\object.$(SRCSUFF)

View File

@ -146,6 +146,7 @@ COMMONOBJS = \
$(MSWDIR)\dynlib.obj \ $(MSWDIR)\dynlib.obj \
$(MSWDIR)\tokenzr.obj $(MSWDIR)\tokenzr.obj
# Don't compile for WIN16
# $(MSWDIR)\socket.obj \ # $(MSWDIR)\socket.obj \
# $(MSWDIR)\sckaddr.obj \ # $(MSWDIR)\sckaddr.obj \
# $(MSWDIR)\protocol.obj \ # $(MSWDIR)\protocol.obj \
@ -154,8 +155,13 @@ COMMONOBJS = \
# $(MSWDIR)\ftp.obj \ # $(MSWDIR)\ftp.obj \
# $(MSWDIR)\sckfile.obj \ # $(MSWDIR)\sckfile.obj \
# $(MSWDIR)\sckipc.obj \ # $(MSWDIR)\sckipc.obj \
# Needs extra files (sql*.h) so not compiled by default.
# $(MSWDIR)\odbc.obj \ # $(MSWDIR)\odbc.obj \
# Uses WIN32 registry functions
# $(MSWDIR)\mimetype.obj \
MSWOBJS = \ MSWOBJS = \
$(MSWDIR)\accel.obj \ $(MSWDIR)\accel.obj \
$(MSWDIR)\app.obj \ $(MSWDIR)\app.obj \
@ -491,6 +497,8 @@ $(MSWDIR)\log.obj: $(COMMDIR)\log.$(SRCSUFF)
$(MSWDIR)\memory.obj: $(COMMDIR)\memory.$(SRCSUFF) $(MSWDIR)\memory.obj: $(COMMDIR)\memory.$(SRCSUFF)
$(MSWDIR)\mimetype.obj: $(COMMDIR)\mimetype.$(SRCSUFF)
$(MSWDIR)\module.obj: $(COMMDIR)\module.$(SRCSUFF) $(MSWDIR)\module.obj: $(COMMDIR)\module.$(SRCSUFF)
$(MSWDIR)\object.obj: $(COMMDIR)\object.$(SRCSUFF) $(MSWDIR)\object.obj: $(COMMDIR)\object.$(SRCSUFF)

View File

@ -125,6 +125,9 @@ COMMONOBJS = \
# Doesn't compile (nested classes) # Doesn't compile (nested classes)
# $(COMMDIR)\fileconf.obj\ # $(COMMDIR)\fileconf.obj\
# Uses WIN32 registry functions
# $(COMMDIR)\mimetype.obj \
# Fails when including png.h, on jmp_buf. # Fails when including png.h, on jmp_buf.
# $(COMMDIR)\image.obj \ # $(COMMDIR)\image.obj \
@ -758,6 +761,11 @@ $(COMMDIR)/memory.obj: $*.$(SRCSUFF)
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF) $(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
<< <<
$(COMMDIR)/mimetype.obj: $*.$(SRCSUFF)
cl @<<
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
<<
$(COMMDIR)/module.obj: $*.$(SRCSUFF) $(COMMDIR)/module.obj: $*.$(SRCSUFF)
cl @<< cl @<<
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF) $(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)

View File

@ -99,6 +99,7 @@ COMMONOBJS = \
$(COMMDIR)/log.$(OBJSUFF) \ $(COMMDIR)/log.$(OBJSUFF) \
$(COMMDIR)/memory.$(OBJSUFF) \ $(COMMDIR)/memory.$(OBJSUFF) \
$(COMMDIR)/module.$(OBJSUFF) \ $(COMMDIR)/module.$(OBJSUFF) \
$(COMMDIR)/mimetype.$(OBJSUFF) \
$(COMMDIR)/object.$(OBJSUFF) \ $(COMMDIR)/object.$(OBJSUFF) \
$(COMMDIR)/odbc.$(OBJSUFF) \ $(COMMDIR)/odbc.$(OBJSUFF) \
$(COMMDIR)/process.$(OBJSUFF) \ $(COMMDIR)/process.$(OBJSUFF) \

View File

@ -101,6 +101,7 @@ COMMONOBJS = \
$(COMMDIR)\layout.obj \ $(COMMDIR)\layout.obj \
$(COMMDIR)\log.obj \ $(COMMDIR)\log.obj \
$(COMMDIR)\memory.obj \ $(COMMDIR)\memory.obj \
$(COMMDIR)\mimetype.obj \
$(COMMDIR)\module.obj \ $(COMMDIR)\module.obj \
$(COMMDIR)\odbc.obj \ $(COMMDIR)\odbc.obj \
$(COMMDIR)\object.obj \ $(COMMDIR)\object.obj \
@ -867,6 +868,11 @@ $(COMMDIR)/memory.obj: $*.$(SRCSUFF)
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@ $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
<< <<
$(COMMDIR)/mimetype.obj: $*.$(SRCSUFF)
cl @<<
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
<<
$(COMMDIR)/module.obj: $*.$(SRCSUFF) $(COMMDIR)/module.obj: $*.$(SRCSUFF)
cl @<< cl @<<
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@ $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@

View File

@ -5,143 +5,244 @@
WXDIR = $(WXWIN) WXDIR = $(WXWIN)
!include $(WXDIR)\src\makesc.env include ..\makesc.env
INCDIR = $(WXDIR)\include DEBUG=0
MSWINC = $(INCDIR)\msw
BASEINC = $(INCDIR)\base
# default values overridden by src\makefile.sc LIBTARGET = $(LIBDIR)\wx.lib
CC=sc
CFLAGS = -o -ml -W -Dwx_msw
INCLUDE=$(BASEINC);$(MSWINC);$(WXDIR)\contrib\fafa;$(WXDIR)\contrib\itsybits
OPTIONS= OPTIONS=
# end of configuration section ########################################## # end of configuration section ##########################################
OBJS = wx_win.obj wx_frame.obj wx_panel.obj wx_utils.obj wx_main.obj \ GENDIR=$(WXDIR)\src\generic
wx_item.obj wx_text.obj wx_gdi.obj wx_dialg.obj wx_canvs.obj wx_dc.obj \ COMMDIR=$(WXDIR)\src\common
wx_mf.obj wx_ipc.obj wx_timer.obj wx_clipb.obj wx_scrol.obj wx_vlbox.obj \ XPMDIR=$(WXDIR)\src\xpm
wx_stat.obj wx_buttn.obj wx_messg.obj wx_check.obj wx_choic.obj wx_rbox.obj wx_lbox.obj \ OLEDIR=ole
wx_group.obj wx_gauge.obj wx_txt.obj wx_mtxt.obj wx_slidr.obj wx_menu.obj wx_db.obj\ MSWDIR=$(WXDIR)\src\msw
wx_cmdlg.obj
all: $(OBJS) GENERICOBJS= \
$(GENDIR)\choicdgg.obj \
$(GENDIR)\gridg.obj \
$(GENDIR)\laywin.obj \
$(GENDIR)\panelg.obj \
$(GENDIR)\prop.obj \
$(GENDIR)\propform.obj \
$(GENDIR)\proplist.obj \
$(GENDIR)\sashwin.obj \
$(GENDIR)\scrolwin.obj \
$(GENDIR)\splitter.obj \
$(GENDIR)\statusbr.obj \
$(GENDIR)\tabg.obj \
$(GENDIR)\textdlgg.obj
wx_obj.obj: $(BASEINC)\wx_obj.h # $(GENDIR)\imaglist.obj \
# $(GENDIR)\treectrl.obj \
# $(GENDIR)\listctrl.obj \
# $(GENDIR)\notebook.obj \
wx_win.obj: $(BASEINC)\wx_defs.h $(MSWINC)\wx_win.h \ # These are generic things that don't need to be compiled on MSW,
$(BASEINC)\wx_obj.h $(BASEINC)\wx_utils.h wx_win.$(SRCSUFF) \ # but sometimes it's useful to do so for testing purposes.
$(MSWINC)\wx_gdi.h $(MSWINC)\wx_privt.h NONESSENTIALOBJS= \
$(GENDIR)\printps.obj \
$(GENDIR)\prntdlgg.obj \
$(GENDIR)\msgdlgg.obj \
$(GENDIR)\helpxlp.obj \
$(GENDIR)\colrdlgg.obj \
$(GENDIR)\fontdlgg.obj \
$(COMMDIR)\postscrp.obj
wx_main.obj: $(BASEINC)\wx_defs.h $(BASEINC)\wx_obj.h \ COMMONOBJS = \
$(MSWINC)\wx_frame.h $(BASEINC)\wx_utils.h $(COMMDIR)\cmndata.obj \
$(COMMDIR)\config.obj \
$(COMMDIR)\docview.obj \
$(COMMDIR)\docmdi.obj \
$(COMMDIR)\dynarray.obj \
$(COMMDIR)\dynlib.obj \
$(COMMDIR)\event.obj \
$(COMMDIR)\file.obj \
$(COMMDIR)\filefn.obj \
$(COMMDIR)\fileconf.obj \
$(COMMDIR)\framecmn.obj \
$(COMMDIR)\gdicmn.obj \
$(COMMDIR)\image.obj \
$(COMMDIR)\intl.obj \
$(COMMDIR)\ipcbase.obj \
$(COMMDIR)\helpbase.obj \
$(COMMDIR)\layout.obj \
$(COMMDIR)\log.obj \
$(COMMDIR)\memory.obj \
$(COMMDIR)\mimetype.obj \
$(COMMDIR)\module.obj \
$(COMMDIR)\object.obj \
$(COMMDIR)\prntbase.obj \
$(COMMDIR)\resource.obj \
$(COMMDIR)\tbarbase.obj \
$(COMMDIR)\tbarsmpl.obj \
$(COMMDIR)\textfile.obj \
$(COMMDIR)\timercmn.obj \
$(COMMDIR)\utilscmn.obj \
$(COMMDIR)\validate.obj \
$(COMMDIR)\valtext.obj \
$(COMMDIR)\date.obj \
$(COMMDIR)\hash.obj \
$(COMMDIR)\list.obj \
$(COMMDIR)\string.obj \
$(COMMDIR)\socket.obj \
$(COMMDIR)\sckaddr.obj \
$(COMMDIR)\sckfile.obj \
$(COMMDIR)\sckipc.obj \
$(COMMDIR)\sckstrm.obj \
$(COMMDIR)\url.obj \
$(COMMDIR)\http.obj \
$(COMMDIR)\protocol.obj \
$(COMMDIR)\time.obj \
$(COMMDIR)\tokenzr.obj \
$(COMMDIR)\wxexpr.obj \
$(COMMDIR)\y_tab.obj \
$(COMMDIR)\extended.obj \
$(COMMDIR)\process.obj \
$(COMMDIR)\wfstream.obj \
$(COMMDIR)\mstream.obj \
$(COMMDIR)\zstream.obj \
$(COMMDIR)\stream.obj \
$(COMMDIR)\datstrm.obj \
$(COMMDIR)\objstrm.obj \
$(COMMDIR)\variant.obj \
$(COMMDIR)\wincmn.obj
wx_frame.obj: $(BASEINC)\wx_defs.h $(MSWINC)\wx_win.h $(BASEINC)\wx_obj.h \ # Don't compile
$(BASEINC)\wx_utils.h $(MSWINC)\wx_frame.h wx_frame.$(SRCSUFF) \ # $(COMMDIR)\db.obj \
$(BASEINC)\wx_stdev.h $(MSWINC)\wx_privt.h # $(COMMDIR)\dbtable.obj \
# $(COMMDIR)\odbc.obj \
wx_panel.obj: $(BASEINC)\wx_defs.h $(MSWINC)\wx_win.h $(BASEINC)\wx_obj.h \ MSWOBJS = \
$(BASEINC)\wx_utils.h $(MSWINC)\wx_frame.h $(MSWINC)\wx_panel.h \ $(MSWDIR)\accel.obj \
wx_panel.$(SRCSUFF) $(BASEINC)\wx_stdev.h $(MSWINC)\wx_privt.h $(MSWDIR)\app.obj \
$(MSWDIR)\bitmap.obj \
$(MSWDIR)\bmpbuttn.obj \
$(MSWDIR)\brush.obj \
$(MSWDIR)\button.obj \
$(MSWDIR)\checkbox.obj \
$(MSWDIR)\checklst.obj \
$(MSWDIR)\choice.obj \
$(MSWDIR)\clipbrd.obj \
$(MSWDIR)\colordlg.obj \
$(MSWDIR)\colour.obj \
$(MSWDIR)\combobox.obj \
$(MSWDIR)\control.obj \
$(MSWDIR)\curico.obj \
$(MSWDIR)\cursor.obj \
$(MSWDIR)\data.obj \
$(MSWDIR)\dc.obj \
$(MSWDIR)\dcmemory.obj \
$(MSWDIR)\dcclient.obj \
$(MSWDIR)\dcprint.obj \
$(MSWDIR)\dcscreen.obj \
$(MSWDIR)\dde.obj \
$(MSWDIR)\dialog.obj \
$(MSWDIR)\dib.obj \
$(MSWDIR)\dibutils.obj \
$(MSWDIR)\dirdlg.obj \
$(MSWDIR)\filedlg.obj \
$(MSWDIR)\font.obj \
$(MSWDIR)\fontdlg.obj \
$(MSWDIR)\frame.obj \
$(MSWDIR)\gauge95.obj \
$(MSWDIR)\gaugemsw.obj \
$(MSWDIR)\gdiobj.obj \
$(MSWDIR)\helpwin.obj \
$(MSWDIR)\icon.obj \
$(MSWDIR)\iniconf.obj \
$(MSWDIR)\listbox.obj \
$(MSWDIR)\main.obj \
$(MSWDIR)\mdi.obj \
$(MSWDIR)\menu.obj \
$(MSWDIR)\menuitem.obj \
$(MSWDIR)\metafile.obj \
$(MSWDIR)\minifram.obj \
$(MSWDIR)\msgdlg.obj \
$(MSWDIR)\nativdlg.obj \
$(MSWDIR)\ownerdrw.obj \
$(MSWDIR)\palette.obj \
$(MSWDIR)\pen.obj \
$(MSWDIR)\penwin.obj \
$(MSWDIR)\printdlg.obj \
$(MSWDIR)\printwin.obj \
$(MSWDIR)\radiobox.obj \
$(MSWDIR)\radiobut.obj \
$(MSWDIR)\region.obj \
$(MSWDIR)\registry.obj \
$(MSWDIR)\regconf.obj \
$(MSWDIR)\scrolbar.obj \
$(MSWDIR)\settings.obj \
$(MSWDIR)\slidrmsw.obj \
$(MSWDIR)\slider95.obj \
$(MSWDIR)\spinbutt.obj \
$(MSWDIR)\statbmp.obj \
$(MSWDIR)\statbox.obj \
$(MSWDIR)\statbr95.obj \
$(MSWDIR)\stattext.obj \
$(MSWDIR)\tabctrl.obj \
$(MSWDIR)\taskbar.obj \
$(MSWDIR)\tbar95.obj \
$(MSWDIR)\tbarmsw.obj \
$(MSWDIR)\textctrl.obj \
$(MSWDIR)\thread.obj \
$(MSWDIR)\timer.obj \
$(MSWDIR)\utils.obj \
$(MSWDIR)\utilsexc.obj \
$(MSWDIR)\wave.obj \
$(MSWDIR)\window.obj
wx_text.obj: $(BASEINC)\wx_defs.h $(MSWINC)\wx_win.h $(BASEINC)\wx_obj.h \ # Need Win95 support for these
$(BASEINC)\wx_utils.h $(MSWINC)\wx_frame.h $(MSWINC)\wx_text.h \ # $(MSWDIR)\notebook.obj \
wx_text.$(SRCSUFF) $(BASEINC)\wx_stdev.h $(MSWINC)\wx_privt.h # $(MSWDIR)\listctrl.obj \
# $(MSWDIR)\imaglist.obj \
# $(MSWDIR)\treectrl.obj \
# $(OLEDIR)\droptgt.obj \
# $(OLEDIR)\dropsrc.obj \
# $(OLEDIR)\dataobj.obj \
# $(OLEDIR)\oleutils.obj \
# $(OLEDIR)\uuid.obj \
# $(OLEDIR)\automtn.obj
wx_canvs.obj: $(BASEINC)\wx_defs.h $(MSWINC)\wx_win.h $(BASEINC)\wx_obj.h \ # Doesn't compile with SC++ 6
$(BASEINC)\wx_utils.h $(MSWINC)\wx_frame.h $(MSWINC)\wx_canvs.h \ # $(MSWDIR)\joystick.obj \
wx_canvs.$(SRCSUFF) $(BASEINC)\wx_stdev.h $(MSWINC)\wx_gdi.h $(MSWINC)\wx_dc.h \ # $(MSWDIR)\pnghand.obj \
$(MSWINC)\wx_privt.h
wx_dc.obj: $(BASEINC)\wx_defs.h $(MSWINC)\wx_win.h $(BASEINC)\wx_obj.h \ XPMOBJECTS = $(XPMDIR)\crbuffri.obj\
$(BASEINC)\wx_utils.h $(MSWINC)\wx_frame.h $(MSWINC)\wx_canvs.h wx_dc.$(SRCSUFF) \ $(XPMDIR)\crdatfri.obj\
$(BASEINC)\wx_stdev.h $(MSWINC)\wx_gdi.h $(MSWINC)\wx_dc.h \ $(XPMDIR)\create.obj $(XPMDIR)\crifrbuf.obj\
$(MSWINC)/wx_dccan.h $(MSWINC)/wx_dcmem.h $(XPMDIR)\crifrdat.obj\
$(XPMDIR)\data.obj\
$(XPMDIR)\hashtab.obj $(XPMDIR)\misc.obj\
$(XPMDIR)\parse.obj $(XPMDIR)\rdftodat.obj\
$(XPMDIR)\rdftoi.obj\
$(XPMDIR)\rgb.obj $(XPMDIR)\scan.obj\
$(XPMDIR)\simx.obj $(XPMDIR)\wrffrdat.obj\
$(XPMDIR)\wrffrp.obj $(XPMDIR)\wrffri.obj
wx_mf.obj: $(BASEINC)\wx_defs.h $(MSWINC)\wx_win.h $(BASEINC)\wx_obj.h \ # Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
wx_mf.$(SRCSUFF) $(BASEINC)\wx_stdev.h $(MSWINC)\wx_gdi.h $(MSWINC)\wx_mf.h OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) # $(XPMOBJECTS)
wx_item.obj: $(BASEINC)\wx_defs.h $(MSWINC)\wx_win.h $(BASEINC)\wx_obj.h \ all: $(LIBTARGET)
$(BASEINC)\wx_utils.h $(MSWINC)\wx_frame.h $(MSWINC)\wx_item.h \
wx_item.$(SRCSUFF) $(BASEINC)\wx_stdev.h $(MSWINC)\wx_privt.h
wx_utils.obj: $(BASEINC)\wx_defs.h $(BASEINC)\wx_obj.h \
$(BASEINC)\wx_utils.h wx_utils.$(SRCSUFF)
wx_ipc.obj: $(BASEINC)\wx_defs.h $(BASEINC)\wx_obj.h \
$(BASEINC)\wx_utils.h $(MSWINC)\wx_ipc.h wx_ipc.$(SRCSUFF)
wx_gdi.obj: $(BASEINC)\wx_defs.h $(MSWINC)\wx_gdi.h $(BASEINC)\wx_utils.h \
wx_gdi.$(SRCSUFF)
wx_dialg.obj: $(BASEINC)\wx_defs.h wx_dialg.$(SRCSUFF) $(MSWINC)\wx_dialg.h \
$(MSWINC)\wx_win.h $(BASEINC)\wx_utils.h $(MSWINC)\wx_panel.h \
$(MSWINC)\wx_privt.h
wx_timer.obj: $(BASEINC)\wx_defs.h wx_timer.$(SRCSUFF) $(MSWINC)\wx_timer.h
wx_clipb.obj: $(BASEINC)\wx_defs.h wx_clipb.$(SRCSUFF) $(MSWINC)\wx_clipb.h
wx_stat.obj: wx_stat.$(SRCSUFF) $(MSWINC)\wx_stat.h
wx_scrol.obj: wx_scrol.$(SRCSUFF) $(MSWINC)\wx_scrol.h
wx_vlbox.obj: wx_vlbox.$(SRCSUFF) $(MSWINC)\wx_vlbox.h
wx_buttn.obj: wx_buttn.$(SRCSUFF) $(MSWINC)\wx_buttn.h
wx_messg.obj: wx_messg.$(SRCSUFF) $(MSWINC)\wx_messg.h
wx_check.obj: wx_check.$(SRCSUFF) $(MSWINC)\wx_check.h
wx_choic.obj: wx_choic.$(SRCSUFF) $(MSWINC)\wx_choic.h
wx_rbox.obj: wx_rbox.$(SRCSUFF) $(MSWINC)\wx_rbox.h
wx_lbox.obj: wx_lbox.$(SRCSUFF) $(MSWINC)\wx_lbox.h
wx_group.obj: wx_group.$(SRCSUFF) $(MSWINC)\wx_group.h
wx_gauge.obj: wx_gauge.$(SRCSUFF) $(MSWINC)\wx_gauge.h
wx_txt.obj: wx_txt.$(SRCSUFF) $(MSWINC)\wx_txt.h
wx_mtxt.obj: wx_mtxt.$(SRCSUFF) $(MSWINC)\wx_mtxt.h
wx_slidr.obj: wx_slidr.$(SRCSUFF) $(MSWINC)\wx_slidr.h
wx_menu.obj: wx_menu.$(SRCSUFF) $(MSWINC)\wx_menu.h
wx_db.obj: wx_db.$(SRCSUFF) $(MSWINC)\wx_db.h
wx_cmdlg.obj: wx_cmdlg.$(SRCSUFF) $(MSWINC)\wx_cmdlg.h
$(MSWINC)/wx_win.h: $(BASEINC)/wb_win.h
$(MSWINC)/wx_main.h: $(BASEINC)/wb_main.h
$(MSWINC)/wx_frame.h: $(BASEINC)/wb_frame.h
$(MSWINC)/wx_panel.h: $(BASEINC)/wb_panel.h
$(MSWINC)/wx_text.h: $(BASEINC)/wb_text.h
$(MSWINC)/wx_dialg.h: $(BASEINC)/wb_dialg.h
$(MSWINC)/wx_ipc.h: $(BASEINC)/wb_ipc.h
$(MSWINC)/wx_gdi.h: $(BASEINC)/wb_gdi.h
$(MSWINC)/wx_event.h: $(BASEINC)/wb_event.h
$(MSWINC)/wx_canvs.h: $(BASEINC)/wb_canvs.h
$(MSWINC)/wx_mf.h: $(BASEINC)/wb_mf.h
$(MSWINC)/wx_item.h: $(BASEINC)/wb_item.h
$(MSWINC)/wx_buttn.h: $(BASEINC)/wb_buttn.h
$(MSWINC)/wx_messg.h: $(BASEINC)/wb_messg.h
$(MSWINC)/wx_choic.h: $(BASEINC)/wb_choic.h
$(MSWINC)/wx_check.h: $(BASEINC)/wb_check.h
$(MSWINC)/wx_lbox.h: $(BASEINC)/wb_lbox.h
$(MSWINC)/wx_txt.h: $(BASEINC)/wb_txt.h
$(MSWINC)/wx_mtxt.h: $(BASEINC)/wb_mtxt.h
$(MSWINC)/wx_slidr.h: $(BASEINC)/wb_slidr.h
$(MSWINC)/wx_menu.h: $(BASEINC)/wb_menu.h
$(LIBTARGET): $(OBJECTS)
-del $(LIBTARGET)
*lib /PAGESIZE:512 $(LIBTARGET) y $(OBJECTS), nul;
clean: clean:
-del *.obj -del *.obj
-del $(LIBTARGET)
$(COMMDIR)\y_tab.obj: $(COMMDIR)\y_tab.c $(COMMDIR)\lex_yy.c
$(COMMDIR)\y_tab.c: $(COMMDIR)\dosyacc.c
copy $(COMMDIR)\dosyacc.c $(COMMDIR)\y_tab.c
$(COMMDIR)\lex_yy.c: $(COMMDIR)\doslex.c
copy $(COMMDIR)\doslex.c $(COMMDIR)\lex_yy.c
#$(COMMDIR)\cmndata.obj: $(COMMDIR)\cmndata.cpp
# *$(CC) -c $(CFLAGS) -I$(INCLUDE) $(OPTIONS) $(COMMDIR)\cmndata.cpp -o$(COMMDIR)\cmndata.obj

View File

@ -70,6 +70,7 @@ COMMONOBJS = cmndata.obj &
layout.obj & layout.obj &
log.obj & log.obj &
memory.obj & memory.obj &
mimetype.obj &
module.obj & module.obj &
object.obj & object.obj &
prntbase.obj & prntbase.obj &
@ -565,6 +566,9 @@ log.obj: $(COMMDIR)\log.cpp
memory.obj: $(COMMDIR)\memory.cpp memory.obj: $(COMMDIR)\memory.cpp
*$(CCC) $(CPPFLAGS) $(IFLAGS) $< *$(CCC) $(CPPFLAGS) $(IFLAGS) $<
mimetype.obj: $(COMMDIR)\mimetype.cpp
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
module.obj: $(COMMDIR)\module.cpp module.obj: $(COMMDIR)\module.cpp
*$(CCC) $(CPPFLAGS) $(IFLAGS) $< *$(CCC) $(CPPFLAGS) $(IFLAGS) $<

View File

@ -22,6 +22,10 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/menu.h" #include "wx/menu.h"
#include "wx/font.h"
#include "wx/bitmap.h"
#include "wx/settings.h"
#include "wx/font.h"
#endif #endif
#include "wx/ownerdrw.h" #include "wx/ownerdrw.h"

View File

@ -22,6 +22,7 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/setup.h" #include "wx/setup.h"
#include "wx/event.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/utils.h" #include "wx/utils.h"
#endif #endif

View File

@ -169,7 +169,7 @@ wxWindow* wxWindow::CreateWindowFromHWND(wxWindow* parent, WXHWND hWnd)
{ {
win = new wxRadioButton; win = new wxRadioButton;
} }
#ifdef __WIN32__ #if defined(__WIN32__) && defined(BS_BITMAP)
else if (style & BS_BITMAP) else if (style & BS_BITMAP)
{ {
// TODO: how to find the bitmap? // TODO: how to find the bitmap?
@ -241,7 +241,7 @@ wxWindow* wxWindow::CreateWindowFromHWND(wxWindow* parent, WXHWND hWnd)
if ((style1 == SS_LEFT) || (style1 == SS_RIGHT) || (style1 == SS_SIMPLE)) if ((style1 == SS_LEFT) || (style1 == SS_RIGHT) || (style1 == SS_SIMPLE))
win = new wxStaticText; win = new wxStaticText;
#ifdef __WIN32__ #if defined(__WIN32__) && defined(BS_BITMAP)
else if (style1 == SS_BITMAP) else if (style1 == SS_BITMAP)
{ {
win = new wxStaticBitmap; win = new wxStaticBitmap;

View File

@ -27,13 +27,15 @@
#include <wx/log.h> #include <wx/log.h>
#include <wx/imaglist.h> #include <wx/imaglist.h>
#include <wx/event.h>
#include <wx/control.h>
#include <wx/notebook.h> #include <wx/notebook.h>
#include <wx/msw/private.h> #include <wx/msw/private.h>
// Windows standard headers // Windows standard headers
#ifndef __WIN95__ #ifndef __WIN95__
#error "wxNotebook is not supported under Windows 3.1" #error "wxNotebook is only supported Windows 95 and above"
#endif //Win95 #endif //Win95
#include <windowsx.h> // for SetWindowFont #include <windowsx.h> // for SetWindowFont

View File

@ -21,7 +21,11 @@
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/font.h"
#include "wx/bitmap.h"
#include "wx/dcmemory.h"
#include "wx/menu.h" #include "wx/menu.h"
#include "wx/utils.h"
#endif #endif
#include "wx/ownerdrw.h" #include "wx/ownerdrw.h"
@ -29,6 +33,10 @@
#include <windows.h> #include <windows.h>
#ifdef DrawText
#undef DrawText
#endif
// ============================================================================ // ============================================================================
// implementation of wxOwnerDrawn class // implementation of wxOwnerDrawn class
// ============================================================================ // ============================================================================
@ -45,7 +53,7 @@ wxOwnerDrawn::wxOwnerDrawn(const wxString& str,
m_nMarginWidth = ms_nLastMarginWidth; m_nMarginWidth = ms_nLastMarginWidth;
} }
#if defined(__WXMSW__) && defined(__WIN32__) #if defined(__WXMSW__) && defined(__WIN32__) && defined(SM_CXMENUCHECK)
size_t wxOwnerDrawn::ms_nDefaultMarginWidth = GetSystemMetrics(SM_CXMENUCHECK); size_t wxOwnerDrawn::ms_nDefaultMarginWidth = GetSystemMetrics(SM_CXMENUCHECK);
#else // # what is the reasonable default? #else // # what is the reasonable default?
size_t wxOwnerDrawn::ms_nDefaultMarginWidth = 15; size_t wxOwnerDrawn::ms_nDefaultMarginWidth = 15;
@ -81,7 +89,7 @@ bool wxOwnerDrawn::OnMeasureItem(size_t *pwidth, size_t *pheight)
// Win32 GDI functions and not wxWindows ones. Might help to whoever decides to // Win32 GDI functions and not wxWindows ones. Might help to whoever decides to
// port this code to X. (VZ) // port this code to X. (VZ)
#ifdef __WIN32__ #if defined(__WIN32__) && !defined(__SC__)
#define O_DRAW_NATIVE_API // comments below explain why I use it #define O_DRAW_NATIVE_API // comments below explain why I use it
#endif #endif
@ -173,7 +181,9 @@ bool wxOwnerDrawn::OnDrawItem(wxDC& dc, const wxRect& rc, wxODAction act, wxODSt
// then draw a check mark into it // then draw a check mark into it
RECT rect = { 0, 0, GetMarginWidth(), m_nHeight }; RECT rect = { 0, 0, GetMarginWidth(), m_nHeight };
#ifndef __SC__
DrawFrameControl(hdcMem, &rect, DFC_MENU, DFCS_MENUCHECK); DrawFrameControl(hdcMem, &rect, DFC_MENU, DFCS_MENUCHECK);
#endif
// finally copy it to screen DC and clean up // finally copy it to screen DC and clean up
BitBlt(hdc, rc.x, rc.y, GetMarginWidth(), m_nHeight, BitBlt(hdc, rc.x, rc.y, GetMarginWidth(), m_nHeight,

View File

@ -22,6 +22,7 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/setup.h" #include "wx/setup.h"
#include "wx/window.h"
#endif #endif
#include "wx/msw/private.h" #include "wx/msw/private.h"

View File

@ -35,6 +35,8 @@
#endif #endif
#include <windows.h> #include <windows.h>
#include <wx/palette.h>
#include <wx/bitmap.h>
#include <wx/msw/pngread.h> #include <wx/msw/pngread.h>
#include <wx/msw/dibutils.h> #include <wx/msw/dibutils.h>

View File

@ -23,6 +23,8 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include <stdio.h> #include <stdio.h>
#include "wx/setup.h" #include "wx/setup.h"
#include "wx/bitmap.h"
#include "wx/brush.h"
#include "wx/radiobox.h" #include "wx/radiobox.h"
#endif #endif
@ -592,7 +594,7 @@ wxString wxRadioBox::GetLabel(void) const
void wxRadioBox::SetLabel(const wxString& label) void wxRadioBox::SetLabel(const wxString& label)
{ {
if (m_hWnd && label) if (m_hWnd)
SetWindowText((HWND) m_hWnd, label); SetWindowText((HWND) m_hWnd, label);
} }

View File

@ -24,6 +24,7 @@
#include <stdio.h> #include <stdio.h>
#include "wx/setup.h" #include "wx/setup.h"
#include "wx/radiobut.h" #include "wx/radiobut.h"
#include "wx/brush.h"
#endif #endif
#include "wx/msw/private.h" #include "wx/msw/private.h"

View File

@ -24,6 +24,7 @@
#include <wx/string.h> #include <wx/string.h>
#endif //WX_PRECOMP #endif //WX_PRECOMP
#include <wx/event.h>
#include <wx/app.h> #include <wx/app.h>
#include <wx/log.h> #include <wx/log.h>
#include <wx/config.h> #include <wx/config.h>

View File

@ -474,7 +474,7 @@ bool wxRegKey::DeleteValue(const char *szValue)
return FALSE; return FALSE;
#ifdef __WIN32__ #ifdef __WIN32__
m_dwLastError = RegDeleteValue((HKEY) m_hKey, szValue); m_dwLastError = RegDeleteValue((HKEY) m_hKey, (char*) (const char*) szValue);
if ( m_dwLastError != ERROR_SUCCESS ) { if ( m_dwLastError != ERROR_SUCCESS ) {
wxLogSysError(m_dwLastError, _("can't delete value '%s' from key '%s'"), wxLogSysError(m_dwLastError, _("can't delete value '%s' from key '%s'"),
szValue, GetName().c_str()); szValue, GetName().c_str());
@ -508,7 +508,7 @@ bool wxRegKey::HasValue(const char *szValue) const
#ifdef __WIN32__ #ifdef __WIN32__
if ( CONST_CAST Open() ) { if ( CONST_CAST Open() ) {
return RegQueryValueEx((HKEY) m_hKey, szValue, RESERVED, return RegQueryValueEx((HKEY) m_hKey, (char*) (const char*) szValue, RESERVED,
NULL, NULL, NULL) == ERROR_SUCCESS; NULL, NULL, NULL) == ERROR_SUCCESS;
} }
else else
@ -550,7 +550,7 @@ wxRegKey::ValueType wxRegKey::GetValueType(const char *szValue)
return Type_None; return Type_None;
DWORD dwType; DWORD dwType;
m_dwLastError = RegQueryValueEx((HKEY) m_hKey, szValue, RESERVED, m_dwLastError = RegQueryValueEx((HKEY) m_hKey, (char*) (const char*) szValue, RESERVED,
&dwType, NULL, NULL); &dwType, NULL, NULL);
if ( m_dwLastError != ERROR_SUCCESS ) { if ( m_dwLastError != ERROR_SUCCESS ) {
wxLogSysError(m_dwLastError, _("can't read value of key '%s'"), wxLogSysError(m_dwLastError, _("can't read value of key '%s'"),
@ -584,7 +584,7 @@ bool wxRegKey::QueryValue(const char *szValue, long *plValue) const
if ( CONST_CAST Open() ) { if ( CONST_CAST Open() ) {
DWORD dwType, dwSize = sizeof(DWORD); DWORD dwType, dwSize = sizeof(DWORD);
RegString pBuf = (RegString)plValue; RegString pBuf = (RegString)plValue;
m_dwLastError = RegQueryValueEx((HKEY) m_hKey, szValue, RESERVED, m_dwLastError = RegQueryValueEx((HKEY) m_hKey, (char*) (const char*) szValue, RESERVED,
&dwType, pBuf, &dwSize); &dwType, pBuf, &dwSize);
if ( m_dwLastError != ERROR_SUCCESS ) { if ( m_dwLastError != ERROR_SUCCESS ) {
wxLogSysError(m_dwLastError, _("can't read value of key '%s'"), wxLogSysError(m_dwLastError, _("can't read value of key '%s'"),
@ -611,11 +611,11 @@ bool wxRegKey::QueryValue(const char *szValue, wxString& strValue) const
#ifdef __WIN32__ #ifdef __WIN32__
// first get the type and size of the data // first get the type and size of the data
DWORD dwType, dwSize; DWORD dwType, dwSize;
m_dwLastError = RegQueryValueEx((HKEY) m_hKey, szValue, RESERVED, m_dwLastError = RegQueryValueEx((HKEY) m_hKey, (char*) (const char*) szValue, RESERVED,
&dwType, NULL, &dwSize); &dwType, NULL, &dwSize);
if ( m_dwLastError == ERROR_SUCCESS ) { if ( m_dwLastError == ERROR_SUCCESS ) {
RegString pBuf = (RegString)strValue.GetWriteBuf(dwSize); RegString pBuf = (RegString)strValue.GetWriteBuf(dwSize);
m_dwLastError = RegQueryValueEx((HKEY) m_hKey, szValue, RESERVED, m_dwLastError = RegQueryValueEx((HKEY) m_hKey, (char*) (const char*) szValue, RESERVED,
&dwType, pBuf, &dwSize); &dwType, pBuf, &dwSize);
strValue.UngetWriteBuf(); strValue.UngetWriteBuf();
if ( m_dwLastError == ERROR_SUCCESS ) { if ( m_dwLastError == ERROR_SUCCESS ) {

View File

@ -90,7 +90,7 @@ int wxSystemSettings::GetSystemMetric(int index)
return ::GetSystemMetrics(SM_CXDOUBLECLK); return ::GetSystemMetrics(SM_CXDOUBLECLK);
case wxSYS_DCLICK_Y: case wxSYS_DCLICK_Y:
return ::GetSystemMetrics(SM_CYDOUBLECLK); return ::GetSystemMetrics(SM_CYDOUBLECLK);
#ifdef __WIN32__ #if defined(__WIN32__) && defined(SM_CXDRAG)
case wxSYS_DRAG_X: case wxSYS_DRAG_X:
return ::GetSystemMetrics(SM_CXDRAG); return ::GetSystemMetrics(SM_CXDRAG);
case wxSYS_DRAG_Y: case wxSYS_DRAG_Y:
@ -122,7 +122,8 @@ int wxSystemSettings::GetSystemMetric(int index)
return ::GetSystemMetrics(SM_CXSCREEN); return ::GetSystemMetrics(SM_CXSCREEN);
case wxSYS_SCREEN_Y: case wxSYS_SCREEN_Y:
return ::GetSystemMetrics(SM_CYSCREEN); return ::GetSystemMetrics(SM_CYSCREEN);
#ifdef __WIN32__
#if defined(__WIN32__) && defined(SM_CXSIZEFRAME)
case wxSYS_FRAMESIZE_X: case wxSYS_FRAMESIZE_X:
return ::GetSystemMetrics(SM_CXSIZEFRAME); return ::GetSystemMetrics(SM_CXSIZEFRAME);
case wxSYS_FRAMESIZE_Y: case wxSYS_FRAMESIZE_Y:
@ -146,13 +147,13 @@ int wxSystemSettings::GetSystemMetric(int index)
return ::GetSystemMetrics(SM_CYCAPTION); return ::GetSystemMetrics(SM_CYCAPTION);
case wxSYS_MENU_Y: case wxSYS_MENU_Y:
return ::GetSystemMetrics(SM_CYMENU); return ::GetSystemMetrics(SM_CYMENU);
#ifdef __WIN32__ #if defined(__WIN32__) && defined(SM_NETWORK)
case wxSYS_NETWORK_PRESENT: case wxSYS_NETWORK_PRESENT:
return ::GetSystemMetrics(SM_NETWORK) & 0x0001; return ::GetSystemMetrics(SM_NETWORK) & 0x0001;
#endif #endif
case wxSYS_PENWINDOWS_PRESENT: case wxSYS_PENWINDOWS_PRESENT:
return ::GetSystemMetrics(SM_PENWINDOWS); return ::GetSystemMetrics(SM_PENWINDOWS);
#ifdef __WIN32__ #if defined(__WIN32__) && defined(SM_SHOWSOUNDS)
case wxSYS_SHOW_SOUNDS: case wxSYS_SHOW_SOUNDS:
return ::GetSystemMetrics(SM_SHOWSOUNDS); return ::GetSystemMetrics(SM_SHOWSOUNDS);
#endif #endif

View File

@ -24,6 +24,8 @@
#include <stdio.h> #include <stdio.h>
#endif #endif
#include "wx/utils.h"
#include "wx/brush.h"
#include "wx/msw/slidrmsw.h" #include "wx/msw/slidrmsw.h"
#include "wx/msw/private.h" #include "wx/msw/private.h"

View File

@ -21,7 +21,7 @@
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx.h" #include "wx/wx.h"
#endif #endif
#if defined(__WIN95__) #if defined(__WIN95__)

View File

@ -144,7 +144,7 @@ void wxStaticBitmap::SetBitmap(const wxBitmap& bitmap)
bool wxStaticBitmap::MSWOnDraw(WXDRAWITEMSTRUCT *item) bool wxStaticBitmap::MSWOnDraw(WXDRAWITEMSTRUCT *item)
{ {
long style = GetWindowLong((HWND) GetHWND(), GWL_STYLE); long style = GetWindowLong((HWND) GetHWND(), GWL_STYLE);
#ifdef __WIN32__ #if defined(__WIN32__) && defined(SS_BITMAP)
if ((style & 0xFF) == SS_BITMAP) if ((style & 0xFF) == SS_BITMAP)
{ {
// Should we call Default() here? // Should we call Default() here?

View File

@ -27,6 +27,8 @@
#include "wx/dcclient.h" #include "wx/dcclient.h"
#endif #endif
#ifdef __WIN95__
#include "wx/log.h" #include "wx/log.h"
#include "wx/generic/statusbr.h" #include "wx/generic/statusbr.h"
@ -35,7 +37,7 @@
#include <windows.h> #include <windows.h>
#include <windowsx.h> #include <windowsx.h>
#ifndef __GNUWIN32__ #if !defined(__GNUWIN32__)
#include <commctrl.h> #include <commctrl.h>
#endif #endif
@ -227,4 +229,7 @@ void wxStatusBar95::OnSize(wxSizeEvent& event)
SetFieldsWidth(); SetFieldsWidth();
} }
#endif //USE_NATIVE_STATUSBAR #endif
// __WIN95__
#endif
// wxUSE_NATIVE_STATUSBAR

View File

@ -21,7 +21,9 @@
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/event.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/brush.h"
#endif #endif
#include "wx/stattext.h" #include "wx/stattext.h"

View File

@ -21,7 +21,7 @@
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx.h" #include "wx/wx.h"
#endif #endif
#if defined(__WIN95__) #if defined(__WIN95__)

View File

@ -21,7 +21,7 @@
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx.h" #include "wx/wx.h"
#endif #endif
#if wxUSE_BUTTONBAR && wxUSE_TOOLBAR && defined(__WIN95__) #if wxUSE_BUTTONBAR && wxUSE_TOOLBAR && defined(__WIN95__)

View File

@ -21,7 +21,7 @@
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx.h" #include "wx/wx.h"
#endif #endif
#if wxUSE_BUTTONBAR && wxUSE_TOOLBAR #if wxUSE_BUTTONBAR && wxUSE_TOOLBAR
@ -36,7 +36,9 @@
#include <stdlib.h> #include <stdlib.h>
#include "wx/tbarmsw.h" #include "wx/tbarmsw.h"
#include "wx/event.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/bitmap.h"
#include "wx/msw/private.h" #include "wx/msw/private.h"
#include "wx/msw/dib.h" #include "wx/msw/dib.h"

View File

@ -23,6 +23,9 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/textctrl.h" #include "wx/textctrl.h"
#include "wx/settings.h" #include "wx/settings.h"
#include "wx/brush.h"
#include "wx/utils.h"
#include "wx/log.h"
#endif #endif
#if wxUSE_CLIPBOARD #if wxUSE_CLIPBOARD
@ -514,7 +517,7 @@ void wxTextCtrl::SetSelection(long from, long to)
bool wxTextCtrl::LoadFile(const wxString& file) bool wxTextCtrl::LoadFile(const wxString& file)
{ {
if (!FileExists(WXSTRINGCAST file)) if (!wxFileExists(WXSTRINGCAST file))
return FALSE; return FALSE;
m_fileName = file; m_fileName = file;
@ -754,7 +757,7 @@ int wxTextCtrl::overflow(int c)
#if wxUSE_IOSTREAMH #if wxUSE_IOSTREAMH
if ( allocate()==EOF ) if ( allocate()==EOF )
{ {
wxError("Streambuf allocation failed","Internal error"); wxLogError("Streambuf allocation failed");
return EOF; return EOF;
} }
#endif #endif

View File

@ -23,6 +23,7 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/setup.h" #include "wx/setup.h"
#include "wx/list.h" #include "wx/list.h"
#include "wx/event.h"
#include "wx/app.h" #include "wx/app.h"
#endif #endif

View File

@ -391,7 +391,7 @@ int wxGetOsVersion(int *majorVsn, int *minorVsn)
if (majorVsn) *majorVsn = 0; if (majorVsn) *majorVsn = 0;
if (minorVsn) *minorVsn = 0; if (minorVsn) *minorVsn = 0;
#ifdef WIN32 #if defined(__WIN32__) && !defined(__SC__)
OSVERSIONINFO info; OSVERSIONINFO info;
memset(&info, 0, sizeof(OSVERSIONINFO)); memset(&info, 0, sizeof(OSVERSIONINFO));
info.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); info.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
@ -415,7 +415,7 @@ int wxGetOsVersion(int *majorVsn, int *minorVsn)
return wxWINDOWS; // error if we get here, return generic value return wxWINDOWS; // error if we get here, return generic value
#else #else
// Win16 code... // Win16 code...
int retValue ; int retValue = 0;
# ifdef __WINDOWS_386__ # ifdef __WINDOWS_386__
retValue = wxWIN386; retValue = wxWIN386;
# else # else

View File

@ -24,6 +24,7 @@
#include "wx/setup.h" #include "wx/setup.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/intl.h"
#endif #endif
#include "wx/log.h" #include "wx/log.h"

View File

@ -31,6 +31,7 @@
#include "wx/panel.h" #include "wx/panel.h"
#include "wx/layout.h" #include "wx/layout.h"
#include "wx/dialog.h" #include "wx/dialog.h"
#include "wx/frame.h"
#include "wx/listbox.h" #include "wx/listbox.h"
#include "wx/button.h" #include "wx/button.h"
#include "wx/settings.h" #include "wx/settings.h"