Commit 788c882a authored by ipkiss's avatar ipkiss

* All: Removed the win32 plugin; wxwindows rulez :)

parent 41e4d5d7
dnl Autoconf settings for vlc
dnl $Id: configure.ac,v 1.42 2003/07/25 11:33:24 gbazin Exp $
dnl $Id: configure.ac,v 1.43 2003/07/27 12:31:50 ipkiss Exp $
AC_INIT(vlc,0.6.1-test1)
......@@ -3296,7 +3296,6 @@ AC_OUTPUT([
modules/gui/qnx/Makefile
modules/gui/qt/Makefile
modules/gui/skins/Makefile
modules/gui/win32/Makefile
modules/gui/wxwindows/Makefile
modules/misc/Makefile
modules/misc/dummy/Makefile
......
.deps
.dirstamp
*.lo
*.la
*.dll
*.dylib
*.sl
*.so
Makefile.am
Makefile.in
Makefile
#
# Borland C++ project
# This module is only available as a plugin. Don't try to fiddle with it!
#
EXTRA_DIST += $(BORLAND_win32)
# We have private rules! We do whatever we want! Don't mess with us!
SOURCES_win32 = PRIVATE
libwin32_plugin.dll: $(BORLAND_win32)
cd && \
rm -f win32.mak && \
$(BPR2MAK) win32.bpr -s | \
sed -e 's@^LIBPATH = .*@&;$$(RELEASELIBPATH)@' \
-e 's@^USERDEFINES = .*@& -DMODULE_NAME=win32@' \
> win32.mak && \
$(BCMAKE) -f win32.mak -b
BORLAND_win32 = \
win32.bpr \
win32.bpf \
\
about.cpp \
disc.cpp \
dragdrop.cpp \
mainframe.cpp \
menu.cpp \
messages.cpp \
network.cpp \
playlist.cpp \
preferences.cpp \
win32.cpp \
misc.cpp \
sout.cpp \
subtitles.cpp \
\
about.dfm \
disc.dfm \
mainframe.dfm \
messages.dfm \
network.dfm \
playlist.dfm \
preferences.dfm \
sout.dfm \
subtitles.dfm \
\
about.h \
disc.h \
dragdrop.h \
mainframe.h \
menu.h \
messages.h \
network.h \
playlist.h \
preferences.h \
win32_common.h \
misc.h \
sout.h \
subtitles.h \
$(NULL)
/*****************************************************************************
* about.cpp: The "About" dialog box
*****************************************************************************
* Copyright (C) 2002 VideoLAN
*
* Authors: Olivier Teuliere <ipkiss@via.ecp.fr>
*
* 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.
*****************************************************************************/
#include <vcl.h>
#pragma hdrstop
#include <vlc/vlc.h>
#include <vlc/intf.h>
#include "about.h"
#include "misc.h"
#include "win32_common.h"
//---------------------------------------------------------------------------
//#pragma package(smart_init)
#pragma resource "*.dfm"
//---------------------------------------------------------------------------
__fastcall TAboutDlg::TAboutDlg( TComponent* Owner, intf_thread_t *_p_intf )
: TForm( Owner )
{
p_intf = _p_intf;
Image1->Picture->Icon = p_intf->p_sys->p_window->Icon;
LabelVersion->Caption = "Version " VERSION;
Translate( this );
}
//---------------------------------------------------------------------------
object AboutDlg: TAboutDlg
Tag = 3
Left = 442
Top = 281
BorderStyle = bsDialog
Caption = 'About'
ClientHeight = 222
ClientWidth = 282
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
Icon.Data = {
0000010001003030000001001800A81C00001600000028000000300000006000
00000100180000000000001B0000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000069375900000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000120E0A4011253E0F18000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000F0B
084143CA08070016430F08040800000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000003127291203174647E8464AE808010840E54039E6390B0C06
0E0A1C0000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0070CD0079DD0079DD0070CD0000000000000000000C1008261D6E4647E54547
E64748E105040039E6393AE53939E63936D33308030100000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000000070CD0079DD0079DE007DE40088F9008CFF008CFF0088F9007CE302
6EC70B09124641DC4444DF4546E34446E54847E003040040E6403AEA3A3EE33E
3CE33C39E639080F010801050000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000070CD0079DD0077D90070CB0078D8007BDC007BDC007BDC
007BDC007BDC007BDD007EE32E232D0804084553F14250F34252ED4449DB4844
DC4645E208010540E5401C78150D18053CE63C3AE63A39EA393CD83C241A2006
0402000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000070CD0079DD007ADF007BDE007BDC0072
CC005188004877004876004876004876034976054A760B4D7731434221175B42
54EC4253EE4252F60B05104250F44252EB4546DA08010539E6392BAA2B080105
3CE63C39E7393AE63A39E93939E839081208181C080000000000000000000000
000000000000000000000000000000000000000070CD0079DD0079DD007CE300
88F90089F90075D2005188004877005188008CFF008CFF008CFF008CFF008CFF
1092FF2099FF31A0FF1408294840DB4550E1464EEA0C060B0B05084654F64653
F64453EF080E033AE63A2BAA2B03030339E33939DF3939E639080F083DDB3D24
9C24434B3B000000000000000000000000000000000000000000000000000000
0063B60085F3008BFE0088F9007FE90088F90080E8005CA0008CFF008CFF008C
FF008CFF008CFF008CFF008CFF048DFF1594FF259BFF35A2FF0C04103F38C754
5AF7505BF10C08100801084352F64652F44253F30813053AE63A39E639030403
1C521826A1250812010807032454131558150000000000000000000000000000
000000000000000000000000000000000000000070CD007CE30079DD00000000
7CE30089FA008CFF0089FA008CFF008CFF008CFF008CFF008CFF008CFF098FFF
1996FF2A9DFF3AA4FF0804103A2AA34E58F74E58F40B0B120803054652F34548
E64451F305130532CA323AE23A03070308070307040008040139E63939E43931
B42F5E1347000000000000000000000000000000000000000000000000000000
0000000000000000000061B10000000079DD008CFF008CFF008CFF008CFF008C
FF008CFF008CFF008CFF008CFF0E91FF1E98FF2E9FFF3FA6FF040408382BAF4D
5AEF555AF70F12250501050F04160804074250F3121A123AE93A39E239080803
0D2F08010401268C2539E7393DE63D3FE23E0804100000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
79DD008CFF008CFF008CFF008CFF008CFF008CFF008CFF008CFF028CFF1293FF
239AFF33A1FF43A8FF0802083A2AA3565BF7555AF71714330501050104000801
07424FF12828203AEA3A39E639030703182F1008340801040139E7393DE83D39
E939080400000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000070CD0088F9008CFF008CFF008CFF008C
FF008CFF008CFF008CFF078EFF1795FF279CFF38A3FF48AAFF0808005151F155
5AF30804030804000504050800082E358E0E0C1F1D192439E53940E640080400
2AA12739E63908020708010539E8393BE93B0804080000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000007CE3008CFF008CFF008CFF058EFD1D96F92398F8269AFA31A0FC42A8FF
4FAEFF5CB3FF65B7FF0C08084F5AF14E57F50B04080804043639A54647E81C13
49363AA70804080F120835953439E7393EE63E39DF3939EA39081105308A2B3F
E73F080601000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000047BDB1D96F92398F82498F83BA0
F399C1E1B1C9DDBCD4E7CBE0F3D9EDFFDCEEFFDEEFFFCDE8FF080808575BF750
58F624125A5057F34845DF4A41E0150E30C55734E3723EC56E33A23D27050105
39E43939E63939E6393CE63C14420C3BE03B192A090000000000000000000000
0000000000000000000000000000000000000000000000000000000000000004
04042D88D399C1E1B1C9DDB1C9DCB7CBDBCFD3D7D5D5D6E2E2E3F0F0F1FEFEFF
FEFEFFFEFEFFF9FCFF0C08085D61F15B61EF555AF64A4FE13937BB0E0A12DE74
39E1733CDE713CDF753AE67541C36B342C231F17141B3AE63A39E7393DE83D39
E93939DE39000000000000000000000000000000000000000000000000000000
0000000000000000000000000000001818186893B8C3CCD2D5D5D6D5D5D6D5D5
D6D6D6D6D6D6D6E3E3E3F1F1F1FFFFFFFFFFFFFFFFFFFFFFFF140C145C5EF668
63F75555EA10061CC3673FDF713A0C1104080403080105080007070407D56F36
DE743EDE72401C200C29452939E63939E73939EA390000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000343434A2B4C2D5D5D6D6D6D6D6D6D6D6D6D6D5D5D6E2E2E3F0F0F1FEFEFF
FEFEFFFEFEFFFEFEFF20161C5C5EF6373EAE0E0413E2713DE1763CCD6A3C2A0D
08A44B2CDE743EBD612F080401030403E1713CDE7239DE713AE1723C22201139
C13341E641000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000001B1B1B99AEBED5D5D6D5D5D6D5D5
D6CFD3D7B8CBDBBFD5E7CEE2F3DCEFFFDFF0FFE2F1FFE9F4FF10100C3639A46E
4540DE7239DE713DE1713C07000784261CDE7639E3743E0812001F0407D86E36
E3753EE57540E57541DE763CDE733DD26637493C387E2F7B0000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00001B1B1B99AEBFCED3D7B7CBDBB1C9DD99C1E140A2F339A2FA49AAFC59B2FF
66B8FF74BEFF92CBFFD9ECFF0F0402C66531DE7139E2733D854B1E0A01084D11
0DE3733EE1723CDF713ADF753AE1763C1D0A08290708E57140E1763CDE733DC7
6B34080408000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000001818187FA5C399C1E13BA0F32498
F81D96F91091FD1C97FF2C9EFF3CA5FF4DACFF5DB3FF71BBFF8DC8FF9FD0FF08
0400080406B95C2EDE7239070B070803014D1615DE723CDE7540E5714030090D
0504003A120FE67541DE75390808044A0C290000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000707071778C81C92F3058EFD008CFF008CFF1092FF2099FF31A0FF41A7FF
51AEFF62B5FF72BCFF7BBFFF7BBBF96E9FCD0808080806041D0508E571403E22
0C200708080405070407070007080303B05F31DE723967301908010500000000
0000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000007CE3008CFF008C
FF048DFF1594FF259BFF35A2FF46A9FF56B0FF66B7FF77BEFF7BBFFF6DAAE300
0000000000000000000000080401200C088D4024E17141E57140DF713ADE713E
DE76390801070000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000079DD008CFF008CFF098FFF1996FF2A9DFF3AA4FF4AABFF
5BB2FF6BB9FF7BBFFF7BBFFF6AA5DD0000000000000000000000000000001D1A
0C1A0F08110903441912E57140623B1E08020300000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000079DD008CFF008C
FF0E91FF1E98FF2E9FFF3FA6FF4FADFF5FB4FF70BBFF7BBFFF78BAF96299CD00
00000000000000000000000000000000000000003914100000005A2411000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000070CD0088F9078EFD2C9CF940A3F850ACFA60B4FC70BCFF
7DC2FF87C6FF7EC0FF6DAAE30000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000707071A85DD40A2
F3A0C3E1B7CBDDC6D8E7D4E5F3E2F1FFE5F2FFD9ECFF9FD0FF7AACDD05050500
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000001818187FA5C3B8CBDBD0D4D7D5D5D6E2E2E3F0F0F1FEFEFF
FEFEFFFAFCFFE2EDF99FB7CD1C1C1C0000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000001B1B1B99AEBFD4D5
D6D6D6D6D6D6D6E3E3E3F1F1F1FFFFFFFFFFFFFEFEFFD1DAE33E3E3E00000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000001D1D1D7B9BB4CACED1D6D6D6D5D5D6E2E2E3F0F0F1FEFEFF
FEFEFFFEFEFFC9D2DD2121210000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000343434A5B5
C2CFD3D7BFCEDBC9D9E7D7E6F3E6F3FFECF5FFF0F4F9AEBDCD23232300000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000000000000000000018181887A8C3A6C6E169B3F367B6FA77BEFC88C6FF
9FD0FFB4CBE33939390000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000040404338C
D749A8F947A9FD54AFFF64B6FF74BDFF7EC0FF76ABDD05050500000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000001F7DCD369FF948AAFF58B1FF69B8FF79BFFF
78BAF96299CD0000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
003592E34DACFF5DB3FF6DBAFF7BBFFF6DAAE300000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000003890DD51AEFF62B5FF72BCFF7BBFFF
6AA5DD0000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
003B8FD84C9CE3589FDE69A9E375B6F46299CD00000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000003376B00000000000000000005788B6
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000006CC61A83DD247FCC00000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000006DC71A83DD2686D71F6EB1
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000FFFF
FFFFFFFF0000FFFFFFFFFFFF0000FFFFFE1FDFFF0000FFFFE0078FFF0000FFFE
000007FF0000FFF0000001FF0000FF80000000FF0000FF000000003F0000FF00
0000000F0000FE00000000070000F800000000070000F8000000000F0000FC00
000000070000FE00000000070000FF80000000070000FFC0000000070000FFE0
000000070000FFE0000000070000FFE0000000070000FFE0000000070000FFF0
000000070000FFF0000000030000FFF0000000070000FFF00000000F0000FFF0
0000003F0000FFF8000E00FF0000FFF8000F01FF0000FFF8000FD7FF0000FFF8
001FFFFF0000FFFC001FFFFF0000FFFC001FFFFF0000FFFC003FFFFF0000FFFC
003FFFFF0000FFFE003FFFFF0000FFFE007FFFFF0000FFFE007FFFFF0000FFFE
007FFFFF0000FFFF00FFFFFF0000FFFF00FFFFFF0000FFFF00FFFFFF0000FFFF
01FFFFFF0000FFFF01FFFFFF0000FFFF81FFFFFF0000FFFFC3FFFFFF0000FFFF
FFFFFFFF0000FFFFFFFFFFFF0000FFFFFFFFFFFF0000FFFFFFFFFFFF0000}
OldCreateOrder = False
PixelsPerInch = 96
TextHeight = 13
object Label1: TLabel
Tag = 3
Left = 82
Top = 13
Width = 141
Height = 20
Caption = 'VLC media player'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -16
Font.Name = 'MS Sans Serif'
Font.Style = [fsBold]
ParentFont = False
end
object Label2: TLabel
Tag = 3
Left = 14
Top = 64
Width = 161
Height = 13
Caption = '(c) 1996-2003 the VideoLAN team'
end
object Label4: TLabel
Tag = 3
Left = 14
Top = 131
Width = 253
Height = 39
Caption =
'This is the VideoLAN Client, a DVD, MPEG and DivX player. It can' +
' play MPEG and MPEG2 files from a file or from a network source.'
WordWrap = True
end
object Label3: TLabel
Tag = 3
Left = 14
Top = 88
Width = 216
Height = 13
Caption = 'the VideoLAN team <videolan@videolan.org>'
end
object Image1: TImage
Left = 16
Top = 8
Width = 49
Height = 49
end
object Label5: TLabel
Tag = 3
Left = 14
Top = 104
Width = 121
Height = 13
Caption = 'http://www.videolan.org/'
end
object LabelVersion: TLabel
Tag = 3
Left = 82
Top = 35
Width = 59
Height = 13
Caption = 'Version x.y.z'
end
object ButtonOK: TButton
Tag = 3
Left = 69
Top = 188
Width = 145
Height = 24
Anchors = [akLeft, akBottom]
Caption = 'OK'
Default = True
ModalResult = 1
TabOrder = 0
end
end
/*****************************************************************************
* about.h: The "About" dialog box
*****************************************************************************
* Copyright (C) 2002 VideoLAN
*
* Authors: Olivier Teuliere <ipkiss@via.ecp.fr>
*
* 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.
*****************************************************************************/
#ifndef aboutH
#define aboutH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include <ExtCtrls.hpp>
#include <Graphics.hpp>
//---------------------------------------------------------------------------
class TAboutDlg : public TForm
{
__published: // IDE-managed Components
TLabel *Label1;
TLabel *Label2;
TLabel *Label4;
TLabel *Label3;
TImage *Image1;
TLabel *Label5;
TLabel *LabelVersion;
TButton *ButtonOK;
private: // User declarations
intf_thread_t *p_intf;
public: // User declarations
__fastcall TAboutDlg( TComponent* Owner, intf_thread_t *_p_intf );
};
//---------------------------------------------------------------------------
#endif
/*****************************************************************************
* disc.cpp: "Open disc" dialog box.
*****************************************************************************
* Copyright (C) 2002 VideoLAN
*
* Authors: Olivier Teuliere <ipkiss@via.ecp.fr>
*
* 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.
*****************************************************************************/
#include <vcl.h>
#pragma hdrstop
#include <vlc/vlc.h>
#include <vlc/intf.h>
#include "disc.h"
#include "misc.h"
#include "win32_common.h"
//---------------------------------------------------------------------------
//#pragma package(smart_init)
#pragma link "CSPIN"
#pragma resource "*.dfm"
//---------------------------------------------------------------------------
__fastcall TDiscDlg::TDiscDlg( TComponent* Owner, intf_thread_t *_p_intf )
: TForm( Owner )
{
p_intf = _p_intf;
/* Simulate a click to get the correct device name */
RadioGroupTypeClick( RadioGroupType );
Translate( this );
}
//---------------------------------------------------------------------------
void __fastcall TDiscDlg::FormShow( TObject *Sender )
{
p_intf->p_sys->p_window->OpenDiscAction->Checked = true;
}
//---------------------------------------------------------------------------
void __fastcall TDiscDlg::FormHide( TObject *Sender )
{
p_intf->p_sys->p_window->OpenDiscAction->Checked = false;
}
//---------------------------------------------------------------------------
void __fastcall TDiscDlg::ButtonCancelClick( TObject *Sender )
{
Hide();
}
//---------------------------------------------------------------------------
void __fastcall TDiscDlg::ButtonOkClick( TObject *Sender )
{
AnsiString Device, Source;
Hide();
Device = EditDevice->Text;
/* Build source name and add it to playlist */
if ( CheckBoxMenus->Checked && RadioGroupType->ItemIndex == 0 )
{
Source = "dvdplay://" + Device;
}
else
{
AnsiString Method, Title, Chapter;
/* Select title and chapter */
Title.sprintf( "%d", SpinEditTitle->Value );
Chapter.sprintf( "%d", SpinEditChapter->Value );
/* Select access method */
if( RadioGroupType->ItemIndex == 0 )
Method = "dvdold";
else
Method = "vcd";
/* build the MRL */
Source = Method + "://" + Device + "@" + Title + "," + Chapter;
}
msg_Dbg (p_intf , Source.c_str());
p_intf->p_sys->p_playwin->Add( Source, PLAYLIST_APPEND
| ( p_intf->p_sys->b_play_when_adding ? PLAYLIST_GO : 0 ),
PLAYLIST_END );
}
//---------------------------------------------------------------------------
void __fastcall TDiscDlg::RadioGroupTypeClick( TObject *Sender )
{
TRadioGroup *RadioGroupType = (TRadioGroup *)Sender;
char *psz_device;
if( RadioGroupType->ItemIndex == 0 )
{
psz_device = config_GetPsz( p_intf, "dvd" );
CheckBoxMenus->Enabled = true;
DisableTitles( CheckBoxMenus->Checked );
}
else