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
d6a66f89
Commit
d6a66f89
authored
Dec 09, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Qt] Edition of both lines.
parent
f729cfdf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
22 deletions
+17
-22
modules/gui/qt4/dialogs/toolbar.cpp
modules/gui/qt4/dialogs/toolbar.cpp
+16
-21
modules/gui/qt4/dialogs/toolbar.hpp
modules/gui/qt4/dialogs/toolbar.hpp
+1
-1
No files found.
modules/gui/qt4/dialogs/toolbar.cpp
View file @
d6a66f89
...
@@ -44,7 +44,7 @@ ToolbarEditDialog *ToolbarEditDialog::instance = NULL;
...
@@ -44,7 +44,7 @@ ToolbarEditDialog *ToolbarEditDialog::instance = NULL;
ToolbarEditDialog
::
ToolbarEditDialog
(
intf_thread_t
*
_p_intf
)
ToolbarEditDialog
::
ToolbarEditDialog
(
intf_thread_t
*
_p_intf
)
:
QVLCFrame
(
_p_intf
)
:
QVLCFrame
(
_p_intf
)
{
{
setWindowTitle
(
qtr
(
"Toolbars Edit
ion
"
)
);
setWindowTitle
(
qtr
(
"Toolbars Edit
or
"
)
);
QGridLayout
*
mainLayout
=
new
QGridLayout
(
this
);
QGridLayout
*
mainLayout
=
new
QGridLayout
(
this
);
setMinimumWidth
(
600
);
setMinimumWidth
(
600
);
...
@@ -78,24 +78,25 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
...
@@ -78,24 +78,25 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
<<
"Under the Video"
);
<<
"Under the Video"
);
mainTboxLayout
->
addWidget
(
positionCombo
,
0
,
1
,
1
,
1
);
mainTboxLayout
->
addWidget
(
positionCombo
,
0
,
1
,
1
,
1
);
QFrame
*
mainToolFrame
=
new
QFrame
;
/*
QFrame *mainToolFrame = new QFrame;
mainToolFrame->setMinimumSize( QSize( 0, 25 ) );
mainToolFrame->setMinimumSize( QSize( 0, 25 ) );
mainToolFrame->setFrameShape( QFrame::StyledPanel );
mainToolFrame->setFrameShape( QFrame::StyledPanel );
mainToolFrame->setFrameShadow( QFrame::Raised );
mainToolFrame->setFrameShadow( QFrame::Raised );
mainTboxLayout->addWidget( mainToolFrame, 1, 0, 1, 2 );
mainTboxLayout->addWidget( mainToolFrame, 1, 0, 1, 2 );
mainToolFrame->setAcceptDrops( true );
mainToolFrame->setAcceptDrops( true );
QHBoxLayout
*
mtlayout
=
new
QHBoxLayout
(
mainToolFrame
);
QHBoxLayout *mtlayout = new QHBoxLayout( mainToolFrame );
*/
DroppingController
*
controller
=
new
DroppingController
(
p_intf
);
QString
line1
=
getSettings
()
->
value
(
"MainWindow/Controls1"
,
mtlayout
->
addWidget
(
controller
);
"64;36;37;38;65"
).
toString
();
DroppingController
*
controller1
=
new
DroppingController
(
p_intf
,
line1
,
this
);
mainTboxLayout
->
addWidget
(
controller1
,
1
,
0
,
1
,
-
1
);
QString
line2
=
getSettings
()
->
value
(
"MainWindow/Controls2"
,
QFrame
*
mainTool2Frame
=
new
QFrame
;
"0-2;64;3;1;4;64;7;10;9;65;34-4"
).
toString
();
mainTool2Frame
->
setMinimumSize
(
QSize
(
0
,
25
)
);
DroppingController
*
controller2
=
new
DroppingController
(
p_intf
,
line2
,
mainTool2Frame
->
setFrameShape
(
QFrame
::
StyledPanel
);
this
);
mainTool2Frame
->
setFrameShadow
(
QFrame
::
Raised
);
mainTboxLayout
->
addWidget
(
controller2
,
2
,
0
,
1
,
-
1
);
mainTboxLayout
->
addWidget
(
mainTool2Frame
,
2
,
0
,
1
,
2
);
mainTool2Frame
->
setAcceptDrops
(
true
);
mainLayout
->
addWidget
(
mainToolbarBox
,
1
,
0
,
1
,
-
1
);
mainLayout
->
addWidget
(
mainToolbarBox
,
1
,
0
,
1
,
-
1
);
}
}
...
@@ -277,8 +278,8 @@ void WidgetListing::startDrag( Qt::DropActions /*supportedActions*/ )
...
@@ -277,8 +278,8 @@ void WidgetListing::startDrag( Qt::DropActions /*supportedActions*/ )
}
}
DroppingController
::
DroppingController
(
intf_thread_t
*
_p_intf
)
DroppingController
::
DroppingController
(
intf_thread_t
*
_p_intf
,
QString
line
,
QWidget
*
_parent
)
:
AbstractController
(
_p_intf
)
:
AbstractController
(
_p_intf
,
_parent
)
{
{
rubberband
=
NULL
;
rubberband
=
NULL
;
setAcceptDrops
(
true
);
setAcceptDrops
(
true
);
...
@@ -288,14 +289,8 @@ DroppingController::DroppingController( intf_thread_t *_p_intf )
...
@@ -288,14 +289,8 @@ DroppingController::DroppingController( intf_thread_t *_p_intf )
setFrameShape
(
QFrame
::
StyledPanel
);
setFrameShape
(
QFrame
::
StyledPanel
);
setFrameShadow
(
QFrame
::
Raised
);
setFrameShadow
(
QFrame
::
Raised
);
QString
line2
=
getSettings
()
->
value
(
"MainWindow/Controls2"
,
"0-2;64;3;1;4;64;7;10;9;65;34-4"
).
toString
();
parseAndCreate
(
line2
,
controlLayout
);
//QString line1 = getSettings()->value( "MainWindow/Controls2",
parseAndCreate
(
line
,
controlLayout
);
// "18;19;25;0" ).toString();
// parseAndCreate( line1, 1 );
}
}
...
...
modules/gui/qt4/dialogs/toolbar.hpp
View file @
d6a66f89
...
@@ -70,7 +70,7 @@ class DroppingController: public AbstractController
...
@@ -70,7 +70,7 @@ class DroppingController: public AbstractController
{
{
Q_OBJECT
;
Q_OBJECT
;
public:
public:
DroppingController
(
intf_thread_t
*
);
DroppingController
(
intf_thread_t
*
,
QString
line
,
QWidget
*
parent
=
0
);
protected:
protected:
virtual
void
createAndAddWidget
(
QBoxLayout
*
controlLayout
,
int
i_index
,
virtual
void
createAndAddWidget
(
QBoxLayout
*
controlLayout
,
int
i_index
,
...
...
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