From: Morten Kjeldgaard Subject: modification to source code --- a/src/saveSnapDialog.cpp +++ b/src/saveSnapDialog.cpp @@ -3,15 +3,15 @@ #endif #include -#include "SaveSnapDialog.h" +#include "saveSnapDialog.h" #include "HardSettings.h" enum{ ID_ResUp=500, ID_ResDown, ID_Res, ID_AntiAlias, ID_Alpha}; -static wxString title[]={"PNG snapshot options","JPG snapshot options","GIF animation options"}; -static wxTextCtrl * resText; -static wxCheckBox *wxCheckAntia, *wxTransp ; +static wxString title[]={_T("PNG snapshot options"),_T("JPG snapshot options"),_T("GIF animation options")}; +//static wxTextCtrl * resText; +//static wxCheckBox *wxCheckAntia, *wxTransp ; class EventTableEntry{ public: @@ -132,16 +132,16 @@ enableif=lastRadio=NULL; } - bool EndEnableGroup(){ + void EndEnableGroup(){ enableif=NULL; } - bool StartEnableGroup(){ + void StartEnableGroup(){ enableif=lastRadio; } bool pressButton(wxWindowID x){ - for (int i=0; iAdd( upper, 0, wxALIGN_CENTER|wxALL, 20 ); if (mid) top->Add( mid ); - top->Add( CreateSeparatedButtonSizer(wxOK|wxCANCEL), 0, wxALIGN_CENTER |wxALL, 20 ); + top->Add( wxDialog::CreateSeparatedButtonSizer(wxOK|wxCANCEL), 0, wxALIGN_CENTER |wxALL, 20 ); SetSizerAndFit(top); eventt.Enable();