]> git.sesse.net Git - vlc/blob - modules/gui/win32/network.h
* changed OSGraphics constructor (needed for X11)
[vlc] / modules / gui / win32 / network.h
1 /*****************************************************************************\r
2  * network.h: the "network" dialog box\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 #ifndef networkH\r
24 #define networkH\r
25 //---------------------------------------------------------------------------\r
26 #include <Classes.hpp>\r
27 #include <Controls.hpp>\r
28 #include <StdCtrls.hpp>\r
29 #include <Forms.hpp>\r
30 #include <Buttons.hpp>\r
31 #include <ComCtrls.hpp>\r
32 #include <ExtCtrls.hpp>\r
33 #include "CSPIN.h"\r
34 //---------------------------------------------------------------------------\r
35 \r
36 #define NOT( var ) ( (var) ? false : true )\r
37 \r
38 class TNetworkDlg : public TForm\r
39 {\r
40 __published:    // IDE-managed Components\r
41     TGroupBox *GroupBoxMode;\r
42     TRadioButton *RadioButtonUDP;\r
43     TRadioButton *RadioButtonMulticast;\r
44     TRadioButton *RadioButtonCS;\r
45     TRadioButton *RadioButtonHTTP;\r
46     TLabel *LabelUDPPort;\r
47     TLabel *LabelMulticastPort;\r
48     TLabel *LabelCSPort;\r
49     TLabel *LabelMulticastAddress;\r
50     TComboBox *ComboBoxMulticastAddress;\r
51     TLabel *LabelCSAddress;\r
52     TComboBox *ComboBoxCSAddress;\r
53     TEdit *EditHTTPURL;\r
54     TLabel *LabelHTTPURL;\r
55     TCSpinEdit *SpinEditUDPPort;\r
56     TCSpinEdit *SpinEditMulticastPort;\r
57     TCSpinEdit *SpinEditCSPort;\r
58     TButton *ButtonOK;\r
59     TButton *ButtonCancel;\r
60     void __fastcall FormShow( TObject *Sender );\r
61     void __fastcall FormHide( TObject *Sender );\r
62     void __fastcall ButtonCancelClick( TObject *Sender );\r
63     void __fastcall ButtonOkClick( TObject *Sender );\r
64     void __fastcall RadioButtonUDPEnter( TObject *Sender );\r
65     void __fastcall RadioButtonMulticastEnter( TObject *Sender );\r
66     void __fastcall RadioButtonCSEnter( TObject *Sender );\r
67     void __fastcall RadioButtonHTTPEnter( TObject *Sender );\r
68 private:        // User declarations\r
69     int OldRadioValue;\r
70     void __fastcall ChangeEnabled( int i_selected );\r
71     intf_thread_t *p_intf;\r
72 public:         // User declarations\r
73     __fastcall TNetworkDlg( TComponent* Owner, intf_thread_t *_p_intf );\r
74 };\r
75 //---------------------------------------------------------------------------\r
76 #endif\r