]> git.saurik.com Git - wxWidgets.git/commitdiff
Restored the old Dialog Editor files.
authorJulian Smart <julian@anthemion.co.uk>
Tue, 8 Dec 1998 18:56:34 +0000 (18:56 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 8 Dec 1998 18:56:34 +0000 (18:56 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

utils/dialoged/src/makefile.b32
utils/dialoged/src/reseditr.cpp
utils/dialoged/src/reswrite.cpp
utils/dialoged/src/symbtabl.cpp
utils/dialoged/src/winprop.cpp

index e7a2611ad819db99ef9000197f6fde41196815cb..a2f173a974121016f70f4d175f51a15bc4063a3d 100644 (file)
@@ -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
index 984b01ba6d847f99682de8f2e338043d1bebc9f6..00adb89d7da377bb1b96ba20a45de989a4917e5f 100644 (file)
@@ -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));
 
index ef58aaefe6889277200e6bd63df20195a178f0a7..9cdde107dc5223b51a3eb6ad047d6072178f1c44 100644 (file)
@@ -32,6 +32,7 @@
 #if wxUSE_IOSTREAMH
 #if defined(__WXMSW__) && !defined(__GNUWIN32__)
 #include <strstrea.h>
+#include <fstream.h>
 #else
 #include <strstream.h>
 #include <fstream.h>
@@ -41,7 +42,6 @@
 #include <fstream>
 #endif
 
-
 #include "wx/scrolbar.h"
 #include "wx/string.h"
 
index b82e0ccb3742aa742f7b8ecefd573e3ca7350e51..110764e782c97372c6630d01a9ebdb1f46e36873 100644 (file)
@@ -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();
index 6b485e5a6979ab185bfd7a0410c6251c33100227..5be5ca236a2ce72599b8ab49a500805e38b2ec94 100644 (file)
@@ -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")
   {