#include "wx/panel.h"
#include "wx/utils.h"
#include "wx/imaglist.h"
+#include "wx/intl.h"
#include "wx/log.h"
//-----------------------------------------------------------------------------
// wxNotebook
//-----------------------------------------------------------------------------
-BEGIN_EVENT_TABLE(wxNotebook, wxControl)
- EVT_SIZE(wxNotebook::OnSize)
-END_EVENT_TABLE()
-
IMPLEMENT_DYNAMIC_CLASS(wxNotebook,wxControl)
void wxNotebook::Init()
node = node->Next();
};
- wxCHECK_MSG( node != NULL, -1, "wxNotebook: no selection?");
+ wxCHECK_MSG( node != NULL, -1, "wxNotebook: no selection?" );
return page->m_id;
};
void wxNotebook::SetPageSize( const wxSize &WXUNUSED(size) )
{
- wxFAIL_MSG("wxNotebook::SetPageSize not implemented");
+ wxFAIL_MSG(_("wxNotebook::SetPageSize not implemented"));
};
void wxNotebook::SetPadding( const wxSize &WXUNUSED(padding) )
{
- wxFAIL_MSG("wxNotebook::SetPadding not implemented");
+ wxFAIL_MSG(_("wxNotebook::SetPadding not implemented"));
};
bool wxNotebook::DeleteAllPages()
};
wxCHECK_MSG(page != NULL, FALSE,
- "Can't add a page whose parent is not the notebook!");
+ _("Can't add a page whose parent is not the notebook!"));
// then set the attributes
page->m_text = text;
void wxNotebook::AddChild( wxWindow *win )
{
- // @@@ normally done in wxWindow::AddChild but for some reason wxNotebook
- // case is special there (Robert?)
- // Robert: Don't you think the code below looks different from the one
- // in wxWindow::AddChild :-)
-
m_children.Append(win);
wxNotebookPage *page = new wxNotebookPage();
page->m_id = GetPageCount();
- page->m_label = (GtkLabel *)gtk_label_new("Handle");
+ page->m_label = (GtkLabel *)gtk_label_new(_("Handle"));
page->m_client = win;
gtk_notebook_append_page( GTK_NOTEBOOK(m_widget), win->m_widget,
(GtkWidget *)page->m_label);
if (!page->m_page)
{
- wxLogFatalError( "Notebook page creation error" );
+ wxLogFatalError( _("Notebook page creation error") );
return;
}
};
// override these 2 functions to do nothing: everything is done in OnSize
-void wxNotebook::SetConstraintSizes(bool /* recurse */)
+void wxNotebook::SetConstraintSizes( bool WXUNUSED(recurse) )
{
// don't set the sizes of the pages - their correct size is not yet known
wxControl::SetConstraintSizes(FALSE);
}
-bool wxNotebook::DoPhase(int /* nPhase */)
+bool wxNotebook::DoPhase( int WXUNUSED(nPhase) )
{
return TRUE;
}