-BEGIN_EVENT_TABLE(wxFileProgressDlg,wxDialog)
-END_EVENT_TABLE()
-
-wxFileProgressDlg::wxFileProgressDlg()
-{
-wxPoint pos;
-wxSize size;
-pos = ConvertDialogToPixels(wxPoint(10,10));
-size = ConvertDialogToPixels(wxSize(170,31));
-Create(GetParent(),100,"Parsing RC File",pos,size,603985920);
-SetClientSize(size);
-Move(pos);
-//wxGauge Control
-pos = ConvertDialogToPixels(wxPoint(16,16));
-size = ConvertDialogToPixels(wxSize(136,6));
-m_pProgress = new wxGauge(this,101,100,pos,size);
-//wxStaticText Control
-pos = ConvertDialogToPixels(wxPoint(72,4));
-size = ConvertDialogToPixels(wxSize(18,6));
-m_pCompleteLabel= new wxStaticText(this,102,"0",pos,size,0);
-}
-wxFileProgressDlg::~wxFileProgressDlg()
-{
-
-}
-
-void wxFileProgressDlg::UpdateProgress(wxFile * f)
-{
-int p;
-p=(int)((float)f->Tell()/(float)f->Length()*100.0);
-m_pProgress->SetValue(p);
-wxString t;
-t.sprintf("%i%%",p);
-m_pCompleteLabel->SetLabel(t);
-Refresh();
-}
-
-
-
-//////////////////////////////////////////////////////////////////////
-// GenerateBitmapSrc Class
-//////////////////////////////////////////////////////////////////////
-
-//////////////////////////////////////////////////////////////////////
-// Construction/Destruction
-//////////////////////////////////////////////////////////////////////
-
-GenerateBitmapSrc::GenerateBitmapSrc()
-{
-
-}
-
-GenerateBitmapSrc::~GenerateBitmapSrc()
-{
-
-}
-
-bool GenerateBitmapSrc::Create(wxString imfile, wxString srcfile,wxString varname)
-{
-
-wxImage img;
-FILE *src;
-
-int h,w;
-
-img.LoadFile(imfile,wxBITMAP_TYPE_ANY);
-h=img.GetHeight();
-w=img.GetWidth();
-
-if( (src = fopen( srcfile, "at" )) == NULL )
- return FALSE;
-fprintf(src,"#if !defined(IMG_%s)\n",varname);
-fprintf(src,"#define IMG_%s\n",varname);
-
-fprintf(src,"//Data from bitmap file %s \n",imfile);
-fprintf(src,"//Image Height=%i,Width=%i RGB format\n",h,w);
-fprintf(src,"static unsigned char %s[][3]={\n",varname);
-
-
-for (int y=0;y<h;y++)
-{
- for (int x=0;x<w;x++)
- {
- //fprintf(src,"{%i,%i,%i},",img.GetRed(x,y),img.GetGreen(x,y),img.GetBlue(x,y));
-
- }
-fprintf(src,"\n");
-}
-
-fprintf(src,"};\n\n");
-
-fprintf(src,"wxBitmap Load%s()\n{\n",varname);
-fprintf(src,"wxImage myimg(%i,%i);\n",w,h);
-int size=w*h*3;
-fprintf(src,"memcpy(myimg.GetData(),&%s[0][0],%i);\n",varname,size);
-fprintf(src,"return myimg.ConvertToBitmap();\n");
-fprintf(src,"}\n");
-fprintf(src,"#endif\n");
-fclose(src);
-
-return TRUE;
-}
-