Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
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
Show 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 )
...
@@ -48,6 +48,8 @@ __fastcall TNetworkDlg::TNetworkDlg( TComponent* Owner )
{
{
char
*
psz_channel_server
;
char
*
psz_channel_server
;
OldRadioValue
=
0
;
/* server port */
/* server port */
UpDownUDPPort
->
Position
=
config_GetIntVariable
(
"server-port"
);
UpDownUDPPort
->
Position
=
config_GetIntVariable
(
"server-port"
);
UpDownMulticastPort
->
Position
=
config_GetIntVariable
(
"server-port"
);
UpDownMulticastPort
->
Position
=
config_GetIntVariable
(
"server-port"
);
...
@@ -56,6 +58,7 @@ __fastcall TNetworkDlg::TNetworkDlg( TComponent* Owner )
...
@@ -56,6 +58,7 @@ __fastcall TNetworkDlg::TNetworkDlg( TComponent* Owner )
if
(
config_GetIntVariable
(
"network-channel"
)
)
if
(
config_GetIntVariable
(
"network-channel"
)
)
{
{
RadioButtonCS
->
Checked
=
true
;
RadioButtonCS
->
Checked
=
true
;
RadioButtonCSEnter
(
RadioButtonCS
);
}
}
psz_channel_server
=
config_GetPszVariable
(
"channel-server"
);
psz_channel_server
=
config_GetPszVariable
(
"channel-server"
);
...
@@ -66,8 +69,6 @@ __fastcall TNetworkDlg::TNetworkDlg( TComponent* Owner )
...
@@ -66,8 +69,6 @@ __fastcall TNetworkDlg::TNetworkDlg( TComponent* Owner )
}
}
UpDownCSPort
->
Position
=
config_GetIntVariable
(
"channel-port"
);
UpDownCSPort
->
Position
=
config_GetIntVariable
(
"channel-port"
);
OldRadioValue
=
0
;
}
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
void
__fastcall
TNetworkDlg
::
FormShow
(
TObject
*
Sender
)
void
__fastcall
TNetworkDlg
::
FormShow
(
TObject
*
Sender
)
...
@@ -203,28 +204,28 @@ void __fastcall TNetworkDlg::ChangeEnabled( int i_selected )
...
@@ -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
);
ChangeEnabled
(
OldRadioValue
);
OldRadioValue
=
0
;
OldRadioValue
=
0
;
ChangeEnabled
(
OldRadioValue
);
ChangeEnabled
(
OldRadioValue
);
}
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
void
__fastcall
TNetworkDlg
::
RadioButtonMulticast
Click
(
TObject
*
Sender
)
void
__fastcall
TNetworkDlg
::
RadioButtonMulticast
Enter
(
TObject
*
Sender
)
{
{
ChangeEnabled
(
OldRadioValue
);
ChangeEnabled
(
OldRadioValue
);
OldRadioValue
=
1
;
OldRadioValue
=
1
;
ChangeEnabled
(
OldRadioValue
);
ChangeEnabled
(
OldRadioValue
);
}
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
void
__fastcall
TNetworkDlg
::
RadioButtonCS
Click
(
TObject
*
Sender
)
void
__fastcall
TNetworkDlg
::
RadioButtonCS
Enter
(
TObject
*
Sender
)
{
{
ChangeEnabled
(
OldRadioValue
);
ChangeEnabled
(
OldRadioValue
);
OldRadioValue
=
2
;
OldRadioValue
=
2
;
ChangeEnabled
(
OldRadioValue
);
ChangeEnabled
(
OldRadioValue
);
}
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
void
__fastcall
TNetworkDlg
::
RadioButtonHTTP
Click
(
TObject
*
Sender
)
void
__fastcall
TNetworkDlg
::
RadioButtonHTTP
Enter
(
TObject
*
Sender
)
{
{
ChangeEnabled
(
OldRadioValue
);
ChangeEnabled
(
OldRadioValue
);
OldRadioValue
=
3
;
OldRadioValue
=
3
;
...
...
plugins/win32/network.dfm
View file @
b27d2f93
...
@@ -328,7 +328,7 @@ object NetworkDlg: TNetworkDlg
...
@@ -328,7 +328,7 @@ object NetworkDlg: TNetworkDlg
Checked = True
Checked = True
TabOrder = 0
TabOrder = 0
TabStop = True
TabStop = True
On
Click = RadioButtonUDPClick
On
Enter = RadioButtonUDPEnter
end
end
object RadioButtonMulticast: TRadioButton
object RadioButtonMulticast: TRadioButton
Left = 16
Left = 16
...
@@ -337,7 +337,7 @@ object NetworkDlg: TNetworkDlg
...
@@ -337,7 +337,7 @@ object NetworkDlg: TNetworkDlg
Height = 17
Height = 17
Caption = 'UDP Multicast'
Caption = 'UDP Multicast'
TabOrder = 1
TabOrder = 1
On
Click = RadioButtonMulticastClick
On
Enter = RadioButtonMulticastEnter
end
end
object RadioButtonCS: TRadioButton
object RadioButtonCS: TRadioButton
Left = 16
Left = 16
...
@@ -346,7 +346,7 @@ object NetworkDlg: TNetworkDlg
...
@@ -346,7 +346,7 @@ object NetworkDlg: TNetworkDlg
Height = 17
Height = 17
Caption = 'Channel Server'
Caption = 'Channel Server'
TabOrder = 2
TabOrder = 2
On
Click = RadioButtonCSClick
On
Enter = RadioButtonCSEnter
end
end
object RadioButtonHTTP: TRadioButton
object RadioButtonHTTP: TRadioButton
Left = 16
Left = 16
...
@@ -355,7 +355,7 @@ object NetworkDlg: TNetworkDlg
...
@@ -355,7 +355,7 @@ object NetworkDlg: TNetworkDlg
Height = 17
Height = 17
Caption = 'HTTP'
Caption = 'HTTP'
TabOrder = 3
TabOrder = 3
On
Click = RadioButtonHTTPClick
On
Enter = RadioButtonHTTPEnter
end
end
object EditUDPPort: TEdit
object EditUDPPort: TEdit
Left = 184
Left = 184
...
@@ -384,7 +384,7 @@ object NetworkDlg: TNetworkDlg
...
@@ -384,7 +384,7 @@ object NetworkDlg: TNetworkDlg
Width = 41
Width = 41
Height = 21
Height = 21
Enabled = False
Enabled = False
TabOrder =
6
TabOrder =
7
Text = '1234'
Text = '1234'
end
end
object UpDownMulticastPort: TUpDown
object UpDownMulticastPort: TUpDown
...
@@ -397,7 +397,7 @@ object NetworkDlg: TNetworkDlg
...
@@ -397,7 +397,7 @@ object NetworkDlg: TNetworkDlg
Min = 0
Min = 0
Max = 32767
Max = 32767
Position = 1234
Position = 1234
TabOrder =
7
TabOrder =
8
Thousands = False
Thousands = False
Wrap = False
Wrap = False
end
end
...
@@ -407,7 +407,7 @@ object NetworkDlg: TNetworkDlg
...
@@ -407,7 +407,7 @@ object NetworkDlg: TNetworkDlg
Width = 41
Width = 41
Height = 21
Height = 21
Enabled = False
Enabled = False
TabOrder =
8
TabOrder =
10
Text = '6010'
Text = '6010'
end
end
object UpDownCSPort: TUpDown
object UpDownCSPort: TUpDown
...
@@ -420,7 +420,7 @@ object NetworkDlg: TNetworkDlg
...
@@ -420,7 +420,7 @@ object NetworkDlg: TNetworkDlg
Min = 0
Min = 0
Max = 32767
Max = 32767
Position = 6010
Position = 6010
TabOrder =
9
TabOrder =
11
Thousands = False
Thousands = False
Wrap = False
Wrap = False
end
end
...
@@ -431,7 +431,7 @@ object NetworkDlg: TNetworkDlg
...
@@ -431,7 +431,7 @@ object NetworkDlg: TNetworkDlg
Height = 21
Height = 21
Enabled = False
Enabled = False
ItemHeight = 13
ItemHeight = 13
TabOrder =
10
TabOrder =
6
end
end
object ComboBoxCSAddress: TComboBox
object ComboBoxCSAddress: TComboBox
Left = 184
Left = 184
...
@@ -440,7 +440,7 @@ object NetworkDlg: TNetworkDlg
...
@@ -440,7 +440,7 @@ object NetworkDlg: TNetworkDlg
Height = 21
Height = 21
Enabled = False
Enabled = False
ItemHeight = 13
ItemHeight = 13
TabOrder =
11
TabOrder =
9
Text = '138.195.156.230'
Text = '138.195.156.230'
Items.Strings = (
Items.Strings = (
'138.195.159.230')
'138.195.159.230')
...
...
plugins/win32/network.h
View file @
b27d2f93
...
@@ -63,10 +63,10 @@ __published: // IDE-managed Components
...
@@ -63,10 +63,10 @@ __published: // IDE-managed Components
void
__fastcall
FormHide
(
TObject
*
Sender
);
void
__fastcall
FormHide
(
TObject
*
Sender
);
void
__fastcall
BitBtnCancelClick
(
TObject
*
Sender
);
void
__fastcall
BitBtnCancelClick
(
TObject
*
Sender
);
void
__fastcall
BitBtnOkClick
(
TObject
*
Sender
);
void
__fastcall
BitBtnOkClick
(
TObject
*
Sender
);
void
__fastcall
RadioButtonUDP
Click
(
TObject
*
Sender
);
void
__fastcall
RadioButtonUDP
Enter
(
TObject
*
Sender
);
void
__fastcall
RadioButtonMulticast
Click
(
TObject
*
Sender
);
void
__fastcall
RadioButtonMulticast
Enter
(
TObject
*
Sender
);
void
__fastcall
RadioButtonCS
Click
(
TObject
*
Sender
);
void
__fastcall
RadioButtonCS
Enter
(
TObject
*
Sender
);
void
__fastcall
RadioButtonHTTP
Click
(
TObject
*
Sender
);
void
__fastcall
RadioButtonHTTP
Enter
(
TObject
*
Sender
);
private:
// User declarations
private:
// User declarations
int
OldRadioValue
;
int
OldRadioValue
;
void
__fastcall
ChangeEnabled
(
int
i_selected
);
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