]> git.saurik.com Git - wxWidgets.git/commitdiff
WIN32 compilation of wxrc, wxrcedit
authorJulian Smart <julian@anthemion.co.uk>
Wed, 26 Jul 2000 12:40:49 +0000 (12:40 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 26 Jul 2000 12:40:49 +0000 (12:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

26 files changed:
contrib/utils/wxrc/makefile.b32 [new file with mode: 0644]
contrib/utils/wxrc/makefile.g95 [new file with mode: 0644]
contrib/utils/wxrc/makefile.vc [new file with mode: 0644]
contrib/utils/wxrc/makefile.wat [new file with mode: 0644]
contrib/utils/wxrc/mondrian.ico [new file with mode: 0644]
contrib/utils/wxrc/wxrc.cpp
contrib/utils/wxrc/wxrc.rc [new file with mode: 0644]
contrib/utils/wxrcedit/editor.cpp
contrib/utils/wxrcedit/editor.h
contrib/utils/wxrcedit/makefile.b32 [new file with mode: 0644]
contrib/utils/wxrcedit/makefile.g95 [new file with mode: 0644]
contrib/utils/wxrcedit/makefile.vc [new file with mode: 0644]
contrib/utils/wxrcedit/makefile.wat [new file with mode: 0644]
contrib/utils/wxrcedit/mondrian.ico [new file with mode: 0644]
contrib/utils/wxrcedit/wxrcedit.rc [new file with mode: 0644]
distrib/msw/vc.rsp
distrib/msw/wxrc.rsp [new file with mode: 0644]
src/wxvc.dsp
src/wxvc_dll.dsp
utils/wxrc/makefile.b32 [new file with mode: 0644]
utils/wxrc/makefile.g95 [new file with mode: 0644]
utils/wxrc/makefile.vc [new file with mode: 0644]
utils/wxrc/makefile.wat [new file with mode: 0644]
utils/wxrc/mondrian.ico [new file with mode: 0644]
utils/wxrc/wxrc.cpp
utils/wxrc/wxrc.rc [new file with mode: 0644]

diff --git a/contrib/utils/wxrc/makefile.b32 b/contrib/utils/wxrc/makefile.b32
new file mode 100644 (file)
index 0000000..ceed75f
--- /dev/null
@@ -0,0 +1,17 @@
+#
+# File:                makefile.b32
+# Author:      Julian Smart
+# Created:     1999
+# Updated:     
+# Copyright:
+#
+# Makefile : Builds wxrc for 32-bit BC++
+
+WXDIR = $(WXWIN)
+
+TARGET=wxrc
+EXTRALIBS=$(WXDIR)\lib\wxxml.lib
+OBJECTS = $(TARGET).obj
+
+!include $(WXDIR)\src\makeprog.b32
+
diff --git a/contrib/utils/wxrc/makefile.g95 b/contrib/utils/wxrc/makefile.g95
new file mode 100644 (file)
index 0000000..679987d
--- /dev/null
@@ -0,0 +1,17 @@
+#
+# File:         makefile.g95
+# Author:       Julian Smart
+# Created:      1999
+# Updated:
+# Copyright:    (c) Julian Smart, 1999
+#
+# Makefile for wxrc (Cygwin/Mingw32).
+
+WXDIR = ../../..
+
+TARGET=wxrc
+EXTRALIBS=-lwxxml
+OBJECTS = $(TARGET).o
+
+include $(WXDIR)/src/makeprog.g95
+
diff --git a/contrib/utils/wxrc/makefile.vc b/contrib/utils/wxrc/makefile.vc
new file mode 100644 (file)
index 0000000..4623b7a
--- /dev/null
@@ -0,0 +1,29 @@
+#
+# File:                makefile.vc
+# Author:      Julian Smart
+# Created:     2000
+# Updated:
+# Copyright:   (c) Julian Smart
+#
+# "%W% %G%"
+#
+# Makefile : Builds wxrc (XML resource compiler)
+# Use FINAL=1 argument to nmake to build final version with no debugging
+# info
+# Set WXDIR for your system
+WXDIR = $(WXWIN)
+
+PROGRAM=wxrc
+
+FINAL=0
+
+!if "$(FINAL)" == "0"
+EXTRALIBS=$(WXDIR)\lib\wxxmld.lib
+!else
+EXTRALIBS=$(WXDIR)\lib\wxxml.lib
+!endif
+
+OBJECTS = $(PROGRAM).obj
+
+!include $(WXDIR)\src\makeprog.vc
+
diff --git a/contrib/utils/wxrc/makefile.wat b/contrib/utils/wxrc/makefile.wat
new file mode 100644 (file)
index 0000000..61ee00d
--- /dev/null
@@ -0,0 +1,13 @@
+#
+# Makefile for WATCOM
+#
+#
+
+WXDIR = $(%WXWIN)
+
+PROGRAM = wxrc
+EXTRALIBS = $(WXDIR)\lib\wxxml.lib
+OBJECTS = $(PROGRAM).obj
+
+!include $(WXDIR)\src\makeprog.wat
+
diff --git a/contrib/utils/wxrc/mondrian.ico b/contrib/utils/wxrc/mondrian.ico
new file mode 100644 (file)
index 0000000..2310c5d
Binary files /dev/null and b/contrib/utils/wxrc/mondrian.ico differ
index 64a81ea2c21659a06115823c550b01858963631e..f346b485ae54ee16d25979ae590c16a521ea0927 100644 (file)
 #include "wx/xml/xml.h"
 #include "wx/ffile.h"
 
-
+/*
 #if wxUSE_GUI
 #error "You must compile the resource compiler with wxBase!"
 #endif
-
+*/
 
 class XmlResApp : public wxApp
 {
 public:
+
+#if wxUSE_GUI
+    bool OnInit();
+#else
     virtual int OnRun();
+#endif
     
 private:
     
@@ -58,7 +63,11 @@ private:
 
 IMPLEMENT_APP(XmlResApp)
 
+#if wxUSE_GUI
+bool XmlResApp::OnInit()
+#else
 int XmlResApp::OnRun()
+#endif
 {
     static const wxCmdLineEntryDesc cmdLineDesc[] =
     {
@@ -87,11 +96,19 @@ int XmlResApp::OnRun()
             retCode = 0;
             ParseParams(parser);
             CompileRes();
+#if wxUSE_GUI
+            return FALSE;
+#else
             return retCode;
+#endif
             break;
 
         default:
+#if wxUSE_GUI
+            return FALSE;
+#else
             return 1;
+#endif
             break;
     }
 }
diff --git a/contrib/utils/wxrc/wxrc.rc b/contrib/utils/wxrc/wxrc.rc
new file mode 100644 (file)
index 0000000..74b8e3f
--- /dev/null
@@ -0,0 +1,2 @@
+mondrian ICON "mondrian.ico"
+#include "wx/msw/wx.rc"
index 15aa1fa98f331aef90e404f3190c1c74789ae183..2774f957a364511946abe916f5c745c915e5cf75 100644 (file)
@@ -104,7 +104,7 @@ END_EVENT_TABLE()
 
 
 
-#ifdef __UNIX__
+#if defined(__UNIX__) || wxUSE_XPM_IN_MSW
 #include "bitmaps/preview.xpm"
 #include "bitmaps/close.xpm"
 #include "bitmaps/save.xpm"
@@ -119,6 +119,12 @@ END_EVENT_TABLE()
 #include "bitmaps/used.xpm"
 #endif
 
+#if defined(__WXMSW__) && defined(wxUSE_XPM_IN_MSW)
+#undef wxBITMAP
+#define wxBITMAP(arg) wxBitmap(arg##_xpm)
+#undef wxICON
+#define wxICON(arg) wxIcon(arg##_xpm)
+#endif
 
 
 EditorFrame *EditorFrame::ms_Instance = NULL;
@@ -164,6 +170,9 @@ EditorFrame::EditorFrame(wxFrame *parent, const wxString& filename)
     
     // Create toolbar:
     wxToolBar *toolBar = CreateToolBar(wxNO_BORDER | wxTB_HORIZONTAL | wxTB_FLAT);
+#ifdef __WXMSW__
+    toolBar->SetToolBitmapSize(wxSize(24, 24));
+#endif
     toolBar->SetMargins(2, 2);
     toolBar -> AddTool(ID_EXIT, wxBITMAP(close), wxNullBitmap,
                        FALSE, -1, -1, (wxObject *) NULL,
index 72333a31432bf6e1c5c9d9d0ea93a707b97272f8..2d5649413c2a842cc2aa859e334312608011c8fe 100644 (file)
 
 
 class wxXmlNode;
-class wxTreeCtrl;
-class wxScrolledWindow;
-class wxSplitterWindow;
+class WXDLLEXPORT wxTreeCtrl;
+class WXDLLEXPORT wxScrolledWindow;
+class WXDLLEXPORT wxSplitterWindow;
 
 #include "wx/frame.h"
-
-
+#include "wx/treectrl.h"
+#include "wx/imaglist.h"
+#include "wx/listctrl.h"
 
 class NodeHandler;
 class wxXmlNode;
diff --git a/contrib/utils/wxrcedit/makefile.b32 b/contrib/utils/wxrcedit/makefile.b32
new file mode 100644 (file)
index 0000000..928e48e
--- /dev/null
@@ -0,0 +1,17 @@
+#
+# File:                makefile.b32
+# Author:      Julian Smart
+# Created:     1999
+# Updated:     
+# Copyright:
+#
+# Makefile : Builds wxrcedit for 32-bit BC++
+
+WXDIR = $(WXWIN)
+
+TARGET=wxrcedit
+EXTRALIBS=$(WXDIR)\lib\wxxml.lib
+OBJECTS=edapp.obj editor.obj nodehnd.obj prophnd.obj xmlhelpr.obj
+
+!include $(WXDIR)\src\makeprog.b32
+
diff --git a/contrib/utils/wxrcedit/makefile.g95 b/contrib/utils/wxrcedit/makefile.g95
new file mode 100644 (file)
index 0000000..aa9b29e
--- /dev/null
@@ -0,0 +1,16 @@
+#
+# File:         makefile.g95
+# Author:       Julian Smart
+# Created:      1999
+# Updated:
+# Copyright:    (c) Julian Smart, 1999
+#
+# Makefile for wxrc (Cygwin/Mingw32).
+
+WXDIR = ../../..
+
+TARGET=wxrcedit
+EXTRALIBS=-lwxxml
+OBJECTS = edapp.o editor.o nodehnd.o prophnd.o xmlhelpr.o
+include $(WXDIR)/src/makeprog.g95
+
diff --git a/contrib/utils/wxrcedit/makefile.vc b/contrib/utils/wxrcedit/makefile.vc
new file mode 100644 (file)
index 0000000..6afdf34
--- /dev/null
@@ -0,0 +1,29 @@
+#
+# File:                makefile.vc
+# Author:      Julian Smart
+# Created:     2000
+# Updated:
+# Copyright:   (c) Julian Smart
+#
+# "%W% %G%"
+#
+# Makefile : Builds wxrcedit
+# Use FINAL=1 argument to nmake to build final version with no debugging
+# info
+# Set WXDIR for your system
+WXDIR = $(WXWIN)
+
+PROGRAM=wxrcedit
+
+FINAL=0
+
+!if "$(FINAL)" == "0"
+EXTRALIBS=$(WXDIR)\lib\wxxmld.lib
+!else
+EXTRALIBS=$(WXDIR)\lib\wxxml.lib
+!endif
+
+OBJECTS=edapp.obj editor.obj nodehnd.obj prophnd.obj xmlhelpr.obj
+
+!include $(WXDIR)\src\makeprog.vc
+
diff --git a/contrib/utils/wxrcedit/makefile.wat b/contrib/utils/wxrcedit/makefile.wat
new file mode 100644 (file)
index 0000000..7957560
--- /dev/null
@@ -0,0 +1,13 @@
+#
+# Makefile for WATCOM
+#
+#
+
+WXDIR = $(%WXWIN)
+
+PROGRAM = wxrcedit
+EXTRALIBS = $(WXDIR)\lib\wxxml.lib
+OBJECTS = edapp.obj editor.obj nodehnd.obj prophnd.obj xmlhelpr.obj
+
+!include $(WXDIR)\src\makeprog.wat
+
diff --git a/contrib/utils/wxrcedit/mondrian.ico b/contrib/utils/wxrcedit/mondrian.ico
new file mode 100644 (file)
index 0000000..2310c5d
Binary files /dev/null and b/contrib/utils/wxrcedit/mondrian.ico differ
diff --git a/contrib/utils/wxrcedit/wxrcedit.rc b/contrib/utils/wxrcedit/wxrcedit.rc
new file mode 100644 (file)
index 0000000..74b8e3f
--- /dev/null
@@ -0,0 +1,2 @@
+mondrian ICON "mondrian.ico"
+#include "wx/msw/wx.rc"
index 67bffaec61a3f46417936667c456741a10cc3a40..a9d5c3a659fbf53e13562ef051976e51a6910119 100644 (file)
@@ -255,6 +255,11 @@ contrib/samples/ogl/ogledit/OgleditVC.dsw
 contrib/samples/ogl/studio/StudioVC.dsp
 contrib/samples/ogl/studio/StudioVC.dsw
 
+contrib/src/xml/wxXMLVC.dsp
+contrib/src/xml/wxXMLVC.dsw
+
+contrib/samples/ogl/ogledit/OgleditVC.dsp
+
 contrib/src/mmedia/MmediaVC.dsp
 contrib/src/mmedia/MMediaVC.dsw
 
@@ -267,3 +272,6 @@ contrib/src/stc/StcVC.dsw
 contrib/samples/stc/StcTestVC.dsp
 contrib/samples/stc/StcTestVC.dsw
 
+contrib/utils/wxrc/wxrcVC.dsp
+contrib/utils/wxrc/wxrcVC.dsw
+
diff --git a/distrib/msw/wxrc.rsp b/distrib/msw/wxrc.rsp
new file mode 100644 (file)
index 0000000..344769a
--- /dev/null
@@ -0,0 +1,90 @@
+contrib/docs/html/xml/*.htm
+contrib/docs/html/xml/*.gif
+contrib/docs/html/xml/*.png
+contrib/docs/winhelp/xml.hlp
+contrib/docs/winhelp/xml.cnt
+contrib/docs/pdf/xml.pdf
+
+contrib/docs/latex/xml/*.tex
+contrib/docs/latex/xml/*.sty
+contrib/docs/latex/xml/*.bib
+contrib/docs/latex/xml/*.hpj
+contrib/docs/latex/xml/*.ini
+contrib/docs/latex/xml/*.txt
+contrib/docs/latex/xml/*.cnt
+contrib/docs/latex/xml/*.eps
+contrib/docs/latex/xml/*.bmp
+contrib/docs/latex/xml/*.gif
+contrib/docs/latex/xml/*.wmf
+
+contrib/src/xml/*.cpp
+contrib/src/xml/*.h
+contrib/src/xml/*.rc
+contrib/src/xml/*.def
+contrib/src/xml/*.xbm
+contrib/src/xml/*.xpm
+contrib/src/xml/makefile.vc
+contrib/src/xml/makefile.bcc
+contrib/src/xml/makefile.b32
+contrib/src/xml/makefile.wat
+contrib/src/xml/makefile.g95
+contrib/src/xml/makefile.unx
+contrib/src/xml/makefile.dos
+contrib/src/xml/makefile.vms
+contrib/src/xml/Makefile.in
+contrib/src/xml/*.txt
+contrib/src/xml/*.ico
+contrib/src/xml/*.bmp
+
+contrib/include/wx/xml/*.h
+
+contrib/utils/wxrc/*.cpp
+contrib/utils/wxrc/*.h
+contrib/utils/wxrc/*.rc
+contrib/utils/wxrc/*.def
+contrib/utils/wxrc/*.xbm
+contrib/utils/wxrc/makefile.vc
+contrib/utils/wxrc/makefile.bcc
+contrib/utils/wxrc/makefile.b32
+contrib/utils/wxrc/makefile.wat
+contrib/utils/wxrc/makefile.g95
+contrib/utils/wxrc/makefile.unx
+contrib/utils/wxrc/makefile.dos
+contrib/utils/wxrc/makefile.vms
+contrib/utils/wxrc/Makefile.in
+contrib/utils/wxrc/*.txt
+contrib/utils/wxrc/*.ico
+contrib/utils/wxrc/*.bmp
+contrib/utils/wxrc/*.xpm
+contrib/utils/wxrc/wxrcVC.dsp
+contrib/utils/wxrc/wxrcVC.dsw
+
+contrib/utils/wxrcedit/*.cpp
+contrib/utils/wxrcedit/*.h
+contrib/utils/wxrcedit/*.rc
+contrib/utils/wxrcedit/*.def
+contrib/utils/wxrcedit/*.xbm
+contrib/utils/wxrcedit/makefile.vc
+contrib/utils/wxrcedit/makefile.bcc
+contrib/utils/wxrcedit/makefile.b32
+contrib/utils/wxrcedit/makefile.wat
+contrib/utils/wxrcedit/makefile.g95
+contrib/utils/wxrcedit/makefile.unx
+contrib/utils/wxrcedit/makefile.dos
+contrib/utils/wxrcedit/makefile.vms
+contrib/utils/wxrcedit/Makefile.in
+contrib/utils/wxrcedit/wxrcEditVC.dsp
+contrib/utils/wxrcedit/wxrcEditVC.dsw
+contrib/utils/wxrcedit/*.txt
+contrib/utils/wxrcedit/*.ico
+contrib/utils/wxrcedit/*.bmp
+contrib/utils/wxrcedit/*.xpm
+contrib/utils/wxrcedit/bitmaps/*.bmp
+contrib/utils/wxrcedit/bitmaps/*.ico
+contrib/utils/wxrcedit/bitmaps/*.xpm
+contrib/utils/wxrcedit/df/*.df
+
+distrib/msw/xml.rsp
+distrib/msw/zipxml.bat
+
+
index a69945aef990c5c1294e57aa22ee831b83d011c4..29e1b1ba5064399bf17718480136afa710a68369 100644 (file)
@@ -97,6 +97,10 @@ SOURCE=.\common\clipcmn.cpp
 # End Source File
 # Begin Source File
 
+SOURCE=.\common\cmdline.cpp
+# End Source File
+# Begin Source File
+
 SOURCE=.\common\cmndata.cpp
 # End Source File
 # Begin Source File
index 77aaee517774321181238e9d1d7309041adbeebf..e40a2e167952df2508ae519f89d6e69e2e61fc71 100644 (file)
@@ -104,6 +104,10 @@ SOURCE=.\common\clipcmn.cpp
 # End Source File
 # Begin Source File
 
+SOURCE=.\common\cmdline.cpp
+# End Source File
+# Begin Source File
+
 SOURCE=.\common\cmndata.cpp
 # End Source File
 # Begin Source File
diff --git a/utils/wxrc/makefile.b32 b/utils/wxrc/makefile.b32
new file mode 100644 (file)
index 0000000..ceed75f
--- /dev/null
@@ -0,0 +1,17 @@
+#
+# File:                makefile.b32
+# Author:      Julian Smart
+# Created:     1999
+# Updated:     
+# Copyright:
+#
+# Makefile : Builds wxrc for 32-bit BC++
+
+WXDIR = $(WXWIN)
+
+TARGET=wxrc
+EXTRALIBS=$(WXDIR)\lib\wxxml.lib
+OBJECTS = $(TARGET).obj
+
+!include $(WXDIR)\src\makeprog.b32
+
diff --git a/utils/wxrc/makefile.g95 b/utils/wxrc/makefile.g95
new file mode 100644 (file)
index 0000000..679987d
--- /dev/null
@@ -0,0 +1,17 @@
+#
+# File:         makefile.g95
+# Author:       Julian Smart
+# Created:      1999
+# Updated:
+# Copyright:    (c) Julian Smart, 1999
+#
+# Makefile for wxrc (Cygwin/Mingw32).
+
+WXDIR = ../../..
+
+TARGET=wxrc
+EXTRALIBS=-lwxxml
+OBJECTS = $(TARGET).o
+
+include $(WXDIR)/src/makeprog.g95
+
diff --git a/utils/wxrc/makefile.vc b/utils/wxrc/makefile.vc
new file mode 100644 (file)
index 0000000..4623b7a
--- /dev/null
@@ -0,0 +1,29 @@
+#
+# File:                makefile.vc
+# Author:      Julian Smart
+# Created:     2000
+# Updated:
+# Copyright:   (c) Julian Smart
+#
+# "%W% %G%"
+#
+# Makefile : Builds wxrc (XML resource compiler)
+# Use FINAL=1 argument to nmake to build final version with no debugging
+# info
+# Set WXDIR for your system
+WXDIR = $(WXWIN)
+
+PROGRAM=wxrc
+
+FINAL=0
+
+!if "$(FINAL)" == "0"
+EXTRALIBS=$(WXDIR)\lib\wxxmld.lib
+!else
+EXTRALIBS=$(WXDIR)\lib\wxxml.lib
+!endif
+
+OBJECTS = $(PROGRAM).obj
+
+!include $(WXDIR)\src\makeprog.vc
+
diff --git a/utils/wxrc/makefile.wat b/utils/wxrc/makefile.wat
new file mode 100644 (file)
index 0000000..61ee00d
--- /dev/null
@@ -0,0 +1,13 @@
+#
+# Makefile for WATCOM
+#
+#
+
+WXDIR = $(%WXWIN)
+
+PROGRAM = wxrc
+EXTRALIBS = $(WXDIR)\lib\wxxml.lib
+OBJECTS = $(PROGRAM).obj
+
+!include $(WXDIR)\src\makeprog.wat
+
diff --git a/utils/wxrc/mondrian.ico b/utils/wxrc/mondrian.ico
new file mode 100644 (file)
index 0000000..2310c5d
Binary files /dev/null and b/utils/wxrc/mondrian.ico differ
index 64a81ea2c21659a06115823c550b01858963631e..f346b485ae54ee16d25979ae590c16a521ea0927 100644 (file)
 #include "wx/xml/xml.h"
 #include "wx/ffile.h"
 
-
+/*
 #if wxUSE_GUI
 #error "You must compile the resource compiler with wxBase!"
 #endif
-
+*/
 
 class XmlResApp : public wxApp
 {
 public:
+
+#if wxUSE_GUI
+    bool OnInit();
+#else
     virtual int OnRun();
+#endif
     
 private:
     
@@ -58,7 +63,11 @@ private:
 
 IMPLEMENT_APP(XmlResApp)
 
+#if wxUSE_GUI
+bool XmlResApp::OnInit()
+#else
 int XmlResApp::OnRun()
+#endif
 {
     static const wxCmdLineEntryDesc cmdLineDesc[] =
     {
@@ -87,11 +96,19 @@ int XmlResApp::OnRun()
             retCode = 0;
             ParseParams(parser);
             CompileRes();
+#if wxUSE_GUI
+            return FALSE;
+#else
             return retCode;
+#endif
             break;
 
         default:
+#if wxUSE_GUI
+            return FALSE;
+#else
             return 1;
+#endif
             break;
     }
 }
diff --git a/utils/wxrc/wxrc.rc b/utils/wxrc/wxrc.rc
new file mode 100644 (file)
index 0000000..74b8e3f
--- /dev/null
@@ -0,0 +1,2 @@
+mondrian ICON "mondrian.ico"
+#include "wx/msw/wx.rc"