Commit 5ad1cce8 authored by Antoine Cellerier's avatar Antoine Cellerier

remove VLC update checker stuff from 0.8.4

parent 67e19f8a
...@@ -51,7 +51,6 @@ Interfaces: ...@@ -51,7 +51,6 @@ Interfaces:
* wxWidgets * wxWidgets
- Rename wxWindows interface in wxWidgets. - Rename wxWindows interface in wxWidgets.
- All the --wxwin-* options are now --wx-* - All the --wxwin-* options are now --wx-*
- VLC update checker
- Support for RTP streaming in Stream Ouput dialog - Support for RTP streaming in Stream Ouput dialog
- Now require wx2.6 with Unicode support - Now require wx2.6 with Unicode support
* Skins2 * Skins2
......
...@@ -18,7 +18,6 @@ SOURCES_wxwidgets = \ ...@@ -18,7 +18,6 @@ SOURCES_wxwidgets = \
preferences_widgets.h \ preferences_widgets.h \
timer.cpp \ timer.cpp \
fileinfo.cpp \ fileinfo.cpp \
updatevlc.cpp \
subtitles.cpp \ subtitles.cpp \
bookmarks.cpp \ bookmarks.cpp \
video.cpp \ video.cpp \
......
...@@ -51,7 +51,6 @@ private: ...@@ -51,7 +51,6 @@ private:
void Open( int i_access_method, int i_arg ); void Open( int i_access_method, int i_arg );
/* Event handlers (these functions should _not_ be virtual) */ /* Event handlers (these functions should _not_ be virtual) */
void OnUpdateVLC( wxCommandEvent& event );
void OnExit( wxCommandEvent& event ); void OnExit( wxCommandEvent& event );
void OnPlaylist( wxCommandEvent& event ); void OnPlaylist( wxCommandEvent& event );
void OnMessages( wxCommandEvent& event ); void OnMessages( wxCommandEvent& event );
...@@ -91,7 +90,6 @@ public: ...@@ -91,7 +90,6 @@ public:
wxFrame *p_prefs_dialog; wxFrame *p_prefs_dialog;
wxFrame *p_bookmarks_dialog; wxFrame *p_bookmarks_dialog;
wxFileDialog *p_file_generic_dialog; wxFileDialog *p_file_generic_dialog;
UpdateVLC *p_updatevlc_dialog;
}; };
DEFINE_LOCAL_EVENT_TYPE( wxEVT_DIALOG ); DEFINE_LOCAL_EVENT_TYPE( wxEVT_DIALOG );
...@@ -129,8 +127,6 @@ BEGIN_EVENT_TABLE(DialogsProvider, wxFrame) ...@@ -129,8 +127,6 @@ BEGIN_EVENT_TABLE(DialogsProvider, wxFrame)
DialogsProvider::OnPopupMenu) DialogsProvider::OnPopupMenu)
EVT_COMMAND(INTF_DIALOG_EXIT, wxEVT_DIALOG, EVT_COMMAND(INTF_DIALOG_EXIT, wxEVT_DIALOG,
DialogsProvider::OnExitThread) DialogsProvider::OnExitThread)
EVT_COMMAND(INTF_DIALOG_UPDATEVLC, wxEVT_DIALOG,
DialogsProvider::OnUpdateVLC)
END_EVENT_TABLE() END_EVENT_TABLE()
wxWindow *CreateDialogsProvider( intf_thread_t *p_intf, wxWindow *p_parent ) wxWindow *CreateDialogsProvider( intf_thread_t *p_intf, wxWindow *p_parent )
...@@ -156,7 +152,6 @@ DialogsProvider::DialogsProvider( intf_thread_t *_p_intf, wxWindow *p_parent ) ...@@ -156,7 +152,6 @@ DialogsProvider::DialogsProvider( intf_thread_t *_p_intf, wxWindow *p_parent )
p_wizard_dialog = NULL; p_wizard_dialog = NULL;
p_bookmarks_dialog = NULL; p_bookmarks_dialog = NULL;
p_dir_dialog = NULL; p_dir_dialog = NULL;
p_updatevlc_dialog = NULL;
/* Give our interface a nice little icon */ /* Give our interface a nice little icon */
p_intf->p_sys->p_icon = new wxIcon( vlc_xpm ); p_intf->p_sys->p_icon = new wxIcon( vlc_xpm );
...@@ -227,7 +222,6 @@ DialogsProvider::~DialogsProvider() ...@@ -227,7 +222,6 @@ DialogsProvider::~DialogsProvider()
if( p_file_generic_dialog ) delete p_file_generic_dialog; if( p_file_generic_dialog ) delete p_file_generic_dialog;
if( p_wizard_dialog ) delete p_wizard_dialog; if( p_wizard_dialog ) delete p_wizard_dialog;
if( p_bookmarks_dialog ) delete p_bookmarks_dialog; if( p_bookmarks_dialog ) delete p_bookmarks_dialog;
if( p_updatevlc_dialog ) delete p_updatevlc_dialog;
if( p_intf->p_sys->p_icon ) delete p_intf->p_sys->p_icon; if( p_intf->p_sys->p_icon ) delete p_intf->p_sys->p_icon;
...@@ -490,15 +484,3 @@ void DialogsProvider::OnExitThread( wxCommandEvent& WXUNUSED(event) ) ...@@ -490,15 +484,3 @@ void DialogsProvider::OnExitThread( wxCommandEvent& WXUNUSED(event) )
{ {
wxTheApp->ExitMainLoop(); wxTheApp->ExitMainLoop();
} }
void DialogsProvider::OnUpdateVLC( wxCommandEvent& WXUNUSED(event) )
{
/* Show/hide the file info window */
if( !p_updatevlc_dialog )
p_updatevlc_dialog = new UpdateVLC( p_intf, this );
if( p_updatevlc_dialog )
{
p_updatevlc_dialog->Show( !p_updatevlc_dialog->IsShown() );
}
}
...@@ -157,7 +157,6 @@ enum ...@@ -157,7 +157,6 @@ enum
* this standard value as otherwise it won't be handled properly under Mac * this standard value as otherwise it won't be handled properly under Mac
* (where it is special and put into the "Apple" menu) */ * (where it is special and put into the "Apple" menu) */
About_Event = wxID_ABOUT, About_Event = wxID_ABOUT,
UpdateVLC_Event,
Iconize_Event Iconize_Event
}; };
...@@ -166,7 +165,6 @@ BEGIN_EVENT_TABLE(Interface, wxFrame) ...@@ -166,7 +165,6 @@ BEGIN_EVENT_TABLE(Interface, wxFrame)
/* Menu events */ /* Menu events */
EVT_MENU(Exit_Event, Interface::OnExit) EVT_MENU(Exit_Event, Interface::OnExit)
EVT_MENU(About_Event, Interface::OnAbout) EVT_MENU(About_Event, Interface::OnAbout)
EVT_MENU(UpdateVLC_Event, Interface::OnShowDialog)
EVT_MENU(Playlist_Event, Interface::OnShowDialog) EVT_MENU(Playlist_Event, Interface::OnShowDialog)
EVT_MENU(Logs_Event, Interface::OnShowDialog) EVT_MENU(Logs_Event, Interface::OnShowDialog)
...@@ -458,8 +456,6 @@ void Interface::CreateOurMenuBar() ...@@ -458,8 +456,6 @@ void Interface::CreateOurMenuBar()
/* Create the "Help" menu */ /* Create the "Help" menu */
wxMenu *help_menu = new wxMenu; wxMenu *help_menu = new wxMenu;
help_menu->Append( About_Event, wxU(_("About VLC media player")) ); help_menu->Append( About_Event, wxU(_("About VLC media player")) );
help_menu->AppendSeparator();
help_menu->Append( UpdateVLC_Event, wxU(_("Check for updates ...")) );
/* Append the freshly created menus to the menu bar... */ /* Append the freshly created menus to the menu bar... */
wxMenuBar *menubar = new wxMenuBar(); wxMenuBar *menubar = new wxMenuBar();
...@@ -979,9 +975,6 @@ void Interface::OnShowDialog( wxCommandEvent& event ) ...@@ -979,9 +975,6 @@ void Interface::OnShowDialog( wxCommandEvent& event )
case Bookmarks_Event: case Bookmarks_Event:
i_id = INTF_DIALOG_BOOKMARKS; i_id = INTF_DIALOG_BOOKMARKS;
break; break;
case UpdateVLC_Event:
i_id = INTF_DIALOG_UPDATEVLC;
break;
default: default:
i_id = INTF_DIALOG_FILE; i_id = INTF_DIALOG_FILE;
break; break;
......
This diff is collapsed.
...@@ -1060,67 +1060,6 @@ private: ...@@ -1060,67 +1060,6 @@ private:
}; };
/* Update VLC */
class UpdateVLC: public wxFrame
{
public:
/* Constructor */
UpdateVLC( intf_thread_t *p_intf, wxWindow *p_parent );
virtual ~UpdateVLC();
private:
void OnButtonClose( wxCommandEvent& event );
void OnClose( wxCloseEvent& WXUNUSED(event) );
void GetData();
void OnCheckForUpdate( wxCommandEvent& event );
void OnMirrorChoice( wxCommandEvent& event );
void UpdateUpdatesTree();
void UpdateMirrorsChoice();
void OnUpdatesTreeActivate( wxTreeEvent& event );
void DownloadFile( wxString url, wxString dst );
DECLARE_EVENT_TABLE();
intf_thread_t *p_intf;
wxTreeCtrl *updates_tree;
wxTreeItemId updates_root;
wxChoice *mirrors_choice;
wxString release_type; /* could be "stable", "test", "nightly" ... */
struct update_file_t
{
wxString type;
wxString md5;
wxString size;
wxString url;
wxString description;
};
struct update_version_t
{
wxString type;
wxString major;
wxString minor;
wxString revision;
wxString extra;
std::list<update_file_t> m_files;
};
std::list<update_version_t> m_versions;
struct update_mirror_t
{
wxString name;
wxString location;
wxString type;
wxString base_url;
};
std::list<update_mirror_t> m_mirrors;
};
#if wxUSE_DRAG_AND_DROP #if wxUSE_DRAG_AND_DROP
/* Drag and Drop class */ /* Drag and Drop class */
class DragAndDrop: public wxFileDropTarget class DragAndDrop: public wxFileDropTarget
......
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