]> git.sesse.net Git - vlc/blob - modules/gui/win32/network.h
* ./modules/*: moved plugins to the new tree. Yet untested builds include
[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     TBitBtn *BitBtnOk;\r
42     TBitBtn *BitBtnCancel;\r
43     TGroupBox *GroupBoxMode;\r
44     TRadioButton *RadioButtonUDP;\r
45     TRadioButton *RadioButtonMulticast;\r
46     TRadioButton *RadioButtonCS;\r
47     TRadioButton *RadioButtonHTTP;\r
48     TLabel *LabelUDPPort;\r
49     TLabel *LabelMulticastPort;\r
50     TLabel *LabelCSPort;\r
51     TLabel *LabelMulticastAddress;\r
52     TComboBox *ComboBoxMulticastAddress;\r
53     TLabel *LabelCSAddress;\r
54     TComboBox *ComboBoxCSAddress;\r
55     TEdit *EditHTTPURL;\r
56     TLabel *LabelHTTPURL;\r
57     TCSpinEdit *SpinEditUDPPort;\r
58     TCSpinEdit *SpinEditMulticastPort;\r
59     TCSpinEdit *SpinEditCSPort;\r
60     void __fastcall FormShow( TObject *Sender );\r
61     void __fastcall FormHide( TObject *Sender );\r
62     void __fastcall BitBtnCancelClick( TObject *Sender );\r
63     void __fastcall BitBtnOkClick( 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 public:         // User declarations\r
72     __fastcall TNetworkDlg( TComponent* Owner );\r
73 };\r
74 //---------------------------------------------------------------------------\r
75 #endif\r