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
7f576984
Commit
7f576984
authored
Mar 23, 2006
by
Christophe Mutricy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wx/interfaces.cpp: Add an option to display tool bar buton name.
Warning hack inside. refs #495 close it for linux and win32
parent
b5d4a11a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
11 deletions
+30
-11
modules/gui/wxwidgets/interface.cpp
modules/gui/wxwidgets/interface.cpp
+30
-11
No files found.
modules/gui/wxwidgets/interface.cpp
View file @
7f576984
...
...
@@ -427,6 +427,13 @@ Interface::Interface( intf_thread_t *_p_intf, long style ):
panel_sizer
->
Layout
();
panel_sizer
->
Fit
(
main_panel
);
main_sizer
->
Layout
();
main_sizer
->
Fit
(
this
);
main_min_size
=
GetSize
();
/* FIXME HACK as far as i understan (i.e. not a lot) the toolbar
* doesn't take the labels into account when it returns its size */
if
(
config_GetInt
(
p_intf
,
"wx-labels"
)
)
{
main_min_size
.
SetWidth
(
800
);
}
splitter
->
SetSizeHints
(
-
1
,
-
1
);
/* Video window */
...
...
@@ -675,47 +682,59 @@ void Interface::CreateOurToolBar()
#define HELP_SLOW N_("Play slower")
#define HELP_FAST N_("Play faster")
#define LABEL_OPEN N_("Open")
#define LABEL_STOP N_("Stop")
#define LABEL_PLAY N_("Play")
#define LABEL_PAUSE N_("Pause")
#define LABEL_PLO N_("Playlist")
#define LABEL_SPLO N_("Small playlist")
#define LABEL_PLP N_("Previous")
#define LABEL_PLN N_("Next")
#define LABEL_SLOW N_("Slower")
#define LABEL_FAST N_("Faster")
int
minimal
=
config_GetInt
(
p_intf
,
"wx-minimal"
);
bool
label
=
config_GetInt
(
p_intf
,
"wx-labels"
);
wxLogNull
LogDummy
;
/* Hack to suppress annoying log message on the win32
* version because we don't include wx.rc */
wxToolBar
*
toolbar
=
CreateToolBar
(
wxTB_HORIZONTAL
|
wxTB_FLAT
);
CreateToolBar
(
label
?
wxTB_HORIZONTAL
|
wxTB_FLAT
|
wxTB_TEXT
:
wxTB_HORIZONTAL
|
wxTB_FLAT
);
toolbar
->
SetToolBitmapSize
(
wxSize
(
TOOLBAR_BMP_WIDTH
,
TOOLBAR_BMP_HEIGHT
)
);
if
(
!
minimal
)
{
toolbar
->
AddTool
(
OpenFile_Event
,
wx
T
(
""
),
toolbar
->
AddTool
(
OpenFile_Event
,
wx
U
(
LABEL_OPEN
),
wxBitmap
(
eject_xpm
),
wxU
(
_
(
HELP_OPEN
))
);
toolbar
->
AddSeparator
();
}
wxToolBarToolBase
*
p_tool
=
toolbar
->
AddTool
(
PlayStream_Event
,
wx
T
(
""
),
wxToolBarToolBase
*
p_tool
=
toolbar
->
AddTool
(
PlayStream_Event
,
wx
U
(
LABEL_PLAY
),
wxBitmap
(
play_xpm
),
wxU
(
_
(
HELP_PLAY
)),
wxITEM_CHECK
);
p_tool
->
SetClientData
(
p_tool
);
if
(
!
minimal
)
{
toolbar
->
AddTool
(
StopStream_Event
,
wx
T
(
""
),
wxBitmap
(
stop_xpm
),
toolbar
->
AddTool
(
StopStream_Event
,
wx
U
(
LABEL_STOP
),
wxBitmap
(
stop_xpm
),
wxU
(
_
(
HELP_STOP
))
);
toolbar
->
AddSeparator
();
toolbar
->
AddTool
(
PrevStream_Event
,
wx
T
(
""
),
toolbar
->
AddTool
(
PrevStream_Event
,
wx
U
(
LABEL_PLP
),
wxBitmap
(
prev_xpm
),
wxU
(
_
(
HELP_PLP
))
);
toolbar
->
AddTool
(
SlowStream_Event
,
wx
T
(
""
),
toolbar
->
AddTool
(
SlowStream_Event
,
wx
U
(
LABEL_SLOW
),
wxBitmap
(
slow_xpm
),
wxU
(
_
(
HELP_SLOW
))
);
toolbar
->
AddTool
(
FastStream_Event
,
wx
T
(
""
),
toolbar
->
AddTool
(
FastStream_Event
,
wx
U
(
LABEL_FAST
),
wxBitmap
(
fast_xpm
),
wxU
(
_
(
HELP_FAST
))
);
toolbar
->
AddTool
(
NextStream_Event
,
wx
T
(
""
),
wxBitmap
(
next_xpm
),
toolbar
->
AddTool
(
NextStream_Event
,
wx
U
(
LABEL_PLN
),
wxBitmap
(
next_xpm
),
wxU
(
_
(
HELP_PLN
))
);
toolbar
->
AddSeparator
();
if
(
config_GetInt
(
p_intf
,
"wx-playlist-view"
)
!=
1
)
toolbar
->
AddTool
(
Playlist_Event
,
wx
T
(
""
),
wxBitmap
(
playlist_xpm
),
wxU
(
_
(
HELP_PLO
))
);
toolbar
->
AddTool
(
Playlist_Event
,
wx
U
(
LABEL_PLO
),
wx
Bitmap
(
playlist_xpm
),
wx
U
(
_
(
HELP_PLO
))
);
if
(
config_GetInt
(
p_intf
,
"wx-playlist-view"
)
>=
1
)
toolbar
->
AddTool
(
PlaylistSmall_Event
,
wx
T
(
""
),
toolbar
->
AddTool
(
PlaylistSmall_Event
,
wx
U
(
LABEL_SPLO
),
wxBitmap
(
playlist_small_xpm
),
wxU
(
_
(
HELP_SPLO
))
);
}
...
...
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