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
ee538255
Commit
ee538255
authored
Apr 19, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: make the customize dialog a true Dialog.
parent
20b1d363
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
19 deletions
+8
-19
modules/gui/qt4/dialogs/toolbar.cpp
modules/gui/qt4/dialogs/toolbar.cpp
+3
-4
modules/gui/qt4/dialogs/toolbar.hpp
modules/gui/qt4/dialogs/toolbar.hpp
+3
-13
modules/gui/qt4/dialogs_provider.cpp
modules/gui/qt4/dialogs_provider.cpp
+2
-2
No files found.
modules/gui/qt4/dialogs/toolbar.cpp
View file @
ee538255
...
@@ -41,14 +41,13 @@
...
@@ -41,14 +41,13 @@
#include <QDialogButtonBox>
#include <QDialogButtonBox>
#include <QInputDialog>
#include <QInputDialog>
ToolbarEditDialog
*
ToolbarEditDialog
::
instance
=
NULL
;
ToolbarEditDialog
::
ToolbarEditDialog
(
QWidget
*
_w
,
intf_thread_t
*
_p_intf
)
:
QVLCDialog
(
_w
,
_p_intf
)
ToolbarEditDialog
::
ToolbarEditDialog
(
intf_thread_t
*
_p_intf
)
:
QVLCFrame
(
_p_intf
)
{
{
setWindowTitle
(
qtr
(
"Toolbars Editor"
)
);
setWindowTitle
(
qtr
(
"Toolbars Editor"
)
);
QGridLayout
*
mainLayout
=
new
QGridLayout
(
this
);
QGridLayout
*
mainLayout
=
new
QGridLayout
(
this
);
setMinimumWidth
(
600
);
setMinimumWidth
(
600
);
setAttribute
(
Qt
::
WA_DeleteOnClose
);
/* main GroupBox */
/* main GroupBox */
QGroupBox
*
widgetBox
=
new
QGroupBox
(
qtr
(
"Toolbar Elements"
)
,
this
);
QGroupBox
*
widgetBox
=
new
QGroupBox
(
qtr
(
"Toolbar Elements"
)
,
this
);
...
...
modules/gui/qt4/dialogs/toolbar.hpp
View file @
ee538255
...
@@ -58,26 +58,16 @@ private:
...
@@ -58,26 +58,16 @@ private:
ToolbarEditDialog
*
parent
;
ToolbarEditDialog
*
parent
;
};
};
class
ToolbarEditDialog
:
public
QVLC
Frame
class
ToolbarEditDialog
:
public
QVLC
Dialog
{
{
Q_OBJECT
;
Q_OBJECT
;
public:
public:
static
ToolbarEditDialog
*
getInstance
(
intf_thread_t
*
p_intf
)
ToolbarEditDialog
(
QWidget
*
,
intf_thread_t
*
);
{
if
(
!
instance
)
instance
=
new
ToolbarEditDialog
(
p_intf
);
return
instance
;
}
static
void
killInstance
()
{
delete
instance
;
instance
=
NULL
;}
int
getOptions
()
{
return
flatBox
->
isChecked
()
*
WIDGET_FLAT
+
int
getOptions
()
{
return
flatBox
->
isChecked
()
*
WIDGET_FLAT
+
bigBox
->
isChecked
()
*
WIDGET_BIG
+
bigBox
->
isChecked
()
*
WIDGET_BIG
+
!
shinyBox
->
isChecked
()
*
WIDGET_SHINY
;
}
!
shinyBox
->
isChecked
()
*
WIDGET_SHINY
;
}
private:
ToolbarEditDialog
(
intf_thread_t
*
);
virtual
~
ToolbarEditDialog
();
virtual
~
ToolbarEditDialog
();
private:
static
ToolbarEditDialog
*
instance
;
QCheckBox
*
flatBox
,
*
bigBox
,
*
shinyBox
;
QCheckBox
*
flatBox
,
*
bigBox
,
*
shinyBox
;
QComboBox
*
positionCombo
,
*
profileCombo
;
QComboBox
*
positionCombo
,
*
profileCombo
;
...
...
modules/gui/qt4/dialogs_provider.cpp
View file @
ee538255
...
@@ -89,7 +89,6 @@ DialogsProvider::~DialogsProvider()
...
@@ -89,7 +89,6 @@ DialogsProvider::~DialogsProvider()
#ifdef UPDATE_CHECK
#ifdef UPDATE_CHECK
UpdateDialog
::
killInstance
();
UpdateDialog
::
killInstance
();
#endif
#endif
ToolbarEditDialog
::
killInstance
();
delete
menusMapper
;
delete
menusMapper
;
delete
menusUpdateMapper
;
delete
menusUpdateMapper
;
...
@@ -242,7 +241,8 @@ void DialogsProvider::podcastConfigureDialog()
...
@@ -242,7 +241,8 @@ void DialogsProvider::podcastConfigureDialog()
void
DialogsProvider
::
toolbarDialog
()
void
DialogsProvider
::
toolbarDialog
()
{
{
ToolbarEditDialog
::
getInstance
(
p_intf
)
->
toggleVisible
();
ToolbarEditDialog
*
toolbarEditor
=
new
ToolbarEditDialog
(
(
QWidget
*
)
p_intf
->
p_sys
->
p_mi
,
p_intf
);
toolbarEditor
->
exec
();
}
}
void
DialogsProvider
::
pluginDialog
()
void
DialogsProvider
::
pluginDialog
()
...
...
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