removed/replaced include 'wx/wx.h'

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10850 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-07-05 18:48:48 +00:00
parent 2734d68772
commit 04dbb6467b
41 changed files with 587 additions and 625 deletions

View File

@@ -31,13 +31,8 @@ limitation)
#if wxUSE_FILESYSTEM && wxUSE_FS_INET && wxUSE_STREAMS && wxUSE_SOCKETS #if wxUSE_FILESYSTEM && wxUSE_FS_INET && wxUSE_STREAMS && wxUSE_SOCKETS
#ifndef WXPRECOMP
#include "wx/wx.h"
#endif
#include "wx/filesys.h" #include "wx/filesys.h"
//-------------------------------------------------------------------------------- //--------------------------------------------------------------------------------
// wxInternetFSHandler // wxInternetFSHandler
//-------------------------------------------------------------------------------- //--------------------------------------------------------------------------------

View File

@@ -19,11 +19,8 @@
#if wxUSE_FILESYSTEM #if wxUSE_FILESYSTEM
#ifndef WXPRECOMP
#include "wx/wx.h"
#endif
#include "wx/filesys.h" #include "wx/filesys.h"
#if wxUSE_GUI #if wxUSE_GUI
#include "wx/image.h" #include "wx/image.h"
#include "wx/bitmap.h" #include "wx/bitmap.h"

View File

@@ -20,11 +20,6 @@
#if wxUSE_FILESYSTEM && wxUSE_FS_ZIP && wxUSE_STREAMS #if wxUSE_FILESYSTEM && wxUSE_FS_ZIP && wxUSE_STREAMS
#ifndef WXPRECOMP
#include "wx/wx.h"
#endif
#include "wx/filesys.h" #include "wx/filesys.h"
class WXDLLEXPORT wxHashTableLong; class WXDLLEXPORT wxHashTableLong;

View File

@@ -16,15 +16,7 @@
#pragma interface "filedlgg.h" #pragma interface "filedlgg.h"
#endif #endif
#include "wx/defs.h"
#include "wx/dialog.h" #include "wx/dialog.h"
#include "wx/checkbox.h"
#include "wx/listctrl.h"
#include "wx/textctrl.h"
#include "wx/choice.h"
#include "wx/checkbox.h"
#include "wx/stattext.h"
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// data // data
@@ -37,91 +29,14 @@ WXDLLEXPORT_DATA(extern const wxChar *)wxFileSelectorDefaultWildcardStr;
// classes // classes
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
class wxCheckBox;
class wxChoice;
class wxFileData; class wxFileData;
class wxFileCtrl; class wxFileCtrl;
class wxFileDialog; class wxFileDialog;
class wxListEvent;
//----------------------------------------------------------------------------- class wxStaticText;
// wxFileData class wxTextCtrl;
//-----------------------------------------------------------------------------
class wxFileData : public wxObject
{
private:
wxString m_name;
wxString m_fileName;
long m_size;
int m_hour;
int m_minute;
int m_year;
int m_month;
int m_day;
wxString m_permissions;
bool m_isDir;
bool m_isLink;
bool m_isExe;
public:
wxFileData() { }
wxFileData( const wxString &name, const wxString &fname );
wxString GetName() const;
wxString GetFullName() const;
wxString GetHint() const;
wxString GetEntry( int num );
bool IsDir();
bool IsLink();
bool IsExe();
long GetSize();
void MakeItem( wxListItem &item );
void SetNewName( const wxString &name, const wxString &fname );
private:
DECLARE_DYNAMIC_CLASS(wxFileData);
};
//-----------------------------------------------------------------------------
// wxFileCtrl
//-----------------------------------------------------------------------------
class wxFileCtrl : public wxListCtrl
{
private:
wxString m_dirName;
bool m_showHidden;
wxString m_wild;
public:
wxFileCtrl();
wxFileCtrl( wxWindow *win,
wxWindowID id,
const wxString &dirName,
const wxString &wild,
const wxPoint &pos = wxDefaultPosition,
const wxSize &size = wxDefaultSize,
long style = wxLC_LIST,
const wxValidator &validator = wxDefaultValidator,
const wxString &name = wxT("filelist") );
void ChangeToListMode();
void ChangeToReportMode();
void ChangeToIconMode();
void ShowHidden( bool show = TRUE );
long Add( wxFileData *fd, wxListItem &item );
void Update();
virtual void StatusbarText( wxChar *WXUNUSED(text) ) {};
void MakeDir();
void GoToParentDir();
void GoToHomeDir();
void GoToDir( const wxString &dir );
void SetWild( const wxString &wild );
void GetDir( wxString &dir );
void OnListDeleteItem( wxListEvent &event );
void OnListDeleteAllItems( wxListEvent &event );
void OnListEndLabelEdit( wxListEvent &event );
private:
DECLARE_DYNAMIC_CLASS(wxFileCtrl);
DECLARE_EVENT_TABLE()
};
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
// File selector // File selector
@@ -139,7 +54,7 @@ public:
const wxString& wildCard = wxFileSelectorDefaultWildcardStr, const wxString& wildCard = wxFileSelectorDefaultWildcardStr,
long style = 0, long style = 0,
const wxPoint& pos = wxDefaultPosition); const wxPoint& pos = wxDefaultPosition);
~wxFileDialog(); virtual ~wxFileDialog();
void SetMessage(const wxString& message) { m_message = message; } void SetMessage(const wxString& message) { m_message = message; }
void SetPath(const wxString& path); void SetPath(const wxString& path);

View File

@@ -16,8 +16,7 @@
#pragma interface "helpxlp.h" #pragma interface "helpxlp.h"
#endif #endif
#include <stdio.h> #include "wx/defs.h"
#include "wx/wx.h"
#if wxUSE_HELP #if wxUSE_HELP

View File

@@ -205,10 +205,7 @@ public:
// mainWindow is sized to whatever's left over. This function for backward // mainWindow is sized to whatever's left over. This function for backward
// compatibility; use LayoutWindow. // compatibility; use LayoutWindow.
bool LayoutFrame(wxFrame* frame, wxWindow* mainWindow = (wxWindow*) NULL) bool LayoutFrame(wxFrame* frame, wxWindow* mainWindow = (wxWindow*) NULL);
{
return LayoutWindow(frame, mainWindow);
}
// mainWindow is sized to whatever's left over. // mainWindow is sized to whatever's left over.
bool LayoutWindow(wxWindow* frame, wxWindow* mainWindow = (wxWindow*) NULL); bool LayoutWindow(wxWindow* frame, wxWindow* mainWindow = (wxWindow*) NULL);

View File

@@ -16,8 +16,12 @@
#endif #endif
#include "wx/defs.h" #include "wx/defs.h"
#if wxUSE_HTML #if wxUSE_HTML
#include "wx/object.h"
class WXDLLEXPORT wxColour;
class WXDLLEXPORT wxHtmlEntitiesParser; class WXDLLEXPORT wxHtmlEntitiesParser;
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------

View File

