1 /*****************************************************************************
2 * dialog.cpp: Classes for some dialog boxes
3 *****************************************************************************
4 * Copyright (C) 2003 VideoLAN
5 * $Id: dialog.cpp,v 1.3 2003/04/12 21:43:27 asmax Exp $
7 * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
8 * Emmanuel Puig <karibu@via.ecp.fr>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111,
24 *****************************************************************************/
27 //--- VLC -------------------------------------------------------------------
30 //--- SKIN ------------------------------------------------------------------
35 //---------------------------------------------------------------------------
36 // Open file dialog box
37 //---------------------------------------------------------------------------
38 OpenFileDialog::OpenFileDialog( intf_thread_t *_p_intf, string title,
42 MultiSelect = multiselect;
44 Filter = new char[200];
47 //---------------------------------------------------------------------------
48 OpenFileDialog::~OpenFileDialog()
52 //---------------------------------------------------------------------------
57 //---------------------------------------------------------------------------
59 //---------------------------------------------------------------------------
60 LogWindow::LogWindow( intf_thread_t *_p_intf )
65 //---------------------------------------------------------------------------
66 LogWindow::~LogWindow()
69 //---------------------------------------------------------------------------
70 void LogWindow::Update( msg_subscription_t *Sub )
78 vlc_mutex_lock( Sub->p_lock );
79 i_stop = *Sub->pi_stop;
80 vlc_mutex_unlock( Sub->p_lock );
82 if( Sub->i_start != i_stop )
84 for( i_start = Sub->i_start;
86 i_start = (i_start+1) % VLC_MSG_QSIZE )
92 // Append all messages to log window
93 switch( Sub->p_msg[i_start].i_type )
96 ChangeColor( RGB( 255, 0, 0 ), true );
99 ChangeColor( RGB( 255, 128, 0 ), true );
102 ChangeColor( RGB( 128, 128, 128 ) );
105 fprintf(stderr, "WARNING: FIXME in dialog.cpp");
106 // Append all messages to log window
107 switch( Sub->p_msg[i_start].i_type )
110 // ChangeColor( RGB( 255, 0, 0 ), true );
113 // ChangeColor( RGB( 255, 128, 0 ), true );
116 // ChangeColor( RGB( 128, 128, 128 ) );
124 AddLine( (string)Sub->p_msg[i_start].psz_msg );
128 vlc_mutex_lock( Sub->p_lock );
129 Sub->i_start = i_start;
130 vlc_mutex_unlock( Sub->p_lock );
133 //---------------------------------------------------------------------------