Made it possible to switch off more settings; fixed wxScrollWindow::Scroll bug

(if x == oldx, skipped processing of y direction)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@6912 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2000-03-23 21:16:24 +00:00
parent 9c1df6be77
commit 6ed30bba72
53 changed files with 182 additions and 52 deletions

View File

@@ -236,6 +236,8 @@ samples/sockets/client.b32
samples/sockets/server.b32 samples/sockets/server.b32
samples/sockets/client.bcc samples/sockets/client.bcc
samples/sockets/server.bcc samples/sockets/server.bcc
samples/sockets/client.g95
samples/sockets/server.g95
samples/sockets/*.xbm samples/sockets/*.xbm
samples/sockets/*.xpm samples/sockets/*.xpm
samples/sockets/*.ico samples/sockets/*.ico
@@ -670,6 +672,8 @@ samples/ipc/client.bcc
samples/ipc/server.bcc samples/ipc/server.bcc
samples/ipc/client.dos samples/ipc/client.dos
samples/ipc/server.dos samples/ipc/server.dos
samples/ipc/client.g95
samples/ipc/server.g95
samples/ipc/*.rc samples/ipc/*.rc
samples/ipc/*.def samples/ipc/*.def
samples/ipc/*.bmp samples/ipc/*.bmp

View File

@@ -1,4 +1,21 @@
include/wx/datetime.inl include/wx/datetime.inl
include/wx/sckipc.h
include/wx/ipcbase.h
include/wx/gtk/pen.h
include/wx/defs.h
src/msw/treectrl.cpp src/msw/treectrl.cpp
src/common/sckipc.cpp
src/common/intl.cpp
src/generic/scrolwin.cpp
src/gtk/settings.cpp
samples/treectrl/TreectrlVC.dsp samples/treectrl/TreectrlVC.dsp
samples/sockets/client.g95
samples/sockets/server.g95
samples/ipc/client.g95
samples/ipc/server.g95
src/xpm/makefile.b32
configure
configure.in
docs/msw/install.txt

View File

@@ -457,7 +457,7 @@ rtf: $(DOCDIR)/winhelp/wx.rtf
pdfrtf: $(DOCDIR)/pdf/wx.rtf pdfrtf: $(DOCDIR)/pdf/wx.rtf
refpdfrtf: $(DOCDIR)/pdf/techref.rtf refpdfrtf: $(DOCDIR)/pdf/techref.rtf
html: wxhtml html: wxhtml
wxhtml: $(DOCDIR)\html\wx\wx.htm wxhtml: $(DOCDIR)\html\wx\wx.htm htb
htmlhelp: $(DOCDIR)\html\wx\wx.chm htmlhelp: $(DOCDIR)\html\wx\wx.chm
ps: wxps referencps ps: wxps referencps
wxps: $(WXDIR)\docs\ps\wx.ps wxps: $(WXDIR)\docs\ps\wx.ps
@@ -621,7 +621,8 @@ htb:
cd $(WXDIR)\docs\html\wx cd $(WXDIR)\docs\html\wx
-erase /Y wx.zip wx.htb -erase /Y wx.zip wx.htb
zip32 wx.zip *.htm *.gif *.hhp *.hhc *.hhk zip32 wx.zip *.htm *.gif *.hhp *.hhc *.hhk
ren wx.zip wx.htb -mkdir $(DOCDIR)\html\htb
move wx.zip $(DOCDIR)\html\htb\wx.htb
cd $(THISDIR) cd $(THISDIR)
# In order to force document reprocessing # In order to force document reprocessing

View File

@@ -22,6 +22,7 @@ echo CTRL-C if this is not correct.
pause pause
erase %dest\wx*.zip erase %dest\wx*.zip
erase %dest\*.htb
erase %dest\ogl3.zip erase %dest\ogl3.zip
erase %dest\tex2rtf2.zip erase %dest\tex2rtf2.zip
erase %dest\jpeg.zip erase %dest\jpeg.zip
@@ -51,6 +52,7 @@ zip32 -@ %dest\wx%version%_hlp.zip < %src\distrib\msw\wx_hlp.rsp
zip32 -@ %dest\wx%version%_htm.zip < %src\distrib\msw\wx_html.rsp zip32 -@ %dest\wx%version%_htm.zip < %src\distrib\msw\wx_html.rsp
zip32 -@ %dest\wx%version%_pdf.zip < %src\distrib\msw\wx_pdf.rsp zip32 -@ %dest\wx%version%_pdf.zip < %src\distrib\msw\wx_pdf.rsp
zip32 -@ %dest\wx%version%_wrd.zip < %src\distrib\msw\wx_word.rsp zip32 -@ %dest\wx%version%_wrd.zip < %src\distrib\msw\wx_word.rsp
zip32 -@ %dest\wx%version%_htb.zip < %src\distrib\msw\wx_htb.rsp
Rem PDF/HTML docs that should go into the Windows setup because Rem PDF/HTML docs that should go into the Windows setup because
Rem there are no WinHelp equivalents Rem there are no WinHelp equivalents

View File

@@ -50,7 +50,7 @@ all (GUI):
MIME types if available (Unix only) MIME types if available (Unix only)
- wxDC::DrawRotatedText() (based on contribution by Hans-Joachim Baader) - wxDC::DrawRotatedText() (based on contribution by Hans-Joachim Baader)
- TIFF support added (libtiff required and included in the distribution) - TIFF support added (libtiff required and included in the distribution)
- PCX files can now be written (24 bit only so far) - PCX files can now be written (256 and 24 bits)
- validators may work recursively if wxWS_EX_VALIDATE_RECURSIVELY is set - validators may work recursively if wxWS_EX_VALIDATE_RECURSIVELY is set
- wxScrolledWindow now has keyboard interface - wxScrolledWindow now has keyboard interface
- wxTextEntryDialog may be used for entering passwords (supports wxTE_PASSWORD) - wxTextEntryDialog may be used for entering passwords (supports wxTE_PASSWORD)

View File

@@ -59,7 +59,7 @@ available at dates convenient to the developers.<P>
<H4>Release 2.1.14</H4> <H4>Release 2.1.14</H4>
Release date: March 12, 2000<P> Release date: March 21st, 2000<P>
This will be the final beta release before the final 2.2 release. It will be This will be the final beta release before the final 2.2 release. It will be
synchronized for as many platforms as possible (at least Windows and GTK, synchronized for as many platforms as possible (at least Windows and GTK,
@@ -94,8 +94,8 @@ This is the next stable version of wxWindows. No new features since
<ul> <ul>
<li>bugs found during 2.1.14 will be fixed. <li>bugs found during 2.1.14 will be fixed.
<li>translations of text strings used in wxWindows <li>translations of text strings used in wxWindows.
<li>documentation updated to include all new classes <li>documentation updated to include all new classes.
</ul> </ul>
<P> <P>

View File

@@ -23,7 +23,10 @@
#include "wx/font.h" // for wxFont and wxFontEncoding #include "wx/font.h" // for wxFont and wxFontEncoding
#include "wx/fontutil.h" // for wxNativeEncodingInfo #include "wx/fontutil.h" // for wxNativeEncodingInfo
#if wxUSE_CONFIG
class WXDLLEXPORT wxConfigBase; class WXDLLEXPORT wxConfigBase;
#endif
class WXDLLEXPORT wxWindow; class WXDLLEXPORT wxWindow;
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
@@ -102,6 +105,7 @@ public:
// GetDefaultConfigPath() // GetDefaultConfigPath()
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
#if wxUSE_CONFIG
// set the config object to use (may be NULL to use default) // set the config object to use (may be NULL to use default)
void SetConfig(wxConfigBase *config) { m_config = config; } void SetConfig(wxConfigBase *config) { m_config = config; }
@@ -110,8 +114,11 @@ public:
// return default config path // return default config path
static const wxChar *GetDefaultConfigPath(); static const wxChar *GetDefaultConfigPath();
#endif
protected: protected:
#if wxUSE_CONFIG
// get the config object we're using - if it wasn't set explicitly, this // get the config object we're using - if it wasn't set explicitly, this
// function will use wxConfig::Get() to get the global one // function will use wxConfig::Get() to get the global one
wxConfigBase *GetConfig(); wxConfigBase *GetConfig();
@@ -119,6 +126,7 @@ protected:
// gets the root path for our settings - if itwasn't set explicitly, use // gets the root path for our settings - if itwasn't set explicitly, use
// GetDefaultConfigPath() // GetDefaultConfigPath()
const wxString& GetConfigPath(); const wxString& GetConfigPath();
#endif
// change to the given (relative) path in the config, return TRUE if ok // change to the given (relative) path in the config, return TRUE if ok
// (then GetConfig() will return something !NULL), FALSE if no config // (then GetConfig() will return something !NULL), FALSE if no config
@@ -142,8 +150,11 @@ protected:
wxFontEncoding encReplacement, wxFontEncoding encReplacement,
wxNativeEncodingInfo *info); wxNativeEncodingInfo *info);
#if wxUSE_CONFIG
// config object and path (in it) to use // config object and path (in it) to use
wxConfigBase *m_config; wxConfigBase *m_config;
#endif
wxString m_configRootPath; wxString m_configRootPath;
// the title for our dialogs // the title for our dialogs

View File

@@ -631,6 +631,11 @@
#define wxUSE_NATIVE_STATUSBAR 0 #define wxUSE_NATIVE_STATUSBAR 0
#endif #endif
#if !wxUSE_OWNER_DRAWN
#undef wxUSE_CHECKLISTBOX
#define wxUSE_CHECKLISTBOX 0
#endif
// Salford C++ doesn't like some of the memory operator definitions // Salford C++ doesn't like some of the memory operator definitions
#ifdef __SALFORDC__ #ifdef __SALFORDC__
#undef wxUSE_MEMORY_TRACING #undef wxUSE_MEMORY_TRACING

View File

@@ -19,7 +19,10 @@
#include "wx/defs.h" #include "wx/defs.h"
#include "wx/object.h" #include "wx/object.h"
#include "wx/event.h" #include "wx/event.h"
#if wxUSE_STREAMS
#include "wx/stream.h" #include "wx/stream.h"
#endif
// Process Event handling // Process Event handling
class WXDLLEXPORT wxProcessEvent : public wxEvent class WXDLLEXPORT wxProcessEvent : public wxEvent
@@ -72,20 +75,24 @@ public:
// before the process it started terminates // before the process it started terminates
void Detach(); void Detach();
#if wxUSE_STREAMS
// Pipe handling // Pipe handling
wxInputStream *GetInputStream() const { return m_inputStream; } wxInputStream *GetInputStream() const { return m_inputStream; }
wxOutputStream *GetOutputStream() const { return m_outputStream; } wxOutputStream *GetOutputStream() const { return m_outputStream; }
// implementation only (for wxExecute) // implementation only (for wxExecute)
void SetPipeStreams(wxInputStream *inStream, wxOutputStream *outStream); void SetPipeStreams(wxInputStream *inStream, wxOutputStream *outStream);
#endif
protected: protected:
void Init(wxEvtHandler *parent, int id, bool redirect); void Init(wxEvtHandler *parent, int id, bool redirect);
int m_id; int m_id;
#if wxUSE_STREAMS
wxInputStream *m_inputStream; wxInputStream *m_inputStream;
wxOutputStream *m_outputStream; wxOutputStream *m_outputStream;
#endif
bool m_redirect; bool m_redirect;
}; };

View File

@@ -35,8 +35,11 @@
#endif // PCH #endif // PCH
#include "wx/fontmap.h" #include "wx/fontmap.h"
#if wxUSE_CONFIG
#include "wx/config.h" #include "wx/config.h"
#include "wx/memconf.h" #include "wx/memconf.h"
#endif
#include "wx/msgdlg.h" #include "wx/msgdlg.h"
#include "wx/fontdlg.h" #include "wx/fontdlg.h"
@@ -188,7 +191,10 @@ private:
wxFontMapper::wxFontMapper() wxFontMapper::wxFontMapper()
{ {
#if wxUSE_CONFIG
m_config = NULL; m_config = NULL;
#endif
m_windowParent = NULL; m_windowParent = NULL;
} }
@@ -200,6 +206,8 @@ wxFontMapper::~wxFontMapper()
// customisation // customisation
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#if wxUSE_CONFIG
/* static */ const wxChar *wxFontMapper::GetDefaultConfigPath() /* static */ const wxChar *wxFontMapper::GetDefaultConfigPath()
{ {
return FONTMAPPER_ROOT_PATH; return FONTMAPPER_ROOT_PATH;
@@ -213,7 +221,6 @@ void wxFontMapper::SetConfigPath(const wxString& prefix)
m_configRootPath = prefix; m_configRootPath = prefix;
} }
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// get config object and path for it // get config object and path for it
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
@@ -250,9 +257,11 @@ const wxString& wxFontMapper::GetConfigPath()
return m_configRootPath; return m_configRootPath;
} }
#endif
bool wxFontMapper::ChangePath(const wxString& pathNew, wxString *pathOld) bool wxFontMapper::ChangePath(const wxString& pathNew, wxString *pathOld)
{ {
#if wxUSE_CONFIG
wxConfigBase *config = GetConfig(); wxConfigBase *config = GetConfig();
if ( !config ) if ( !config )
return FALSE; return FALSE;
@@ -273,11 +282,17 @@ bool wxFontMapper::ChangePath(const wxString& pathNew, wxString *pathOld)
config->SetPath(path); config->SetPath(path);
return TRUE; return TRUE;
#else
return FALSE;
#endif
} }
void wxFontMapper::RestorePath(const wxString& pathOld) void wxFontMapper::RestorePath(const wxString& pathOld)
{ {
#if wxUSE_CONFIG
GetConfig()->SetPath(pathOld); GetConfig()->SetPath(pathOld);
#else
#endif
} }
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
@@ -338,6 +353,7 @@ wxFontEncoding wxFontMapper::CharsetToEncoding(const wxString& charset,
// we're going to modify it, make a copy // we're going to modify it, make a copy
wxString cs = charset; wxString cs = charset;
#if wxUSE_CONFIG
// first try the user-defined settings // first try the user-defined settings
wxString pathOld; wxString pathOld;
if ( ChangePath(FONTMAPPER_CHARSET_PATH, &pathOld) ) if ( ChangePath(FONTMAPPER_CHARSET_PATH, &pathOld) )
@@ -375,6 +391,7 @@ wxFontEncoding wxFontMapper::CharsetToEncoding(const wxString& charset,
RestorePath(pathOld); RestorePath(pathOld);
} }
#endif
// if didn't find it there, try to reckognise it ourselves // if didn't find it there, try to reckognise it ourselves
if ( encoding == wxFONTENCODING_SYSTEM ) if ( encoding == wxFONTENCODING_SYSTEM )
@@ -473,6 +490,7 @@ wxFontEncoding wxFontMapper::CharsetToEncoding(const wxString& charset,
{ {
encoding = gs_encodings[n]; encoding = gs_encodings[n];
#if wxUSE_CONFIG
// save the result in the config now // save the result in the config now
if ( ChangePath(FONTMAPPER_CHARSET_PATH, &pathOld) ) if ( ChangePath(FONTMAPPER_CHARSET_PATH, &pathOld) )
{ {
@@ -487,6 +505,7 @@ wxFontEncoding wxFontMapper::CharsetToEncoding(const wxString& charset,
RestorePath(pathOld); RestorePath(pathOld);
} }
#endif
} }
//else: cancelled //else: cancelled
} }
@@ -507,6 +526,7 @@ bool wxFontMapper::TestAltEncoding(const wxString& configEntry,
if ( wxGetNativeFontEncoding(encReplacement, info) && if ( wxGetNativeFontEncoding(encReplacement, info) &&
wxTestFontEncoding(*info) ) wxTestFontEncoding(*info) )
{ {
#if wxUSE_CONFIG
// remember the mapping in the config // remember the mapping in the config
wxFontMapperPathChanger path(this, FONTMAPPER_FONT_FROM_ENCODING_PATH); wxFontMapperPathChanger path(this, FONTMAPPER_FONT_FROM_ENCODING_PATH);
@@ -514,7 +534,7 @@ bool wxFontMapper::TestAltEncoding(const wxString& configEntry,
{ {
GetConfig()->Write(configEntry, info->ToString()); GetConfig()->Write(configEntry, info->ToString());
} }
#endif
return TRUE; return TRUE;
} }
@@ -553,6 +573,8 @@ bool wxFontMapper::GetAltForEncoding(wxFontEncoding encoding,
} }
configEntry += encName; configEntry += encName;
#if wxUSE_CONFIG
// do we have a font spec for this encoding? // do we have a font spec for this encoding?
wxString pathOld; wxString pathOld;
if ( ChangePath(FONTMAPPER_FONT_FROM_ENCODING_PATH, &pathOld) ) if ( ChangePath(FONTMAPPER_FONT_FROM_ENCODING_PATH, &pathOld) )
@@ -588,6 +610,7 @@ bool wxFontMapper::GetAltForEncoding(wxFontEncoding encoding,
} }
//else: there is no information in config about this encoding //else: there is no information in config about this encoding
} }
#endif
// ask the user // ask the user
if ( interactive ) if ( interactive )
@@ -624,6 +647,7 @@ bool wxFontMapper::GetAltForEncoding(wxFontEncoding encoding,
*info = retData.EncodingInfo(); *info = retData.EncodingInfo();
info -> encoding = retData.GetEncoding(); info -> encoding = retData.GetEncoding();
#if wxUSE_CONFIG
// remember this in the config // remember this in the config
if ( ChangePath(FONTMAPPER_FONT_FROM_ENCODING_PATH, &pathOld) ) if ( ChangePath(FONTMAPPER_FONT_FROM_ENCODING_PATH, &pathOld) )
{ {
@@ -631,6 +655,7 @@ bool wxFontMapper::GetAltForEncoding(wxFontEncoding encoding,
RestorePath(pathOld); RestorePath(pathOld);
} }
#endif
return TRUE; return TRUE;
} }

