Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
b27d2f93
Commit
b27d2f93
authored
May 21, 2002
by
Olivier Teulière
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Fixed a stupid bug in the Network dialog.
parent
35070dfc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
20 deletions
+21
-20
plugins/win32/network.cpp
plugins/win32/network.cpp
+7
-6
plugins/win32/network.dfm
plugins/win32/network.dfm
+10
-10
plugins/win32/network.h
plugins/win32/network.h
+4
-4
No files found.
plugins/win32/network.cpp
View file @
b27d2f93
...
...
@@ -48,6 +48,8 @@ __fastcall TNetworkDlg::TNetworkDlg( TComponent* Owner )
{
char
*
psz_channel_server
;
OldRadioValue
=
0
;
/* server port */
UpDownUDPPort
->
Position
=
config_GetIntVariable
(
"server-port"
);
UpDownMulticastPort
->
Position
=
config_GetIntVariable
(
"server-port"
);
...
...
@@ -56,6 +58,7 @@ __fastcall TNetworkDlg::TNetworkDlg( TComponent* Owner )
if
(
config_GetIntVariable
(
"network-channel"
)
)
{
RadioButtonCS
->
Checked
=
true
;
RadioButtonCSEnter
(
RadioButtonCS
);
}
psz_channel_server
=
config_GetPszVariable
(
"channel-server"
);
...
...
@@ -66,8 +69,6 @@ __fastcall TNetworkDlg::TNetworkDlg( TComponent* Owner )
}
UpDownCSPort
->
Position
=
config_GetIntVariable
(
"channel-port"
);
OldRadioValue
=
0
;
}
//---------------------------------------------------------------------------
void
__fastcall
TNetworkDlg
::
FormShow
(
TObject
*
Sender
)
...
...
@@ -203,28 +204,28 @@ void __fastcall TNetworkDlg::ChangeEnabled( int i_selected )
}
}
//---------------------------------------------------------------------------
void
__fastcall
TNetworkDlg
::
RadioButtonUDP
Click
(
TObject
*
Sender
)
void
__fastcall
TNetworkDlg
::
RadioButtonUDP
Enter
(
TObject
*
Sender
)
{
ChangeEnabled
(
OldRadioValue
);
OldRadioValue
=
0
;
ChangeEnabled
(
OldRadioValue
);
}
//---------------------------------------------------------------------------
void
__fastcall
TNetworkDlg
::
RadioButtonMulticast
Click
(
TObject
*
Sender
)
void
__fastcall
TNetworkDlg
::
RadioButtonMulticast
Enter
(
TObject
*
Sender
)
{
ChangeEnabled
(
OldRadioValue
);
OldRadioValue
=
1
;
ChangeEnabled
(
OldRadioValue
);
}
//---------------------------------------------------------------------------
void
__fastcall
TNetworkDlg
::
RadioButtonCS
Click
(
TObject
*
Sender
)
void
__fastcall
TNetworkDlg
::
RadioButtonCS
Enter
(
TObject
*
Sender
)
{
ChangeEnabled
(
OldRadioValue
);
OldRadioValue
=
2
;
ChangeEnabled
(
OldRadioValue
);
}
//---------------------------------------------------------------------------
void
__fastcall
TNetworkDlg
::
RadioButtonHTTP
Click
(
TObject
*
Sender
)
void
__fastcall
TNetworkDlg
::
RadioButtonHTTP
Enter
(
TObject
*
Sender
)
{
ChangeEnabled
(
OldRadioValue
);
OldRadioValue
=
3
;
...
...
plugins/win32/network.dfm
View file @
b27d2f93
...
...
@@ -328,7 +328,7 @@ object NetworkDlg: TNetworkDlg
Checked = True
TabOrder = 0
TabStop = True
On
Click = RadioButtonUDPClick
On
Enter = RadioButtonUDPEnter
end
object RadioButtonMulticast: TRadioButton
Left = 16
...
...
@@ -337,7 +337,7 @@ object NetworkDlg: TNetworkDlg
Height = 17
Caption = 'UDP Multicast'
TabOrder = 1
On
Click = RadioButtonMulticastClick
On
Enter = RadioButtonMulticastEnter
end
object RadioButtonCS: TRadioButton
Left = 16
...
...
@@ -346,7 +346,7 @@ object NetworkDlg: TNetworkDlg
Height = 17
Caption = 'Channel Server'
TabOrder = 2
On
Click = RadioButtonCSClick
On
Enter = RadioButtonCSEnter
end
object RadioButtonHTTP: TRadioButton
Left = 16
...
...
@@ -355,7 +355,7 @@ object NetworkDlg: TNetworkDlg
Height = 17
Caption = 'HTTP'
TabOrder = 3
On
Click = RadioButtonHTTPClick
On
Enter = RadioButtonHTTPEnter
end
object EditUDPPort: TEdit
Left = 184
...
...
@@ -384,7 +384,7 @@ object NetworkDlg: TNetworkDlg
Width = 41
Height = 21
Enabled = False
TabOrder =
6
TabOrder =
7
Text = '1234'
end
object UpDownMulticastPort: TUpDown
...
...
@@ -397,7 +397,7 @@ object NetworkDlg: TNetworkDlg
Min = 0
Max = 32767
Position = 1234
TabOrder =
7
TabOrder =
8
Thousands = False
Wrap = False
end
...
...
@@ -407,7 +407,7 @@ object NetworkDlg: TNetworkDlg
Width = 41
Height = 21
Enabled = False
TabOrder =
8
TabOrder =
10
Text = '6010'
end
object UpDownCSPort: TUpDown
...
...
@@ -420,7 +420,7 @@ object NetworkDlg: TNetworkDlg
Min = 0
Max = 32767
Position = 6010
TabOrder =
9
TabOrder =
11
Thousands = False
Wrap = False
end
...
...
@@ -431,7 +431,7 @@ object NetworkDlg: TNetworkDlg
Height = 21
Enabled = False
ItemHeight = 13
TabOrder =
10
TabOrder =
6
end
object ComboBoxCSAddress: TComboBox
Left = 184
...
...
@@ -440,7 +440,7 @@ object NetworkDlg: TNetworkDlg
Height = 21
Enabled = False
ItemHeight = 13
TabOrder =
11
TabOrder =
9
Text = '138.195.156.230'
Items.Strings = (
'138.195.159.230')
...
...
plugins/win32/network.h
View file @
b27d2f93
...
...
@@ -63,10 +63,10 @@ __published: // IDE-managed Components
void
__fastcall
FormHide
(
TObject
*
Sender
);
void
__fastcall
BitBtnCancelClick
(
TObject
*
Sender
);
void
__fastcall
BitBtnOkClick
(
TObject
*
Sender
);
void
__fastcall
RadioButtonUDP
Click
(
TObject
*
Sender
);
void
__fastcall
RadioButtonMulticast
Click
(
TObject
*
Sender
);
void
__fastcall
RadioButtonCS
Click
(
TObject
*
Sender
);
void
__fastcall
RadioButtonHTTP
Click
(
TObject
*
Sender
);
void
__fastcall
RadioButtonUDP
Enter
(
TObject
*
Sender
);
void
__fastcall
RadioButtonMulticast
Enter
(
TObject
*
Sender
);
void
__fastcall
RadioButtonCS
Enter
(
TObject
*
Sender
);
void
__fastcall
RadioButtonHTTP
Enter
(
TObject
*
Sender
);
private:
// User declarations
int
OldRadioValue
;
void
__fastcall
ChangeEnabled
(
int
i_selected
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment