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:
@@ -63,10 +63,12 @@ APPEXTRADEFS= \
|
|||||||
|
|
||||||
# -I$(UTILSDIR) \
|
# -I$(UTILSDIR) \
|
||||||
|
|
||||||
WXVERSION=2.4
|
WXVERSION=2.5
|
||||||
|
|
||||||
# Use the small C++ support library
|
# 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))
|
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
|
$(APPBUILDDIR)/settingsdialog.o: $(APPSRCDIR)/settingsdialog.cpp $(APPINCDIR)/settingsdialog.h $(APPSRCDIR)/symbols.h
|
||||||
$(CXX) -c $(CXXFLAGS) $(APPEXTRADEFS) -o $@ $<
|
$(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 $@ $<
|
$(CXX) -c $(CXXFLAGS) $(APPEXTRADEFS) -o $@ $<
|
||||||
|
|
||||||
$(APPBUILDDIR)/wxconfigtool_resources.o: $(APPSRCDIR)/wxconfigtool.rc
|
$(APPBUILDDIR)/wxconfigtool_resources.o: $(APPSRCDIR)/wxconfigtool.rc
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifdef __GNUG__
|
#ifdef __GNUG__
|
||||||
#pragma implementation appsettings.h
|
#pragma implementation "appsettings.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "wx/wx.h"
|
#include "wx/wx.h"
|
||||||
|
@@ -13,7 +13,7 @@
|
|||||||
#define _AP_APPSETTINGS_H_
|
#define _AP_APPSETTINGS_H_
|
||||||
|
|
||||||
#ifdef __GNUG__
|
#ifdef __GNUG__
|
||||||
#pragma interface appsettings.cpp
|
#pragma interface "appsettings.cpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "wx/notebook.h"
|
#include "wx/notebook.h"
|
||||||
|
@@ -128,7 +128,7 @@ ctConfigItem* ctConfigItem::GetChild(int n) const
|
|||||||
|
|
||||||
if ( n < GetChildCount() && n > -1 )
|
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;
|
return child;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifdef __GNUG__
|
#ifdef __GNUG__
|
||||||
#pragma implementation configitemselector.cpp
|
#pragma implementation "configitemselector.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <wx/wx.h>
|
#include <wx/wx.h>
|
||||||
|
@@ -13,7 +13,7 @@
|
|||||||
#define _CONFIGITEMSELECTOR_H_
|
#define _CONFIGITEMSELECTOR_H_
|
||||||
|
|
||||||
#ifdef __GNUG__
|
#ifdef __GNUG__
|
||||||
#pragma interface configitemselector.h
|
#pragma interface "configitemselector.cpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
@@ -352,7 +352,7 @@ bool ctConfigToolDoc::DoSave(ctConfigItem* item, wxOutputStream& stream, int ind
|
|||||||
stream << ctEscapeHTMLCharacters(prop->GetVariant().GetString()) ;
|
stream << ctEscapeHTMLCharacters(prop->GetVariant().GetString()) ;
|
||||||
stream << wxT("</") << prop->GetName() << wxT(">");
|
stream << wxT("</") << prop->GetName() << wxT(">");
|
||||||
|
|
||||||
node = node->Next();
|
node = node->GetNext();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Output children
|
// Output children
|
||||||
@@ -362,7 +362,7 @@ bool ctConfigToolDoc::DoSave(ctConfigItem* item, wxOutputStream& stream, int ind
|
|||||||
ctConfigItem* child = (ctConfigItem*) node->GetData();
|
ctConfigItem* child = (ctConfigItem*) node->GetData();
|
||||||
DoSave(child, stream, indent);
|
DoSave(child, stream, indent);
|
||||||
|
|
||||||
node = node->Next();
|
node = node->GetNext();
|
||||||
}
|
}
|
||||||
|
|
||||||
indent --;
|
indent --;
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifdef __GNUG__
|
#ifdef __GNUG__
|
||||||
#pragma implementation "configtoolview.cpp"
|
#pragma implementation "configtoolview.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Includes other headers for precompiled compilation
|
// Includes other headers for precompiled compilation
|
||||||
@@ -448,8 +448,9 @@ void ctConfigToolView::OnDeleteItem(wxCommandEvent& event)
|
|||||||
ctConfigItem* sel = GetSelection();
|
ctConfigItem* sel = GetSelection();
|
||||||
if (sel)
|
if (sel)
|
||||||
{
|
{
|
||||||
|
wxString name(sel->GetName());
|
||||||
wxString msg;
|
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))
|
if (wxYES == wxMessageBox(msg, _("Delete item"), wxICON_QUESTION|wxYES_NO))
|
||||||
{
|
{
|
||||||
wxGetApp().GetMainFrame()->GetConfigTreeCtrl()->Delete(sel->GetTreeItemId());
|
wxGetApp().GetMainFrame()->GetConfigTreeCtrl()->Delete(sel->GetTreeItemId());
|
||||||
|
@@ -24,8 +24,6 @@
|
|||||||
#include "wx/cshelp.h"
|
#include "wx/cshelp.h"
|
||||||
|
|
||||||
// Include XPM icons
|
// Include XPM icons
|
||||||
#include "bitmaps/folder1.xpm"
|
|
||||||
|
|
||||||
#include "bitmaps/closedfolder.xpm"
|
#include "bitmaps/closedfolder.xpm"
|
||||||
#include "bitmaps/closedfolder_dis.xpm"
|
#include "bitmaps/closedfolder_dis.xpm"
|
||||||
|
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifdef __GNUG__
|
#ifdef __GNUG__
|
||||||
#pragma implementation custompropertydialog.h
|
#pragma implementation "custompropertydialog.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <wx/wx.h>
|
#include <wx/wx.h>
|
||||||
|
@@ -13,7 +13,7 @@
|
|||||||
#define _CUSTOMPROPERTYDIALOG_H_
|
#define _CUSTOMPROPERTYDIALOG_H_
|
||||||
|
|
||||||
#ifdef __GNUG__
|
#ifdef __GNUG__
|
||||||
#pragma interface custompropertydialog.cpp
|
#pragma interface "custompropertydialog.cpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
@@ -13,7 +13,7 @@
|
|||||||
#define _HTMLPARSER_H_
|
#define _HTMLPARSER_H_
|
||||||
|
|
||||||
#ifdef __GNUG__
|
#ifdef __GNUG__
|
||||||
#pragma interface "htmlparser.h"
|
#pragma interface "htmlparser.cpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//#include "wx/module.h"
|
//#include "wx/module.h"
|
||||||
|
@@ -9,6 +9,10 @@
|
|||||||
// Licence:
|
// Licence:
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __GNUG__
|
||||||
|
#pragma implementation "mainframe.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "wx/wx.h"
|
#include "wx/wx.h"
|
||||||
|
|
||||||
#ifdef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
@@ -209,7 +213,7 @@ void ctMainFrame::InitToolBar(wxToolBar* toolBar)
|
|||||||
toolBarBitmaps[3] = wxBitmap(copy_xpm);
|
toolBarBitmaps[3] = wxBitmap(copy_xpm);
|
||||||
toolBarBitmaps[4] = wxBitmap(cut_xpm);
|
toolBarBitmaps[4] = wxBitmap(cut_xpm);
|
||||||
toolBarBitmaps[5] = wxBitmap(paste_xpm);
|
toolBarBitmaps[5] = wxBitmap(paste_xpm);
|
||||||
toolBarBitmaps[6] = wxBitmap(print_xpm);
|
// toolBarBitmaps[6] = wxBitmap(print_xpm);
|
||||||
toolBarBitmaps[7] = wxBitmap(help_xpm);
|
toolBarBitmaps[7] = wxBitmap(help_xpm);
|
||||||
toolBarBitmaps[10] = wxBitmap(undo_xpm);
|
toolBarBitmaps[10] = wxBitmap(undo_xpm);
|
||||||
toolBarBitmaps[11] = wxBitmap(redo_xpm);
|
toolBarBitmaps[11] = wxBitmap(redo_xpm);
|
||||||
|
@@ -12,6 +12,10 @@
|
|||||||
#ifndef _AP_MAINFRAME_H_
|
#ifndef _AP_MAINFRAME_H_
|
||||||
#define _AP_MAINFRAME_H_
|
#define _AP_MAINFRAME_H_
|
||||||
|
|
||||||
|
#ifdef __GNUG__
|
||||||
|
#pragma interface "mainframe.cpp"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "wx/imaglist.h"
|
#include "wx/imaglist.h"
|
||||||
#include "wx/docview.h"
|
#include "wx/docview.h"
|
||||||
|
|
||||||
|
@@ -158,7 +158,7 @@ ctProperty* ctProperties::GetNth(int i) const
|
|||||||
wxASSERT( i < (int) GetCount() );
|
wxASSERT( i < (int) GetCount() );
|
||||||
if (i < (int) GetCount())
|
if (i < (int) GetCount())
|
||||||
{
|
{
|
||||||
wxNode* node = m_list.Nth(i);
|
wxNode* node = m_list.Item(i);
|
||||||
return (ctProperty*) node->GetData();
|
return (ctProperty*) node->GetData();
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
@@ -229,4 +229,4 @@ void ctProperties::RemoveHiddenProperties()
|
|||||||
node = next;
|
node = next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@@ -9,6 +9,10 @@
|
|||||||
// Licence:
|
// Licence:
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __GNUG__
|
||||||
|
#pragma implementation "settingsdialog.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "wx/wx.h"
|
#include "wx/wx.h"
|
||||||
#include "wx/cshelp.h"
|
#include "wx/cshelp.h"
|
||||||
#include "wx/statline.h"
|
#include "wx/statline.h"
|
||||||
|
@@ -12,6 +12,10 @@
|
|||||||
#ifndef _SETTINGSDIALOG_H_
|
#ifndef _SETTINGSDIALOG_H_
|
||||||
#define _SETTINGSDIALOG_H_
|
#define _SETTINGSDIALOG_H_
|
||||||
|
|
||||||
|
#ifdef __GNUG__
|
||||||
|
#pragma interface "settingsdialog.cpp"
|
||||||
|
#endif
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Includes
|
* Includes
|
||||||
*/
|
*/
|
||||||
|
@@ -405,13 +405,13 @@ bool wxIconTable::AddInfo(const wxString& name, const wxIcon& icon, int state, b
|
|||||||
|
|
||||||
wxIconInfo* wxIconTable::FindInfo(const wxString& name) const
|
wxIconInfo* wxIconTable::FindInfo(const wxString& name) const
|
||||||
{
|
{
|
||||||
wxNode* node = First();
|
wxNode* node = GetFirst();
|
||||||
while (node)
|
while (node)
|
||||||
{
|
{
|
||||||
wxIconInfo* info = (wxIconInfo*) node->Data();
|
wxIconInfo* info = (wxIconInfo*) node->GetData();
|
||||||
if (info->GetName() == name)
|
if (info->GetName() == name)
|
||||||
return info;
|
return info;
|
||||||
node = node->Next();
|
node = node->GetNext();
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@@ -474,4 +474,4 @@ wxString ctEscapeHTMLCharacters(const wxString& str)
|
|||||||
s += c;
|
s += c;
|
||||||
}
|
}
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifdef __GNUG__
|
#ifdef __GNUG__
|
||||||
#pragma implementation wxconfigtool.h
|
#pragma implementation "wxconfigtool.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "wx/wx.h"
|
#include "wx/wx.h"
|
||||||
|
@@ -13,7 +13,7 @@
|
|||||||
#define _AP_WXCONFIGTOOL_H_
|
#define _AP_WXCONFIGTOOL_H_
|
||||||
|
|
||||||
#ifdef __GNUG__
|
#ifdef __GNUG__
|
||||||
#pragma interface wxconfigtool.cpp
|
#pragma interface "wxconfigtool.cpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "wx/docview.h"
|
#include "wx/docview.h"
|
||||||
|
@@ -4,5 +4,8 @@ wxconfigtool ICON "bitmaps/wxconfigtool.ico"
|
|||||||
|
|
||||||
#include "wx/msw/wx.rc"
|
#include "wx/msw/wx.rc"
|
||||||
|
|
||||||
|
/* Use if compiling with earlier versions of wxWindows */
|
||||||
|
#if 0
|
||||||
1 24 "wxconfigtool.exe.manifest"
|
1 24 "wxconfigtool.exe.manifest"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user