Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
c0dd3f01
Commit
c0dd3f01
authored
Mar 12, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert [14732]
parent
97dcbccd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
30 deletions
+12
-30
modules/gui/wxwidgets/dialogs/updatevlc.cpp
modules/gui/wxwidgets/dialogs/updatevlc.cpp
+12
-24
modules/gui/wxwidgets/dialogs/updatevlc.hpp
modules/gui/wxwidgets/dialogs/updatevlc.hpp
+0
-6
No files found.
modules/gui/wxwidgets/dialogs/updatevlc.cpp
View file @
c0dd3f01
...
...
@@ -71,21 +71,12 @@ UpdateVLC::UpdateVLC( intf_thread_t *_p_intf, wxWindow *p_parent ):
SetIcon
(
*
p_intf
->
p_sys
->
p_icon
);
SetAutoLayout
(
TRUE
);
panel
=
new
wxPanel
(
this
,
-
1
);
panel
->
SetAutoLayout
(
TRUE
);
main_sizer
=
new
wxBoxSizer
(
wxVERTICAL
);
panel_sizer
=
new
wxBoxSizer
(
wxVERTICAL
);
update_button
=
new
wxButton
(
panel
,
CheckForUpdate_Event
,
wxU
(
_
(
"Check for updates"
))
);
panel_sizer
->
Add
(
update_button
,
0
,
wxALL
,
5
);
panel_sizer
->
Layout
();
panel
->
SetSizerAndFit
(
panel_sizer
);
main_sizer
->
Add
(
panel_sizer
);
main_sizer
->
Layout
();
SetSizer
(
main_sizer
);
Fit
(
);
wxBoxSizer
*
main_sizer
=
new
wxBoxSizer
(
wxVERTICAL
);
wxButton
*
update_button
=
new
wxButton
(
this
,
CheckForUpdate_Event
,
wxU
(
_
(
"Check for updates now !"
))
);
main_sizer
->
Add
(
update_button
);
SetSizerAndFit
(
main_sizer
);
p_u
=
update_New
(
p_intf
);
}
...
...
@@ -113,16 +104,16 @@ void UpdateVLC::OnCheckForUpdate( wxCommandEvent& event )
update_iterator_t
*
p_uit
=
update_iterator_New
(
p_u
);
if
(
p_uit
)
{
panel_sizer
->
Remove
(
update_button
);
panel
->
DestroyChildren
();
wxBoxSizer
*
main_sizer
=
new
wxBoxSizer
(
wxVERTICAL
);
p_uit
->
i_rs
=
UPDATE_RELEASE_STATUS_NEWER
;
p_uit
->
i_t
=
UPDATE_FILE_TYPE_ALL
;
update_iterator_Action
(
p_uit
,
UPDATE_MIRROR
);
DestroyChildren
();
wxListCtrl
*
list
=
new
wxListCtrl
(
panel
,
ChooseItem_Event
,
new
wxListCtrl
(
this
,
ChooseItem_Event
,
wxDefaultPosition
,
wxSize
(
400
,
300
),
wxLC_AUTOARRANGE
|
wxLC_SINGLE_SEL
);
wxImageList
*
images
=
new
wxImageList
(
32
,
32
,
TRUE
);
...
...
@@ -159,13 +150,10 @@ void UpdateVLC::OnCheckForUpdate( wxCommandEvent& event )
i_image
);
}
panel_sizer
->
Add
(
new
wxStaticText
(
panel
,
-
1
,
wxU
(
_
(
"
\n
Available updates and related downloads:
\n
(Double click on a file to download it)
\n
"
)
)
)
);
panel_sizer
->
Add
(
list
,
0
,
wxALL
,
5
);
panel_sizer
->
Layout
();
panel
->
SetSizerAndFit
(
panel_sizer
);
main_sizer
->
Layout
();
main_sizer
->
Add
(
new
wxStaticText
(
this
,
-
1
,
wxU
(
_
(
"
\n
Available updates and related downloads:
\n
(Double click on a file to download it)
\n
"
)
)
)
);
main_sizer
->
Add
(
list
);
SetSizerAndFit
(
main_sizer
);
Layout
();
update_iterator_Delete
(
p_uit
);
}
}
...
...
modules/gui/wxwidgets/dialogs/updatevlc.hpp
View file @
c0dd3f01
...
...
@@ -48,12 +48,6 @@ namespace wxvlc
DECLARE_EVENT_TABLE
();
wxPanel
*
panel
;
wxBoxSizer
*
main_sizer
;
wxBoxSizer
*
panel_sizer
;
wxButton
*
update_button
;
intf_thread_t
*
p_intf
;
update_t
*
p_u
;
};
...
...
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