]> git.sesse.net Git - vlc/blob - modules/gui/win32/win32_common.h
vlc.spec: Bumped up version number to 0.5.2
[vlc] / modules / gui / win32 / win32_common.h
1 /*****************************************************************************\r
2  * win32_common.h: private win32 interface description\r
3  *****************************************************************************\r
4  * Copyright (C) 2002 VideoLAN\r
5  *\r
6  * Authors: Olivier Teuliere <ipkiss@via.ecp.fr>\r
7  *\r
8  * This program is free software; you can redistribute it and/or modify\r
9  * it under the terms of the GNU General Public License as published by\r
10  * the Free Software Foundation; either version 2 of the License, or\r
11  * (at your option) any later version.\r
12  *\r
13  * This program is distributed in the hope that it will be useful,\r
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
16  * GNU General Public License for more details.\r
17  *\r
18  * You should have received a copy of the GNU General Public License\r
19  * along with this program; if not, write to the Free Software\r
20  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.\r
21  *****************************************************************************/\r
22 \r
23 #include "disc.h"\r
24 #include "mainframe.h"\r
25 #include "menu.h"\r
26 #include "messages.h"\r
27 #include "network.h"\r
28 #include "playlist.h"\r
29 #include "preferences.h"\r
30 \r
31 /*****************************************************************************\r
32  * The TrackBar is graduated from 0 to SLIDER_MAX_VALUE.\r
33  * SLIDER_MAX_VALUE is set to the higher acceptable value (2^31 - 1), in order\r
34  * to obtain the best precision in date calculation\r
35  *****************************************************************************/\r
36 #define SLIDER_MAX_VALUE 2147483647\r
37 \r
38 /*****************************************************************************\r
39  * intf_sys_t: description and status of Win32 interface\r
40  *****************************************************************************/\r
41 struct intf_sys_t\r
42 {\r
43     /* special actions */\r
44     vlc_bool_t          b_playing;\r
45     vlc_bool_t          b_popup_changed;             /* display popup menu ? */\r
46     vlc_bool_t          b_slider_free;                      /* slider status */\r
47 \r
48     /* menus handlers */\r
49     vlc_bool_t          b_aout_update;         /* do we need to update menus\r
50                                                    related with audio output */\r
51     vlc_bool_t          b_vout_update;         /* do we need to update menus\r
52                                                    related with video output */\r
53     vlc_bool_t          b_program_update;   /* do we need to update programs\r
54                                                                         menu */\r
55     vlc_bool_t          b_title_update;  /* do we need to update title menus */\r
56     vlc_bool_t          b_chapter_update;    /* do we need to update chapter\r
57                                                                        menus */\r
58     vlc_bool_t          b_audio_update;  /* do we need to update audio menus */\r
59     vlc_bool_t          b_spu_update;      /* do we need to update spu menus */\r
60 \r
61     /* windows and widgets */\r
62     TMainFrameDlg     * p_window;                             /* main window */\r
63     TPlaylistDlg      * p_playwin;                               /* playlist */\r
64     TPopupMenu        * p_popup;                               /* popup menu */\r
65     TDiscDlg          * p_disc;                     /* disc selection window */\r
66     TNetworkDlg       * p_network;                  /* network stream window */\r
67     TPreferencesDlg   * p_preferences;                 /* preferences window */\r
68     TMenusGen         * p_menus;               /* object for menu generation */\r
69 \r
70     /* The slider */\r
71     off_t               OldValue;                          /* previous value */\r
72 \r
73     /* The messages window */\r
74     TMessagesDlg      * p_messages;                       /* messages window */\r
75     msg_subscription_t* p_sub;                  /* message bank subscription */\r
76 \r
77     /* Playlist management */\r
78     int                 i_playing;                 /* playlist selected item */\r
79     vlc_bool_t          b_play_when_adding;\r
80 \r
81     /* The window labels for DVD mode */\r
82     TLabel            * p_label_title;\r
83     TLabel            * p_label_chapter;\r
84     unsigned int        i_part;                           /* current chapter */\r
85 \r
86     /* The input thread */\r
87     input_thread_t    * p_input;\r
88 };\r
89 \r