View File

@@ -20,7 +20,9 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_SOCKETS #include "wx/setup.h"
#if wxUSE_SOCKETS && wxUSE_STREAMS
#ifndef __MWERKS__ #ifndef __MWERKS__
#include <memory.h> #include <memory.h>

View File

@@ -20,7 +20,7 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_SOCKETS #if wxUSE_SOCKETS && wxUSE_STREAMS
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@@ -36,14 +36,19 @@ void wxProcess::Init(wxEvtHandler *parent, int id, bool redirect)
m_id = id; m_id = id;
m_redirect = redirect; m_redirect = redirect;
#if wxUSE_STREAMS
m_inputStream = NULL; m_inputStream = NULL;
m_outputStream = NULL; m_outputStream = NULL;
#endif
} }
wxProcess::~wxProcess() wxProcess::~wxProcess()
{ {
#if wxUSE_STREAMS
delete m_inputStream; delete m_inputStream;
delete m_outputStream; delete m_outputStream;
#endif
} }
void wxProcess::OnTerminate(int pid, int status) void wxProcess::OnTerminate(int pid, int status)
@@ -61,9 +66,10 @@ void wxProcess::Detach()
SetNextHandler(NULL); SetNextHandler(NULL);
} }
#if wxUSE_STREAMS
void wxProcess::SetPipeStreams(wxInputStream *in_stream, wxOutputStream *out_stream) void wxProcess::SetPipeStreams(wxInputStream *in_stream, wxOutputStream *out_stream)
{ {
m_inputStream = in_stream; m_inputStream = in_stream;
m_outputStream = out_stream; m_outputStream = out_stream;
} }
#endif

