Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
5e0a04ba
Commit
5e0a04ba
authored
Jun 08, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/skins/*: display the popupmenu when you right click on the interface.
parent
4d7eeeb1
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
9 deletions
+29
-9
modules/gui/skins/src/dialogs.cpp
modules/gui/skins/src/dialogs.cpp
+10
-5
modules/gui/skins/src/dialogs.h
modules/gui/skins/src/dialogs.h
+2
-1
modules/gui/skins/src/skin_main.cpp
modules/gui/skins/src/skin_main.cpp
+7
-1
modules/gui/skins/src/themeloader.cpp
modules/gui/skins/src/themeloader.cpp
+3
-1
modules/gui/skins/src/window.cpp
modules/gui/skins/src/window.cpp
+7
-1
No files found.
modules/gui/skins/src/dialogs.cpp
View file @
5e0a04ba
...
...
@@ -2,7 +2,7 @@
* dialogs.cpp: Handles all the different dialog boxes we provide.
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: dialogs.cpp,v 1.
3 2003/06/05 21:22:27
gbazin Exp $
* $Id: dialogs.cpp,v 1.
4 2003/06/08 16:56:48
gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -297,6 +297,14 @@ void Dialogs::ShowFileInfo()
wxTheApp
->
AddPendingEvent
(
event
);
}
void
Dialogs
::
ShowPopup
()
{
wxCommandEvent
event
(
wxEVT_DIALOG
,
ShowPopup_Event
);
event
.
SetClientData
(
this
);
wxTheApp
->
AddPendingEvent
(
event
);
}
void
Dialogs
::
OnShowOpen
(
wxCommandEvent
&
event
)
{
Dialogs
*
p_dialogs
=
(
Dialogs
*
)
event
.
GetClientData
();
...
...
@@ -417,10 +425,7 @@ int PopupMenuCB( vlc_object_t *p_this, const char *psz_variable,
Dialogs
*
p_dialogs
=
(
Dialogs
*
)
param
;
#ifndef BASIC_SKINS
wxCommandEvent
event
(
wxEVT_DIALOG
,
ShowPopup_Event
);
event
.
SetClientData
(
p_dialogs
);
wxTheApp
->
AddPendingEvent
(
event
);
p_dialogs
->
ShowPopup
();
#endif // BASIC_SKINS
return
VLC_SUCCESS
;
...
...
modules/gui/skins/src/dialogs.h
View file @
5e0a04ba
...
...
@@ -2,7 +2,7 @@
* dialogs.h: Dialogs class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: dialogs.h,v 1.
3 2003/06/05 21:22:27
gbazin Exp $
* $Id: dialogs.h,v 1.
4 2003/06/08 16:56:48
gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -76,6 +76,7 @@ class Dialogs
void
ShowMessages
();
void
ShowPrefs
();
void
ShowFileInfo
();
void
ShowPopup
();
vlc_bool_t
b_popup_change
;
...
...
modules/gui/skins/src/skin_main.cpp
View file @
5e0a04ba
...
...
@@ -2,7 +2,7 @@
* skin-main.cpp: skins plugin for VLC
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: skin_main.cpp,v 1.3
3 2003/06/06 23:34:35 asmax
Exp $
* $Id: skin_main.cpp,v 1.3
4 2003/06/08 16:56:48 gbazin
Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -248,6 +248,7 @@ static void Run( intf_thread_t *p_intf )
{
// Last chance: the user can select a new theme file
#ifndef BASIC_SKINS
wxMutexGuiEnter
();
wxFileDialog
dialog
(
NULL
,
wxU
(
_
(
"Open a skin file"
)),
wxT
(
""
),
wxT
(
""
),
wxT
(
"Skin files (*.vlt)|*.vlt|Skin files (*.xml)|*.xml|"
...
...
@@ -260,13 +261,18 @@ static void Run( intf_thread_t *p_intf )
{
// He, he, what the hell is he doing ?
delete
Loader
;
wxMutexGuiLeave
();
return
;
}
wxMutexGuiLeave
();
}
else
#endif
{
delete
Loader
;
#ifndef BASIC_SKINS
wxMutexGuiLeave
();
#endif
return
;
}
}
...
...
modules/gui/skins/src/themeloader.cpp
View file @
5e0a04ba
...
...
@@ -2,7 +2,7 @@
* themeloader.cpp: ThemeLoader class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: themeloader.cpp,v 1.1
2 2003/06/06 14:50:49
gbazin Exp $
* $Id: themeloader.cpp,v 1.1
3 2003/06/08 16:56:48
gbazin Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -156,6 +156,8 @@ bool ThemeLoader::Extract( const string FileName )
if
(
!
Parse
(
TempPath
+
DIRECTORY_SEPARATOR
+
string
(
DEFAULT_XML_FILE
)
)
)
{
msg_Err
(
p_intf
,
"%s doesn't contain a "
DEFAULT_XML_FILE
" file"
,
FileName
.
c_str
()
);
DeleteTempFiles
(
TempPath
);
return
false
;
}
...
...
modules/gui/skins/src/window.cpp
View file @
5e0a04ba
...
...
@@ -2,7 +2,7 @@
* window.cpp: Window class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: window.cpp,v 1.2
5 2003/05/31 23:23:59 ipkiss
Exp $
* $Id: window.cpp,v 1.2
6 2003/06/08 16:56:48 gbazin
Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -38,6 +38,7 @@
#include "banks.h"
#include "theme.h"
#include "skin_common.h"
#include "dialogs.h"
#include <stdio.h>
...
...
@@ -418,6 +419,11 @@ void SkinWindow::MouseUp( int x, int y, int button )
break
;
}
}
if
(
i
<
0
&&
button
==
2
)
{
p_intf
->
p_sys
->
p_dialogs
->
ShowPopup
();
}
}
//---------------------------------------------------------------------------
void
SkinWindow
::
MouseDblClick
(
int
x
,
int
y
,
int
button
)
...
...
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