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
eff1f159
Commit
eff1f159
authored
Dec 14, 2005
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WX support for progressbar dialog. Still need some layout work
parent
7224b1db
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
modules/gui/wxwidgets/dialogs/interaction.cpp
modules/gui/wxwidgets/dialogs/interaction.cpp
+14
-4
No files found.
modules/gui/wxwidgets/dialogs/interaction.cpp
View file @
eff1f159
...
@@ -105,20 +105,22 @@ void InteractionDialog::Render()
...
@@ -105,20 +105,22 @@ void InteractionDialog::Render()
{
{
wxStaticText
*
label
;
wxStaticText
*
label
;
wxTextCtrl
*
input
;
wxTextCtrl
*
input
;
wxGauge
*
gauge
;
if
(
p_dialog
->
i_id
==
DIALOG_ERRORS
)
if
(
p_dialog
->
i_id
==
DIALOG_ERRORS
)
{
{
wxTextCtrl
*
errors
;
// Special case
wxTextCtrl
*
errors
;
// Special case
label
=
new
wxStaticText
(
widgets_panel
,
-
1
,
label
=
new
wxStaticText
(
widgets_panel
,
-
1
,
wxU
(
_
(
"The following errors happened. More details might be
available
"
wxU
(
_
(
"The following errors happened. More details might be "
"
in the log file
."
)
)
);
"
available in the Messages window
."
)
)
);
errors
=
new
wxTextCtrl
(
widgets_panel
,
-
1
,
wxT
(
""
),
errors
=
new
wxTextCtrl
(
widgets_panel
,
-
1
,
wxT
(
""
),
wxDefaultPosition
,
wxDefaultSize
,
wxDefaultPosition
,
wxDefaultSize
,
wxTE_MULTILINE
|
wxTE_READONLY
);
wxTE_MULTILINE
|
wxTE_READONLY
);
for
(
int
i
=
0
;
i
<
p_dialog
->
i_widgets
;
i
++
)
for
(
int
i
=
0
;
i
<
p_dialog
->
i_widgets
;
i
++
)
{
{
(
*
errors
)
<<
wxL2U
(
p_dialog
->
pp_widgets
[
i
]
->
psz_text
)
<<
wxU
(
"
\n
"
)
;
(
*
errors
)
<<
wxL2U
(
p_dialog
->
pp_widgets
[
i
]
->
psz_text
)
<<
wxU
(
"
\n
"
)
;
}
}
widgets_sizer
->
Add
(
label
);
widgets_sizer
->
Add
(
label
);
widgets_sizer
->
Add
(
errors
,
0
,
wxEXPAND
|
wxALL
,
3
);
widgets_sizer
->
Add
(
errors
,
0
,
wxEXPAND
|
wxALL
,
3
);
...
@@ -149,6 +151,14 @@ void InteractionDialog::Render()
...
@@ -149,6 +151,14 @@ void InteractionDialog::Render()
widget
.
val
=
&
p_widget
->
val
;
widget
.
val
=
&
p_widget
->
val
;
widget
.
i_type
=
WIDGET_INPUT_TEXT
;
widget
.
i_type
=
WIDGET_INPUT_TEXT
;
input_widgets
.
push_back
(
widget
);
input_widgets
.
push_back
(
widget
);
case
WIDGET_PROGRESS
:
label
=
new
wxStaticText
(
widgets_panel
,
-
1
,
wxU
(
p_widget
->
psz_text
)
);
gauge
=
new
wxGauge
(
widgets_panel
,
-
1
,
100
,
wxDefaultPosition
,
wxDefaultSize
);
widgets_sizer
->
Add
(
label
,
0
,
0
,
0
);
widgets_sizer
->
Add
(
gauge
,
0
,
wxEXPAND
,
0
);
gauge
->
SetValue
(
(
int
)(
p_widget
->
val
.
f_float
)
);
}
}
}
}
}
}
...
...
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