projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rebake from clean wx tree.
[wxWidgets.git]
/
samples
/
splash
/
splash.cpp
diff --git
a/samples/splash/splash.cpp
b/samples/splash/splash.cpp
index 3b9af61fd46bb74cbe03544d697637117bbcd884..de0654b1dc8a74738a98f83319e40de75ec16a83 100644
(file)
--- a/
samples/splash/splash.cpp
+++ b/
samples/splash/splash.cpp
@@
-129,7
+129,7
@@
bool MyApp::OnInit()
wxImage::AddHandler(new wxPNGHandler);
// create the main application window
wxImage::AddHandler(new wxPNGHandler);
// create the main application window
- MyFrame *frame = new MyFrame(
_
T("wxSplashScreen sample application"));
+ MyFrame *frame = new MyFrame(
wx
T("wxSplashScreen sample application"));
wxBitmap bitmap;
wxBitmap bitmap;
@@
-138,7
+138,7
@@
bool MyApp::OnInit()
bool ok = frame->m_isPda
? bitmap.Ok()
bool ok = frame->m_isPda
? bitmap.Ok()
- : bitmap.LoadFile(
_
T("splash.png"), wxBITMAP_TYPE_PNG);
+ : bitmap.LoadFile(
wx
T("splash.png"), wxBITMAP_TYPE_PNG);
if (ok)
{
if (ok)
{
@@
-182,14
+182,14
@@
MyFrame::MyFrame(const wxString& title)
// the "About" item should be in the help menu
wxMenu *helpMenu = new wxMenu;
// the "About" item should be in the help menu
wxMenu *helpMenu = new wxMenu;
- helpMenu->Append(wxID_ABOUT,
_T("&About...\tF1"), _
T("Show about frame"));
+ helpMenu->Append(wxID_ABOUT,
wxT("&About...\tF1"), wx
T("Show about frame"));
- menuFile->Append(wxID_EXIT,
_T("E&xit\tAlt-X"), _
T("Quit this program"));
+ menuFile->Append(wxID_EXIT,
wxT("E&xit\tAlt-X"), wx
T("Quit this program"));
// now append the freshly created menu to the menu bar...
wxMenuBar *menuBar = new wxMenuBar();
// now append the freshly created menu to the menu bar...
wxMenuBar *menuBar = new wxMenuBar();
- menuBar->Append(menuFile,
_
T("&File"));
- menuBar->Append(helpMenu,
_
T("&Help"));
+ menuBar->Append(menuFile,
wx
T("&File"));
+ menuBar->Append(helpMenu,
wx
T("&Help"));
// ... and attach this menu bar to the frame
SetMenuBar(menuBar);
// ... and attach this menu bar to the frame
SetMenuBar(menuBar);
@@
-198,7
+198,7
@@
MyFrame::MyFrame(const wxString& title)
#if wxUSE_STATUSBAR
// create a status bar just for fun (by default with 1 pane only)
CreateStatusBar(2);
#if wxUSE_STATUSBAR
// create a status bar just for fun (by default with 1 pane only)
CreateStatusBar(2);
- SetStatusText(
_
T("Welcome to wxWidgets!"));
+ SetStatusText(
wx
T("Welcome to wxWidgets!"));
#endif // wxUSE_STATUSBAR
}
#endif // wxUSE_STATUSBAR
}
@@
-219,7
+219,7
@@
void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
bool ok = m_isPda
? bitmap.Ok()
bool ok = m_isPda
? bitmap.Ok()
- : bitmap.LoadFile(
_
T("splash.png"), wxBITMAP_TYPE_PNG);
+ : bitmap.LoadFile(
wx
T("splash.png"), wxBITMAP_TYPE_PNG);
if (ok)
{
if (ok)
{
@@
-237,12
+237,12
@@
void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
wxWindow *win = splash->GetSplashWindow();
#if wxUSE_MEDIACTRL
wxWindow *win = splash->GetSplashWindow();
#if wxUSE_MEDIACTRL
- wxMediaCtrl *media = new wxMediaCtrl( win, wxID_EXIT,
_
T("press.mpg"), wxPoint(2,2));
+ wxMediaCtrl *media = new wxMediaCtrl( win, wxID_EXIT,
wx
T("press.mpg"), wxPoint(2,2));
media->Play();
#else
wxStaticText *text = new wxStaticText( win,
wxID_EXIT,
media->Play();
#else
wxStaticText *text = new wxStaticText( win,
wxID_EXIT,
-
_
T("click somewhere\non this image"),
+
wx
T("click somewhere\non this image"),
wxPoint(m_isPda ? 0 : 13,
m_isPda ? 0 : 11)
);
wxPoint(m_isPda ? 0 : 13,
m_isPda ? 0 : 11)
);