@@ -23,30 +23,11 @@ I STRONGLY recommend reading and understanding these macros!!
#define _WX_M_TEMPL_H_ #define _WX_M_TEMPL_H_
#include "wx/defs.h" #include "wx/defs.h"
#if wxUSE_HTML #if wxUSE_HTML
#ifdef __GNUG__
#pragma interface "m_templ.h"
#pragma implementation
#endif
#include <wx/wxprec.h>
#ifdef __BORDLANDC__
#pragma hdrstop
#endif
#ifndef WXPRECOMP
#include <wx/wx.h>
#endif
#include "wx/html/winpars.h" #include "wx/html/winpars.h"
#define TAG_HANDLER_BEGIN(name,tags) \ #define TAG_HANDLER_BEGIN(name,tags) \
class HTML_Handler_##name : public wxHtmlWinTagHandler \ class HTML_Handler_##name : public wxHtmlWinTagHandler \
{ \ { \

View File

@@ -37,7 +37,6 @@ limitation)
#if wxUSE_FILESYSTEM && wxUSE_FS_INET #if wxUSE_FILESYSTEM && wxUSE_FS_INET
#ifndef WXPRECOMP #ifndef WXPRECOMP
#include "wx/wx.h"
#endif #endif
#include "wx/wfstream.h" #include "wx/wfstream.h"

View File

@@ -20,7 +20,8 @@
#if wxUSE_FILESYSTEM && wxUSE_STREAMS #if wxUSE_FILESYSTEM && wxUSE_STREAMS
#ifndef WXPRECOMP #ifndef WXPRECOMP
#include "wx/wx.h" #include "wx/intl.h"
#include "wx/log.h"
#endif #endif
#include "wx/filesys.h" #include "wx/filesys.h"

View File

@@ -22,7 +22,8 @@
#if wxUSE_FILESYSTEM && wxUSE_FS_ZIP && wxUSE_ZIPSTREAM #if wxUSE_FILESYSTEM && wxUSE_FS_ZIP && wxUSE_ZIPSTREAM
#ifndef WXPRECOMP #ifndef WXPRECOMP
#include "wx/wx.h" #include "wx/intl.h"
#include "wx/log.h"
#endif #endif
#include "wx/hash.h" #include "wx/hash.h"

View File

@@ -31,7 +31,6 @@
#if wxUSE_TOOLBAR #if wxUSE_TOOLBAR
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/wx.h"
#endif #endif
#include "wx/frame.h" #include "wx/frame.h"

View File

@@ -21,8 +21,6 @@
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/setup.h"
#include "wx/defs.h"
#endif // WX_PRECOMP #endif // WX_PRECOMP
#if wxUSE_PRINTING_ARCHITECTURE #if wxUSE_PRINTING_ARCHITECTURE

View File

@@ -26,10 +26,16 @@
#error wxFileDialog currently only supports unix #error wxFileDialog currently only supports unix
#endif #endif
#include "wx/checkbox.h"
#include "wx/textctrl.h"
#include "wx/choice.h"
#include "wx/checkbox.h"
#include "wx/stattext.h"
#include "wx/filedlg.h" #include "wx/filedlg.h"
#include "wx/debug.h" #include "wx/debug.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/listctrl.h"
#include "wx/msgdlg.h" #include "wx/msgdlg.h"
#include "wx/sizer.h" #include "wx/sizer.h"
#include "wx/bmpbuttn.h" #include "wx/bmpbuttn.h"
@@ -63,6 +69,88 @@
#include "wx/generic/deffile.xpm" #include "wx/generic/deffile.xpm"
#include "wx/generic/exefile.xpm" #include "wx/generic/exefile.xpm"
//-----------------------------------------------------------------------------
// wxFileData
//-----------------------------------------------------------------------------
class wxFileData : public wxObject
{
private:
wxString m_name;
wxString m_fileName;
long m_size;
int m_hour;
int m_minute;
int m_year;
int m_month;
int m_day;
wxString m_permissions;
bool m_isDir;
bool m_isLink;
bool m_isExe;
public:
wxFileData() { }
wxFileData( const wxString &name, const wxString &fname );
wxString GetName() const;
wxString GetFullName() const;
wxString GetHint() const;
wxString GetEntry( int num );
bool IsDir();
bool IsLink();
bool IsExe();
long GetSize();
void MakeItem( wxListItem &item );
void SetNewName( const wxString &name, const wxString &fname );
private:
DECLARE_DYNAMIC_CLASS(wxFileData);
};
//-----------------------------------------------------------------------------
// wxFileCtrl
//-----------------------------------------------------------------------------
class wxFileCtrl : public wxListCtrl
{
private:
wxString m_dirName;
bool m_showHidden;
wxString m_wild;
public:
wxFileCtrl();
wxFileCtrl( wxWindow *win,
wxWindowID id,
const wxString &dirName,
const wxString &wild,
const wxPoint &pos = wxDefaultPosition,
const wxSize &size = wxDefaultSize,
long style = wxLC_LIST,
const wxValidator &validator = wxDefaultValidator,
const wxString &name = wxT("filelist") );
void ChangeToListMode();
void ChangeToReportMode();
void ChangeToIconMode();
void ShowHidden( bool show = TRUE );
long Add( wxFileData *fd, wxListItem &item );
void Update();
virtual void StatusbarText( wxChar *WXUNUSED(text) ) {};
void MakeDir();
void GoToParentDir();
void GoToHomeDir();
void GoToDir( const wxString &dir );
void SetWild( const wxString &wild );
void GetDir( wxString &dir );
void OnListDeleteItem( wxListEvent &event );
void OnListDeleteAllItems( wxListEvent &event );
void OnListEndLabelEdit( wxListEvent &event );
private:
DECLARE_DYNAMIC_CLASS(wxFileCtrl);
DECLARE_EVENT_TABLE()
};
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// private classes - icons list management // private classes - icons list management
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------

View File

@@ -24,6 +24,7 @@
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/frame.h"
#include "wx/mdi.h" #include "wx/mdi.h"
#endif #endif
@@ -219,6 +220,11 @@ bool wxLayoutAlgorithm::LayoutMDIFrame(wxMDIParentFrame* frame, wxRect* r)
#endif // wxUSE_MDI_ARCHITECTURE #endif // wxUSE_MDI_ARCHITECTURE
bool wxLayoutAlgorithm::LayoutFrame(wxFrame* frame, wxWindow* mainWindow)
{
return LayoutWindow(frame, mainWindow);
}
// Layout algorithm for any window. mainWindow gets what's left over. // Layout algorithm for any window. mainWindow gets what's left over.
bool wxLayoutAlgorithm::LayoutWindow(wxWindow* parent, wxWindow* mainWindow) bool wxLayoutAlgorithm::LayoutWindow(wxWindow* parent, wxWindow* mainWindow)
{ {

View File

@@ -28,8 +28,6 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#include "wx/defs.h"
#if wxUSE_PRINTING_ARCHITECTURE #if wxUSE_PRINTING_ARCHITECTURE
#ifndef WX_PRECOMP #ifndef WX_PRECOMP

View File

@@ -23,7 +23,6 @@
#if wxUSE_PROPSHEET #if wxUSE_PROPSHEET
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/wx.h"
#endif #endif
#include "wx/debug.h" #include "wx/debug.h"

View File

@@ -23,7 +23,6 @@
#if wxUSE_PROPSHEET #if wxUSE_PROPSHEET
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/wx.h"
#endif #endif
#include "wx/propform.h" #include "wx/propform.h"

View File

@@ -25,13 +25,14 @@
#if wxUSE_SASH #if wxUSE_SASH
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/wx.h" #include "wx/dialog.h"
#include "wx/frame.h"
#include "wx/settings.h"
#endif #endif
#include <math.h> #include <math.h>
#include <stdlib.h> #include <stdlib.h>
#include "wx/string.h"
#include "wx/dcscreen.h" #include "wx/dcscreen.h"
#include "wx/sashwin.h" #include "wx/sashwin.h"
#include "wx/laywin.h" #include "wx/laywin.h"

View File

@@ -23,7 +23,6 @@
#if wxUSE_SPLASH #if wxUSE_SPLASH
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/wx.h"
#endif #endif
#include "wx/splash.h" #include "wx/splash.h"

View File

@@ -25,7 +25,8 @@
#if wxUSE_HTML && wxUSE_STREAMS #if wxUSE_HTML && wxUSE_STREAMS
#ifndef WXPRECOMP #ifndef WXPRECOMP
#include "wx/wx.h" #include "wx/intl.h"
#include "wx/log.h"
#endif #endif
#include "wx/html/helpdata.h" #include "wx/html/helpdata.h"

View File

@@ -22,7 +22,9 @@
#endif #endif
#ifndef WXPRECOMP #ifndef WXPRECOMP
#include "wx/wx.h" #include "wx/brush.h"
#include "wx/colour.h"
#include "wx/dc.h"
#endif #endif
#include "wx/html/htmlcell.h" #include "wx/html/htmlcell.h"

View File

@@ -22,7 +22,8 @@
#endif #endif
#ifndef WXPRECOMP #ifndef WXPRECOMP
#include "wx/wx.h" #include "wx/log.h"
#include "wx/intl.h"
#endif #endif
#include "wx/html/htmlfilt.h" #include "wx/html/htmlfilt.h"

View File

@@ -20,7 +20,6 @@
#endif #endif
#ifndef WXPRECOMP #ifndef WXPRECOMP
#include "wx/wx.h"
#endif #endif
#include "wx/html/htmlfilter.h" #include "wx/html/htmlfilter.h"

View File

@@ -23,10 +23,8 @@ file is only left to point out the problem and will be removed r.s.n.
#endif #endif
#ifndef WXPRECOMP #ifndef WXPRECOMP
#include <wx/wx.h>
#endif #endif
#include <wx/notebook.h> #include <wx/notebook.h>
#include <wx/imaglist.h> #include <wx/imaglist.h>
#include <wx/treectrl.h> #include <wx/treectrl.h>

View File

@@ -22,7 +22,8 @@
#endif #endif
#ifndef WXPRECOMP #ifndef WXPRECOMP
#include "wx/wx.h" #include "wx/log.h"
#include "wx/intl.h"
#endif #endif
#include "wx/tokenzr.h" #include "wx/tokenzr.h"

View File

@@ -22,7 +22,6 @@
#endif #endif
#ifndef WXPRECOMP #ifndef WXPRECOMP
#include "wx/wx.h"
#endif #endif
#include "wx/html/htmltag.h" #include "wx/html/htmltag.h"

View File

@@ -23,15 +23,18 @@
#endif #endif
#ifndef WXPRECOMP #ifndef WXPRECOMP
#include "wx/wx.h" #include "wx/log.h"
#include "wx/intl.h"
#include "wx/dcclient.h"
#include "wx/frame.h"
#endif #endif
#include "wx/html/htmlwin.h" #include "wx/html/htmlwin.h"
#include "wx/html/forcelnk.h" #include "wx/html/forcelnk.h"
#include "wx/html/htmlproc.h" #include "wx/html/htmlproc.h"
#include "wx/log.h"
#include "wx/arrimpl.cpp"
#include "wx/list.h" #include "wx/list.h"
#include "wx/arrimpl.cpp"
#include "wx/listimpl.cpp" #include "wx/listimpl.cpp"
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------

View File

@@ -23,7 +23,8 @@
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/wx.h" #include "wx/log.h"
#include "wx/intl.h"
#endif #endif
#if wxUSE_HTML && wxUSE_PRINTING_ARCHITECTURE && wxUSE_STREAMS #if wxUSE_HTML && wxUSE_PRINTING_ARCHITECTURE && wxUSE_STREAMS

View File

@@ -22,10 +22,8 @@
#endif #endif
#ifndef WXPRECOMP #ifndef WXPRECOMP
#include "wx/wx.h"
#endif #endif
#include "wx/html/forcelnk.h" #include "wx/html/forcelnk.h"
#include "wx/html/m_templ.h" #include "wx/html/m_templ.h"
@@ -63,7 +61,6 @@ TAG_HANDLER_BEGIN(DEFLIST, "DL,DT,DD")
return TRUE; return TRUE;
} }
else if (tag.GetName() == wxT("DT")) else if (tag.GetName() == wxT("DT"))
{ {
if (!tag.IsEnding()) if (!tag.IsEnding())
@@ -75,7 +72,6 @@ TAG_HANDLER_BEGIN(DEFLIST, "DL,DT,DD")
} }
return FALSE; return FALSE;
} }
else if (!tag.IsEnding()) // "DD" else if (!tag.IsEnding()) // "DD"
{ {
m_WParser->CloseContainer(); m_WParser->CloseContainer();

View File

@@ -21,7 +21,6 @@
#endif #endif
#ifndef WXPRECOMP #ifndef WXPRECOMP
#include "wx/wx.h"
#endif #endif
#include "wx/html/forcelnk.h" #include "wx/html/forcelnk.h"

View File

@@ -21,11 +21,11 @@
#endif #endif
#ifndef WXPRECOMP #ifndef WXPRECOMP
#include "wx/wx.h" #include "wx/brush.h"
#include "wx/pen.h"
#include "wx/dc.h"
#endif #endif
#include "wx/html/forcelnk.h" #include "wx/html/forcelnk.h"
#include "wx/html/m_templ.h" #include "wx/html/m_templ.h"

View File

@@ -21,13 +21,12 @@
#endif #endif
#ifndef WXPRECOMP #ifndef WXPRECOMP
#include "wx/wx.h" #include "wx/dc.h"
#endif #endif
#include "wx/html/forcelnk.h" #include "wx/html/forcelnk.h"
#include "wx/html/m_templ.h" #include "wx/html/m_templ.h"
#include "wx/image.h" #include "wx/image.h"
#include "wx/dynarray.h" #include "wx/dynarray.h"

View File

@@ -20,7 +20,6 @@
#endif #endif
#ifndef WXPRECOMP #ifndef WXPRECOMP
#include "wx/wx.h"
#endif #endif

View File

@@ -21,10 +21,8 @@
#endif #endif
#ifndef WXPRECOMP #ifndef WXPRECOMP
#include "wx/wx.h"
#endif #endif
#include "wx/html/forcelnk.h" #include "wx/html/forcelnk.h"
#include "wx/html/m_templ.h" #include "wx/html/m_templ.h"

View File

@@ -21,10 +21,10 @@
#endif #endif
#ifndef WXPRECOMP #ifndef WXPRECOMP
#include "wx/wx.h" #include "wx/brush.h"
#include "wx/dc.h"
#endif #endif
#include "wx/html/forcelnk.h" #include "wx/html/forcelnk.h"
#include "wx/html/m_templ.h" #include "wx/html/m_templ.h"

View File

@@ -22,7 +22,6 @@
#endif #endif
#ifndef WXPRECOMP #ifndef WXPRECOMP
#include "wx/wx.h"
#endif #endif
#include "wx/fontmap.h" #include "wx/fontmap.h"

View File

@@ -20,10 +20,8 @@
#endif #endif
#ifndef WXPRECOMP #ifndef WXPRECOMP
#include "wx/wx.h"
#endif #endif
#include "wx/html/forcelnk.h" #include "wx/html/forcelnk.h"
#include "wx/html/m_templ.h" #include "wx/html/m_templ.h"

View File

@@ -20,7 +20,6 @@
#endif #endif
#ifndef WXPRECOMP #ifndef WXPRECOMP
#include "wx/wx.h"
#endif #endif

View File

@@ -23,13 +23,11 @@
#endif #endif
#ifndef WXPRECOMP #ifndef WXPRECOMP
#include <wx/wx.h>
#endif #endif
#include "wx/html/helpdata.h" #include "wx/html/helpdata.h"
//-------------------------------------------------------------------------------- //--------------------------------------------------------------------------------
// wxSearchEngine // wxSearchEngine
//-------------------------------------------------------------------------------- //--------------------------------------------------------------------------------

View File

@@ -22,7 +22,8 @@
#endif #endif
#ifndef WXPRECOMP #ifndef WXPRECOMP
#include "wx/wx.h" #include "wx/intl.h"
#include "wx/dc.h"
#endif #endif
#include "wx/html/htmldefs.h" #include "wx/html/htmldefs.h"