View File

@@ -23,6 +23,8 @@
#include "wx/defs.h" #include "wx/defs.h"
#endif #endif
#if wxUSE_STREAMS
#include <stdio.h> #include <stdio.h>
#include "wx/wfstream.h" #include "wx/wfstream.h"
#include "wx/protocol/file.h" #include "wx/protocol/file.h"
@@ -44,3 +46,4 @@ wxInputStream *wxFileProto::GetInputStream(const wxString& path)
return new wxFileInputStream(path); return new wxFileInputStream(path);
} }
#endif

View File

@@ -36,7 +36,7 @@
#include "wx/defs.h" #include "wx/defs.h"
#endif #endif
#if wxUSE_SOCKETS && wxUSE_IPC #if wxUSE_SOCKETS && wxUSE_IPC && wxUSE_STREAMS
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>

View File

@@ -1219,6 +1219,8 @@ long wxExecute(const wxString& command, wxArrayString& output)
process->Redirect(); process->Redirect();
long rc = wxExecute(command, TRUE /* sync */, process); long rc = wxExecute(command, TRUE /* sync */, process);
#if wxUSE_STREAMS
if ( rc != -1 ) if ( rc != -1 )
{ {
wxInputStream& is = *process->GetInputStream(); wxInputStream& is = *process->GetInputStream();
@@ -1232,6 +1234,7 @@ long wxExecute(const wxString& command, wxArrayString& output)
output.Add(line); output.Add(line);
} }
} }
#endif
return rc; return rc;
#endif #endif

