New icons for well-formedness/validation check

This commit is contained in:
Gerald Schmidt 2007-12-17 21:35:50 +00:00
parent 94cd8526f2
commit 225f3ea777
1 changed files with 24 additions and 4 deletions

View File

@ -5313,11 +5313,11 @@ wxToolBar *MyFrame::getToolBar()
wxTB_HORIZONTAL | wxTB_HORIZONTAL |
wxTB_DOCKABLE ); wxTB_DOCKABLE );
int w, h; int w, h;
#ifdef __WXMSW__ //#ifdef __WXMSW__
w = saveBitmap.GetWidth(), h = saveBitmap.GetHeight(); w = saveBitmap.GetWidth(), h = saveBitmap.GetHeight();
#else //#else
w = h = 24; // w = h = 24;
#endif //#endif
toolBar->SetToolBitmapSize ( wxSize ( w, h ) ); toolBar->SetToolBitmapSize ( wxSize ( w, h ) );
toolBar->AddTool ( toolBar->AddTool (
@ -5344,6 +5344,20 @@ wxToolBar *MyFrame::getToolBar()
wxNullBitmap, wxNullBitmap,
wxITEM_NORMAL, wxITEM_NORMAL,
_ ( "Print" ) ); _ ( "Print" ) );
toolBar->AddTool (
ID_CHECK_WELLFORMED,
_ ( "Check Well-formedness" ),
checkWellformedBitmap,
wxNullBitmap,
wxITEM_NORMAL,
_ ( "Check Well-formedness" ) );
toolBar->AddTool (
ID_VALIDATE_W3C_SCHEMA,
_ ( "Validate" ),
checkValidBitmap,
wxNullBitmap,
wxITEM_NORMAL,
_ ( "Validate" ) );
toolBar->AddTool ( toolBar->AddTool (
ID_BROWSER, ID_BROWSER,
_ ( "Browser" ), _ ( "Browser" ),
@ -5402,11 +5416,13 @@ void MyFrame::messagePane ( const wxString& s, int iconType, bool forcePane )
switch ( iconType ) switch ( iconType )
{ {
case ( CONST_INFO ) : case ( CONST_INFO ) :
/*
if ( !forcePane && s.Length() < 50 ) // magic no. necessary? if ( !forcePane && s.Length() < 50 ) // magic no. necessary?
{ {
statusProgress ( s ); statusProgress ( s );
return; return;
} }
*/
paneTitle = _ ( "Information" ); paneTitle = _ ( "Information" );
break; break;
case ( CONST_WARNING ) : case ( CONST_WARNING ) :
@ -5863,6 +5879,8 @@ void MyFrame::loadBitmaps()
internetBitmap = wxBITMAP ( stock_internet ); internetBitmap = wxBITMAP ( stock_internet );
hyperlinkBitmap = wxBITMAP ( stock_hyperlink ); hyperlinkBitmap = wxBITMAP ( stock_hyperlink );
filtersBitmap = wxBITMAP ( stock_filters ); filtersBitmap = wxBITMAP ( stock_filters );
checkWellformedBitmap = wxNullBitmap;
checkValidBitmap = wxNullBitmap;
// menu icons // menu icons
new16Bitmap = wxBITMAP ( stock_new_16 ); new16Bitmap = wxBITMAP ( stock_new_16 );
@ -5889,6 +5907,8 @@ void MyFrame::loadBitmaps()
// no stock icons for the following // no stock icons for the following
internetBitmap.LoadFile ( pngDir + _T ( "stock_internet.png" ), wxBITMAP_TYPE_PNG ); internetBitmap.LoadFile ( pngDir + _T ( "stock_internet.png" ), wxBITMAP_TYPE_PNG );
hyperlinkBitmap.LoadFile ( pngDir + _T ( "stock_hyperlink.png" ), wxBITMAP_TYPE_PNG ); hyperlinkBitmap.LoadFile ( pngDir + _T ( "stock_hyperlink.png" ), wxBITMAP_TYPE_PNG );
checkWellformedBitmap.LoadFile ( pngDir + _T ( "stock_calc-accept.png" ), wxBITMAP_TYPE_PNG );
checkValidBitmap.LoadFile ( pngDir + _T ( "stock_calc-accept-green.png" ), wxBITMAP_TYPE_PNG );
// menu icons // menu icons
new16Bitmap = wxNullBitmap; new16Bitmap = wxNullBitmap;