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
a2dbfd13
Commit
a2dbfd13
authored
Jun 08, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some general clean up
parent
183dd67e
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
151 additions
and
61 deletions
+151
-61
modules/gui/qt4/Modules.am
modules/gui/qt4/Modules.am
+1
-1
modules/gui/qt4/dialogs/prefs_dialog.cpp
modules/gui/qt4/dialogs/prefs_dialog.cpp
+7
-8
modules/gui/qt4/dialogs/streaminfo.cpp
modules/gui/qt4/dialogs/streaminfo.cpp
+6
-15
modules/gui/qt4/dialogs/streaminfo.hpp
modules/gui/qt4/dialogs/streaminfo.hpp
+1
-7
modules/gui/qt4/dialogs_provider.hpp
modules/gui/qt4/dialogs_provider.hpp
+0
-2
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+2
-2
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+11
-17
modules/gui/qt4/main_interface.hpp
modules/gui/qt4/main_interface.hpp
+0
-1
modules/gui/qt4/qt4.cpp
modules/gui/qt4/qt4.cpp
+0
-1
modules/gui/qt4/ui/main_interface.ui
modules/gui/qt4/ui/main_interface.ui
+117
-0
modules/gui/qt4/util/input_slider.cpp
modules/gui/qt4/util/input_slider.cpp
+6
-7
No files found.
modules/gui/qt4/Modules.am
View file @
a2dbfd13
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
AUTOMAKE_OPTIONS
=
subdir-objects
AUTOMAKE_OPTIONS
=
subdir-objects
TOUI
=
ui/input_stats
TOUI
=
ui/input_stats
ui/main_interface
UIH
=
$(TOUI:%=%.h)
UIH
=
$(TOUI:%=%.h)
TOMOC
=
main_interface
\
TOMOC
=
main_interface
\
...
...
modules/gui/qt4/dialogs/prefs_dialog.cpp
View file @
a2dbfd13
...
@@ -69,12 +69,12 @@ PrefsDialog::PrefsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
...
@@ -69,12 +69,12 @@ PrefsDialog::PrefsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
setAll
();
setAll
();
QObject
::
connect
(
adv_chk
,
SIGNAL
(
toggled
(
bool
)
),
this
,
connect
(
adv_chk
,
SIGNAL
(
toggled
(
bool
)
)
,
SLOT
(
setAdvanced
(
bool
)
)
);
this
,
SLOT
(
setAdvanced
(
bool
)
)
);
setLayout
(
main_layout
);
setLayout
(
main_layout
);
QObject
::
connect
(
small
,
SIGNAL
(
clicked
()
),
this
,
SLOT
(
setSmall
())
);
connect
(
small
,
SIGNAL
(
clicked
()
),
this
,
SLOT
(
setSmall
())
);
QObject
::
connect
(
all
,
SIGNAL
(
clicked
()
),
this
,
SLOT
(
setAll
())
);
connect
(
all
,
SIGNAL
(
clicked
()
),
this
,
SLOT
(
setAll
())
);
}
}
void
PrefsDialog
::
setAdvanced
(
bool
advanced
)
void
PrefsDialog
::
setAdvanced
(
bool
advanced
)
...
@@ -92,10 +92,9 @@ void PrefsDialog::setAll()
...
@@ -92,10 +92,9 @@ void PrefsDialog::setAll()
if
(
!
advanced_tree
)
if
(
!
advanced_tree
)
{
{
advanced_tree
=
new
PrefsTree
(
p_intf
,
this
);
advanced_tree
=
new
PrefsTree
(
p_intf
,
this
);
QObject
::
connect
(
advanced_tree
,
connect
(
advanced_tree
,
SIGNAL
(
currentItemChanged
(
QTreeWidgetItem
*
,
SIGNAL
(
currentItemChanged
(
QTreeWidgetItem
*
,
QTreeWidgetItem
*
)
),
QTreeWidgetItem
*
)
),
this
,
this
,
SLOT
(
changePanel
(
QTreeWidgetItem
*
)
)
);
SLOT
(
changePanel
(
QTreeWidgetItem
*
)
)
);
}
}
advanced_tree
->
show
();
advanced_tree
->
show
();
setAdvanced
(
adv_chk
->
isChecked
()
);
setAdvanced
(
adv_chk
->
isChecked
()
);
...
...
modules/gui/qt4/dialogs/streaminfo.cpp
View file @
a2dbfd13
...
@@ -26,24 +26,15 @@
...
@@ -26,24 +26,15 @@
#include "components/infopanels.hpp"
#include "components/infopanels.hpp"
#include "qt4.hpp"
#include "qt4.hpp"
StreamInfoDialog
*
StreamInfoDialog
::
instance
=
NULL
;
StreamInfoDialog
*
StreamInfoDialog
::
instance
=
NULL
;
StreamInfoDialog
::
StreamInfoDialog
(
intf_thread_t
*
_p_intf
)
:
QVLCFrame
(
p_intf
)
StreamInfoDialog
::
StreamInfoDialog
(
intf_thread_t
*
_p_intf
)
:
{
QVLCFrame
(
p_intf
)
setWindowTitle
(
_
(
"Stream information"
)
);
// InputStatsPanel *ISP = new InputStatsPanel( this, p_intf );
fprintf
(
stderr
,
"CONNECTING
\n
"
);
fprintf
(
stderr
,
"Done
\n
"
);
}
void
StreamInfoDialog
::
init
()
{
{
QObject
::
connect
(
DialogsProvider
::
getInstance
(
NULL
)
->
fixed_timer
,
setWindowTitle
(
_
(
"Stream information"
)
);
SIGNAL
(
timeout
()
),
this
,
SLOT
(
update
()
)
);
InputStatsPanel
*
ISP
=
new
InputStatsPanel
(
this
,
p_intf
);
connect
(
DialogsProvider
::
getInstance
(
NULL
)
->
fixed_timer
,
SIGNAL
(
timeout
()
),
this
,
SLOT
(
update
()
)
);
}
}
void
StreamInfoDialog
::
update
()
void
StreamInfoDialog
::
update
()
...
...
modules/gui/qt4/dialogs/streaminfo.hpp
View file @
a2dbfd13
...
@@ -32,22 +32,16 @@ public:
...
@@ -32,22 +32,16 @@ public:
static
StreamInfoDialog
*
getInstance
(
intf_thread_t
*
p_intf
)
static
StreamInfoDialog
*
getInstance
(
intf_thread_t
*
p_intf
)
{
{
if
(
!
instance
)
if
(
!
instance
)
{
instance
=
new
StreamInfoDialog
(
p_intf
);
instance
=
new
StreamInfoDialog
(
p_intf
);
instance
->
init
();
}
return
instance
;
return
instance
;
}
}
virtual
~
StreamInfoDialog
();
virtual
~
StreamInfoDialog
();
private:
private:
StreamInfoDialog
(
intf_thread_t
*
);
StreamInfoDialog
(
intf_thread_t
*
);
void
init
();
intf_thread_t
*
p_intf
;
intf_thread_t
*
p_intf
;
static
StreamInfoDialog
*
instance
;
static
StreamInfoDialog
*
instance
;
public
slots
:
public
slots
:
void
update
();
void
update
();
};
};
#endif
#endif
modules/gui/qt4/dialogs_provider.hpp
View file @
a2dbfd13
...
@@ -41,8 +41,6 @@ public:
...
@@ -41,8 +41,6 @@ public:
return
instance
;
return
instance
;
}
}
virtual
~
DialogsProvider
();
virtual
~
DialogsProvider
();
void
init
();
QTimer
*
idle_timer
;
QTimer
*
idle_timer
;
QTimer
*
fixed_timer
;
QTimer
*
fixed_timer
;
protected:
protected:
...
...
modules/gui/qt4/input_manager.cpp
View file @
a2dbfd13
...
@@ -30,8 +30,8 @@ InputManager::InputManager( QObject *parent, intf_thread_t *_p_intf) :
...
@@ -30,8 +30,8 @@ InputManager::InputManager( QObject *parent, intf_thread_t *_p_intf) :
{
{
p_input
=
NULL
;
p_input
=
NULL
;
/* Subscribe to updates */
/* Subscribe to updates */
QObject
::
connect
(
DialogsProvider
::
getInstance
(
p_intf
)
->
fixed_timer
,
connect
(
DialogsProvider
::
getInstance
(
p_intf
)
->
fixed_timer
,
SIGNAL
(
timeout
()
),
this
,
SLOT
(
update
()
)
);
SIGNAL
(
timeout
()
),
this
,
SLOT
(
update
()
)
);
}
}
InputManager
::~
InputManager
()
InputManager
::~
InputManager
()
...
...
modules/gui/qt4/main_interface.cpp
View file @
a2dbfd13
...
@@ -37,28 +37,22 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
...
@@ -37,28 +37,22 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
p_input
=
NULL
;
p_input
=
NULL
;
main_input_manager
=
new
InputManager
(
this
,
p_intf
);
main_input_manager
=
new
InputManager
(
this
,
p_intf
);
QPushButton
*
button
=
new
QPushButton
(
"prefs"
,
this
);
// QPushButton *button = new QPushButton( "prefs", this );
// connect( button, SIGNAL( clicked() ),
// DialogsProvider::getInstance(p_intf), SLOT( prefsDialog() ) );
QObject
::
connect
(
button
,
SIGNAL
(
clicked
()
),
DialogsProvider
::
getInstance
(
p_intf
),
SLOT
(
prefsDialog
()
)
);
}
void
MainInterface
::
init
()
{
/* Get timer updates */
/* Get timer updates */
QObject
::
connect
(
DialogsProvider
::
getInstance
(
NULL
)
->
fixed_timer
,
connect
(
DialogsProvider
::
getInstance
(
NULL
)
->
fixed_timer
,
SIGNAL
(
timeout
()
),
this
,
SLOT
(
updateOnTimer
()
)
);
SIGNAL
(
timeout
()
),
this
,
SLOT
(
updateOnTimer
()
)
);
/* Tell input manager about the input changes */
/* Tell input manager about the input changes */
QObject
::
connect
(
this
,
SIGNAL
(
inputChanged
(
input_thread_t
*
)
),
connect
(
this
,
SIGNAL
(
inputChanged
(
input_thread_t
*
)
),
main_input_manager
,
SLOT
(
setInput
(
input_thread_t
*
)
)
);
main_input_manager
,
SLOT
(
setInput
(
input_thread_t
*
)
)
);
/* Connect the slider and the input manager (both ways) */
/* Connect the slider and the input manager (both ways) */
QObject
::
connect
(
main_input_manager
,
SIGNAL
(
positionUpdated
(
connect
(
main_input_manager
,
SIGNAL
(
positionUpdated
(
float
,
int
,
int
)
),
float
,
int
,
int
)
),
slider
,
SLOT
(
setPosition
(
float
,
int
,
slider
,
SLOT
(
setPosition
(
float
,
int
,
int
)
)
);
int
)
)
);
connect
(
slider
,
SIGNAL
(
sliderDragged
(
float
)
),
QObject
::
connect
(
slider
,
SIGNAL
(
sliderDragged
(
float
)
),
main_input_manager
,
SLOT
(
sliderUpdate
(
float
)
)
);
main_input_manager
,
SLOT
(
sliderUpdate
(
float
)
)
);
/* Connect the display and the input manager */
/* Connect the display and the input manager */
}
}
...
...
modules/gui/qt4/main_interface.hpp
View file @
a2dbfd13
...
@@ -36,7 +36,6 @@ class MainInterface : public QVLCFrame
...
@@ -36,7 +36,6 @@ class MainInterface : public QVLCFrame
public:
public:
MainInterface
(
intf_thread_t
*
);
MainInterface
(
intf_thread_t
*
);
virtual
~
MainInterface
();
virtual
~
MainInterface
();
void
init
();
protected:
protected:
void
closeEvent
(
QCloseEvent
*
);
void
closeEvent
(
QCloseEvent
*
);
private:
private:
...
...
modules/gui/qt4/qt4.cpp
View file @
a2dbfd13
...
@@ -124,7 +124,6 @@ static void Init( intf_thread_t *p_intf )
...
@@ -124,7 +124,6 @@ static void Init( intf_thread_t *p_intf )
{
{
MainInterface
*
p_mi
=
new
MainInterface
(
p_intf
);
MainInterface
*
p_mi
=
new
MainInterface
(
p_intf
);
p_intf
->
p_sys
->
p_mi
=
p_mi
;
p_intf
->
p_sys
->
p_mi
=
p_mi
;
p_mi
->
init
();
p_mi
->
show
();
p_mi
->
show
();
}
}
...
...
modules/gui/qt4/ui/main_interface.ui
0 → 100644
View file @
a2dbfd13
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>MainInterfaceUI</class>
<widget class="QWidget" name="MainInterfaceUI" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>560</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle" >
<string>Form</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QFrame" name="sliderFrame" />
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QFrame" name="volumeFrame" />
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QPushButton" name="prevButton" >
<property name="text" >
<string>Prev</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="playButton_2" >
<property name="text" >
<string>Play</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="stopButton" >
<property name="text" >
<string>Stop</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="nextButton" >
<property name="text" >
<string>Next</string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="playlistButton" >
<property name="text" >
<string>Playlist</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<pixmapfunction></pixmapfunction>
<resources/>
<connections/>
</ui>
modules/gui/qt4/util/input_slider.cpp
View file @
a2dbfd13
...
@@ -37,22 +37,21 @@ InputSlider::InputSlider( Qt::Orientation q,QWidget *_parent ) :
...
@@ -37,22 +37,21 @@ InputSlider::InputSlider( Qt::Orientation q,QWidget *_parent ) :
setSingleStep
(
2
);
setSingleStep
(
2
);
setPageStep
(
1000
);
setPageStep
(
1000
);
setTracking
(
true
);
setTracking
(
true
);
QObject
::
connect
(
this
,
SIGNAL
(
valueChanged
(
int
)
),
this
,
connect
(
this
,
SIGNAL
(
valueChanged
(
int
)
),
this
,
SLOT
(
userDrag
(
int
)
)
);
SLOT
(
userDrag
(
int
)
)
);
}
}
void
InputSlider
::
setPosition
(
float
pos
,
int
a
,
int
b
)
void
InputSlider
::
setPosition
(
float
pos
,
int
a
,
int
b
)
{
{
if
(
pos
==
0.0
)
if
(
pos
==
0.0
)
{
{
setEnabled
(
false
);
setEnabled
(
false
);
}
}
else
else
{
{
setEnabled
(
true
);
setEnabled
(
true
);
mymove
=
true
;
mymove
=
true
;
setValue
(
(
int
)(
pos
*
1000.0
)
);
setValue
(
(
int
)(
pos
*
1000.0
)
);
mymove
=
false
;
mymove
=
false
;
}
}
}
}
...
...
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