summaryrefslogtreecommitdiffstats
path: root/gui/mplayer
diff options
context:
space:
mode:
authorAnton Khirnov <wyskas@gmail.com>2009-07-07 19:35:54 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2009-07-07 21:49:42 +0300
commit87366694d82c8d4c7f0bc210e6baa0ccd651d0c2 (patch)
tree57c6a283eed4934c6041658effab17435ef2ff1c /gui/mplayer
parenta2037a2effbd4622d0e8336245a9b14c3f886bde (diff)
downloadmpv-87366694d82c8d4c7f0bc210e6baa0ccd651d0c2.tar.bz2
mpv-87366694d82c8d4c7f0bc210e6baa0ccd651d0c2.tar.xz
Remove the internal GUI
The GUI is badly designed and too closely coupled to the internal details of other code. The GUI code is in bad shape and unmaintained for years. There is no indication that anyone would maintain it in the future either. Even if someone did volunteer to implement a better integrated GUI having the current code in the tree probably wouldn't help much. So get rid of it.
Diffstat (limited to 'gui/mplayer')
-rw-r--r--gui/mplayer/gmplayer.h51
-rw-r--r--gui/mplayer/gtk/about.c346
-rw-r--r--gui/mplayer/gtk/about.h29
-rw-r--r--gui/mplayer/gtk/eq.c690
-rw-r--r--gui/mplayer/gtk/eq.h29
-rw-r--r--gui/mplayer/gtk/fs.c656
-rw-r--r--gui/mplayer/gtk/fs.h39
-rw-r--r--gui/mplayer/gtk/gtk_common.c197
-rw-r--r--gui/mplayer/gtk/gtk_common.h41
-rw-r--r--gui/mplayer/gtk/gtk_url.c170
-rw-r--r--gui/mplayer/gtk/gtk_url.h30
-rw-r--r--gui/mplayer/gtk/mb.c114
-rw-r--r--gui/mplayer/gtk/mb.h29
-rw-r--r--gui/mplayer/gtk/menu.c645
-rw-r--r--gui/mplayer/gtk/menu.h31
-rw-r--r--gui/mplayer/gtk/opts.c1832
-rw-r--r--gui/mplayer/gtk/opts.h33
-rw-r--r--gui/mplayer/gtk/pl.c545
-rw-r--r--gui/mplayer/gtk/pl.h29
-rw-r--r--gui/mplayer/gtk/sb.c211
-rw-r--r--gui/mplayer/gtk/sb.h30
-rw-r--r--gui/mplayer/gui_common.c308
-rw-r--r--gui/mplayer/gui_common.h37
-rw-r--r--gui/mplayer/menu.c175
-rw-r--r--gui/mplayer/mw.c636
-rw-r--r--gui/mplayer/pb.c265
-rw-r--r--gui/mplayer/pixmaps/MPlayer_mini.xpm638
-rw-r--r--gui/mplayer/pixmaps/a11.xpm22
-rw-r--r--gui/mplayer/pixmaps/a169.xpm22
-rw-r--r--gui/mplayer/pixmaps/a235.xpm22
-rw-r--r--gui/mplayer/pixmaps/a43.xpm22
-rw-r--r--gui/mplayer/pixmaps/ab.xpm34
-rw-r--r--gui/mplayer/pixmaps/about.xpm427
-rw-r--r--gui/mplayer/pixmaps/aspect.xpm22
-rw-r--r--gui/mplayer/pixmaps/cancel.xpm139
-rw-r--r--gui/mplayer/pixmaps/chapter.xpm23
-rw-r--r--gui/mplayer/pixmaps/delsub.xpm22
-rw-r--r--gui/mplayer/pixmaps/dir.xpm148
-rw-r--r--gui/mplayer/pixmaps/dolby.xpm23
-rw-r--r--gui/mplayer/pixmaps/double.xpm151
-rw-r--r--gui/mplayer/pixmaps/dvd.xpm129
-rw-r--r--gui/mplayer/pixmaps/empty.xpm20
-rw-r--r--gui/mplayer/pixmaps/empty1px.xpm5
-rw-r--r--gui/mplayer/pixmaps/eq.xpm35
-rw-r--r--gui/mplayer/pixmaps/error.xpm544
-rw-r--r--gui/mplayer/pixmaps/exit.xpm82
-rw-r--r--gui/mplayer/pixmaps/file.xpm26
-rw-r--r--gui/mplayer/pixmaps/file2.xpm27
-rw-r--r--gui/mplayer/pixmaps/fs.xpm109
-rw-r--r--gui/mplayer/pixmaps/half.xpm144
-rw-r--r--gui/mplayer/pixmaps/icon.xpm323
-rw-r--r--gui/mplayer/pixmaps/loadeaf.xpm151
-rw-r--r--gui/mplayer/pixmaps/logo.xpm1227
-rw-r--r--gui/mplayer/pixmaps/mplayer-desktop.xpm149
-rw-r--r--gui/mplayer/pixmaps/next.xpm79
-rw-r--r--gui/mplayer/pixmaps/normal.xpm130
-rw-r--r--gui/mplayer/pixmaps/ok.xpm24
-rw-r--r--gui/mplayer/pixmaps/open.xpm83
-rw-r--r--gui/mplayer/pixmaps/pause.xpm48
-rw-r--r--gui/mplayer/pixmaps/pl.xpm26
-rw-r--r--gui/mplayer/pixmaps/play.xpm56
-rw-r--r--gui/mplayer/pixmaps/playdvd.xpm137
-rw-r--r--gui/mplayer/pixmaps/playvcd.xpm201
-rw-r--r--gui/mplayer/pixmaps/prefs.xpm69
-rw-r--r--gui/mplayer/pixmaps/prev.xpm77
-rw-r--r--gui/mplayer/pixmaps/question.xpm335
-rw-r--r--gui/mplayer/pixmaps/skin.xpm181
-rw-r--r--gui/mplayer/pixmaps/sound.xpm140
-rw-r--r--gui/mplayer/pixmaps/stop.xpm254
-rw-r--r--gui/mplayer/pixmaps/stop2.xpm48
-rw-r--r--gui/mplayer/pixmaps/sub.xpm21
-rw-r--r--gui/mplayer/pixmaps/title.xpm23
-rw-r--r--gui/mplayer/pixmaps/tongue.xpm169
-rw-r--r--gui/mplayer/pixmaps/tonguebla.xpm156
-rw-r--r--gui/mplayer/pixmaps/up.xpm112
-rw-r--r--gui/mplayer/pixmaps/url.xpm21
-rw-r--r--gui/mplayer/pixmaps/vcd.xpm179
-rw-r--r--gui/mplayer/pixmaps/warning.xpm314
-rw-r--r--gui/mplayer/play.c387
-rw-r--r--gui/mplayer/play.h51
-rw-r--r--gui/mplayer/sw.c110
-rw-r--r--gui/mplayer/widgets.c255
-rw-r--r--gui/mplayer/widgets.h80
83 files changed, 0 insertions, 15650 deletions
diff --git a/gui/mplayer/gmplayer.h b/gui/mplayer/gmplayer.h
deleted file mode 100644
index 636e6ab570..0000000000
--- a/gui/mplayer/gmplayer.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * This file is part of MPlayer.
- *
- * MPlayer is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * MPlayer is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with MPlayer; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-#ifndef MPLAYER_GUI_GMPLAYER_H
-#define MPLAYER_GUI_GMPLAYER_H
-
-extern int mplSubRender;
-extern int mplMainRender;
-
-extern unsigned char * mplDrawBuffer;
-extern unsigned char * mplMenuDrawBuffer;
-extern int mainVisible;
-
-extern int mplMainAutoPlay;
-extern int mplMiddleMenu;
-
-void mplInit( void * disp );
-
-void mplMainDraw( void );
-void mplEventHandling( int msg, float param );
-void mplMainMouseHandle( int Button, int X, int Y, int RX, int RY );
-void mplMainKeyHandle( int KeyCode, int Type, int Key );
-void mplDandDHandler(int num, char** files);
-
-void mplSubDraw( void );
-void mplSubMouseHandle( int Button, int X, int Y, int RX, int RY );
-
-void mplMenuInit( void );
-void mplHideMenu( int mx, int my, int w );
-void mplShowMenu( int mx, int my );
-void mplMenuMouseHandle( int X, int Y, int RX, int RY );
-
-void mplPBInit( void );
-void mplPBShow( int x, int y );
-
-#endif /* MPLAYER_GUI_GMPLAYER_H */
diff --git a/gui/mplayer/gtk/about.c b/gui/mplayer/gtk/about.c
deleted file mode 100644
index ea3adf0717..0000000000
--- a/gui/mplayer/gtk/about.c
+++ /dev/null
@@ -1,346 +0,0 @@
-/*
- * This file is part of MPlayer.
- *
- * MPlayer is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * MPlayer is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with MPlayer; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-#include "config.h"
-#include "gui/app.h"
-#include "help_mp.h"
-
-#include "gui/mplayer/pixmaps/about.xpm"
-#include "gui/mplayer/widgets.h"
-#include "about.h"
-#include "gtk_common.h"
-
-GtkWidget * About = NULL;
-
-void ShowAboutBox( void )
-{
- if ( About ) gtkActive( About );
- else About=create_About();
- gtk_widget_show( About );
-}
-
-void abWidgetDestroy( GtkWidget * widget,GtkWidget ** widget_pointer )
-{ WidgetDestroy( NULL,&About ); }
-
-GtkWidget * create_About( void )
-{
- GtkWidget * vbox;
- GtkWidget * pixmap1;
- GtkWidget * scrolledwindow1;
- GtkWidget * AboutText;
- GtkWidget * Ok;
-
-#ifdef CONFIG_GTK2
- GtkTextBuffer * AboutTextBuffer;
- GtkTextIter iter;
-#endif /* CONFIG_GTK2 */
-
- GtkStyle * pixmapstyle;
- GdkPixmap * pixmapwid;
- GdkBitmap * mask;
-
- GtkAccelGroup * accel_group;
-
- accel_group=gtk_accel_group_new();
-
- About=gtk_window_new( GTK_WINDOW_TOPLEVEL );
- gtk_widget_set_name( About,MSGTR_About );
- gtk_object_set_data( GTK_OBJECT( About ),MSGTR_About,About );
- gtk_widget_set_usize( About,340,415 );
- gtk_window_set_title( GTK_WINDOW( About ),MSGTR_About );
- gtk_window_set_position( GTK_WINDOW( About ),GTK_WIN_POS_CENTER );
- gtk_window_set_policy( GTK_WINDOW( About ),TRUE,FALSE,FALSE );
- gtk_window_set_wmclass( GTK_WINDOW( About ),"About","MPlayer" );
-
- gtk_widget_realize( About );
- gtkAddIcon( About );
-
- vbox=AddVBox( AddDialogFrame( About ),0 );
-
- pixmapstyle=gtk_widget_get_style( About );
- pixmapwid=gdk_pixmap_colormap_create_from_xpm_d( About->window,gdk_colormap_get_system(),&mask,&pixmapstyle->bg[GTK_STATE_NORMAL],about_xpm );
- pixmap1=gtk_pixmap_new( pixmapwid,mask );
-
- gtk_widget_set_name( pixmap1,"pixmap1" );
- gtk_widget_show( pixmap1 );
- gtk_box_pack_start( GTK_BOX( vbox ),pixmap1,FALSE,FALSE,0 );
- gtk_widget_set_usize( pixmap1,-2,174 );
-
- AddHSeparator( vbox );
-
- scrolledwindow1=gtk_scrolled_window_new( NULL,NULL );
- gtk_widget_set_name( scrolledwindow1,"scrolledwindow1" );
- gtk_widget_show( scrolledwindow1 );
- gtk_box_pack_start( GTK_BOX( vbox ),scrolledwindow1,TRUE,TRUE,0 );
- gtk_scrolled_window_set_policy( GTK_SCROLLED_WINDOW( scrolledwindow1 ),GTK_POLICY_AUTOMATIC,GTK_POLICY_AUTOMATIC );
-
-#ifdef CONFIG_GTK2
- AboutText = gtk_text_view_new();
- gtk_text_view_set_editable(GTK_TEXT_VIEW(AboutText), FALSE);
- gtk_text_view_set_cursor_visible(GTK_TEXT_VIEW(AboutText), FALSE);
- AboutTextBuffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (AboutText));
- gtk_text_buffer_get_iter_at_offset (AboutTextBuffer, &iter, 0);
-#else
- AboutText=gtk_text_new( NULL,NULL );
- gtk_text_set_editable(GTK_TEXT(AboutText), FALSE);
-#endif
- gtk_widget_set_name( AboutText,"AboutText" );
- gtk_widget_show( AboutText );
- gtk_container_add( GTK_CONTAINER( scrolledwindow1 ),AboutText );
-#ifdef CONFIG_GTK2
- gtk_text_buffer_insert (AboutTextBuffer, &iter,
-#else
- gtk_text_insert( GTK_TEXT( AboutText ),NULL,NULL,NULL,
-#endif
- "\n"
- MSGTR_ABOUT_UHU
- " (http://www.uhulinux.hu/)\n"
- "\n"
- MSGTR_ABOUT_Contributors
- "\n"
- " * Ackermann, Andreas\n"
- " * adland\n"
- " * Anholt, Eric\n"
- " * Ashberg, Folke\n"
- " * Balatoni, Dénes\n"
- " * Barat, Zsolt\n"
- " * Barbato, Luca\n"
- " * Baryshkov, Dmitry\n"
- " * Baudet, Bertrand\n"
- " * Bedel, Alban\n"
- " * Behrisch, Michael\n"
- " * Belev, Luchezar\n"
- " * Bérczi, Gábor\n"
- " * Berecz, Szabolcs\n"
- " * Beregszászi, Alex\n"
- " * Bitterberg, Tilmann\n"
- " * Biurrun, Diego\n"
- " * Blomenkamp, Marcsu\n"
- " * Buehler, Andrew\n"
- " * Bulgroz, Eviv\n"
- " * Bünemann, Felix\n"
- " * Bunkus, Moritz\n"
- " * Christiansen, Dan Villiom Podlaski\n"
- " * Clagg, Jeff\n"
- " * Compn\n"
- " * Comstedt, Marcus\n"
- " * Cook, Kees\n"
- " * Davies, Stephen\n"
- " * Di Vita, Piero\n"
- " * Diedrich, Tobias\n"
- " * Dietrich, Florian\n"
- " * Dobbelaere, Jeroen\n"
- " * Döffinger, Reimar\n"
- " * Dolbeau, Romain\n"
- " * Dönmez, Ismail\n"
- " * Edele, Robert\n"
- " * Egger, Christoph\n"
- " * Elsinghorst, Paul Wilhelm\n"
- " * Ernesti, Bernd\n"
- " * Falco, Salvatore\n"
- " * Feigl, Johannes\n"
- " * Felker, D Richard III\n"
- " * Ferguson, Tim\n"
- " * Finlayson, Ross\n"
- " * Forghieri, Daniele\n"
- " * Foth, Kilian A.\n"
- " * Franz, Fabian\n"
- " * Gansser, Martin\n"
- " * Gereöffy, Árpád\n"
- " * Giani, Matteo\n"
- " * Goethel, Sven\n"
- " * Gomez Garcia, German\n"
- " * Gottwald, Alexander\n"
- " * Graffam, Michael\n"
- " * Gritsenko, Andriy N.\n"
- " * Guyomarch, Rémi\n"
- " * Hammelmann, Jürgen\n"
- " * Hertel, Christopher R.\n"
- " * Hess, Andreas\n"
- " * Hickey, Corey\n"
- " * Hidvégi, Zoltán\n"
- " * Hoffmann, Jens\n"
- " * Holm, David\n"
- " * Horst, Bohdan\n"
- " * Hug, Hampa\n"
- " * Hurka, Tomas\n"
- " * Isani, Sidik\n"
- " * Issaris, Panagiotis\n"
- " * Jacobs, Aurelien\n"
- " * Jelveh, Reza\n"
- " * Jermann, Jonas\n"
- " * Johansson, Anders\n"
- " * Kain, Nicholas\n"
- " * Kalinski, Filip\n"
- " * Kalvachev, Ivan\n"
- " * Kaniewski, Wojtek\n"
- " * Kaplan, Kim Minh\n"
- " * Kärkkäinen, Samuli\n"
- " * Keil, Jürgen\n"
- " * Kesterson, Robert\n"
- " * Kinali, Attila\n"
- " * Kovriga, Gregory\n"
- " * Kühling, David\n"
- " * Kuivinen, Fredrik\n"
- " * Kurshev, Nick\n"
- " * Kuschak, Brian\n"
- " * Kushnir, Vladimir\n"
- " * Lambley, Dave\n"
- " * László, Gyula\n"
- " * Le Gaillart, Nicolas\n"
- " * Lénárt, Gábor\n"
- " * Leroy, Colin\n"
- " * Liljeblad, Oskar\n"
- " * Lin, Sam\n"
- " * Lombard, Pierre\n"
- " * Madick, Puk\n"
- " * Makovicka, Jindrich\n"
- " * Marek, Rudolf\n"
- " * Megyer, László\n"
- " * Melanson, Mike\n"
- " * von Merkatz, Arwed\n"
- " * Merritt, Loren\n"
- " * Mierzejewski, Dominik\n"
- " * Milushev, Mihail\n"
- " * Mistry, Nehal\n"
- " * Mohari, András\n"
- " * Mueller, Steven\n"
- " * Neundorf, Alexander\n"
- " * Niedermayer, Michael\n"
- " * Noring, Fredrik\n"
- " * Ohm, Christian\n"
- " * Parrish, Joey\n"
- " * Pietrzak, Dariusz\n"
- " * Plourde, Nicolas\n"
- " * Poettering, Lennart\n"
- " * Poirier, Guillaume\n"
- " * Ponekker, Zoltán\n"
- " * van Poorten, Ivo\n"
- " * Ran, Lu\n"
- " * Reder, Uwe\n"
- " * rgselk\n"
- " * Rune Petersen\n"
- " * Saari, Ville\n"
- " * Sabbi, Nico\n"
- " * Sandell, Björn\n"
- " * Sauerbeck, Tilman\n"
- " * Scherthan, Frank\n"
- " * Schneider, Florian\n"
- " * Schoenbrunner, Oliver\n"
- " * Shimon, Oded\n"
- " * Simon, Peter\n"
- " * Snel, Rik\n"
- " * Sommer, Sascha\n"
- " * Strasser, Alexander\n"
- " * Strzelecki, Kamil\n"
- " * Svoboda, Jiri\n"
- " * Swain, Robert\n"
- " * Syrjälä, Ville\n"
- " * Szecsi, Gabor\n"
- " * Tackaberry, Jason\n"
- " * Tam, Howell\n"
- " * Tlalka, Adam\n"
- " * Tiesi, Gianluigi\n"
- " * Togni, Roberto\n"
- " * Tropea, Salvador Eduardo\n"
- " * Vajna, Miklós\n"
- " * Verdejo Pinochet, Reynaldo H.\n"
- " * Wigren, Per\n"
- " * Witt, Derek J\n"
- " * Young, Alan\n"
- " * Zaprzala, Artur\n"
- " * Zealey, Mark\n"
- " * Ziv-Av, Matan\n"
- " * Zoltán, Márk Vicián\n"
- "\n"
- MSGTR_ABOUT_Codecs_libs_contributions
- "\n"
- " * Bellard, Fabrice\n"
- " * Chappelier, Vivien and Vincent, Damien\n"
- " * Hipp, Michael\n"
- " * Holtzman, Aaron\n"
- " * Janovetz, Jake\n"
- " * Kabelac, Zdenek\n"
- " * Kuznetsov, Eugene\n"
- " * Lespinasse, Michel\n"
- " * Podlipec, Mark\n"
- "\n"
- MSGTR_ABOUT_Translations
- "\n"
- " * Biernat, Marcin\n"
- " * Fargas, Marc\n"
- " * Heryan, Jiri\n"
- " * Jarycki, Marek\n"
- " * Kaplita, Leszek\n"
- " * Krämer, Sebastian\n"
- " * López, Juan Martin\n"
- " * Michniewski, Piotr\n"
- " * Misiorny, Jakub\n"
- " * Mizda, Gábor\n"
- " * Paszta, Maciej\n"
- " * Proszek, Łukasz\n"
- " * Schiller, Wacław\n"
- " * Zubimendi, Andoni\n"
- "\n"
- MSGTR_ABOUT_Skins
- "\n"
- " * Azrael\n"
- " * Bekesi, Viktor\n"
- " * Burt.S.\n"
- " * Carpenter, Andrew\n"
- " * Foucault, Charles\n"
- " * Gyimesi, Attila\n"
- " * Hertroys, Alban\n"
- " * Juan Pablo\n"
- " * Kiss, Balint\n"
- " * Kuehne, Andre\n"
- " * Kuhlmann, Rüdiger\n"
- " * Naumov, Dan\n"
- " * Northam, Ryan\n"
- " * Oyarzun Arroyo\n"
- " * Park, DongCheon\n"
- " * Pehrson, Jurgen\n"
- " * Pizurica, Nikola\n"
- " * Ptak, Oliwier\n"
- " * Riccio, Pasquale\n"
- " * Schultz, Jesper\n"
- " * Szumiela, Marcin\n"
- " * Tisi, Massimo\n"
- " * Tyr, Jiri jun.\n"
- " * Vasilev, Ognian\n"
- " * Veres, Imre\n"
- " * Vesko, Radic\n"
- " * Vigvary, Balasz\n"
- " * Weber, Andrew\n"
- " * Whitmore, Gary Jr.\n"
- " * Wilamowski, Franciszek\n"
- " * Zeising, Michael\n"
- "\n",-1 );
-
- AddHSeparator( vbox );
- Ok=AddButton( MSGTR_Ok,AddHButtonBox( vbox ) );
-
- gtk_signal_connect( GTK_OBJECT( About ),"destroy",GTK_SIGNAL_FUNC( WidgetDestroy ),&About );
- gtk_signal_connect_object( GTK_OBJECT( Ok ),"clicked",GTK_SIGNAL_FUNC( abWidgetDestroy ),NULL );
-
- gtk_widget_add_accelerator( Ok,"clicked",accel_group,GDK_Escape,0,GTK_ACCEL_VISIBLE );
- gtk_widget_add_accelerator( Ok,"clicked",accel_group,GDK_Return,0,GTK_ACCEL_VISIBLE );
- gtk_window_add_accel_group( GTK_WINDOW( About ),accel_group );
-
- return About;
-}
diff