WIN32 compilation of wxrc, wxrcedit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
17
contrib/utils/wxrc/makefile.b32
Normal file
17
contrib/utils/wxrc/makefile.b32
Normal file
@@ -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
|
||||
|
17
contrib/utils/wxrc/makefile.g95
Normal file
17
contrib/utils/wxrc/makefile.g95
Normal file
@@ -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
|
||||
|
29
contrib/utils/wxrc/makefile.vc
Normal file
29
contrib/utils/wxrc/makefile.vc
Normal file
@@ -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
|
||||
|
13
contrib/utils/wxrc/makefile.wat
Normal file
13
contrib/utils/wxrc/makefile.wat
Normal file
@@ -0,0 +1,13 @@
|
||||
#
|
||||
# Makefile for WATCOM
|
||||
#
|
||||
#
|
||||
|
||||
WXDIR = $(%WXWIN)
|
||||
|
||||
PROGRAM = wxrc
|
||||
EXTRALIBS = $(WXDIR)\lib\wxxml.lib
|
||||
OBJECTS = $(PROGRAM).obj
|
||||
|
||||
!include $(WXDIR)\src\makeprog.wat
|
||||
|
BIN
contrib/utils/wxrc/mondrian.ico
Normal file
BIN
contrib/utils/wxrc/mondrian.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 766 B |
@@ -30,16 +30,21 @@
|
||||
#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;
|
||||
}
|
||||
}
|
||||
|
2
contrib/utils/wxrc/wxrc.rc
Normal file
2
contrib/utils/wxrc/wxrc.rc
Normal file
@@ -0,0 +1,2 @@
|
||||
mondrian ICON "mondrian.ico"
|
||||
#include "wx/msw/wx.rc"
|
@@ -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,
|
||||
|
@@ -16,13 +16,14 @@
|
||||
|
||||
|
||||
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;
|
||||
|
17
contrib/utils/wxrcedit/makefile.b32
Normal file
17
contrib/utils/wxrcedit/makefile.b32
Normal file
@@ -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
|
||||
|
16
contrib/utils/wxrcedit/makefile.g95
Normal file
16
contrib/utils/wxrcedit/makefile.g95
Normal file
@@ -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
|
||||
|
29
contrib/utils/wxrcedit/makefile.vc
Normal file
29
contrib/utils/wxrcedit/makefile.vc
Normal file
@@ -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
|
||||
|
13
contrib/utils/wxrcedit/makefile.wat
Normal file
13
contrib/utils/wxrcedit/makefile.wat
Normal file
@@ -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
|
||||
|
BIN
contrib/utils/wxrcedit/mondrian.ico
Normal file
BIN
contrib/utils/wxrcedit/mondrian.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 766 B |
2
contrib/utils/wxrcedit/wxrcedit.rc
Normal file
2
contrib/utils/wxrcedit/wxrcedit.rc
Normal file
@@ -0,0 +1,2 @@
|
||||
mondrian ICON "mondrian.ico"
|
||||
#include "wx/msw/wx.rc"
|
Reference in New Issue
Block a user