* modules/gui/wxwindows/*: fixed the open dialog to switch to the requested file/disc/net section.
* gtk2_font.cpp: GTK2 implementation of the Font class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
- * $Id: gtk2_font.cpp,v 1.14 2003/04/28 12:00:13 asmax Exp $
+ * $Id: gtk2_font.cpp,v 1.15 2003/05/24 17:52:48 gbazin Exp $
*
* Authors: Cyril Deguet <asmax@videolan.org>
* Emmanuel Puig <karibu@via.ecp.fr>
{
Context = gdk_pango_context_get();
Layout = pango_layout_new( Context );
+ p_intf = _p_intf;
// Text properties setting
FontDesc = pango_font_description_new();
int real_w, real_h;
// Create buffer image
- Graphics* cov = (Graphics *)new OSGraphics( w, h );
+ Graphics* cov = (Graphics *)new OSGraphics( p_intf, w, h );
cov->CopyFrom( 0, 0, w, h, dest, x, y, SRC_COPY );
// Get handles
* gtk2_font.h: GTK2 implementation of the Font class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
- * $Id: gtk2_font.h,v 1.6 2003/04/21 22:12:37 asmax Exp $
+ * $Id: gtk2_font.h,v 1.7 2003/05/24 17:52:48 gbazin Exp $
*
* Authors: Cyril Deguet <asmax@videolan.org>
*
PangoLayout *Layout;
PangoFontDescription *FontDesc;
+ // pointer to thread info
+ intf_thread_t *p_intf;
+
// Assign font to Device Context
virtual void AssignFont( Graphics *dest );
* vlcproc.cpp: VlcProc class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
- * $Id: vlcproc.cpp,v 1.24 2003/05/21 13:27:25 gbazin Exp $
+ * $Id: vlcproc.cpp,v 1.25 2003/05/24 17:52:48 gbazin Exp $
*
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
#ifndef BASIC_SKINS
if( p_intf->p_sys->p_new_theme_file == NULL )
{
- wxFileDialog dialog( NULL, _("Open a skin file"), "", "",
- "Skin files (*.vlt)|*.vlt|Skin files (*.xml)|*.xml|All files|*.*",
- wxOPEN );
+ wxFileDialog dialog( NULL,
+ wxU(_("Open a skin file")), wxT(""), wxT(""),
+ wxT("Skin files (*.vlt)|*.vlt|Skin files (*.xml)|*.xml|"
+ "All files|*.*"), wxOPEN );
if( dialog.ShowModal() == wxID_OK )
{
* interface.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
- * $Id: interface.cpp,v 1.32 2003/05/22 12:00:56 gbazin Exp $
+ * $Id: interface.cpp,v 1.33 2003/05/24 17:52:49 gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
if( p_open_dialog == NULL )
p_open_dialog = new OpenDialog( p_intf, this, i_access_method );
- if( p_open_dialog && p_open_dialog->ShowModal() == wxID_OK )
+ if( p_open_dialog &&
+ p_open_dialog->ShowModal( i_access_method ) == wxID_OK )
{
/* Update the playlist */
playlist_t *p_playlist =
* open.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
- * $Id: open.cpp,v 1.25 2003/05/20 23:17:59 gbazin Exp $
+ * $Id: open.cpp,v 1.26 2003/05/24 17:52:49 gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
wxU(_("Cancel")) );
/* Create notebook */
- wxNotebook *notebook = new wxNotebook( panel, Notebook_Event );
+ notebook = new wxNotebook( panel, Notebook_Event );
wxNotebookSizer *notebook_sizer = new wxNotebookSizer( notebook );
notebook->AddPage( FilePanel( notebook ), wxU(_("File")),
if( demuxdump_dialog ) delete demuxdump_dialog;
}
+int OpenDialog::ShowModal( int i_access_method )
+{
+ notebook->SetSelection( i_access_method );
+ return wxDialog::ShowModal();
+}
+
+int OpenDialog::ShowModal()
+{
+ return wxDialog::ShowModal();
+}
+
/*****************************************************************************
* Private methods.
*****************************************************************************/
* wxwindows.h: private wxWindows interface description
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
- * $Id: wxwindows.h,v 1.30 2003/05/20 23:17:59 gbazin Exp $
+ * $Id: wxwindows.h,v 1.31 2003/05/24 17:52:49 gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
int i_access_method );
virtual ~OpenDialog();
+ int ShowModal();
+ int ShowModal( int i_access_method );
+
wxArrayString mrl;
private:
int i_current_access_method;
wxComboBox *mrl_combo;
+ wxNotebook *notebook;
/* Controls for the file panel */
wxComboBox *file_combo;