#endif
#include <wx/image.h>
-#include "wx/resource.h"
+
+#include "wx/deprecated/setup.h"
+#include "wx/deprecated/resource.h"
#include "convert.h"
#include "rc2wxr.h"
// Create the main frame window
m_pFrame = new wxMainFrame(NULL, -1, "wxConvertApp", wxPoint(0, 0), wxSize(500, 400),
wxDEFAULT_FRAME_STYLE | wxHSCROLL | wxVSCROLL);
-
+
InitMenu();
m_pFrame->Show(TRUE);
SetTopWindow(m_pFrame);
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
-wxMainFrame::wxMainFrame(wxWindow* parent,wxWindowID id,
+wxMainFrame::wxMainFrame(wxWindow* parent,wxWindowID id,
const wxString& title, const wxPoint& pos, const wxSize& size,
long style, const wxString& name)
:wxFrame(parent,id,title,pos,size,style,name)
{
-
+
}
wxMainFrame::~wxMainFrame()
wxr2xml XMLCon;
XMLCon.Convert(f.GetPath(),xmlfile.GetPath());
-
+
}
void wxMainFrame::OnRC2XML()
bool wxConvertApp::HandleCommandLine()
{
- if (argc != 2)
+ if (argc != 2)
return FALSE;
//Figure out kind of conversion
wxString source,target;
+
wxr2xml trans_wxr2xml;
rc2xml trans_rc2xml;
rc2wxr trans_rc2wxr;
source=argv[1];
target=argv[2];
-
+
if ((source.Find(".wxr")>0)&&(target.Find(".xml")>0))
{
trans_rc2xml.Convert(source,target);
return TRUE;
}
-
- return FALSE;
+
+ return FALSE;
}