View File

@@ -46,8 +46,10 @@
#ifndef __WIN16__ #ifndef __WIN16__
#include "wx/spinbutt.h" #include "wx/spinbutt.h"
#if wxUSE_CHECKLISTBOX
#include "wx/checklst.h" #include "wx/checklst.h"
#endif #endif
#endif
#include "wx/valgen.h" #include "wx/valgen.h"

View File

@@ -38,11 +38,13 @@
#include "wx/string.h" #include "wx/string.h"
#include "wx/variant.h" #include "wx/variant.h"
#if wxUSE_TIMEDATE
IMPLEMENT_DYNAMIC_CLASS(wxDate, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxDate, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxTime, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxTime, wxObject)
wxTime::tFormat wxTime::ms_Format = wxTime::wx12h; wxTime::tFormat wxTime::ms_Format = wxTime::wx12h;
wxTime::tPrecision wxTime::ms_Precision = wxTime::wxStdMinSec; wxTime::tPrecision wxTime::ms_Precision = wxTime::wxStdMinSec;
#endif
IMPLEMENT_ABSTRACT_CLASS(wxVariantData, wxObject) IMPLEMENT_ABSTRACT_CLASS(wxVariantData, wxObject)

View File

@@ -19,7 +19,7 @@
# pragma hdrstop # pragma hdrstop
#endif #endif
#if wxUSE_HTML #if wxUSE_HTML && wxUSE_STREAMS
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
# include "wx/string.h" # include "wx/string.h"

