From d4fce50a5a10fbe0592de5b116b40ed7f12f4431 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 8 Dec 1998 18:56:34 +0000 Subject: [PATCH] Restored the old Dialog Editor files. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- utils/dialoged/src/makefile.b32 | 2 +- utils/dialoged/src/reseditr.cpp | 8 ++++++-- utils/dialoged/src/reswrite.cpp | 2 +- utils/dialoged/src/symbtabl.cpp | 6 +++--- utils/dialoged/src/winprop.cpp | 2 +- 5 files changed, 12 insertions(+), 8 deletions(-) diff --git a/utils/dialoged/src/makefile.b32 b/utils/dialoged/src/makefile.b32 index e7a2611ad8..a2f173a974 100644 --- a/utils/dialoged/src/makefile.b32 +++ b/utils/dialoged/src/makefile.b32 @@ -22,7 +22,7 @@ WXLIB = $(WXLIBDIR)\wx32.lib WXPROPDIR = $(WXDIR)\utils\wxprop WXPROPINC = $(WXPROPDIR)\src WXPROPLIB = $(WXDIR)\lib\wxprop.lib -LIBS=$(WXLIB) $(WXPROPLIB) cw32 import32 +LIBS=$(WXLIB) $(WXPROPLIB) cw32 import32 ole2w32 INCFILE = includes.cfg TARGET=dialoged diff --git a/utils/dialoged/src/reseditr.cpp b/utils/dialoged/src/reseditr.cpp index 984b01ba6d..00adb89d7d 100644 --- a/utils/dialoged/src/reseditr.cpp +++ b/utils/dialoged/src/reseditr.cpp @@ -653,7 +653,7 @@ wxItemResource *wxResourceManager::FindResourceForWindow(wxWindow *win) wxWindow *w = (wxWindow *)node->Data(); if (w == win) { - return (wxItemResource *)node->key.integer; + return (wxItemResource *)node->GetKeyInteger(); } } return NULL; @@ -876,7 +876,11 @@ void wxResourceManager::AddItemsRecursively(long parent, wxItemResource *resourc else imageId = 3; - long id = m_editorResourceTree->AppendItem(parent, theString, imageId ); + long id = m_editorResourceTree->InsertItem(parent, theString +#ifdef __WXMSW__ + , imageId +#endif + ); m_editorResourceTree->SetItemData(id, new wxResourceTreeData(resource)); diff --git a/utils/dialoged/src/reswrite.cpp b/utils/dialoged/src/reswrite.cpp index ef58aaefe6..9cdde107dc 100644 --- a/utils/dialoged/src/reswrite.cpp +++ b/utils/dialoged/src/reswrite.cpp @@ -32,6 +32,7 @@ #if wxUSE_IOSTREAMH #if defined(__WXMSW__) && !defined(__GNUWIN32__) #include +#include #else #include #include @@ -41,7 +42,6 @@ #include #endif - #include "wx/scrolbar.h" #include "wx/string.h" diff --git a/utils/dialoged/src/symbtabl.cpp b/utils/dialoged/src/symbtabl.cpp index b82e0ccb37..110764e782 100644 --- a/utils/dialoged/src/symbtabl.cpp +++ b/utils/dialoged/src/symbtabl.cpp @@ -133,7 +133,7 @@ bool wxResourceSymbolTable::WriteIncludeFile(const wxString& filename) wxNode* node = m_hashTable.Next(); while (node) { - char* str = node->key.string; + const char* str = node->GetKeyString(); int id = (int) node->Data() ; if (!IsStandardSymbol(str)) @@ -181,7 +181,7 @@ wxString wxResourceSymbolTable::GetSymbolForId(int id) wxNode* node = m_hashTable.Next(); while (node) { - char* str = node->key.string; + const char* str = node->GetKeyString(); if (str && ( ((int) node->Data()) == id) ) return wxString(str); @@ -323,7 +323,7 @@ bool wxResourceSymbolTable::FillComboBox(wxComboBox* comboBox) wxNode* node = m_hashTable.Next(); while (node) { - char* str = node->key.string; + const char* str = node->GetKeyString(); comboBox->Append(str); node = m_hashTable.Next(); diff --git a/utils/dialoged/src/winprop.cpp b/utils/dialoged/src/winprop.cpp index 6b485e5a69..5be5ca236a 100644 --- a/utils/dialoged/src/winprop.cpp +++ b/utils/dialoged/src/winprop.cpp @@ -308,7 +308,7 @@ wxProperty *wxWindowPropertyInfo::GetProperty(wxString& name) } else if (name == "height") { - return new wxProperty("width", (long)resource->GetHeight(), "integer"); + return new wxProperty("height", (long)resource->GetHeight(), "integer"); } else if (name == "id") { -- 2.45.2