git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12212
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
59 files changed:
****************************************************************************/
// For compilers that support precompilation, includes "wx/wx.h".
****************************************************************************/
// For compilers that support precompilation, includes "wx/wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#ifdef __BORLANDC__
#pragma hdrstop
#endif
****************************************************************************/
// For compilers that support precompilation, includes "wx/wx.h".
****************************************************************************/
// For compilers that support precompilation, includes "wx/wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#endif
// For compilers that support precompilation, includes "wx.h".
#endif
// For compilers that support precompilation, includes "wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// For compilers that support precompilation, includes "wx.h".
#endif
// For compilers that support precompilation, includes "wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// For compilers that support precompilation, includes "wx.h".
#endif
// For compilers that support precompilation, includes "wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// For compilers that support precompilation, includes "wx.h".
#endif
// For compilers that support precompilation, includes "wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// For compilers that support precompilation, includes "wx.h".
#endif
// For compilers that support precompilation, includes "wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// For compilers that support precompilation, includes "wx.h".
#endif
// For compilers that support precompilation, includes "wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// For compilers that support precompilation, includes "wx.h".
#endif
// For compilers that support precompilation, includes "wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// For compilers that support precompilation, includes "wx.h".
#endif
// For compilers that support precompilation, includes "wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// For compilers that support precompilation, includes "wx.h".
#endif
// For compilers that support precompilation, includes "wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// For compilers that support precompilation, includes "wx.h".
#endif
// For compilers that support precompilation, includes "wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// For compilers that support precompilation, includes "wx.h".
#endif
// For compilers that support precompilation, includes "wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
* Mountain View, California 94043
*/
* Mountain View, California 94043
*/
* Mountain View, California 94043
*/
* Mountain View, California 94043
*/
* of workstation attributes, such as hardware 2's complement arithmetic.
*
*/
* of workstation attributes, such as hardware 2's complement arithmetic.
*
*/
#include "wx/mmedia/internal/g72x.h"
/*
#include "wx/mmedia/internal/g72x.h"
/*
* the name of the module which it is implementing.
*
*/
* the name of the module which it is implementing.
*
*/
#include "wx/mmedia/internal/g72x.h"
/*
#include "wx/mmedia/internal/g72x.h"
/*
* Common routines for G.721 and G.723 conversions.
*/
* Common routines for G.721 and G.723 conversions.
*/
#include <stdlib.h>
#include "wx/mmedia/internal/g72x.h"
#include <stdlib.h>
#include "wx/mmedia/internal/g72x.h"
#pragma implementation "sndbase.cpp"
#endif
#pragma implementation "sndbase.cpp"
#endif
#ifndef WX_PRECOMP
#include "wx/defs.h"
#ifndef WX_PRECOMP
#include "wx/defs.h"
// Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 1999, 2000
// CVSID: $Id$
// --------------------------------------------------------------------------
// Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 1999, 2000
// CVSID: $Id$
// --------------------------------------------------------------------------
#ifndef WX_PRECOMP
#include <wx/defs.h>
#ifndef WX_PRECOMP
#include <wx/defs.h>
#pragma implementation "sndg72x.cpp"
#endif
#pragma implementation "sndg72x.cpp"
#endif
#ifndef WX_PRECOMP
#include "wx/defs.h"
#ifndef WX_PRECOMP
#include "wx/defs.h"
#pragma implementation "sndmsad.cpp"
#endif
#pragma implementation "sndmsad.cpp"
#endif
#ifndef WX_PRECOMP
#include "wx/defs.h"
#ifndef WX_PRECOMP
#include "wx/defs.h"
#pragma implementation "sndpcm.cpp"
#endif
#pragma implementation "sndpcm.cpp"
#endif
#ifndef WX_PRECOMP
#include "wx/defs.h"
#ifndef WX_PRECOMP
#include "wx/defs.h"
#pragma implementation "sndwav.cpp"
#endif
#pragma implementation "sndwav.cpp"
#endif
#ifndef WX_PRECOMP
#include "wx/defs.h"
#ifndef WX_PRECOMP
#include "wx/defs.h"
#pragma implementation "vidbase.h"
#endif
#pragma implementation "vidbase.h"
#endif
#ifndef WX_PRECOMP
#include <wx/stream.h>
#ifndef WX_PRECOMP
#include <wx/stream.h>
#pragma implementation "vidxanm.h"
#endif
#pragma implementation "vidxanm.h"
#endif
#ifndef WX_PRECOMP
#include <wx/wx.h>
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
// For compilers that support precompilation, includes "wx.h".
#endif
// For compilers that support precompilation, includes "wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// For compilers that support precompilation, includes "wx.h".
#endif
// For compilers that support precompilation, includes "wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// For compilers that support precompilation, includes "wx.h".
#endif
// For compilers that support precompilation, includes "wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// For compilers that support precompilation, includes "wx.h".
#endif
// For compilers that support precompilation, includes "wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// For compilers that support precompilation, includes "wx.h".
#endif
// For compilers that support precompilation, includes "wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// For compilers that support precompilation, includes "wx.h".
#endif
// For compilers that support precompilation, includes "wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// For compilers that support precompilation, includes "wx.h".
#endif
// For compilers that support precompilation, includes "wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// For compilers that support precompilation, includes "wx.h".
#endif
// For compilers that support precompilation, includes "wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// For compilers that support precompilation, includes "wx.h".
#endif
// For compilers that support precompilation, includes "wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// For compilers that support precompilation, includes "wx.h".
#endif
// For compilers that support precompilation, includes "wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// For compilers that support precompilation, includes "wx.h".
#endif
// For compilers that support precompilation, includes "wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// For compilers that support precompilation, includes "wx.h".
#endif
// For compilers that support precompilation, includes "wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// For compilers that support precompilation, includes "wx.h".
#endif
// For compilers that support precompilation, includes "wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// For compilers that support precompilation, includes "wx/wx.h".
#endif
// For compilers that support precompilation, includes "wx/wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
// rc2wxr.cpp: implementation of the rc2wxr class.
// rc2wxr.cpp: implementation of the rc2wxr class.
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
//Author: Brian Gavin 9/24/00
//Author: Brian Gavin 9/24/00
//License: wxWindows License
//License: wxWindows License
WARNING- I know this code has some bugs to work out but
WARNING- I know this code has some bugs to work out but
I don't plan to fix them since I feel that wxr files will
I don't plan to fix them since I feel that wxr files will
This code was used as a starting point for my rc2xml converter
This code was used as a starting point for my rc2xml converter
#pragma implementation "rc2wxr.cpp"
#pragma implementation "rc2wxr.cpp"
#pragma interface "rc2wxr.cpp"
#pragma interface "rc2wxr.cpp"
// For compilers that support precompilation, includes "wx/wx.h".
// For compilers that support precompilation, includes "wx/wx.h".
+
+#include "wx/wxprec.h"
+
+
// for all others, include the necessary headers (this file is usually all you
// for all others, include the necessary headers (this file is usually all you
// need because it includes almost all "standard" wxWindows headers
// need because it includes almost all "standard" wxWindows headers
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
void rc2wxr::Convert(wxString wxrfile, wxString rcfile)
void rc2wxr::Convert(wxString wxrfile, wxString rcfile)
m_filesize=m_rc.Length();
m_filesize=m_rc.Length();
if( (m_wxr = fopen( wxrfile, "wt" )) == NULL )
if( (m_wxr = fopen( wxrfile, "wt" )) == NULL )
Microsoft style as of v5.0
Microsoft style as of v5.0
IDD_ABOUTBOX DIALOG DISCARDABLE 0, 0, 217, 55
IDD_ABOUTBOX DIALOG DISCARDABLE 0, 0, 217, 55
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About Funimator"
CAPTION "About Funimator"
IDD_DIBATTR DIALOG 7, 16, 172, 119
IDD_DIBATTR DIALOG 7, 16, 172, 119
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
DEFPUSHBUTTON "Ok", IDOK, 114, 8, 50, 14
DEFPUSHBUTTON "Ok", IDOK, 114, 8, 50, 14
PUSHBUTTON "Cancel", IDCANCEL, 114, 28, 50, 14
PUSHBUTTON "Cancel", IDCANCEL, 114, 28, 50, 14
void rc2wxr::ParseDialog(wxString dlgname)
void rc2wxr::ParseDialog(wxString dlgname)
/* Make sure that this really is a dialog
/* Make sure that this really is a dialog
microsoft reuses the keyword DIALOG for other things
microsoft reuses the keyword DIALOG for other things
//This isn't a Dialog resource eject eject
//This isn't a Dialog resource eject eject
fprintf(m_wxr,"static char *dialog%i = \"dialog(name = '%s',\\\n",dlgid,dlgname);
fprintf(m_wxr,"static char *dialog%i = \"dialog(name = '%s',\\\n",dlgid,dlgname);
//be lazy about style for now. add it later
//be lazy about style for now. add it later
fprintf(m_wxr,"style = 'wxRAISED_BORDER | wxCAPTION | wxTHICK_FRAME | wxSYSTEM_MENU',\\\n");
fprintf(m_wxr,"style = 'wxRAISED_BORDER | wxCAPTION | wxTHICK_FRAME | wxSYSTEM_MENU',\\\n");
fprintf(m_wxr,"id = %i,\\\n",dlgid);
fprintf(m_wxr,"id = %i,\\\n",dlgid);
//Record x,y,width,height
//Record x,y,width,height
ReadRect(x,y,width,height);
ReadRect(x,y,width,height);
fprintf(m_wxr,"x = %i, y = %i, width = %i, height = %i,\\\n",x,y,width,height);
fprintf(m_wxr,"x = %i, y = %i, width = %i, height = %i,\\\n",x,y,width,height);
//CAPTION "About Funimator"
//CAPTION "About Funimator"
while ((tok!="BEGIN")&(tok!="{"))
while ((tok!="BEGIN")&(tok!="{"))
fprintf(m_wxr,"title = '%s',\\\n",title);
fprintf(m_wxr,"title = '%s',\\\n",title);
fprintf(m_wxr,"use_dialog_units = 1,\\\n");
fprintf(m_wxr,"use_dialog_units = 1,\\\n");
fprintf(m_wxr,"use_system_defaults = 0,\\\n");
fprintf(m_wxr,"use_system_defaults = 0,\\\n");
fprintf(m_wxr,"font = [8, 'wxSWISS', 'wxNORMAL', 'wxNORMAL', 0, 'MS Sans Serif'],\\\n");
fprintf(m_wxr,"font = [8, 'wxSWISS', 'wxNORMAL', 'wxNORMAL', 0, 'MS Sans Serif'],\\\n");
fprintf(m_wxr,").\";\n\n");
fprintf(m_wxr,").\";\n\n");
EDITTEXT IDC_BANDS,36,83,22,14,ES_AUTOHSCROLL | ES_NUMBER | NOT
EDITTEXT IDC_BANDS,36,83,22,14,ES_AUTOHSCROLL | ES_NUMBER | NOT
LTEXT "Bands",IDC_STATIC,11,86,21,8
LTEXT "Bands",IDC_STATIC,11,86,21,8
EDITTEXT IDC_NAME,10,3,75,14,ES_AUTOHSCROLL
EDITTEXT IDC_NAME,10,3,75,14,ES_AUTOHSCROLL
void rc2wxr::ParseControls()
void rc2wxr::ParseControls()
while ((tok!="END")&(tok!="}"))
while ((tok!="END")&(tok!="}"))
if (tok=="DEFPUSHBUTTON")
if (tok=="DEFPUSHBUTTON")
//LTEXT "Radius",IDC_STATIC,9,67,23,8
//LTEXT "Radius",IDC_STATIC,9,67,23,8
void rc2wxr::ParseStaticText()
void rc2wxr::ParseStaticText()
ReadRect(x,y,width,height);
ReadRect(x,y,width,height);
fprintf(m_wxr," control = [%i,wxStaticText,'%s','0','%s',",m_controlid,phrase,varname);
fprintf(m_wxr," control = [%i,wxStaticText,'%s','0','%s',",m_controlid,phrase,varname);
fprintf(m_wxr,"%i,%i,%i,%i,'',\\\n",x,y,width,height);
fprintf(m_wxr,"%i,%i,%i,%i,'',\\\n",x,y,width,height);
fprintf(m_wxr,"[8, 'wxSWISS', 'wxNORMAL', 'wxNORMAL', 0, 'MS Sans Serif']],\\\n");
fprintf(m_wxr,"[8, 'wxSWISS', 'wxNORMAL', 'wxNORMAL', 0, 'MS Sans Serif']],\\\n");
//EDITTEXT IDC_RADIUS,36,65,40,14,ES_AUTOHSCROLL
//EDITTEXT IDC_RADIUS,36,65,40,14,ES_AUTOHSCROLL
void rc2wxr::ParseTextCtrl()
void rc2wxr::ParseTextCtrl()
ReadRect(x,y,width,height);
ReadRect(x,y,width,height);
fprintf(m_wxr," control = [%i,wxTextCtrl,'','0','%s',",m_controlid,varname);
fprintf(m_wxr," control = [%i,wxTextCtrl,'','0','%s',",m_controlid,varname);
fprintf(m_wxr,"%i,%i,%i,%i,'',\\\n",x,y,width,height);
fprintf(m_wxr,"%i,%i,%i,%i,'',\\\n",x,y,width,height);
fprintf(m_wxr,"[8, 'wxSWISS', 'wxNORMAL', 'wxNORMAL', 0, 'MS Sans Serif']],\\\n");
fprintf(m_wxr,"[8, 'wxSWISS', 'wxNORMAL', 'wxNORMAL', 0, 'MS Sans Serif']],\\\n");
//PUSHBUTTON "Create/Update",IDC_CREATE,15,25,53,13,NOT WS_TABSTOP
//PUSHBUTTON "Create/Update",IDC_CREATE,15,25,53,13,NOT WS_TABSTOP
void rc2wxr::ParsePushButton()
void rc2wxr::ParsePushButton()
ReadRect(x,y,width,height);
ReadRect(x,y,width,height);
fprintf(m_wxr," control = [%i,wxButton,'%s','0','%s',",c,phrase,varname);
fprintf(m_wxr," control = [%i,wxButton,'%s','0','%s',",c,phrase,varname);
fprintf(m_wxr,"%i,%i,%i,%i,'',\\\n",x,y,width,height);
fprintf(m_wxr,"%i,%i,%i,%i,'',\\\n",x,y,width,height);
fprintf(m_wxr,"[8, 'wxSWISS', 'wxNORMAL', 'wxNORMAL', 0, 'MS Sans Serif']],\\\n");
fprintf(m_wxr,"[8, 'wxSWISS', 'wxNORMAL', 'wxNORMAL', 0, 'MS Sans Serif']],\\\n");
bool rc2wxr::Seperator(int ch)
bool rc2wxr::Seperator(int ch)
if ((ch==' ')|(ch==',')|(ch==13)|(ch==10)|(ch=='|'))
if ((ch==' ')|(ch==',')|(ch==13)|(ch==10)|(ch=='|'))
void rc2wxr::ParseGroupBox()
void rc2wxr::ParseGroupBox()
// GROUPBOX "Rotate",IDC_STATIC,1,1,71,79
// GROUPBOX "Rotate",IDC_STATIC,1,1,71,79
ReadRect(x,y,width,height);
ReadRect(x,y,width,height);
fprintf(m_wxr," control = [%i,wxStaticBox,'%s','0','%s',",m_controlid,phrase,varname);
fprintf(m_wxr," control = [%i,wxStaticBox,'%s','0','%s',",m_controlid,phrase,varname);
fprintf(m_wxr,"%i,%i,%i,%i,'',\\\n",x,y,width,height);
fprintf(m_wxr,"%i,%i,%i,%i,'',\\\n",x,y,width,height);
fprintf(m_wxr,"[8, 'wxSWISS', 'wxNORMAL', 'wxNORMAL', 0, 'MS Sans Serif']],\\\n");
fprintf(m_wxr,"[8, 'wxSWISS', 'wxNORMAL', 'wxNORMAL', 0, 'MS Sans Serif']],\\\n");
void rc2wxr::ReadRect(int & x, int & y, int & width, int & height)
void rc2wxr::ReadRect(int & x, int & y, int & width, int & height)
wxString rc2wxr::GetToken()
wxString rc2wxr::GetToken()
wxString rc2wxr::GetQuoteField()
wxString rc2wxr::GetQuoteField()
void rc2wxr::ReadChar(int &ch)
void rc2wxr::ReadChar(int &ch)
void rc2wxr::ParseComboBox()
void rc2wxr::ParseComboBox()
/* COMBOBOX IDC_SCALECOMBO,10,110,48,52,CBS_DROPDOWNLIST | CBS_SORT |
/* COMBOBOX IDC_SCALECOMBO,10,110,48,52,CBS_DROPDOWNLIST | CBS_SORT |
WS_VSCROLL | WS_TABSTOP */
WS_VSCROLL | WS_TABSTOP */
ReadRect(x,y,width,height);
ReadRect(x,y,width,height);
fprintf(m_wxr," control = [%i,wxChoice,'','0','%s',",m_controlid,varname);
fprintf(m_wxr," control = [%i,wxChoice,'','0','%s',",m_controlid,varname);
fprintf(m_wxr,"%i,%i,%i,%i,[],\\\n",x,y,width,height);
fprintf(m_wxr,"%i,%i,%i,%i,[],\\\n",x,y,width,height);
fprintf(m_wxr,"[8, 'wxSWISS', 'wxNORMAL', 'wxNORMAL', 0, 'MS Sans Serif']],\\\n");
fprintf(m_wxr,"[8, 'wxSWISS', 'wxNORMAL', 'wxNORMAL', 0, 'MS Sans Serif']],\\\n");
void rc2wxr::ParseMenu(wxString name)
void rc2wxr::ParseMenu(wxString name)
fprintf(m_wxr,"static char *MenuBar%i = \"menu(name = '%s',\\\n",menuid,name);
fprintf(m_wxr,"static char *MenuBar%i = \"menu(name = '%s',\\\n",menuid,name);
fprintf(m_wxr,"menu = \\\n");
fprintf(m_wxr,"menu = \\\n");
while ((tok!="BEGIN")&(tok!="{"))
while ((tok!="BEGIN")&(tok!="{"))
while ((tok!="END")&(tok!="}"))
while ((tok!="END")&(tok!="}"))
fprintf(m_wxr," ],\\\n");
fprintf(m_wxr," ],\\\n");
fprintf(m_wxr,"]).\";\n\n");
fprintf(m_wxr,"]).\";\n\n");
void rc2wxr::ParsePopupMenu()
void rc2wxr::ParsePopupMenu()
//Remove /t because it causes problems
//Remove /t because it causes problems
fprintf(m_wxr," ['%s',%i,'',\\\n",tok,menuitem);
fprintf(m_wxr," ['%s',%i,'',\\\n",tok,menuitem);
while ((tok!="BEGIN")&(tok!="{"))
while ((tok!="BEGIN")&(tok!="{"))
while ((tok!="END")&(tok!="}"))
while ((tok!="END")&(tok!="}"))
if (PeekToken()=="SEPARATOR")
if (PeekToken()=="SEPARATOR")
fprintf(m_wxr," [],\\\n");
fprintf(m_wxr," [],\\\n");
//Remove /t because it causes problems
//Remove /t because it causes problems
fprintf(m_wxr," ['%s',%i,''],\\\n",tok,menuitem);
fprintf(m_wxr," ['%s',%i,''],\\\n",tok,menuitem);
wxString rc2wxr::PeekToken()
wxString rc2wxr::PeekToken()
//Windows pain in the butt CONTROL
//Windows pain in the butt CONTROL
void rc2wxr::ParseControlMS()
void rc2wxr::ParseControlMS()
wxString label,varname,kindctrl,tok;
wxString label,varname,kindctrl,tok;
kindctrl=GetQuoteField();
kindctrl=GetQuoteField();
if (kindctrl=="MSCTLS_TRACKBAR32")
if (kindctrl=="MSCTLS_TRACKBAR32")
ParseSlider(label,varname);
ParseSlider(label,varname);
if (kindctrl=="MSCTLS_PROGRESS32")
if (kindctrl=="MSCTLS_PROGRESS32")
ParseProgressBar(label,varname);
ParseProgressBar(label,varname);
ParseCtrlButton(label,varname);
ParseCtrlButton(label,varname);
/* CONTROL "Slider1",IDC_SLIDER1,"msctls_trackbar32",TBS_BOTH |
/* CONTROL "Slider1",IDC_SLIDER1,"msctls_trackbar32",TBS_BOTH |
TBS_NOTICKS | WS_TABSTOP,52,73,100,15
TBS_NOTICKS | WS_TABSTOP,52,73,100,15
void rc2wxr::ParseSlider(wxString label, wxString varname)
void rc2wxr::ParseSlider(wxString label, wxString varname)
fprintf(m_wxr," control = [%i,wxSlider,'','wxSL_HORIZONTAL','%s',",m_controlid,varname);
fprintf(m_wxr," control = [%i,wxSlider,'','wxSL_HORIZONTAL','%s',",m_controlid,varname);
ReadRect(x,y,width,height);
ReadRect(x,y,width,height);
fprintf(m_wxr,"%i,%i,%i,%i,",x,y,width,height);
fprintf(m_wxr,"%i,%i,%i,%i,",x,y,width,height);
fprintf(m_wxr," 1, 1, 10,\\\n");
fprintf(m_wxr," 1, 1, 10,\\\n");
fprintf(m_wxr,"[8, 'wxSWISS', 'wxNORMAL', 'wxNORMAL', 0, 'MS Sans Serif']],\\\n");
fprintf(m_wxr,"[8, 'wxSWISS', 'wxNORMAL', 'wxNORMAL', 0, 'MS Sans Serif']],\\\n");
CONTROL "Progress1",CG_IDC_PROGDLG_PROGRESS,"msctls_progress32",
CONTROL "Progress1",CG_IDC_PROGDLG_PROGRESS,"msctls_progress32",
void rc2wxr::ParseProgressBar(wxString label, wxString varname)
void rc2wxr::ParseProgressBar(wxString label, wxString varname)
fprintf(m_wxr," control = [%i,wxGauge,'','wxGA_HORIZONTAL','%s',",m_controlid,varname);
fprintf(m_wxr," control = [%i,wxGauge,'','wxGA_HORIZONTAL','%s',",m_controlid,varname);
ReadRect(x,y,width,height);
ReadRect(x,y,width,height);
fprintf(m_wxr,"%i,%i,%i,%i,",x,y,width,height);
fprintf(m_wxr,"%i,%i,%i,%i,",x,y,width,height);
fprintf(m_wxr," 0, 10,\\\n");
fprintf(m_wxr," 0, 10,\\\n");
fprintf(m_wxr,"[8, 'wxSWISS', 'wxNORMAL', 'wxNORMAL', 0, 'MS Sans Serif']],\\\n");
fprintf(m_wxr,"[8, 'wxSWISS', 'wxNORMAL', 'wxNORMAL', 0, 'MS Sans Serif']],\\\n");
bool rc2wxr::ReadOrs(wxString & w)
bool rc2wxr::ReadOrs(wxString & w)
//Is it a check button or a radio button
//Is it a check button or a radio button
void rc2wxr::ParseCtrlButton(wxString label, wxString varname)
void rc2wxr::ParseCtrlButton(wxString label, wxString varname)
if (tok=="BS_AUTOCHECKBOX")
if (tok=="BS_AUTOCHECKBOX")
fprintf(m_wxr," control = [%i,wxCheckBox,'%s','0','%s',",m_controlid,label,varname);
fprintf(m_wxr," control = [%i,wxCheckBox,'%s','0','%s',",m_controlid,label,varname);
ReadRect(x,y,width,height);
ReadRect(x,y,width,height);
fprintf(m_wxr,"%i,%i,%i,%i,0,\\\n",x,y,width,height);
fprintf(m_wxr,"%i,%i,%i,%i,0,\\\n",x,y,width,height);
fprintf(m_wxr,"[8, 'wxSWISS', 'wxNORMAL', 'wxNORMAL', 0, 'MS Sans Serif']],\\\n");
fprintf(m_wxr,"[8, 'wxSWISS', 'wxNORMAL', 'wxNORMAL', 0, 'MS Sans Serif']],\\\n");
if (tok=="BS_AUTORADIOBUTTON")
if (tok=="BS_AUTORADIOBUTTON")
fprintf(m_wxr," control = [%i,wxRadioButton,'%s','0','%s',",m_controlid,label,varname);
fprintf(m_wxr," control = [%i,wxRadioButton,'%s','0','%s',",m_controlid,label,varname);
ReadRect(x,y,width,height);
ReadRect(x,y,width,height);
fprintf(m_wxr,"%i,%i,%i,%i,0,\\\n",x,y,width,height);
fprintf(m_wxr,"%i,%i,%i,%i,0,\\\n",x,y,width,height);
fprintf(m_wxr,"[8, 'wxSWISS', 'wxNORMAL', 'wxNORMAL', 0, 'MS Sans Serif']],\\\n");
fprintf(m_wxr,"[8, 'wxSWISS', 'wxNORMAL', 'wxNORMAL', 0, 'MS Sans Serif']],\\\n");
#endif
// For compilers that support precompilation, includes "wx/wx.h".
#endif
// For compilers that support precompilation, includes "wx/wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
m_rc.Open(rcfile.c_str());
m_filesize=m_rc.Length();
m_rc.Open(rcfile.c_str());
m_filesize=m_rc.Length();
m_workingpath=wxPathOnly(rcfile);
m_workingpath=wxPathOnly(rcfile);
m_targetpath=wxPathOnly(xmlfile)+"\\";
m_targetpath=wxPathOnly(xmlfile)+"\\";
wxSetWorkingDirectory(m_workingpath);
wxSetWorkingDirectory(m_workingpath);
bool result;
result=m_xmlfile.Open(xmlfile.c_str(),"w+t");
wxASSERT_MSG(result,"Couldn't create XML file");
bool result;
result=m_xmlfile.Open(xmlfile.c_str(),"w+t");
wxASSERT_MSG(result,"Couldn't create XML file");
name.Replace("idr_","");
name.Replace("idb_","");
name.Replace("idc_","");
name.Replace("idr_","");
name.Replace("idb_","");
name.Replace("idc_","");
name.Replace(".bmp","");
return name;
}
name.Replace(".bmp","");
return name;
}
wxString *bitmappath;
bitmappath=(wxString *)node->Data();
wxString *bitmappath;
bitmappath=(wxString *)node->Data();
bitmapname=wxFileNameFromPath(*bitmappath);
wxBitmap bitmap;
if (!bitmap.LoadFile(*bitmappath,wxBITMAP_TYPE_BMP ))
bitmapname=wxFileNameFromPath(*bitmappath);
wxBitmap bitmap;
if (!bitmap.LoadFile(*bitmappath,wxBITMAP_TYPE_BMP ))
/////////////////////////////////////////////////////////////////////////////
// For compilers that support precompilation, includes "wx/wx.h".
/////////////////////////////////////////////////////////////////////////////
// For compilers that support precompilation, includes "wx/wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
/////////////////////////////////////////////////////////////////////////////
// For compilers that support precompilation, includes "wx/wx.h".
/////////////////////////////////////////////////////////////////////////////
// For compilers that support precompilation, includes "wx/wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// For compilers that support precompilation, includes "wx/wx.h".
#endif
// For compilers that support precompilation, includes "wx/wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// For compilers that support precompilation, includes "wx/wx.h".
#endif
// For compilers that support precompilation, includes "wx/wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// For compilers that support precompilation, includes "wx/wx.h".
#endif
// For compilers that support precompilation, includes "wx/wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
// For compilers that support precompilation, includes "wx/wx.h".
// For compilers that support precompilation, includes "wx/wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// For compilers that support precompilation, includes "wx/wx.h".
#endif
// For compilers that support precompilation, includes "wx/wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// For compilers that support precompilation, includes "wx/wx.h".
#endif
// For compilers that support precompilation, includes "wx/wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// For compilers that support precompilation, includes "wx/wx.h".
#endif
// For compilers that support precompilation, includes "wx/wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// For compilers that support precompilation, includes "wx/wx.h".
#endif
// For compilers that support precompilation, includes "wx/wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
// ----------------------------------------------------------------------------
// For compilers that support precompilation, includes "wx/wx.h".
// ----------------------------------------------------------------------------
// For compilers that support precompilation, includes "wx/wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
#pragma implementation "wxLayout.h"
#endif
#pragma implementation "wxLayout.h"
#endif
#ifdef __BORLANDC__
# pragma hdrstop
#endif
#ifdef __BORLANDC__
# pragma hdrstop
#endif
# pragma implementation "wxllist.h"
#endif
# pragma implementation "wxllist.h"
#endif
#ifdef __BORLANDC__
# pragma hdrstop
#ifdef __BORLANDC__
# pragma hdrstop
# pragma implementation "wxlparser.h"
#endif
# pragma implementation "wxlparser.h"
#endif
#ifdef __BORLANDC__
# pragma hdrstop
#ifdef __BORLANDC__
# pragma hdrstop
# pragma implementation "wxlwindow.h"
#endif
# pragma implementation "wxlwindow.h"
#endif
#ifdef __BORLANDC__
# pragma hdrstop
#ifdef __BORLANDC__
# pragma hdrstop
// ----------------------------------------------------------------------------
// For compilers that support precompilation, includes "wx/wx.h".
// ----------------------------------------------------------------------------
// For compilers that support precompilation, includes "wx/wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop
// ----------------------------------------------------------------------------
// For compilers that support precompilation, includes "wx/wx.h".
// ----------------------------------------------------------------------------
// For compilers that support precompilation, includes "wx/wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#ifdef __BORLANDC__
#pragma hdrstop