mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-11 06:02:37 -05:00
Minor updates for compilation against 2.8.0. Cosmetic changes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11758 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5003669541
commit
f938d8cc34
5 changed files with 50 additions and 30 deletions
|
|
@ -24,20 +24,17 @@
|
||||||
#define RBUTIL_FULLNAME "The Rockbox Utility"
|
#define RBUTIL_FULLNAME "The Rockbox Utility"
|
||||||
#define RBUTIL_VERSION "Version 0.2.1.0"
|
#define RBUTIL_VERSION "Version 0.2.1.0"
|
||||||
|
|
||||||
static char* rbutil_developers[] = {
|
static const char* rbutil_developers[] = {
|
||||||
"Christi Alice Scarborough",
|
"Christi Alice Scarborough",
|
||||||
"Dave Chapman"
|
"Dave Chapman",
|
||||||
|
""
|
||||||
};
|
};
|
||||||
|
|
||||||
//static char* rbutil_translators[] = (
|
|
||||||
// ""
|
|
||||||
//);
|
|
||||||
|
|
||||||
#define RBUTIL_WEBSITE "http://www.rockbox.org/"
|
#define RBUTIL_WEBSITE "http://www.rockbox.org/"
|
||||||
#define RBUTIL_COPYRIGHT "(C) 2005-6 The Rockbox Team - " \
|
#define RBUTIL_COPYRIGHT "(C) 2005-6 The Rockbox Team\n" \
|
||||||
"released under the GNU Public License v2"
|
"released under the GNU Public License v2"
|
||||||
#define RBUTIL_DESCRIPTION "Utility for performing housekeepng tasks for" \
|
#define RBUTIL_DESCRIPTION "Installer and housekeeping utility for " \
|
||||||
"the Rockbox open\nsource digital audio player firmware."
|
"the Rockbox open source digital audio player firmware."
|
||||||
|
|
||||||
|
|
||||||
class AboutDlg: public wxDialog
|
class AboutDlg: public wxDialog
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,6 @@
|
||||||
#include <wx/wizard.h>
|
#include <wx/wizard.h>
|
||||||
#include <wx/event.h>
|
#include <wx/event.h>
|
||||||
|
|
||||||
|
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
#define PATH_SEP "\\"
|
#define PATH_SEP "\\"
|
||||||
#define PATH_SEP_CHR '\\'
|
#define PATH_SEP_CHR '\\'
|
||||||
|
|
|
||||||
|
|
@ -36,9 +36,9 @@ bool rbutilFrmApp::OnInit()
|
||||||
// DANGER! GetDataDir() doesn't portably return the application directory
|
// DANGER! GetDataDir() doesn't portably return the application directory
|
||||||
// We want to use the form below instead, but not until wxWidgets 2.8 is
|
// We want to use the form below instead, but not until wxWidgets 2.8 is
|
||||||
// released.
|
// released.
|
||||||
// gv->AppDir = gv->stdpaths->GetExecutablePath()->BeforeLast(&pathsep);
|
gv->AppDir = gv->stdpaths->GetExecutablePath().BeforeLast(PATH_SEP_CHR);
|
||||||
buf = gv->stdpaths->GetDataDir(); buf.Append(PATH_SEP);
|
// buf = gv->stdpaths->GetDataDir(); buf.Append(PATH_SEP);
|
||||||
gv->AppDir = buf.BeforeLast(PATH_SEP_CHR).c_str();
|
// gv->AppDir = buf.BeforeLast(PATH_SEP_CHR).c_str();
|
||||||
|
|
||||||
buf = gv->stdpaths->GetUserDataDir();
|
buf = gv->stdpaths->GetUserDataDir();
|
||||||
if (! wxDirExists(buf) )
|
if (! wxDirExists(buf) )
|
||||||
|
|
|
||||||
|
|
@ -215,24 +215,22 @@ void rbutilFrm::OnFileAbout(wxCommandEvent& event)
|
||||||
/*
|
/*
|
||||||
wxAboutDialogInfo *info = new wxAboutDialogInfo();
|
wxAboutDialogInfo *info = new wxAboutDialogInfo();
|
||||||
|
|
||||||
info->SetName(_(RBUTIL_LONGNAME));
|
info->SetName(_(RBUTIL_FULLNAME));
|
||||||
info->SetVersion(_(RBUTIL_VERSION));
|
info->SetVersion(_(RBUTIL_VERSION));
|
||||||
info->SetCopyright(_(RBUTIL_COPYRIGHT));
|
info->SetCopyright(_(RBUTIL_COPYRIGHT));
|
||||||
info->SetDescription(_(RBUTIL_DESCRIPTION));
|
info->SetDescription(_(RBUTIL_DESCRIPTION));
|
||||||
info->SetWebsite(_(RBUTIL_WEBSITE));
|
info->SetWebSite(_(RBUTIL_WEBSITE));
|
||||||
ind
|
|
||||||
wxArrayString *array = new wxArrayString(sizeof(rbutil_developers[]).
|
|
||||||
rbutil_developers);
|
|
||||||
info->SetDevelopers(array);
|
|
||||||
delete array;
|
|
||||||
|
|
||||||
// array = new wxArrayString(sizeof(rbutil_translators[]),
|
long i = 0;
|
||||||
// rbutil_translators);
|
while (rbutil_developers[i] != "")
|
||||||
// info->SetTranslators(array);
|
{
|
||||||
// delete array;
|
info->AddDeveloper(wxT(rbutil_developers[i++]));
|
||||||
|
}
|
||||||
|
|
||||||
wxAboutBox(info);
|
wxAboutBox(*info);
|
||||||
|
delete info;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
AboutDlg(this).ShowModal();
|
AboutDlg(this).ShowModal();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -565,20 +563,44 @@ AboutDlg::AboutDlg(rbutilFrm* parent)
|
||||||
this->SetSizer(WxBoxSizer1);
|
this->SetSizer(WxBoxSizer1);
|
||||||
this->SetAutoLayout(TRUE);
|
this->SetAutoLayout(TRUE);
|
||||||
|
|
||||||
wxBitmap WxBitmap1 = wxBitmap(rblogo_xpm);
|
wxBoxSizer* WxBoxSizer2 = new wxBoxSizer(wxHORIZONTAL);
|
||||||
|
|
||||||
|
wxBitmap WxBitmap1 = wxBitmap(rbutilFrm_XPM);
|
||||||
wxStaticBitmap* WxStaticBitmap1 = new wxStaticBitmap(this, wxID_ANY,
|
wxStaticBitmap* WxStaticBitmap1 = new wxStaticBitmap(this, wxID_ANY,
|
||||||
WxBitmap1);
|
WxBitmap1);
|
||||||
WxBoxSizer1->Add(WxStaticBitmap1, 0, wxALL, 5);
|
WxBoxSizer2->Add(WxStaticBitmap1, 0, wxALL | wxCENTER, 5);
|
||||||
|
|
||||||
wxStaticText* WxStaticText1 = new wxStaticText(this, wxID_ANY,
|
wxStaticText* WxStaticText1 = new wxStaticText(this, wxID_ANY,
|
||||||
_(RBUTIL_FULLNAME "\n" RBUTIL_VERSION "\n" RBUTIL_DESCRIPTION "\n\n"
|
_(RBUTIL_FULLNAME), wxDefaultPosition, wxDefaultSize,
|
||||||
RBUTIL_COPYRIGHT));
|
wxALIGN_CENTER | wxST_NO_AUTORESIZE );
|
||||||
WxBoxSizer1->Add(WxStaticText1, 0, wxALL, 5);
|
WxBoxSizer2->Add(WxStaticText1, 0, wxALL | wxCENTER, 5);
|
||||||
|
WxBoxSizer1->Add(WxBoxSizer2, 0, wxALL, 5);
|
||||||
|
|
||||||
|
wxStaticText* WxStaticText2 = new wxStaticText(this, wxID_ANY,
|
||||||
|
_(RBUTIL_VERSION "\n" RBUTIL_DESCRIPTION "\n\n" RBUTIL_COPYRIGHT));
|
||||||
|
WxStaticText2->Wrap(400);
|
||||||
|
WxBoxSizer1->Add(WxStaticText2, 0, wxALL, 5);
|
||||||
|
|
||||||
wxHyperlinkCtrl* WxHyperlink1 = new wxHyperlinkCtrl(this, wxID_ANY,
|
wxHyperlinkCtrl* WxHyperlink1 = new wxHyperlinkCtrl(this, wxID_ANY,
|
||||||
wxT(RBUTIL_WEBSITE), wxT(RBUTIL_WEBSITE) );
|
wxT(RBUTIL_WEBSITE), wxT(RBUTIL_WEBSITE) );
|
||||||
WxBoxSizer1->Add(WxHyperlink1, 0, wxALL, 5);
|
WxBoxSizer1->Add(WxHyperlink1, 0, wxALL, 5);
|
||||||
|
|
||||||
|
wxStaticBox* WxStaticBox1 = new wxStaticBox(this, wxID_ANY, _("Contributors:"));
|
||||||
|
wxStaticBoxSizer* WxStaticBoxSizer2 = new wxStaticBoxSizer(WxStaticBox1,
|
||||||
|
wxVERTICAL);
|
||||||
|
wxTextCtrl* WxTextCtrl1 = new wxTextCtrl(this, wxID_ANY, wxEmptyString,
|
||||||
|
wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE | wxTE_READONLY);
|
||||||
|
|
||||||
|
long i = 0;
|
||||||
|
while ( rbutil_developers[i] != "")
|
||||||
|
{
|
||||||
|
WxTextCtrl1->AppendText(rbutil_developers[i++]);
|
||||||
|
WxTextCtrl1->AppendText("\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
WxBoxSizer1->Add(WxStaticBoxSizer2, 1, wxGROW | wxALL, 5);
|
||||||
|
WxStaticBoxSizer2->Add(WxTextCtrl1, 1, wxGROW | wxALL, 0);
|
||||||
|
|
||||||
wxStdDialogButtonSizer* WxStdDialogButtonSizer1 = new wxStdDialogButtonSizer();
|
wxStdDialogButtonSizer* WxStdDialogButtonSizer1 = new wxStdDialogButtonSizer();
|
||||||
wxButton* WxOKButton = new wxButton(this, wxID_OK);
|
wxButton* WxOKButton = new wxButton(this, wxID_OK);
|
||||||
WxStdDialogButtonSizer1->AddButton(WxOKButton);
|
WxStdDialogButtonSizer1->AddButton(WxOKButton);
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,8 @@
|
||||||
|
|
||||||
#include <wx/frame.h>
|
#include <wx/frame.h>
|
||||||
#include <wx/valgen.h>
|
#include <wx/valgen.h>
|
||||||
|
//#include <wx/aboutdlg.h>
|
||||||
|
#include <wx/richtext/richtextctrl.h>
|
||||||
|
|
||||||
#include "rbutil.h"
|
#include "rbutil.h"
|
||||||
#include "wizard_pages.h"
|
#include "wizard_pages.h"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue