Commit 8885548e authored by Eric Petit's avatar Eric Petit
Browse files

modules/gui/beos/* : cosmetic

parent 36062de2
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* InterfaceWindow.cpp: beos interface * InterfaceWindow.cpp: beos interface
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN * Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: InterfaceWindow.cpp,v 1.37 2003/05/07 14:49:19 titer Exp $ * $Id: InterfaceWindow.cpp,v 1.38 2003/05/17 15:20:46 titer Exp $
* *
* Authors: Jean-Marc Dressler <polux@via.ecp.fr> * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org> * Samuel Hocevar <sam@zoy.org>
...@@ -204,10 +204,10 @@ InterfaceWindow::InterfaceWindow( BRect frame, const char* name, ...@@ -204,10 +204,10 @@ InterfaceWindow::InterfaceWindow( BRect frame, const char* name,
screen_rect.right - 150, screen_rect.right - 150,
screen_rect.top + 250 ); screen_rect.top + 250 );
fPlaylistWindow = new PlayListWindow( window_rect, _("Playlist"), this, p_intf ); fPlaylistWindow = new PlayListWindow( window_rect, _("Playlist"), this, p_intf );
window_rect.Set( screen_rect.right - 500, window_rect.Set( screen_rect.right - 550,
screen_rect.top + 300, screen_rect.top + 300,
screen_rect.right - 150, screen_rect.right - 150,
screen_rect.top + 600 ); screen_rect.top + 500 );
fMessagesWindow = new MessagesWindow( p_intf, window_rect, _("Messages") ); fMessagesWindow = new MessagesWindow( p_intf, window_rect, _("Messages") );
// the media control view // the media control view
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* MessagesWindow.cpp: beos interface * MessagesWindow.cpp: beos interface
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN * Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: MessagesWindow.cpp,v 1.8 2003/05/07 17:27:30 titer Exp $ * $Id: MessagesWindow.cpp,v 1.9 2003/05/17 15:20:46 titer Exp $
* *
* Authors: Eric Petit <titer@videolan.org> * Authors: Eric Petit <titer@videolan.org>
* *
...@@ -46,7 +46,7 @@ MessagesWindow::MessagesWindow( intf_thread_t * p_intf, ...@@ -46,7 +46,7 @@ MessagesWindow::MessagesWindow( intf_thread_t * p_intf,
{ {
this->p_intf = p_intf; this->p_intf = p_intf;
SetSizeLimits( 200, 2000, 200, 2000 ); SetSizeLimits( 400, 2000, 200, 2000 );
BRect rect, textRect; BRect rect, textRect;
...@@ -57,7 +57,6 @@ MessagesWindow::MessagesWindow( intf_thread_t * p_intf, ...@@ -57,7 +57,6 @@ MessagesWindow::MessagesWindow( intf_thread_t * p_intf,
fMessagesView = new BTextView( rect, "messages", textRect, fMessagesView = new BTextView( rect, "messages", textRect,
B_FOLLOW_ALL, B_WILL_DRAW ); B_FOLLOW_ALL, B_WILL_DRAW );
fMessagesView->MakeEditable( false ); fMessagesView->MakeEditable( false );
fMessagesView->MakeSelectable( false );
fMessagesView->SetStylable( true ); fMessagesView->SetStylable( true );
fScrollView = new BScrollView( "scrollview", fMessagesView, B_WILL_DRAW, fScrollView = new BScrollView( "scrollview", fMessagesView, B_WILL_DRAW,
B_FOLLOW_ALL, false, true ); B_FOLLOW_ALL, false, true );
...@@ -87,8 +86,9 @@ MessagesWindow::~MessagesWindow() ...@@ -87,8 +86,9 @@ MessagesWindow::~MessagesWindow()
/***************************************************************************** /*****************************************************************************
* MessagesWindow::FrameResized * MessagesWindow::FrameResized
*****************************************************************************/ *****************************************************************************/
void MessagesWindow::FrameResized( float, float ) void MessagesWindow::FrameResized( float width, float height )
{ {
BWindow::FrameResized( width, height );
BRect rect = fMessagesView->Bounds(); BRect rect = fMessagesView->Bounds();
rect.InsetBy( 5, 5 ); rect.InsetBy( 5, 5 );
fMessagesView->SetTextRect( rect ); fMessagesView->SetTextRect( rect );
...@@ -177,7 +177,9 @@ static int UpdateMessages( intf_thread_t * p_intf ) ...@@ -177,7 +177,9 @@ static int UpdateMessages( intf_thread_t * p_intf )
BString string; BString string;
string << p_sub->p_msg[i_start].psz_module << " " << psz_module_type << " : " << string << p_sub->p_msg[i_start].psz_module << " " << psz_module_type << " : " <<
p_sub->p_msg[i_start].psz_msg << "\n"; p_sub->p_msg[i_start].psz_msg << "\n";
messagesView->Insert( string.String() ); messagesView->Insert( messagesView->TextLength(),
string.String(),
strlen( string.String() ) );
messagesView->SetFontAndColor( oldLength, messagesView->SetFontAndColor( oldLength,
messagesView->TextLength(), messagesView->TextLength(),
NULL, 0, &color ); NULL, 0, &color );
......
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