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
e264fefe
Commit
e264fefe
authored
Nov 27, 2004
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minimalistic status bar
parent
73177920
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
modules/gui/wxwindows/playlist.cpp
modules/gui/wxwindows/playlist.cpp
+28
-0
modules/gui/wxwindows/wxwindows.h
modules/gui/wxwindows/wxwindows.h
+2
-0
No files found.
modules/gui/wxwindows/playlist.cpp
View file @
e264fefe
...
...
@@ -367,6 +367,10 @@ Playlist::Playlist( intf_thread_t *_p_intf, wxWindow *p_parent ):
playlist_panel
->
SetSizerAndFit
(
panel_sizer
);
int
pi_widths
[
1
]
=
{
-
1
};
statusbar
=
CreateStatusBar
(
1
);
statusbar
->
SetStatusWidths
(
1
,
pi_widths
);
#if wxUSE_DRAG_AND_DROP
/* Associate drop targets with the playlist */
SetDropTarget
(
new
DragAndDrop
(
p_intf
,
VLC_TRUE
)
);
...
...
@@ -622,6 +626,11 @@ void Playlist::AppendItem( wxCommandEvent& event )
{
UpdateTreeItem
(
p_playlist
,
item
);
}
statusbar
->
SetStatusText
(
wxString
::
Format
(
wxT
(
_
(
"%i items in playlist"
)),
p_playlist
->
i_size
),
0
);
vlc_object_release
(
p_playlist
);
}
...
...
@@ -748,6 +757,25 @@ void Playlist::Rebuild()
SetCurrentItem
(
item
);
/* GetChildrenCount does count internal nodes :(
if( treectrl->GetChildrenCount( root, true ) !=
p_playlist->i_size )
{
statusbar->SetStatusText( wxString::Format( wxT(_(
"%i items in playlist (%i not shown)")),
p_playlist->i_size,
p_playlist->i_size -
treectrl->GetChildrenCount( root, true ) ) );
}
else
{
*/
statusbar
->
SetStatusText
(
wxString
::
Format
(
wxT
(
_
(
"%i items in playlist"
)),
p_playlist
->
i_size
),
0
);
// }
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
vlc_object_release
(
p_playlist
);
...
...
modules/gui/wxwindows/wxwindows.h
View file @
e264fefe
...
...
@@ -860,6 +860,8 @@ private:
char
**
pp_sds
;
wxStatusBar
*
statusbar
;
ItemInfoDialog
*
iteminfo_dialog
;
intf_thread_t
*
p_intf
;
...
...
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