annotate gui/win32/dialogs.h @ 34994:b6ac08b94fc3

Go without pointless variable hWnd/hwnd. It will be saved later in the gui_t structure anyway, so save it early and use the struct member instead.
author ib
date Wed, 15 Aug 2012 12:33:45 +0000
parents 93a763f04563
children b1a21a9bc5d4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
1 /*
23079
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
2 * MPlayer GUI for Win32
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
3 * Copyright (C) 2003 Sascha Sommer <saschasommer@freenet.de>
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
4 * Copyright (C) 2006 Erik Augustson <erik_27can@yahoo.com>
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
5 * Copyright (C) 2006 Gianluigi Tiesi <sherpya@netfarm.it>
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
6 *
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
7 * This file is part of MPlayer.
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
8 *
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
9 * MPlayer is free software; you can redistribute it and/or modify
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
10 * it under the terms of the GNU General Public License as published by
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
11 * the Free Software Foundation; either version 2 of the License, or
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
12 * (at your option) any later version.
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
13 *
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
14 * MPlayer is distributed in the hope that it will be useful,
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
17 * GNU General Public License for more details.
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
18 *
26457
9ba6d4487292 Use standard GPL header.
diego
parents: 26029
diff changeset
19 * You should have received a copy of the GNU General Public License along
9ba6d4487292 Use standard GPL header.
diego
parents: 26029
diff changeset
20 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
9ba6d4487292 Use standard GPL header.
diego
parents: 26029
diff changeset
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23079
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
22 */
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
23
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25535
diff changeset
24 #ifndef MPLAYER_GUI_DIALOGS_H
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25535
diff changeset
25 #define MPLAYER_GUI_DIALOGS_H
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
26
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
27 #define TBS_TOOLTIPS 0x0100
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
28 #define WM_SYSTRAY (WM_USER+1)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
29 #define UDM_SETRANGE32 (WM_USER+111)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
30 #define UDM_GETRANGE32 (WM_USER+112)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
31 #define UDM_SETPOS32 (WM_USER+113)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
32 #define UDM_GETPOS32 (WM_USER+114)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
33
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
34 #define SOLID_GREY (HBRUSH) CreateSolidBrush(RGB(232, 232, 232))
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
35 #define SOLID_GREY2 (HBRUSH) CreateSolidBrush(RGB(175, 175, 175))
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
36
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
37 #define MAXFILE 1024
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
38
33965
8a480da297e5 Add an about box to the Win32 GUI.
ib
parents: 33299
diff changeset
39 #define COPYRIGHT "MPlayer GUI for Windows\n\n" \
8a480da297e5 Add an about box to the Win32 GUI.
ib
parents: 33299
diff changeset
40 "Copyright (c) 2003 Sascha Sommer\n" \
8a480da297e5 Add an about box to the Win32 GUI.
ib
parents: 33299
diff changeset
41 "Copyright (c) 2006 Erik Augustson\n" \
8a480da297e5 Add an about box to the Win32 GUI.
ib
parents: 33299
diff changeset
42 "Copyright (c) 2006 Gianluigi Tiesi"
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
43
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
44 #define ONLINE_HELP_URL "http://www.mplayerhq.hu/DOCS/HTML/en/index.html"
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
45
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
46 #define ID_OK 12
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
47 #define ID_APPLY 13
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
48 #define ID_CANCEL 14
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
49 #define ID_CLOSE 15
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
50 #define ID_DEFAULTS 16
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
51 #define ID_VO_DRIVER 17
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
52 #define ID_AO_DRIVER 18
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
53 #define ID_DOUBLE 19
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
54 #define ID_DIRECT 20
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
55 #define ID_FRAMEDROP 21
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
56 #define ID_NORMALIZE 22
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
57 #define ID_SOFTMIX 23
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
58 #define ID_EXTRASTEREO 24
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
59 #define ID_TRACKBAR1 25
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
60 #define ID_TRACKBAR2 26
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
61 #define ID_UPDOWN1 27
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
62 #define ID_UPDOWN2 28
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
63 #define ID_EDIT1 29
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
64 #define ID_EDIT2 30
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
65 #define ID_CACHE 31
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
66 #define ID_AUTOSYNC 32
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
67 #define ID_NONE 33
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
68 #define ID_OSD1 34
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
69 #define ID_OSD2 35
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
70 #define ID_OSD3 36
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
71 #define ID_PRIO 39
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
72 #define ID_URL 40
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
73 #define ID_TITLESEL 41
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
74 #define ID_UP 42
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
75 #define ID_DOWN 43
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
76 #define ID_REMOVE 44
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
77 #define ID_ADDFILE 45
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
78 #define ID_TRACKLIST 46
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
79 #define ID_SUBTITLE 47
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
80 #define ID_PLAYLISTLOAD 48
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
81 #define ID_PLAYLISTSAVE 49
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
82 #define ID_ADDURL 50
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
83 #define ID_DIR 51
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
84 #define ID_PLAY 52
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
85 #define ID_STOP 53
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
86 #define ID_SEEKF 54
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
87 #define ID_SEEKB 55
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
88 #define ID_NTRACK 56
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
89 #define ID_PTRACK 57
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
90 #define ID_PLAYLIST 58
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
91 #define ID_CLEAR 59
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
92 #define ID_SHOWHIDE 60
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
93 #define ID_SKINBROWSER 61
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
94 #define ID_KEYHELP 62
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
95 #define ID_ONLINEHELP 63
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
96 #define ID_CHAPTERSEL 64
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
97 #define ID_PREFS 65
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
98 #define TRAYMENU 66
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
99 #define IDFILE_OPEN 67
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
100 #define IDEXIT 68
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
101 #define IDURL_OPEN 69
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
102 #define IDDIR_OPEN 70
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
103 #define IDFILE_NEW 71
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
104 #define IDFILE_SAVE 72
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
105 #define IDHELP_ABOUT 73
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
106 #define IDSUBTITLE_OPEN 74
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
107 #define ID_CONSOLE 76
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
108 #define ID_EQ0 77
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
109 #define ID_EQ1 78
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
110 #define ID_EQ2 79
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
111 #define ID_EQ3 80
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
112 #define IDSUB_TOGGLE 81
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
113 #define IDSUB_CYCLE 82
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
114 #define ID_ASPECT1 83
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
115 #define ID_ASPECT2 84
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
116 #define ID_ASPECT3 85
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
117 #define ID_ASPECT4 86
34697
ac6b38cd0d45 Rename sub window video window.
ib
parents: 34390
diff changeset
118 #define ID_VIDEOWINDOW 87
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
119 #define ID_TIMER 88
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
120 #define ID_MUTE 89
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
121 #define ID_FULLSCREEN 90
34087
b2d908cd8a1f Add idle option to Win32 GUI preferences dialog.
ib
parents: 33965
diff changeset
122 #define ID_IDLE 91
34979
93a763f04563 Fix bug with definition of IDPLAYDISK in Win32 GUI.
ib
parents: 34697
diff changeset
123 /* support for 64 drives */
93a763f04563 Fix bug with definition of IDPLAYDISK in Win32 GUI.
ib
parents: 34697
diff changeset
124 #define IDPLAYDISK 100
93a763f04563 Fix bug with definition of IDPLAYDISK in Win32 GUI.
ib
parents: 34697
diff changeset
125 #define IDPLAYDISK_LIMIT 164
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
126
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
127 /* gtk emulation */
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
128 #define GTK_MB_FATAL 0x1
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
129 #define GTK_MB_ERROR 0x2
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
130 #define GTK_MB_WARNING 0x4
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
131 #define GTK_MB_SIMPLE 0x8
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
132
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25535
diff changeset
133 #endif /* MPLAYER_GUI_DIALOGS_H */