View File

@@ -45,7 +45,9 @@
#include "wx/statline.h" #include "wx/statline.h"
#endif #endif
#if !defined(__WIN16__) && wxUSE_SPINCTRL
#include "wx/spinctrl.h" #include "wx/spinctrl.h"
#endif
// this is where wxGetNumberFromUser() is declared // this is where wxGetNumberFromUser() is declared
#include "wx/textdlg.h" #include "wx/textdlg.h"
@@ -129,7 +131,7 @@ wxNumberEntryDialog::wxNumberEntryDialog(wxWindow *parent,
wxString valStr; wxString valStr;
valStr.Printf(wxT("%lu"), m_value); valStr.Printf(wxT("%lu"), m_value);
m_spinctrl = new wxSpinCtrl(this, -1, valStr, wxDefaultPosition, wxSize( 140, -1 ) ); m_spinctrl = new wxSpinCtrl(this, -1, valStr, wxDefaultPosition, wxSize( 140, -1 ) );
#ifndef __WIN16__ #if !defined(__WIN16__) && wxUSE_SPINCTRL
m_spinctrl->SetRange((int)m_min, (int)m_max); m_spinctrl->SetRange((int)m_min, (int)m_max);
#endif #endif
inputsizer->Add( m_spinctrl, 1, wxCENTER | wxLEFT | wxRIGHT, 10 ); inputsizer->Add( m_spinctrl, 1, wxCENTER | wxLEFT | wxRIGHT, 10 );

View File

@@ -534,11 +534,11 @@ void wxScrolledWindow::Scroll( int x_pos, int y_pos )
m_xScrollPosition = wxMin( m_xScrollLines-noPagePositions, m_xScrollPosition ); m_xScrollPosition = wxMin( m_xScrollLines-noPagePositions, m_xScrollPosition );
m_xScrollPosition = wxMax( 0, m_xScrollPosition ); m_xScrollPosition = wxMax( 0, m_xScrollPosition );
if (old_x == m_xScrollPosition) return; if (old_x != m_xScrollPosition) {
m_targetWindow->SetScrollPos( wxHORIZONTAL, m_xScrollPosition, TRUE ); m_targetWindow->SetScrollPos( wxHORIZONTAL, m_xScrollPosition, TRUE );
m_targetWindow->ScrollWindow( (old_x-m_xScrollPosition)*m_xScrollPixelsPerLine, 0 ); m_targetWindow->ScrollWindow( (old_x-m_xScrollPosition)*m_xScrollPixelsPerLine, 0 );
} }
}
if ((y_pos != -1) && (m_yScrollPixelsPerLine)) if ((y_pos != -1) && (m_yScrollPixelsPerLine))
{ {
int old_y = m_yScrollPosition; int old_y = m_yScrollPosition;
@@ -554,11 +554,11 @@ void wxScrolledWindow::Scroll( int x_pos, int y_pos )
m_yScrollPosition = wxMin( m_yScrollLines-noPagePositions, m_yScrollPosition ); m_yScrollPosition = wxMin( m_yScrollLines-noPagePositions, m_yScrollPosition );
m_yScrollPosition = wxMax( 0, m_yScrollPosition ); m_yScrollPosition = wxMax( 0, m_yScrollPosition );
if (old_y == m_yScrollPosition) return; if (old_y != m_yScrollPosition) {
m_targetWindow->SetScrollPos( wxVERTICAL, m_yScrollPosition, TRUE ); m_targetWindow->SetScrollPos( wxVERTICAL, m_yScrollPosition, TRUE );
m_targetWindow->ScrollWindow( 0, (old_y-m_yScrollPosition)*m_yScrollPixelsPerLine ); m_targetWindow->ScrollWindow( 0, (old_y-m_yScrollPosition)*m_yScrollPixelsPerLine );
} }
}
#ifdef __WXMAC__ #ifdef __WXMAC__
m_targetWindow->MacUpdateImmediately(); m_targetWindow->MacUpdateImmediately();

View File

@@ -22,7 +22,7 @@
#include "wx/defs.h" #include "wx/defs.h"
#if wxUSE_HTML #if wxUSE_HTML && wxUSE_STREAMS
#include "wx/html/helpctrl.h" #include "wx/html/helpctrl.h"
#include "wx/wx.h" #include "wx/wx.h"

View File

