// ----------------------------------------------------------------------------
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma implementation "nettest.cpp"
- #pragma interface "nettest.cpp"
+ #pragma implementation
+ #pragma interface
#endif
// For compilers that support precompilation, includes "wx/wx.h".
// ----------------------------------------------------------------------------
#if defined(__GNUG__) && !defined(__APPLE__)
- #pragma implementation "drawing.cpp"
- #pragma interface "drawing.cpp"
+ #pragma implementation
+ #pragma interface
#endif
// For compilers that support precompilation, includes "wx/wx.h".
dc.GetPixel(1,1, &tmpColour);
dc.FloodFill(1,1, tmpColour, wxFLOOD_SURFACE);
#endif
-
+
dc.DrawCheckMark(5, 80, 15, 15);
dc.DrawCheckMark(25, 80, 30, 30);
dc.DrawCheckMark(60, 80, 60, 60);
/////////////////////////////////////////////////////////////////////////////
#if defined(__GNUG__) && !defined(__APPLE__)
-#pragma implementation "dynamic.cpp"
-#pragma interface "dynamic.cpp"
+#pragma implementation
+#pragma interface
#endif
// For compilers that support precompilation, includes "wx/wx.h".
MyFrame *frame = new MyFrame(NULL, _T("Dynamic wxWidgets App"), 50, 50, 450, 340);
// You used to have to do some casting for param 4, but now there are type-safe handlers
- frame->Connect( DYNAMIC_QUIT, wxID_ANY,
+ frame->Connect( DYNAMIC_QUIT, wxID_ANY,
wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MyFrame::OnQuit) );
- frame->Connect( DYNAMIC_ABOUT, wxID_ANY,
+ frame->Connect( DYNAMIC_ABOUT, wxID_ANY,
wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MyFrame::OnAbout) );
// Give it an icon
// ----------------------------------------------------------------------------
#if defined(__GNUG__) && !defined(__APPLE__)
- #pragma implementation "erase.cpp"
- #pragma interface "erase.cpp"
+ #pragma implementation
+ #pragma interface
#endif
// For compilers that support precompilation, includes "wx/wx.h".
m_bitmap = wxBitmap( wxICON(mondrian) );
new wxStaticBitmap( this, wxID_ANY, m_bitmap, wxPoint(80,20) );
-
+
SetFocusIgnoringChildren();
}
dc.SetPen(*wxGREEN_PEN);
PrepareDC( dc );
-
+
// clear any junk currently displayed
dc.Clear();
// ----------------------------------------------------------------------------
#if defined(__GNUG__) && !defined(__APPLE__)
- #pragma implementation "exec.cpp"
- #pragma interface "exec.cpp"
+ #pragma implementation
+ #pragma interface
#endif
// For compilers that support precompilation, includes "wx/wx.h".
bool MyPipedProcess2::HasInput()
{
- if ( !!m_input )
+ if ( !m_input.empty() )
{
wxTextOutputStream os(*GetOutputStream());
os.WriteString(m_input);
/////////////////////////////////////////////////////////////////////////////
#if defined(__GNUG__) && !defined(__APPLE__)
- #pragma implementation "help.cpp"
- #pragma interface "help.cpp"
+ #pragma implementation
+ #pragma interface
#endif
// For compilers that support precompilation, includes "wx/wx.h".
void OnClose(wxCloseEvent& event);
private:
wxHtmlHelpController help;
-
+
// any class wishing to process wxWidgets events must use this macro
DECLARE_EVENT_TABLE()
};
bool MyApp::OnInit()
{
wxInitAllImageHandlers();
-#if wxUSE_STREAMS && wxUSE_ZIPSTREAM && wxUSE_ZLIB
+#if wxUSE_STREAMS && wxUSE_ZIPSTREAM && wxUSE_ZLIB
wxFileSystem::AddHandler(new wxZipFSHandler);
#endif
SetVendorName(wxT("wxWidgets"));
- SetAppName(wxT("wxHTMLHelp"));
+ SetAppName(wxT("wxHTMLHelp"));
// Create the main application window
MyFrame *frame = new MyFrame(_("HTML Help Sample"),
// frame constructor
MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
- : wxFrame((wxFrame *)NULL, wxID_ANY, title, pos, size),
+ : wxFrame((wxFrame *)NULL, wxID_ANY, title, pos, size),
help(wxHF_DEFAULT_STYLE | wxHF_OPEN_FILES)
{
// create a menu bar
if ( help.GetFrame() ) // returns NULL if no help frame active
help.GetFrame()->Close(true);
// now we can safely delete the config pointer
- event.Skip();
+ event.Skip();
delete wxConfig::Set(NULL);
}
/////////////////////////////////////////////////////////////////////////////
#if defined(__GNUG__) && !defined(__APPLE__)
- #pragma implementation "test.cpp"
- #pragma interface "test.cpp"
+ #pragma implementation
+ #pragma interface
#endif
// For compilers that support precompilation, includes "wx/wx.h".
SetMenuBar(menuBar);
SetIcon(wxIcon(sample_xpm));
-
+
#if wxUSE_ACCEL
// Create convenient accelerators for Back and Forward navigation
wxAcceleratorEntry entries[2];
/////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__
- #pragma implementation "styles.cpp"
+ #pragma implementation "styles.h"
#endif
// For compilers that support precompilation
#define __styles_H__
#if defined(__GNUG__) && !defined(__APPLE__)
- #pragma interface "styles.cpp"
+ #pragma interface "styles.h"
#endif
// Include wxWidgets' headers
/////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__
- #pragma implementation "wxedit.cpp"
+ #pragma implementation "wxedit.h"
#endif
// For compilers that support precompilation
#define __wxedit_H__
#if defined(__GNUG__) && !defined(__APPLE__)
- #pragma interface "wxedit.cpp"
+ #pragma interface "wxedit.h"
#endif
// Include wxWidgets' headers
// headers
// ----------------------------------------------------------------------------
#if defined(__GNUG__) && !defined(__APPLE__)
- #pragma implementation "propsize.cpp"
- #pragma interface "propsize.cpp"
+ #pragma implementation
+ #pragma interface
#endif
// For compilers that support precompilation, includes "wx/wx.h".
// ----------------------------------------------------------------------------
#if defined(__GNUG__) && !defined(__APPLE__)
- #pragma implementation "shaped.cpp"
- #pragma interface "shaped.cpp"
+ #pragma implementation
+ #pragma interface
#endif
// For compilers that support precompilation, includes "wx/wx.h".
// --------------------------------------------------------------------------
#if defined(__GNUG__) && !defined(__APPLE__)
-# pragma implementation "client.cpp"
-# pragma interface "client.cpp"
+ #pragma implementation
+ #pragma interface
#endif
// For compilers that support precompilation, includes "wx/wx.h".
// --------------------------------------------------------------------------
#if defined(__GNUG__) && !defined(__APPLE__)
-# pragma implementation "server.cpp"
-# pragma interface "server.cpp"
+ #pragma implementation
+ #pragma interface
#endif
// For compilers that support precompilation, includes "wx/wx.h".