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
099d9779
Commit
099d9779
authored
Dec 08, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - FIXME and comments fix. If you want to help, just grep -r FIXME *
parent
dd735eba
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
34 additions
and
43 deletions
+34
-43
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+4
-6
modules/gui/qt4/components/open_panels.cpp
modules/gui/qt4/components/open_panels.cpp
+2
-2
modules/gui/qt4/dialogs/mediainfo.cpp
modules/gui/qt4/dialogs/mediainfo.cpp
+1
-1
modules/gui/qt4/dialogs/open.cpp
modules/gui/qt4/dialogs/open.cpp
+1
-10
modules/gui/qt4/dialogs/preferences.cpp
modules/gui/qt4/dialogs/preferences.cpp
+9
-5
modules/gui/qt4/dialogs/sout.cpp
modules/gui/qt4/dialogs/sout.cpp
+1
-0
modules/gui/qt4/dialogs_provider.cpp
modules/gui/qt4/dialogs_provider.cpp
+1
-1
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+1
-1
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+11
-12
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+1
-3
modules/gui/qt4/menus.hpp
modules/gui/qt4/menus.hpp
+2
-2
No files found.
modules/gui/qt4/components/interface_widgets.cpp
View file @
099d9779
...
@@ -256,14 +256,12 @@ AdvControlsWidget::AdvControlsWidget( intf_thread_t *_p_i ) :
...
@@ -256,14 +256,12 @@ AdvControlsWidget::AdvControlsWidget( intf_thread_t *_p_i ) :
CONNECT
(
THEMIM
->
getIM
(),
positionUpdated
(
float
,
int
,
int
),
CONNECT
(
THEMIM
->
getIM
(),
positionUpdated
(
float
,
int
,
int
),
this
,
AtoBLoop
(
float
,
int
,
int
)
);
this
,
AtoBLoop
(
float
,
int
,
int
)
);
//FIXME Frame by frame function
frameButton
=
new
QPushButton
(
"Fr"
);
frameButton
=
new
QPushButton
(
"Fr"
);
frameButton
->
setMaximumSize
(
QSize
(
26
,
26
)
);
frameButton
->
setMaximumSize
(
QSize
(
26
,
26
)
);
frameButton
->
setIconSize
(
QSize
(
20
,
20
)
);
frameButton
->
setIconSize
(
QSize
(
20
,
20
)
);
advLayout
->
addWidget
(
frameButton
);
advLayout
->
addWidget
(
frameButton
);
BUTTON_SET_ACT
(
frameButton
,
"Fr"
,
qtr
(
"Frame by Frame"
),
frame
()
);
BUTTON_SET_ACT
(
frameButton
,
"Fr"
,
qtr
(
"Frame by Frame"
),
frame
()
);
/* FIXME Record function */
recordButton
=
new
QPushButton
(
"R"
);
recordButton
=
new
QPushButton
(
"R"
);
recordButton
->
setMaximumSize
(
QSize
(
26
,
26
)
);
recordButton
->
setMaximumSize
(
QSize
(
26
,
26
)
);
recordButton
->
setIconSize
(
QSize
(
20
,
20
)
);
recordButton
->
setIconSize
(
QSize
(
20
,
20
)
);
...
@@ -332,7 +330,10 @@ void AdvControlsWidget::AtoBLoop( float f_pos, int i_time, int i_length )
...
@@ -332,7 +330,10 @@ void AdvControlsWidget::AtoBLoop( float f_pos, int i_time, int i_length )
}
}
}
}
/* FIXME Record function */
void
AdvControlsWidget
::
record
(){}
void
AdvControlsWidget
::
record
(){}
//FIXME Frame by frame function
void
AdvControlsWidget
::
frame
(){}
void
AdvControlsWidget
::
frame
(){}
/*****************************
/*****************************
...
@@ -478,8 +479,6 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
...
@@ -478,8 +479,6 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
/*
/*
* Other first Line buttons
* Other first Line buttons
* Might need to be inside a frame to avoid a few resizing pb
* FIXME
*/
*/
/** Fullscreen/Visualisation **/
/** Fullscreen/Visualisation **/
fullscreenButton
=
new
QPushButton
(
"F"
);
fullscreenButton
=
new
QPushButton
(
"F"
);
...
@@ -708,8 +707,7 @@ void ControlsWidget::toggleAdvanced()
...
@@ -708,8 +707,7 @@ void ControlsWidget::toggleAdvanced()
advControls
->
hide
();
advControls
->
hide
();
b_advancedVisible
=
false
;
b_advancedVisible
=
false
;
}
}
//FIXME connect this one :D
emit
advancedControlsToggled
(
b_advancedVisible
);
emit
advancedControlsToggled
(
b_advancedVisible
);
// doComponentsUpdate();
}
}
...
...
modules/gui/qt4/components/open_panels.cpp
View file @
099d9779
...
@@ -143,7 +143,7 @@ FileOpenPanel::~FileOpenPanel(){}
...
@@ -143,7 +143,7 @@ FileOpenPanel::~FileOpenPanel(){}
/* Show a fileBrowser to select a subtitle */
/* Show a fileBrowser to select a subtitle */
void
FileOpenPanel
::
browseFileSub
()
void
FileOpenPanel
::
browseFileSub
()
{
{
//
FIXME
Handle selection of more than one subtitles file
//
TODO
Handle selection of more than one subtitles file
QStringList
files
=
THEDP
->
showSimpleOpen
(
qtr
(
"Open subtitles file"
),
QStringList
files
=
THEDP
->
showSimpleOpen
(
qtr
(
"Open subtitles file"
),
EXT_FILTER_SUBTITLE
,
EXT_FILTER_SUBTITLE
,
dialogBox
->
directory
().
absolutePath
()
);
dialogBox
->
directory
().
absolutePath
()
);
...
@@ -340,7 +340,7 @@ void DiscOpenPanel::updateMRL()
...
@@ -340,7 +340,7 @@ void DiscOpenPanel::updateMRL()
{
{
QString
mrl
=
""
;
QString
mrl
=
""
;
/* CDDAX and VCDX not implemented.
FIXME
? */
/* CDDAX and VCDX not implemented.
TODO
? */
/* DVD */
/* DVD */
if
(
ui
.
dvdRadioButton
->
isChecked
()
)
{
if
(
ui
.
dvdRadioButton
->
isChecked
()
)
{
if
(
!
ui
.
dvdsimple
->
isChecked
()
)
if
(
!
ui
.
dvdsimple
->
isChecked
()
)
...
...
modules/gui/qt4/dialogs/mediainfo.cpp
View file @
099d9779
...
@@ -65,7 +65,7 @@ MediaInfoDialog::MediaInfoDialog( intf_thread_t *_p_intf,
...
@@ -65,7 +65,7 @@ MediaInfoDialog::MediaInfoDialog( intf_thread_t *_p_intf,
QGridLayout
*
layout
=
new
QGridLayout
(
this
);
QGridLayout
*
layout
=
new
QGridLayout
(
this
);
/*
FIXME GNOME/KDE ?
*/
/*
No need to use a QDialogButtonBox here
*/
saveMetaButton
=
new
QPushButton
(
qtr
(
"&Save Metadata"
)
);
saveMetaButton
=
new
QPushButton
(
qtr
(
"&Save Metadata"
)
);
saveMetaButton
->
hide
();
saveMetaButton
->
hide
();
QPushButton
*
closeButton
=
new
QPushButton
(
qtr
(
"&Close"
)
);
QPushButton
*
closeButton
=
new
QPushButton
(
qtr
(
"&Close"
)
);
...
...
modules/gui/qt4/dialogs/open.cpp
View file @
099d9779
...
@@ -202,7 +202,6 @@ void OpenDialog::toggleAdvancedPanel()
...
@@ -202,7 +202,6 @@ void OpenDialog::toggleAdvancedPanel()
/***********
/***********
* Actions *
* Actions *
***********/
***********/
/* If Cancel is pressed or escaped */
/* If Cancel is pressed or escaped */
void
OpenDialog
::
cancel
()
void
OpenDialog
::
cancel
()
{
{
...
@@ -215,15 +214,7 @@ void OpenDialog::cancel()
...
@@ -215,15 +214,7 @@ void OpenDialog::cancel()
/* If EnterKey is pressed */
/* If EnterKey is pressed */
void
OpenDialog
::
close
()
void
OpenDialog
::
close
()
{
{
/* FIXME */
selectSlots
();
if
(
!
i_action_flag
)
{
play
();
}
else
{
stream
();
}
}
}
/* Play button */
/* Play button */
...
...
modules/gui/qt4/dialogs/preferences.cpp
View file @
099d9779
...
@@ -176,7 +176,8 @@ void PrefsDialog::setSmall()
...
@@ -176,7 +176,8 @@ void PrefsDialog::setSmall()
if
(
!
current_simple_panel
)
if
(
!
current_simple_panel
)
{
{
current_simple_panel
=
new
SPrefsPanel
(
p_intf
,
main_panel
,
SPrefsDefaultCat
);
current_simple_panel
=
new
SPrefsPanel
(
p_intf
,
main_panel
,
SPrefsDefaultCat
);
simple_panels
[
SPrefsDefaultCat
]
=
current_simple_panel
;
simple_panels
[
SPrefsDefaultCat
]
=
current_simple_panel
;
main_panel_l
->
addWidget
(
current_simple_panel
);
main_panel_l
->
addWidget
(
current_simple_panel
);
}
}
...
@@ -320,11 +321,14 @@ void PrefsDialog::cancel()
...
@@ -320,11 +321,14 @@ void PrefsDialog::cancel()
/* Reset all the preferences, when you click the button */
/* Reset all the preferences, when you click the button */
void
PrefsDialog
::
reset
()
void
PrefsDialog
::
reset
()
{
{
int
ret
=
QMessageBox
::
question
(
this
,
qtr
(
"Reset Preferences"
),
int
ret
=
QMessageBox
::
question
(
this
,
qtr
(
"Reset Preferences"
),
qtr
(
"This will reset your VLC media player preferences.
\n
"
qtr
(
"This will reset your VLC media player preferences.
\n
"
"Are you sure you want to continue?"
),
"Are you sure you want to continue?"
),
QMessageBox
::
Ok
|
QMessageBox
::
Cancel
,
QMessageBox
::
Ok
|
QMessageBox
::
Cancel
,
QMessageBox
::
Ok
);
QMessageBox
::
Ok
);
if
(
ret
==
QMessageBox
::
Ok
)
if
(
ret
==
QMessageBox
::
Ok
)
{
{
config_ResetAll
(
p_intf
);
config_ResetAll
(
p_intf
);
...
...
modules/gui/qt4/dialogs/sout.cpp
View file @
099d9779
...
@@ -207,6 +207,7 @@ void SoutDialog::setOptions()
...
@@ -207,6 +207,7 @@ void SoutDialog::setOptions()
}
}
/* ADD HERE the profiles you want and need */
/* ADD HERE the profiles you want and need */
/* FIXME */
if
(
profileString
==
"IPod"
)
setProfile
(
MP4
,
true
,
"mp4a"
,
true
,
"mp4v"
)
if
(
profileString
==
"IPod"
)
setProfile
(
MP4
,
true
,
"mp4a"
,
true
,
"mp4v"
)
else
if
(
profileString
==
"XBox"
)
setProfile
(
ASF
,
true
,
"wma"
,
true
,
"WMV2"
)
else
if
(
profileString
==
"XBox"
)
setProfile
(
ASF
,
true
,
"wma"
,
true
,
"WMV2"
)
...
...
modules/gui/qt4/dialogs_provider.cpp
View file @
099d9779
...
@@ -194,7 +194,7 @@ void DialogsProvider::mediaCodecDialog()
...
@@ -194,7 +194,7 @@ void DialogsProvider::mediaCodecDialog()
void
DialogsProvider
::
bookmarksDialog
()
void
DialogsProvider
::
bookmarksDialog
()
{
{
/*
FIXME
- Implement me */
/*
TODO
- Implement me */
/* BookmarkDialog::getInstance( p_intf )->toggleVisible(); */
/* BookmarkDialog::getInstance( p_intf )->toggleVisible(); */
}
}
...
...
modules/gui/qt4/input_manager.cpp
View file @
099d9779
...
@@ -79,7 +79,7 @@ void InputManager::delInput()
...
@@ -79,7 +79,7 @@ void InputManager::delInput()
}
}
}
}
//
FIXME
break that
//
TODO
break that
void
InputManager
::
update
()
void
InputManager
::
update
()
{
{
/// \todo Emit the signals only if it changed
/// \todo Emit the signals only if it changed
...
...
modules/gui/qt4/main_interface.cpp
View file @
099d9779
...
@@ -132,7 +132,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
...
@@ -132,7 +132,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
alwaysVideoFlag
=
true
;
alwaysVideoFlag
=
true
;
/* Set the other interface settings */
/* Set the other interface settings */
//
FIXME
I don't like that code
//
TODO:
I don't like that code
visualSelectorEnabled
=
settings
->
value
(
"visual-selector"
,
false
).
toBool
();
visualSelectorEnabled
=
settings
->
value
(
"visual-selector"
,
false
).
toBool
();
notificationEnabled
=
config_GetInt
(
p_intf
,
"qt-notification"
)
notificationEnabled
=
config_GetInt
(
p_intf
,
"qt-notification"
)
?
true
:
false
;
?
true
:
false
;
...
@@ -282,8 +282,8 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
...
@@ -282,8 +282,8 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
CONNECT
(
this
,
askReleaseVideo
(
void
*
),
this
,
releaseVideoSlot
(
void
*
)
);
CONNECT
(
this
,
askReleaseVideo
(
void
*
),
this
,
releaseVideoSlot
(
void
*
)
);
CONNECT
(
dockPL
,
topLevelChanged
(
bool
),
this
,
doComponentsUpdate
()
);
CONNECT
(
dockPL
,
topLevelChanged
(
bool
),
this
,
doComponentsUpdate
()
);
// DEBUG FIXME
CONNECT
(
controls
,
advancedControlsToggled
(
bool
),
hide
(
);
this
,
doComponentsUpdate
()
);
updateGeometry
();
updateGeometry
();
settings
->
endGroup
();
settings
->
endGroup
();
...
@@ -297,7 +297,8 @@ MainInterface::~MainInterface()
...
@@ -297,7 +297,8 @@ MainInterface::~MainInterface()
settings
->
beginGroup
(
"MainWindow"
);
settings
->
beginGroup
(
"MainWindow"
);
settings
->
setValue
(
"playlist-floats"
,
dockPL
->
isFloating
()
);
settings
->
setValue
(
"playlist-floats"
,
dockPL
->
isFloating
()
);
settings
->
setValue
(
"adv-controls"
,
getControlsVisibilityStatus
()
&
CONTROLS_ADVANCED
);
settings
->
setValue
(
"adv-controls"
,
getControlsVisibilityStatus
()
&
CONTROLS_ADVANCED
);
settings
->
setValue
(
"pos"
,
pos
()
);
settings
->
setValue
(
"pos"
,
pos
()
);
settings
->
endGroup
();
settings
->
endGroup
();
...
@@ -487,7 +488,7 @@ void MainInterface::debug()
...
@@ -487,7 +488,7 @@ void MainInterface::debug()
the skins.
the skins.
Maybe the other solution is to redefine the sizeHint() of the playlist and
Maybe the other solution is to redefine the sizeHint() of the playlist and
ask _parent->isFloating()...
ask _parent->isFloating()...
If you think this would be better, please FIX it...
If you think this would be better, please FIX
ME
it...
*/
*/
QSize
MainInterface
::
sizeHint
()
const
QSize
MainInterface
::
sizeHint
()
const
{
{
...
@@ -519,7 +520,6 @@ void MainInterface::resizeEvent( QResizeEvent *e )
...
@@ -519,7 +520,6 @@ void MainInterface::resizeEvent( QResizeEvent *e )
}
}
if( VISIBLE( playlistWidget ) )
if( VISIBLE( playlistWidget ) )
{
{
//FIXME
// SET_WH( playlistWidget , e->size().width() - addSize.width(),
// SET_WH( playlistWidget , e->size().width() - addSize.width(),
// e->size().height() - addSize.height() );
// e->size().height() - addSize.height() );
playlistWidget->updateGeometry();
playlistWidget->updateGeometry();
...
@@ -796,15 +796,14 @@ void MainInterface::setRate( int rate )
...
@@ -796,15 +796,14 @@ void MainInterface::setRate( int rate )
speedControl
->
updateControls
(
rate
);
speedControl
->
updateControls
(
rate
);
}
}
//FIXME Remove this function at the end...
void
MainInterface
::
updateOnTimer
()
void
MainInterface
::
updateOnTimer
()
{
{
/* if( intf_ShouldDie( p_intf ) )
#if 0
if( intf_ShouldDie( p_intf ) )
{
{
QApplication::closeAllWindows();
QApplication::closeAllWindows();
QApplication::quit();
QApplication::quit();
}*/
}
#if 0
if( need_components_update )
if( need_components_update )
{
{
doComponentsUpdate();
doComponentsUpdate();
...
...
modules/gui/qt4/menus.cpp
View file @
099d9779
...
@@ -268,7 +268,6 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf,
...
@@ -268,7 +268,6 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf,
/* Minimal View */
/* Minimal View */
QAction
*
action
=
menu
->
addAction
(
qtr
(
"Minimal View..."
),
mi
,
QAction
*
action
=
menu
->
addAction
(
qtr
(
"Minimal View..."
),
mi
,
SLOT
(
toggleMinimalView
()
),
qtr
(
"Ctrl+H"
)
);
SLOT
(
toggleMinimalView
()
),
qtr
(
"Ctrl+H"
)
);
//FIXME: remove useless thing. But keep it until the release, pls.
action
->
setCheckable
(
true
);
action
->
setCheckable
(
true
);
if
(
mi
->
getControlsVisibilityStatus
()
&
CONTROLS_VISIBLE
)
if
(
mi
->
getControlsVisibilityStatus
()
&
CONTROLS_VISIBLE
)
action
->
setChecked
(
true
);
action
->
setChecked
(
true
);
...
@@ -399,7 +398,6 @@ QMenu *QVLCMenu::NavigMenu( intf_thread_t *p_intf, QMenu *navMenu )
...
@@ -399,7 +398,6 @@ QMenu *QVLCMenu::NavigMenu( intf_thread_t *p_intf, QMenu *navMenu )
vector
<
int
>
objects
;
vector
<
int
>
objects
;
vector
<
const
char
*>
varnames
;
vector
<
const
char
*>
varnames
;
/* FIXME */
p_object
=
(
vlc_object_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_INPUT
,
p_object
=
(
vlc_object_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_INPUT
,
FIND_ANYWHERE
);
FIND_ANYWHERE
);
if
(
p_object
!=
NULL
)
if
(
p_object
!=
NULL
)
...
...
modules/gui/qt4/menus.hpp
View file @
099d9779
...
@@ -91,8 +91,8 @@ public:
...
@@ -91,8 +91,8 @@ public:
static
void
MiscPopupMenu
(
intf_thread_t
*
);
static
void
MiscPopupMenu
(
intf_thread_t
*
);
static
void
PopupMenu
(
intf_thread_t
*
,
bool
);
static
void
PopupMenu
(
intf_thread_t
*
,
bool
);
static
void
PopupMenuStaticEntries
(
intf_thread_t
*
p_intf
,
QMenu
*
menu
);
static
void
PopupMenuStaticEntries
(
intf_thread_t
*
p_intf
,
QMenu
*
menu
);
static
void
PopupMenuControlEntries
(
QMenu
*
menu
,
intf_thread_t
*
p_intf
,
static
void
PopupMenuControlEntries
(
QMenu
*
menu
,
intf_thread_t
*
p_intf
,
input_thread_t
*
p_input
);
input_thread_t
*
p_input
);
/* Systray */
/* Systray */
static
void
updateSystrayMenu
(
MainInterface
*
,
intf_thread_t
*
,
static
void
updateSystrayMenu
(
MainInterface
*
,
intf_thread_t
*
,
bool
b_force_visible
=
false
);
bool
b_force_visible
=
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