@@ -22,7 +22,7 @@
#include "wx/defs.h" #include "wx/defs.h"
#if wxUSE_HTML #if wxUSE_HTML && wxUSE_STREAMS
#ifndef WXPRECOMP #ifndef WXPRECOMP
#include "wx/wx.h" #include "wx/wx.h"

View File

@@ -23,7 +23,7 @@
#include "wx/defs.h" #include "wx/defs.h"
#if wxUSE_HTML #if wxUSE_HTML && wxUSE_STREAMS
#ifndef WXPRECOMP #ifndef WXPRECOMP
#include "wx/wx.h" #include "wx/wx.h"
#endif #endif

View File

@@ -14,7 +14,8 @@
#include "wx/wxprec.h" #include "wx/wxprec.h"
#include "wx/defs.h" #include "wx/defs.h"
#if wxUSE_HTML
#if wxUSE_HTML && wxUSE_STREAMS
#ifdef __BORDLANDC__ #ifdef __BORDLANDC__
#pragma hdrstop #pragma hdrstop

View File

@@ -15,7 +15,7 @@
#include "wx/wxprec.h" #include "wx/wxprec.h"
#include "wx/defs.h" #include "wx/defs.h"
#if wxUSE_HTML #if wxUSE_HTML && wxUSE_STREAMS
#ifdef __BORDLANDC__ #ifdef __BORDLANDC__
#pragma hdrstop #pragma hdrstop

View File

@@ -15,7 +15,7 @@
#include "wx/wxprec.h" #include "wx/wxprec.h"
#include "wx/defs.h" #include "wx/defs.h"
#if wxUSE_HTML #if wxUSE_HTML && wxUSE_STREAMS
#ifdef __BORDLANDC__ #ifdef __BORDLANDC__
#pragma hdrstop #pragma hdrstop

View File

@@ -15,7 +15,7 @@
#include "wx/wxprec.h" #include "wx/wxprec.h"
#include "wx/defs.h" #include "wx/defs.h"
#if wxUSE_HTML #if wxUSE_HTML && wxUSE_STREAMS
#ifdef __BORDLANDC__ #ifdef __BORDLANDC__
#pragma hdrstop #pragma hdrstop

View File

@@ -26,7 +26,7 @@
#include "wx/wx.h" #include "wx/wx.h"
#endif #endif
#if wxUSE_HTML & wxUSE_PRINTING_ARCHITECTURE #if wxUSE_HTML && wxUSE_PRINTING_ARCHITECTURE && wxUSE_STREAMS
#include "wx/print.h" #include "wx/print.h"
#include "wx/printdlg.h" #include "wx/printdlg.h"

View File

@@ -15,7 +15,7 @@
#include "wx/defs.h" #include "wx/defs.h"
#if wxUSE_HTML #if wxUSE_HTML && wxUSE_STREAMS
#ifdef __BORDLANDC__ #ifdef __BORDLANDC__
#pragma hdrstop #pragma hdrstop

View File

@@ -14,7 +14,7 @@
#include "wx/wxprec.h" #include "wx/wxprec.h"
#include "wx/defs.h" #include "wx/defs.h"
#if wxUSE_HTML #if wxUSE_HTML && wxUSE_STREAMS
#ifdef __BORDLANDC__ #ifdef __BORDLANDC__
#pragma hdrstop #pragma hdrstop

View File

@@ -15,7 +15,7 @@
#include "wx/defs.h" #include "wx/defs.h"
#if wxUSE_HTML #if wxUSE_HTML && wxUSE_STREAMS
#ifdef __BORDLANDC__ #ifdef __BORDLANDC__
#pragma hdrstop #pragma hdrstop
#endif #endif

View File

@@ -14,7 +14,7 @@
#include "wx/wxprec.h" #include "wx/wxprec.h"
#include "wx/defs.h" #include "wx/defs.h"
#if wxUSE_HTML #if wxUSE_HTML && wxUSE_STREAMS
#ifdef __BORDLANDC__ #ifdef __BORDLANDC__
#pragma hdrstop #pragma hdrstop

View File

@@ -14,7 +14,7 @@
#include "wx/defs.h" #include "wx/defs.h"
#if wxUSE_HTML #if wxUSE_HTML && wxUSE_STREAMS
#ifdef __BORDLANDC__ #ifdef __BORDLANDC__
#pragma hdrstop #pragma hdrstop
#endif #endif

View File

@@ -14,7 +14,7 @@
#include "wx/wxprec.h" #include "wx/wxprec.h"
#include "wx/defs.h" #include "wx/defs.h"
#if wxUSE_HTML #if wxUSE_HTML && wxUSE_STREAMS
#ifdef __BORDLANDC__ #ifdef __BORDLANDC__
#pragma hdrstop #pragma hdrstop

View File

@@ -14,7 +14,7 @@
#include "wx/defs.h" #include "wx/defs.h"
#if wxUSE_HTML #if wxUSE_HTML && wxUSE_STREAMS
#ifdef __BORDLANDC__ #ifdef __BORDLANDC__
#pragma hdrstop #pragma hdrstop

View File

@@ -15,7 +15,7 @@
#include "wx/defs.h" #include "wx/defs.h"
#if wxUSE_HTML #if wxUSE_HTML && wxUSE_STREAMS
#ifdef __BORDLANDC__ #ifdef __BORDLANDC__
#pragma hdrstop #pragma hdrstop

View File

@@ -14,7 +14,7 @@
#include "wx/wxprec.h" #include "wx/wxprec.h"
#include "wx/defs.h" #include "wx/defs.h"
#if wxUSE_HTML #if wxUSE_HTML && wxUSE_STREAMS
#ifdef __BORDLANDC__ #ifdef __BORDLANDC__
#pragma hdrstop #pragma hdrstop
#endif #endif

