Kaydet (Commit) 3c801b34 authored tarafından Kurt Zenker's avatar Kurt Zenker

INTEGRATION: CWS gh14 (1.9.70); FILE MERGED

2007/06/15 09:22:33 gh 1.9.70.1: #108785#show profilename in statusbar
üst 417c1152
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: status.cxx,v $ * $RCSfile: status.cxx,v $
* *
* $Revision: 1.9 $ * $Revision: 1.10 $
* *
* last change: $Author: obo $ $Date: 2006-10-12 14:23:49 $ * last change: $Author: kz $ $Date: 2007-06-19 14:38:16 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -56,21 +56,28 @@ StatusLine::StatusLine( BasicFrame* p ) ...@@ -56,21 +56,28 @@ StatusLine::StatusLine( BasicFrame* p )
long nCharWidth = GetTextWidth( '0' ); // Angenommen, alle Zahlen sind gleich breit long nCharWidth = GetTextWidth( '0' ); // Angenommen, alle Zahlen sind gleich breit
pTempStatusBar->InsertItem( ST_MESSAGE, GetTextWidth( 'X' ) * 20, SIB_LEFT | SIB_IN | SIB_AUTOSIZE ); pTempStatusBar->InsertItem( ST_MESSAGE, GetTextWidth( 'X' ) * 20, SIB_LEFT | SIB_IN | SIB_AUTOSIZE );
pTempStatusBar->InsertItem( ST_LINE, 5*nCharWidth ); pTempStatusBar->InsertItem( ST_LINE, 5*nCharWidth );
pTempStatusBar->InsertItem( ST_PROF, GetTextWidth( 'X' ) * 10 );
pTempStatusBar->InsertStatusField(); pTempStatusBar->InsertStatusField();
Show(); Show();
} }
void StatusLine::Message( String& s ) void StatusLine::Message( const String& s )
{ {
GetStatusBar()->SetItemText( ST_MESSAGE, s ); GetStatusBar()->SetItemText( ST_MESSAGE, s );
} }
void StatusLine::Pos( String& s ) void StatusLine::Pos( const String& s )
{ {
GetStatusBar()->SetItemText( ST_LINE, s ); GetStatusBar()->SetItemText( ST_LINE, s );
} }
void StatusLine::SetProfileName( const String& s )
{
GetStatusBar()->SetItemText( ST_PROF, s );
}
IMPL_LINK( StatusLine, ActivateTask, TaskToolBox*, pTTB ) IMPL_LINK( StatusLine, ActivateTask, TaskToolBox*, pTTB )
{ {
USHORT nFirstWinPos=0; USHORT nFirstWinPos=0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment