Some fixes for gcc compilation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21103 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-06-13 12:20:33 +00:00
parent 7c5ece9e3c
commit f8105809ef
21 changed files with 46 additions and 26 deletions

View File

@@ -63,10 +63,12 @@ APPEXTRADEFS= \
# -I$(UTILSDIR) \
WXVERSION=2.4
WXVERSION=2.5
# Use the small C++ support library
APPEXTRALIBS=-lsupc++ ${top_builddir}/lib/libwx_$(WXTOOLKIT)$(WXDEBUGSUFFIX)_xrc-$(WXVERSION).a
APPEXTRALIBS=-lsupc++
# ${top_builddir}/lib/libwx_$(WXTOOLKIT)$(WXDEBUGSUFFIX)_xrc-$(WXVERSION).a
PLATFORM_OS=$(shell echo $(OS))
@@ -211,7 +213,7 @@ $(APPBUILDDIR)/property.o: $(APPSRCDIR)/property.cpp $(APPINCDIR)/property.h $(A
$(APPBUILDDIR)/settingsdialog.o: $(APPSRCDIR)/settingsdialog.cpp $(APPINCDIR)/settingsdialog.h $(APPSRCDIR)/symbols.h
$(CXX) -c $(CXXFLAGS) $(APPEXTRADEFS) -o $@ $<
$(APPBUILDDIR)/utils.o: $(APPSRCDIR)/utils.cpp $(APPINCDIR)/imagewindow.h $(APPSRCDIR)/symbols.h
$(APPBUILDDIR)/utils.o: $(APPSRCDIR)/utils.cpp $(APPINCDIR)/utils.h $(APPSRCDIR)/symbols.h
$(CXX) -c $(CXXFLAGS) $(APPEXTRADEFS) -o $@ $<
$(APPBUILDDIR)/wxconfigtool_resources.o: $(APPSRCDIR)/wxconfigtool.rc

View File

@@ -10,7 +10,7 @@
/////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__
#pragma implementation appsettings.h
#pragma implementation "appsettings.h"
#endif
#include "wx/wx.h"

View File

@@ -13,7 +13,7 @@
#define _AP_APPSETTINGS_H_
#ifdef __GNUG__
#pragma interface appsettings.cpp
#pragma interface "appsettings.cpp"
#endif
#include "wx/notebook.h"

View File

@@ -128,7 +128,7 @@ ctConfigItem* ctConfigItem::GetChild(int n) const
if ( n < GetChildCount() && n > -1 )
{
ctConfigItem* child = wxDynamicCast(m_children.Nth(n)->Data(), ctConfigItem);
ctConfigItem* child = wxDynamicCast(m_children.Item(n)->GetData(), ctConfigItem);
return child;
}
else

View File

@@ -10,7 +10,7 @@
/////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__
#pragma implementation configitemselector.cpp
#pragma implementation "configitemselector.h"
#endif
#include <wx/wx.h>

View File

@@ -13,7 +13,7 @@
#define _CONFIGITEMSELECTOR_H_
#ifdef __GNUG__
#pragma interface configitemselector.h
#pragma interface "configitemselector.cpp"
#endif
/*!

View File

@@ -352,7 +352,7 @@ bool ctConfigToolDoc::DoSave(ctConfigItem* item, wxOutputStream& stream, int ind
stream << ctEscapeHTMLCharacters(prop->GetVariant().GetString()) ;
stream << wxT("</") << prop->GetName() << wxT(">");
node = node->Next();
node = node->GetNext();
}
// Output children
@@ -362,7 +362,7 @@ bool ctConfigToolDoc::DoSave(ctConfigItem* item, wxOutputStream& stream, int ind
ctConfigItem* child = (ctConfigItem*) node->GetData();
DoSave(child, stream, indent);
node = node->Next();
node = node->GetNext();
}
indent --;

View File

@@ -10,7 +10,7 @@
/////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__
#pragma implementation "configtoolview.cpp"
#pragma implementation "configtoolview.h"
#endif
// Includes other headers for precompiled compilation
@@ -448,8 +448,9 @@ void ctConfigToolView::OnDeleteItem(wxCommandEvent& event)
ctConfigItem* sel = GetSelection();
if (sel)
{
wxString name(sel->GetName());
wxString msg;
msg.Printf(_("Delete %s?"), sel->GetName());
msg.Printf(_("Delete %s?"), (const wxChar*) name);
if (wxYES == wxMessageBox(msg, _("Delete item"), wxICON_QUESTION|wxYES_NO))
{
wxGetApp().GetMainFrame()->GetConfigTreeCtrl()->Delete(sel->GetTreeItemId());

View File

@@ -24,8 +24,6 @@
#include "wx/cshelp.h"
// Include XPM icons
#include "bitmaps/folder1.xpm"
#include "bitmaps/closedfolder.xpm"
#include "bitmaps/closedfolder_dis.xpm"

View File

@@ -10,7 +10,7 @@
/////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__
#pragma implementation custompropertydialog.h
#pragma implementation "custompropertydialog.h"
#endif
#include <wx/wx.h>

View File

@@ -13,7 +13,7 @@
#define _CUSTOMPROPERTYDIALOG_H_
#ifdef __GNUG__
#pragma interface custompropertydialog.cpp
#pragma interface "custompropertydialog.cpp"
#endif
/*!

View File

@@ -13,7 +13,7 @@
#define _HTMLPARSER_H_
#ifdef __GNUG__
#pragma interface "htmlparser.h"
#pragma interface "htmlparser.cpp"
#endif
//#include "wx/module.h"

View File

@@ -9,6 +9,10 @@
// Licence:
/////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__
#pragma implementation "mainframe.h"
#endif
#include "wx/wx.h"
#ifdef __BORLANDC__
@@ -209,7 +213,7 @@ void ctMainFrame::InitToolBar(wxToolBar* toolBar)
toolBarBitmaps[3] = wxBitmap(copy_xpm);
toolBarBitmaps[4] = wxBitmap(cut_xpm);
toolBarBitmaps[5] = wxBitmap(paste_xpm);
toolBarBitmaps[6] = wxBitmap(print_xpm);
// toolBarBitmaps[6] = wxBitmap(print_xpm);
toolBarBitmaps[7] = wxBitmap(help_xpm);
toolBarBitmaps[10] = wxBitmap(undo_xpm);
toolBarBitmaps[11] = wxBitmap(redo_xpm);

View File

@@ -12,6 +12,10 @@
#ifndef _AP_MAINFRAME_H_
#define _AP_MAINFRAME_H_
#ifdef __GNUG__
#pragma interface "mainframe.cpp"
#endif
#include "wx/imaglist.h"
#include "wx/docview.h"

View File

@@ -158,7 +158,7 @@ ctProperty* ctProperties::GetNth(int i) const
wxASSERT( i < (int) GetCount() );
if (i < (int) GetCount())
{
wxNode* node = m_list.Nth(i);
wxNode* node = m_list.Item(i);
return (ctProperty*) node->GetData();
}
return NULL;
@@ -229,4 +229,4 @@ void ctProperties::RemoveHiddenProperties()
node = next;
}
}
#endif
#endif

View File

@@ -9,6 +9,10 @@
// Licence:
/////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__
#pragma implementation "settingsdialog.h"
#endif
#include "wx/wx.h"
#include "wx/cshelp.h"
#include "wx/statline.h"

View File

@@ -12,6 +12,10 @@
#ifndef _SETTINGSDIALOG_H_
#define _SETTINGSDIALOG_H_
#ifdef __GNUG__
#pragma interface "settingsdialog.cpp"
#endif
/*!
* Includes
*/

View File

@@ -405,13 +405,13 @@ bool wxIconTable::AddInfo(const wxString& name, const wxIcon& icon, int state, b
wxIconInfo* wxIconTable::FindInfo(const wxString& name) const
{
wxNode* node = First();
wxNode* node = GetFirst();
while (node)
{
wxIconInfo* info = (wxIconInfo*) node->Data();
wxIconInfo* info = (wxIconInfo*) node->GetData();
if (info->GetName() == name)
return info;
node = node->Next();
node = node->GetNext();
}
return NULL;
}
@@ -474,4 +474,4 @@ wxString ctEscapeHTMLCharacters(const wxString& str)
s += c;
}
return s;
}
}

View File

@@ -10,7 +10,7 @@
/////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__
#pragma implementation wxconfigtool.h
#pragma implementation "wxconfigtool.h"
#endif
#include "wx/wx.h"

View File

@@ -13,7 +13,7 @@
#define _AP_WXCONFIGTOOL_H_
#ifdef __GNUG__
#pragma interface wxconfigtool.cpp
#pragma interface "wxconfigtool.cpp"
#endif
#include "wx/docview.h"

View File

@@ -4,5 +4,8 @@ wxconfigtool ICON "bitmaps/wxconfigtool.ico"
#include "wx/msw/wx.rc"
/* Use if compiling with earlier versions of wxWindows */
#if 0
1 24 "wxconfigtool.exe.manifest"
#endif