View File

@@ -14,7 +14,7 @@
#include "wx/wxprec.h" #include "wx/wxprec.h"
#include "wx/defs.h" #include "wx/defs.h"
#if wxUSE_HTML #if wxUSE_HTML && wxUSE_STREAMS
#ifdef __BORDLANDC__ #ifdef __BORDLANDC__
#pragma hdrstop #pragma hdrstop
#endif #endif

View File

@@ -15,7 +15,7 @@
#include "wx/wxprec.h" #include "wx/wxprec.h"
#include "wx/defs.h" #include "wx/defs.h"
#if wxUSE_HTML #if wxUSE_HTML && wxUSE_STREAMS
#ifdef __BORDLANDC__ #ifdef __BORDLANDC__
#pragma hdrstop #pragma hdrstop

View File

@@ -29,7 +29,7 @@ PRECOMP = /fh=$(WXDIR)\src\msw\watcom.pch
!endif !endif
!ifeq WXDEBUG 1 !ifeq WXDEBUG 1
DEBUGFLAGS = /D__WXDEBUG__ DEBUGFLAGS = /D__WXDEBUG__ /o1
DEBUGINFO = debug all DEBUGINFO = debug all
!else !else
DEBUGFLAGS = DEBUGFLAGS =
@@ -70,7 +70,7 @@ RESFLAGS2 = -R $(name) /i$(WXDIR)\include /i$(WXDIR)\contrib\include
OPTFLAGS=/ox /5r OPTFLAGS=/ox /5r
# /d1 for line numbers only: anything else produces an enormous wx32.lib # /d1 for line numbers only: anything else produces an enormous wx32.lib
CPPFLAGS = /bt=nt /w1 /DWIN32 /D__WIN32__ /D__WIN95__ /D__WINDOWS__ /zq $(OPTFLAGS) $(MODEL) $(PRECOMP) /d1 $(DEBUGFLAGS) /d__WXMSW__ $(EXTRACPPFLAGS) # /d__WATCOMC__ CPPFLAGS = /bt=nt /w1 /DWIN32 /D__WIN32__ /D__WIN95__ /D__WINDOWS__ /zq $(OPTFLAGS) $(MODEL) $(PRECOMP) $(DEBUGFLAGS) /d__WXMSW__ $(EXTRACPPFLAGS) # /d__WATCOMC__
.cpp.obj: # $< # .AUTODEPEND .cpp.obj: # $< # .AUTODEPEND
*$(CCC) $(CPPFLAGS) $(IFLAGS) $< *$(CCC) $(CPPFLAGS) $(IFLAGS) $<

View File

@@ -823,6 +823,6 @@ bool wxClipboard::GetData( wxDataObject& data )
} }
#else #else
#error "Please turn wxUSE_CLIPBOARD on to compile this file." // #error "Please turn wxUSE_CLIPBOARD on to compile this file."
#endif // wxUSE_CLIPBOARD #endif // wxUSE_CLIPBOARD

View File

@@ -35,6 +35,8 @@
#include "wx/dcmemory.h" #include "wx/dcmemory.h"
#endif #endif
#if wxUSE_PRINTING_ARCHITECTURE
#include "wx/msw/private.h" #include "wx/msw/private.h"
#include "wx/dcprint.h" #include "wx/dcprint.h"
#include "math.h" #include "math.h"
@@ -593,3 +595,6 @@ bool wxPrinterDC::DoBlit(wxCoord xdest, wxCoord ydest,
return success; return success;
} }
#endif
// wxUSE_PRINTING_ARCHITECTURE

View File

@@ -28,6 +28,8 @@
#include "wx/utils.h" #include "wx/utils.h"
#endif //WX_PRECOMP #endif //WX_PRECOMP
#if wxUSE_CONFIG
#include "wx/dynarray.h" #include "wx/dynarray.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/config.h" #include "wx/config.h"
@@ -487,3 +489,6 @@ bool wxIniConfig::RenameGroup(const wxString& oldName, const wxString& newName)
// Not implemented // Not implemented
return FALSE; return FALSE;
} }
#endif
// wxUSE_CONFIG

View File

@@ -664,7 +664,7 @@ rtf: $(DOCDIR)/winhelp/wx.rtf
pdfrtf: $(DOCDIR)/pdf/wx.rtf pdfrtf: $(DOCDIR)/pdf/wx.rtf
refpdfrtf: $(DOCDIR)/pdf/techref.rtf refpdfrtf: $(DOCDIR)/pdf/techref.rtf
html: wxhtml html: wxhtml
wxhtml: $(DOCDIR)\html\wx\wx.htm wxhtml: $(DOCDIR)\html\wx\wx.htm htb
htmlhelp: $(DOCDIR)\html\wx\wx.chm htmlhelp: $(DOCDIR)\html\wx\wx.chm
ps: wxps referencps ps: wxps referencps
wxps: $(WXDIR)\docs\ps\wx.ps wxps: $(WXDIR)\docs\ps\wx.ps
@@ -828,7 +828,8 @@ htb:
cd $(WXDIR)\docs\html\wx cd $(WXDIR)\docs\html\wx
-erase /Y wx.zip wx.htb -erase /Y wx.zip wx.htb
zip32 wx.zip *.htm *.gif *.hhp *.hhc *.hhk zip32 wx.zip *.htm *.gif *.hhp *.hhc *.hhk
ren wx.zip wx.htb -mkdir $(DOCDIR)\html\htb
move wx.zip $(DOCDIR)\html\htb\wx.htb
cd $(THISDIR) cd $(THISDIR)
# In order to force document reprocessing # In order to force document reprocessing

