]> git.sesse.net Git - vlc/blobdiff - modules/gui/pda/pda.h
Interface for Familiar v0.7 and GPE. This interface is based on gtk2 libaries.
[vlc] / modules / gui / pda / pda.h
diff --git a/modules/gui/pda/pda.h b/modules/gui/pda/pda.h
new file mode 100644 (file)
index 0000000..99ac868
--- /dev/null
@@ -0,0 +1,69 @@
+/*****************************************************************************
+ * pda.h: private Gtk+ interface description
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ * $Id: pda.h,v 1.1 2003/07/23 22:02:56 jpsaman Exp $
+ *
+ * Authors: Jean-Paul Saman <jpsaman@wxs.nl>
+ *
+ * This program 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.
+ *
+ * This program 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 this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
+ *****************************************************************************/
+
+#define MAX_ATEXIT                 10
+
+/*****************************************************************************
+ * intf_sys_t: description and status of Gtk+ interface
+ *****************************************************************************/
+struct intf_sys_t
+{
+    /* The gtk_main module */
+    module_t *          p_gtk_main;
+
+    /* windows and widgets */
+    GtkWidget   *       p_window;                             /* main window */
+    GtkEntry    *       p_mrlentry;
+    GtkNotebook *       p_notebook;
+    GtkNotebook *       p_mediabook;
+    GtkHScale   *       p_slider;
+    GtkCList    *       p_clist;
+    GtkCList    *       p_clistplaylist;
+
+    /* slider */
+    GtkLabel *          p_slider_label;
+    GtkAdjustment *     p_adj;                   /* slider adjustment object */
+    off_t               i_adj_oldvalue;  /* previous value -no FPU hardware  */
+    float               f_adj_oldvalue;  /* previous value -with FPU hardware*/
+
+    /* special actions */
+    vlc_bool_t          b_playing;
+    vlc_bool_t          b_window_changed;        /* window display toggled ? */
+    vlc_bool_t          b_slider_free;                      /* slider status */
+
+    /* Preference settings */
+    vlc_bool_t          b_autoplayfile;
+
+    /* The input thread */
+    input_thread_t *    p_input;
+};
+
+/*****************************************************************************
+ * Useful macro
+ ****************************************************************************/
+#define GTK_GET( type, nom ) GTK_##type( gtk_object_get_data( \
+        GTK_OBJECT( p_intf->p_sys->p_window ), nom ) )
+
+            
+#define  GtkGetIntf( widget ) E_(__GtkGetIntf)( GTK_WIDGET( widget ) )
+void * E_(__GtkGetIntf)( GtkWidget * );