View File

@@ -104,6 +104,9 @@ wxMetafile::~wxMetafile()
bool wxMetafile::SetClipboard(int width, int height) bool wxMetafile::SetClipboard(int width, int height)
{ {
#if !wxUSE_CLIPBOARD
return FALSE;
#else
if (!m_refData) if (!m_refData)
return FALSE; return FALSE;
@@ -119,6 +122,7 @@ bool wxMetafile::SetClipboard(int width, int height)
wxCloseClipboard(); wxCloseClipboard();
return success; return success;
#endif
} }
bool wxMetafile::Play(wxDC *dc) bool wxMetafile::Play(wxDC *dc)

View File

@@ -239,7 +239,7 @@ wxWindow* wxWindow::CreateWindowFromHWND(wxWindow* parent, WXHWND hWnd)
{ {
win = new wxScrollBar; win = new wxScrollBar;
} }
#if defined(__WIN95__) && !defined(__TWIN32__) #if defined(__WIN95__) && !defined(__TWIN32__) && wxUSE_SPINBTN
else if (str == wxT("MSCTLS_UPDOWN32")) else if (str == wxT("MSCTLS_UPDOWN32"))
{ {
win = new wxSpinButton; win = new wxSpinButton;

View File

@@ -650,6 +650,7 @@ bool ConvertOleToVariant(const VARIANTARG& oleVariant, wxVariant& variant)
} }
case VT_DATE: case VT_DATE:
{ {
#if wxUSE_TIMEDATE
struct tm tmTemp; struct tm tmTemp;
if (!TmFromOleDate(oleVariant.date, tmTemp)) if (!TmFromOleDate(oleVariant.date, tmTemp))
return FALSE; return FALSE;
@@ -658,6 +659,8 @@ bool ConvertOleToVariant(const VARIANTARG& oleVariant, wxVariant& variant)
wxTime time(date, tmTemp.tm_hour, tmTemp.tm_min, tmTemp.tm_sec); wxTime time(date, tmTemp.tm_hour, tmTemp.tm_min, tmTemp.tm_sec);
variant = time; variant = time;
#endif
break; break;
} }
case VT_I4: case VT_I4:

View File

@@ -28,6 +28,10 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#include "wx/setup.h"
#if wxUSE_PRINTING_ARCHITECTURE
#include "wx/printdlg.h" #include "wx/printdlg.h"
#include "wx/dcprint.h" #include "wx/dcprint.h"
@@ -182,3 +186,5 @@ int wxPageSetupDialog::ShowModal()
#endif #endif
} }
#endif
// wxUSE_PRINTING_ARCHITECTURE

View File

@@ -30,6 +30,8 @@
#include "wx/defs.h" #include "wx/defs.h"
#if wxUSE_PRINTING_ARCHITECTURE
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/window.h" #include "wx/window.h"
#include "wx/msw/private.h" #include "wx/msw/private.h"
@@ -419,3 +421,5 @@ LONG APIENTRY _EXPORT wxAbortProc(HDC WXUNUSED(hPr), int WXUNUSED(Code))
return (!wxPrinterBase::sm_abortIt); return (!wxPrinterBase::sm_abortIt);
} }
#endif
// wxUSE_PRINTING_ARCHITECTURE

View File

@@ -27,6 +27,9 @@
#include "wx/event.h" #include "wx/event.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/log.h" #include "wx/log.h"
#if wxUSE_CONFIG
#include "wx/config.h" #include "wx/config.h"
#ifndef __WIN16__ #ifndef __WIN16__
@@ -577,3 +580,5 @@ bool wxRegConfig::DeleteAll()
#endif #endif
// __WIN16__ // __WIN16__
#endif
// wxUSE_CONFIG

View File

@@ -38,6 +38,8 @@
#include "wx/app.h" #include "wx/app.h"
#endif #endif
#include "wx/module.h"
#if wxUSE_CLIPBOARD #if wxUSE_CLIPBOARD
#include "wx/clipbrd.h" #include "wx/clipbrd.h"
#endif #endif

View File

@@ -122,7 +122,7 @@ public:
}; };
#ifdef __WIN32__ #if defined(__WIN32__) && wxUSE_STREAMS
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// wxPipeStreams // wxPipeStreams
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
@@ -499,11 +499,13 @@ long wxExecute(const wxString& cmd, bool sync, wxProcess *handler)
::CloseHandle(hpipeWrite[1]); ::CloseHandle(hpipeWrite[1]);
::CloseHandle(hpipeRead[0]); ::CloseHandle(hpipeRead[0]);
#if wxUSE_STREAMS
// We can now initialize the wxStreams // We can now initialize the wxStreams
wxInputStream *inStream = new wxPipeInputStream(hpipeWrite[0]); wxInputStream *inStream = new wxPipeInputStream(hpipeWrite[0]);
wxOutputStream *outStream = new wxPipeOutputStream(hpipeRead[1]); wxOutputStream *outStream = new wxPipeOutputStream(hpipeRead[1]);
handler->SetPipeStreams(inStream, outStream); handler->SetPipeStreams(inStream, outStream);
#endif
} }
// register the class for the hidden window used for the notifications // register the class for the hidden window used for the notifications