Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
juk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
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
David Planella
juk
Commits
b42828e3
Commit
b42828e3
authored
Mar 13, 2006
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adapt to new kdelis api
svn path=/trunk/KDE/kdemultimedia/juk/; revision=518198
parent
26cfeea7
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
88 additions
and
88 deletions
+88
-88
coverdialog.cpp
coverdialog.cpp
+6
-6
coverdialogbase.ui
coverdialogbase.ui
+1
-1
covericonview.cpp
covericonview.cpp
+3
-3
covericonview.h
covericonview.h
+4
-4
directorylist.cpp
directorylist.cpp
+3
-3
directorylistbase.ui
directorylistbase.ui
+1
-1
filerenamer.cpp
filerenamer.cpp
+4
-4
googlefetcherdialog.cpp
googlefetcherdialog.cpp
+2
-2
googlefetcherdialog.h
googlefetcherdialog.h
+3
-3
playlist.cpp
playlist.cpp
+18
-18
playlist.h
playlist.h
+3
-3
playlistbox.cpp
playlistbox.cpp
+10
-10
playlistbox.h
playlistbox.h
+5
-5
playlistitem.cpp
playlistitem.cpp
+9
-9
playlistitem.h
playlistitem.h
+4
-4
playlistsplitter.cpp
playlistsplitter.cpp
+1
-1
tagguesserconfigdlg.cpp
tagguesserconfigdlg.cpp
+3
-3
tagguesserconfigdlgwidget.ui
tagguesserconfigdlgwidget.ui
+1
-1
trackpickerdialog.cpp
trackpickerdialog.cpp
+4
-4
trackpickerdialogbase.ui
trackpickerdialogbase.ui
+1
-1
viewmode.cpp
viewmode.cpp
+1
-1
viewmode.h
viewmode.h
+1
-1
No files found.
coverdialog.cpp
View file @
b42828e3
...
...
@@ -13,8 +13,8 @@
* *
***************************************************************************/
#include <klistview.h>
#include <kiconview.h>
#include <k
3
listview.h>
#include <k
3
iconview.h>
#include <kiconviewsearchline.h>
#include <kiconloader.h>
#include <kapplication.h>
...
...
@@ -33,11 +33,11 @@
using
CoverUtility
::
CoverIconViewItem
;
class
AllArtistsListViewItem
:
public
KListViewItem
class
AllArtistsListViewItem
:
public
K
3
ListViewItem
{
public:
AllArtistsListViewItem
(
Q3ListView
*
parent
)
:
KListViewItem
(
parent
,
i18n
(
"<All Artists>"
))
K
3
ListViewItem
(
parent
,
i18n
(
"<All Artists>"
))
{
}
...
...
@@ -47,11 +47,11 @@ public:
}
};
class
CaseInsensitiveItem
:
public
KListViewItem
class
CaseInsensitiveItem
:
public
K
3
ListViewItem
{
public:
CaseInsensitiveItem
(
Q3ListView
*
parent
,
const
QString
&
text
)
:
KListViewItem
(
parent
,
text
)
K
3
ListViewItem
(
parent
,
text
)
{
}
...
...
coverdialogbase.ui
View file @
b42828e3
...
...
@@ -19,7 +19,7 @@
<property
name=
"name"
>
<cstring>
unnamed
</cstring>
</property>
<widget
class=
"KListView"
>
<widget
class=
"K
3
ListView"
>
<column>
<property
name=
"text"
>
<string>
Artist
</string>
...
...
covericonview.cpp
View file @
b42828e3
...
...
@@ -19,21 +19,21 @@
using
CoverUtility
::
CoverIconViewItem
;
CoverIconViewItem
::
CoverIconViewItem
(
coverKey
id
,
Q3IconView
*
parent
)
:
KIconViewItem
(
parent
),
m_id
(
id
)
K
3
IconViewItem
(
parent
),
m_id
(
id
)
{
CoverDataPtr
data
=
CoverManager
::
coverInfo
(
id
);
setText
(
QString
(
"%1 - %2"
).
arg
(
data
->
artist
,
data
->
album
));
setPixmap
(
data
->
thumbnail
());
}
CoverIconView
::
CoverIconView
(
QWidget
*
parent
,
const
char
*
name
)
:
KIconView
(
parent
,
name
)
CoverIconView
::
CoverIconView
(
QWidget
*
parent
,
const
char
*
name
)
:
K
3
IconView
(
parent
,
name
)
{
setResizeMode
(
Adjust
);
}
CoverIconViewItem
*
CoverIconView
::
currentItem
()
const
{
return
static_cast
<
CoverIconViewItem
*>
(
KIconView
::
currentItem
());
return
static_cast
<
CoverIconViewItem
*>
(
K
3
IconView
::
currentItem
());
}
Q3DragObject
*
CoverIconView
::
dragObject
()
...
...
covericonview.h
View file @
b42828e3
...
...
@@ -16,7 +16,7 @@
#ifndef COVERICONVIEW_H
#define COVERICONVIEW_H
#include <kiconview.h>
#include <k
3
iconview.h>
#include "covermanager.h"
...
...
@@ -27,7 +27,7 @@
namespace
CoverUtility
{
class
CoverIconViewItem
:
public
KIconViewItem
class
CoverIconViewItem
:
public
K
3
IconViewItem
{
public:
CoverIconViewItem
(
coverKey
id
,
Q3IconView
*
parent
);
...
...
@@ -42,12 +42,12 @@ namespace CoverUtility
using
CoverUtility
::
CoverIconViewItem
;
/**
* This class subclasses KIconView in order to provide cover drag-and-drop
* This class subclasses K
3
IconView in order to provide cover drag-and-drop
* support.
*
* @author Michael Pyne <michael.pyne@kdemail.net>
*/
class
CoverIconView
:
public
KIconView
class
CoverIconView
:
public
K
3
IconView
{
public:
CoverIconView
(
QWidget
*
parent
,
const
char
*
name
=
0
);
...
...
directorylist.cpp
View file @
b42828e3
...
...
@@ -15,7 +15,7 @@
#include <kfiledialog.h>
#include <klocale.h>
#include <klistview.h>
#include <k
3
listview.h>
#include <kpushbutton.h>
#include <qcheckbox.h>
...
...
@@ -46,7 +46,7 @@ DirectoryList::DirectoryList(const QStringList &directories, bool importPlaylist
QStringList
::
ConstIterator
it
=
directories
.
begin
();
for
(;
it
!=
directories
.
end
();
++
it
)
new
KListViewItem
(
m_base
->
directoryListView
,
*
it
);
new
K
3
ListViewItem
(
m_base
->
directoryListView
,
*
it
);
m_base
->
importPlaylistsCheckBox
->
setChecked
(
importPlaylists
);
...
...
@@ -80,7 +80,7 @@ void DirectoryList::slotAddDirectory()
QString
dir
=
KFileDialog
::
getExistingDirectory
();
if
(
!
dir
.
isEmpty
()
&&
m_dirList
.
find
(
dir
)
==
m_dirList
.
end
())
{
m_dirList
.
append
(
dir
);
new
KListViewItem
(
m_base
->
directoryListView
,
dir
);
new
K
3
ListViewItem
(
m_base
->
directoryListView
,
dir
);
m_result
.
addedDirs
.
append
(
dir
);
}
}
...
...
directorylistbase.ui
View file @
b42828e3
...
...
@@ -16,7 +16,7 @@
<property
name=
"name"
>
<cstring>
unnamed
</cstring>
</property>
<widget
class=
"KListView"
>
<widget
class=
"K
3
ListView"
>
<column>
<property
name=
"text"
>
<string>
Folders
</string>
...
...
filerenamer.cpp
View file @
b42828e3
...
...
@@ -78,7 +78,7 @@ public:
"Are you sure you want to continue?"
),
hbox
);
hbox
->
setStretchFactor
(
l
,
1
);
K
ListView
*
lv
=
new
K
ListView
(
vbox
);
K
3ListView
*
lv
=
new
K3
ListView
(
vbox
);
lv
->
addColumn
(
i18n
(
"Original Name"
));
lv
->
addColumn
(
i18n
(
"New Name"
));
...
...
@@ -87,9 +87,9 @@ public:
QMap
<
QString
,
QString
>::
ConstIterator
it
=
files
.
begin
();
for
(;
it
!=
files
.
end
();
++
it
)
{
KListViewItem
*
i
=
it
.
key
()
!=
it
.
data
()
?
new
KListViewItem
(
lv
,
it
.
key
(),
it
.
data
())
:
new
KListViewItem
(
lv
,
it
.
key
(),
i18n
(
"No Change"
));
K
3
ListViewItem
*
i
=
it
.
key
()
!=
it
.
data
()
?
new
K
3
ListViewItem
(
lv
,
it
.
key
(),
it
.
data
())
:
new
K
3
ListViewItem
(
lv
,
it
.
key
(),
i18n
(
"No Change"
));
lvHeight
+=
i
->
height
();
}
...
...
googlefetcherdialog.cpp
View file @
b42828e3
...
...
@@ -45,7 +45,7 @@ GoogleFetcherDialog::GoogleFetcherDialog(const QString &name,
disableResize
();
Q3HBox
*
mainBox
=
new
Q3HBox
(
this
);
m_iconWidget
=
new
KIconView
(
mainBox
);
m_iconWidget
=
new
K
3
IconView
(
mainBox
);
m_iconWidget
->
setResizeMode
(
Q3IconView
::
Adjust
);
m_iconWidget
->
setSpacing
(
10
);
m_iconWidget
->
setFixedSize
(
500
,
550
);
...
...
@@ -200,7 +200,7 @@ QPixmap GoogleFetcherDialog::pixmapFromURL(const KUrl &url) const
////////////////////////////////////////////////////////////////////////////////
CoverIconViewItem
::
CoverIconViewItem
(
Q3IconView
*
parent
,
const
GoogleImage
&
image
)
:
QObject
(
parent
),
KIconViewItem
(
parent
,
parent
->
lastItem
(),
image
.
size
()),
m_job
(
0
)
QObject
(
parent
),
K
3
IconViewItem
(
parent
,
parent
->
lastItem
(),
image
.
size
()),
m_job
(
0
)
{
// Set up the iconViewItem
...
...
googlefetcherdialog.h
View file @
b42828e3
...
...
@@ -15,7 +15,7 @@
#ifndef GOOGLEFETCHERDIALOG_H
#define GOOGLEFETCHERDIALOG_H
#include <kiconview.h>
#include <k
3
iconview.h>
#include <kio/job.h>
...
...
@@ -63,7 +63,7 @@ private:
QPixmap
m_pixmap
;
GoogleImageList
m_imageList
;
KIconView
*
m_iconWidget
;
K
3
IconView
*
m_iconWidget
;
bool
m_takeIt
;
bool
m_newSearch
;
FileHandle
m_file
;
...
...
@@ -74,7 +74,7 @@ namespace KIO
class
TransferJob
;
}
class
CoverIconViewItem
:
public
QObject
,
public
KIconViewItem
class
CoverIconViewItem
:
public
QObject
,
public
K
3
IconViewItem
{
Q_OBJECT
...
...
playlist.cpp
View file @
b42828e3
...
...
@@ -327,7 +327,7 @@ int Playlist::m_leftColumn = 0;
Playlist
::
Playlist
(
PlaylistCollection
*
collection
,
const
QString
&
name
,
const
QString
&
iconName
)
:
KListView
(
collection
->
playlistStack
()),
K
3
ListView
(
collection
->
playlistStack
()),
m_collection
(
collection
),
m_selectedCount
(
0
),
m_allowDuplicates
(
false
),
...
...
@@ -350,7 +350,7 @@ Playlist::Playlist(PlaylistCollection *collection, const QString &name,
Playlist
::
Playlist
(
PlaylistCollection
*
collection
,
const
PlaylistItemList
&
items
,
const
QString
&
name
,
const
QString
&
iconName
)
:
KListView
(
collection
->
playlistStack
()),
K
3
ListView
(
collection
->
playlistStack
()),
m_collection
(
collection
),
m_selectedCount
(
0
),
m_allowDuplicates
(
false
),
...
...
@@ -374,7 +374,7 @@ Playlist::Playlist(PlaylistCollection *collection, const PlaylistItemList &items
Playlist
::
Playlist
(
PlaylistCollection
*
collection
,
const
QFileInfo
&
playlistFile
,
const
QString
&
iconName
)
:
KListView
(
collection
->
playlistStack
()),
K
3
ListView
(
collection
->
playlistStack
()),
m_collection
(
collection
),
m_selectedCount
(
0
),
m_allowDuplicates
(
false
),
...
...
@@ -397,7 +397,7 @@ Playlist::Playlist(PlaylistCollection *collection, const QFileInfo &playlistFile
}
Playlist
::
Playlist
(
PlaylistCollection
*
collection
,
bool
delaySetup
)
:
KListView
(
collection
->
playlistStack
()),
K
3
ListView
(
collection
->
playlistStack
()),
m_collection
(
collection
),
m_selectedCount
(
0
),
m_allowDuplicates
(
false
),
...
...
@@ -657,7 +657,7 @@ PlaylistItemList Playlist::selectedItems()
PlaylistItem
*
Playlist
::
firstChild
()
const
{
return
static_cast
<
PlaylistItem
*>
(
KListView
::
firstChild
());
return
static_cast
<
PlaylistItem
*>
(
K
3
ListView
::
firstChild
());
}
void
Playlist
::
updateLeftColumn
()
...
...
@@ -1037,7 +1037,7 @@ Q3DragObject *Playlist::dragObject(QWidget *parent)
void
Playlist
::
contentsDragEnterEvent
(
QDragEnterEvent
*
e
)
{
KListView
::
contentsDragEnterEvent
(
e
);
K
3
ListView
::
contentsDragEnterEvent
(
e
);
if
(
CoverDrag
::
canDecode
(
e
))
{
setDropHighlighter
(
true
);
...
...
@@ -1152,7 +1152,7 @@ bool Playlist::eventFilter(QObject *watched, QEvent *e)
}
}
return
KListView
::
eventFilter
(
watched
,
e
);
return
K
3
ListView
::
eventFilter
(
watched
,
e
);
}
void
Playlist
::
keyPressEvent
(
QKeyEvent
*
event
)
...
...
@@ -1170,7 +1170,7 @@ void Playlist::keyPressEvent(QKeyEvent *event)
}
KListView
::
keyPressEvent
(
event
);
K
3
ListView
::
keyPressEvent
(
event
);
}
void
Playlist
::
contentsDropEvent
(
QDropEvent
*
e
)
...
...
@@ -1219,7 +1219,7 @@ void Playlist::contentsDropEvent(QDropEvent *e)
setSorting
(
columns
()
+
1
);
QList
<
Q3ListViewItem
*>
items
=
KListView
::
selectedItems
();
QList
<
Q3ListViewItem
*>
items
=
K
3
ListView
::
selectedItems
();
for
(
QList
<
Q3ListViewItem
*>::
Iterator
it
=
items
.
begin
();
it
!=
items
.
end
();
++
it
)
{
if
(
!
item
)
{
...
...
@@ -1243,7 +1243,7 @@ void Playlist::contentsDropEvent(QDropEvent *e)
dataChanged
();
emit
signalPlaylistItemsDropped
(
this
);
KListView
::
contentsDropEvent
(
e
);
K
3
ListView
::
contentsDropEvent
(
e
);
}
void
Playlist
::
contentsMouseDoubleClickEvent
(
QMouseEvent
*
e
)
...
...
@@ -1252,7 +1252,7 @@ void Playlist::contentsMouseDoubleClickEvent(QMouseEvent *e)
// weird experience of switching songs from a double right-click.
if
(
e
->
button
()
==
Qt
::
LeftButton
)
KListView
::
contentsMouseDoubleClickEvent
(
e
);
K
3
ListView
::
contentsMouseDoubleClickEvent
(
e
);
}
void
Playlist
::
showEvent
(
QShowEvent
*
e
)
...
...
@@ -1261,7 +1261,7 @@ void Playlist::showEvent(QShowEvent *e)
SharedSettings
::
instance
()
->
apply
(
this
);
m_applySharedSettings
=
false
;
}
KListView
::
showEvent
(
e
);
K
3
ListView
::
showEvent
(
e
);
}
void
Playlist
::
applySharedSettings
()
...
...
@@ -1302,7 +1302,7 @@ void Playlist::viewportPaintEvent(QPaintEvent *pe)
slotUpdateColumnWidths
();
}
KListView
::
viewportPaintEvent
(
pe
);
K
3
ListView
::
viewportPaintEvent
(
pe
);
}
void
Playlist
::
viewportResizeEvent
(
QResizeEvent
*
re
)
...
...
@@ -1313,7 +1313,7 @@ void Playlist::viewportResizeEvent(QResizeEvent *re)
if
(
re
->
size
().
width
()
!=
re
->
oldSize
().
width
()
&&
!
manualResize
())
slotUpdateColumnWidths
();
KListView
::
viewportResizeEvent
(
re
);
K
3
ListView
::
viewportResizeEvent
(
re
);
}
void
Playlist
::
insertItem
(
Q3ListViewItem
*
item
)
...
...
@@ -1324,7 +1324,7 @@ void Playlist::insertItem(Q3ListViewItem *item)
// you need to use the PlaylistItem from here.
m_addTime
.
append
(
static_cast
<
PlaylistItem
*>
(
item
));
KListView
::
insertItem
(
item
);
K
3
ListView
::
insertItem
(
item
);
}
void
Playlist
::
takeItem
(
Q3ListViewItem
*
item
)
...
...
@@ -1332,13 +1332,13 @@ void Playlist::takeItem(Q3ListViewItem *item)
// See the warning in Playlist::insertItem.
m_subtractTime
.
append
(
static_cast
<
PlaylistItem
*>
(
item
));
KListView
::
takeItem
(
item
);
K
3
ListView
::
takeItem
(
item
);
}
void
Playlist
::
addColumn
(
const
QString
&
label
)
{
slotWeightDirty
(
columns
());
KListView
::
addColumn
(
label
,
30
);
K
3
ListView
::
addColumn
(
label
,
30
);
}
PlaylistItem
*
Playlist
::
createItem
(
const
FileHandle
&
file
,
...
...
@@ -1511,7 +1511,7 @@ bool Playlist::isColumnVisible(int c) const
void
Playlist
::
polish
()
{
KListView
::
polish
();
K
3
ListView
::
polish
();
if
(
m_polished
)
return
;
...
...
playlist.h
View file @
b42828e3
...
...
@@ -16,7 +16,7 @@
#ifndef PLAYLIST_H
#define PLAYLIST_H
#include <klistview.h>
#include <k
3
listview.h>
#include <k3urldrag.h>
#include <kdebug.h>
#include <kglobalsettings.h>
...
...
@@ -54,7 +54,7 @@ class UpcomingPlaylist;
typedef
Q3ValueList
<
PlaylistItem
*>
PlaylistItemList
;
class
Playlist
:
public
KListView
,
public
PlaylistInterface
class
Playlist
:
public
K
3
ListView
,
public
PlaylistInterface
{
Q_OBJECT
...
...
@@ -363,7 +363,7 @@ public slots:
* @see clearItems()
*/
virtual
void
clear
();
virtual
void
selectAll
()
{
KListView
::
selectAll
(
true
);
}
virtual
void
selectAll
()
{
K
3
ListView
::
selectAll
(
true
);
}
/**
* Refreshes the tags of the selection from disk, or all of the files in the
...
...
playlistbox.cpp
View file @
b42828e3
...
...
@@ -55,7 +55,7 @@ using namespace ActionCollection;
////////////////////////////////////////////////////////////////////////////////
PlaylistBox
::
PlaylistBox
(
QWidget
*
parent
,
Q3WidgetStack
*
playlistStack
)
:
KListView
(
parent
),
K
3
ListView
(
parent
),
PlaylistCollection
(
playlistStack
),
m_viewModeIndex
(
0
),
m_hasSelection
(
false
),
...
...
@@ -526,14 +526,14 @@ void PlaylistBox::contentsDragLeaveEvent(QDragLeaveEvent *e)
m_dropItem
=
0
;
old
->
repaint
();
}
KListView
::
contentsDragLeaveEvent
(
e
);
K
3
ListView
::
contentsDragLeaveEvent
(
e
);
}
void
PlaylistBox
::
contentsMousePressEvent
(
QMouseEvent
*
e
)
{
if
(
e
->
button
()
==
Qt
::
LeftButton
)
m_doingMultiSelect
=
true
;
KListView
::
contentsMousePressEvent
(
e
);
K
3
ListView
::
contentsMousePressEvent
(
e
);
}
void
PlaylistBox
::
contentsMouseReleaseEvent
(
QMouseEvent
*
e
)
...
...
@@ -542,14 +542,14 @@ void PlaylistBox::contentsMouseReleaseEvent(QMouseEvent *e)
m_doingMultiSelect
=
false
;
slotPlaylistChanged
();
}
KListView
::
contentsMouseReleaseEvent
(
e
);
K
3
ListView
::
contentsMouseReleaseEvent
(
e
);
}
void
PlaylistBox
::
keyPressEvent
(
QKeyEvent
*
e
)
{
if
((
e
->
key
()
==
Qt
::
Key_Up
||
e
->
key
()
==
Qt
::
Key_Down
)
&&
e
->
state
()
==
Qt
::
ShiftButton
)
m_doingMultiSelect
=
true
;
KListView
::
keyPressEvent
(
e
);
K
3
ListView
::
keyPressEvent
(
e
);
}
void
PlaylistBox
::
keyReleaseEvent
(
QKeyEvent
*
e
)
...
...
@@ -558,7 +558,7 @@ void PlaylistBox::keyReleaseEvent(QKeyEvent *e)
m_doingMultiSelect
=
false
;
slotPlaylistChanged
();
}
KListView
::
keyReleaseEvent
(
e
);
K
3
ListView
::
keyReleaseEvent
(
e
);
}
PlaylistBox
::
ItemList
PlaylistBox
::
selectedItems
()
const
...
...
@@ -575,7 +575,7 @@ PlaylistBox::ItemList PlaylistBox::selectedItems() const
void
PlaylistBox
::
setSingleItem
(
Q3ListViewItem
*
item
)
{
setSelectionModeExt
(
Single
);
KListView
::
setCurrentItem
(
item
);
K
3
ListView
::
setCurrentItem
(
item
);
setSelectionModeExt
(
Extended
);
}
...
...
@@ -693,14 +693,14 @@ void PlaylistBox::setupUpcomingPlaylist()
PlaylistBox
::
Item
*
PlaylistBox
::
Item
::
m_collectionItem
=
0
;
PlaylistBox
::
Item
::
Item
(
PlaylistBox
*
listBox
,
const
QString
&
icon
,
const
QString
&
text
,
Playlist
*
l
)
:
QObject
(
listBox
),
KListViewItem
(
listBox
,
0
,
text
),
:
QObject
(
listBox
),
K
3
ListViewItem
(
listBox
,
0
,
text
),
m_playlist
(
l
),
m_text
(
text
),
m_iconName
(
icon
),
m_sortedFirst
(
false
)
{
init
();
}
PlaylistBox
::
Item
::
Item
(
Item
*
parent
,
const
QString
&
icon
,
const
QString
&
text
,
Playlist
*
l
)
:
QObject
(
parent
->
listView
()),
KListViewItem
(
parent
,
text
),
:
QObject
(
parent
->
listView
()),
K
3
ListViewItem
(
parent
,
text
),
m_playlist
(
l
),
m_text
(
text
),
m_iconName
(
icon
),
m_sortedFirst
(
false
)
{
init
();
...
...
@@ -738,7 +738,7 @@ void PlaylistBox::Item::paintCell(QPainter *painter, const QColorGroup &colorGro
void
PlaylistBox
::
Item
::
setText
(
int
column
,
const
QString
&
text
)
{
m_text
=
text
;
KListViewItem
::
setText
(
column
,
text
);
K
3
ListViewItem
::
setText
(
column
,
text
);
}
void
PlaylistBox
::
Item
::
setup
()
...
...
playlistbox.h
View file @
b42828e3
...
...
@@ -18,7 +18,7 @@
#include "playlistcollection.h"
#include <klistview.h>
#include <k
3
listview.h>
#include <q3ptrdict.h>
...
...
@@ -45,7 +45,7 @@ typedef Q3ValueList<Playlist *> PlaylistList;
* JuK's main widget (PlaylistSplitter).
*/
class
PlaylistBox
:
public
KListView
,
public
PlaylistCollection
class
PlaylistBox
:
public
K
3
ListView
,
public
PlaylistCollection
{
Q_OBJECT
...
...
@@ -138,7 +138,7 @@ private:
class
PlaylistBox
::
Item
:
public
QObject
,
public
KListViewItem
class
PlaylistBox
::
Item
:
public
QObject
,
public
K
3
ListViewItem
{
friend
class
PlaylistBox
;
friend
class
ViewMode
;
...
...
@@ -159,7 +159,7 @@ protected:
Item
(
Item
*
parent
,
const
QString
&
icon
,
const
QString
&
text
,
Playlist
*
l
=
0
);
Playlist
*
playlist
()
const
{
return
m_playlist
;
}
PlaylistBox
*
listView
()
const
{
return
static_cast
<
PlaylistBox
*>
(
KListViewItem
::
listView
());
}
PlaylistBox
*
listView
()
const
{
return
static_cast
<
PlaylistBox
*>
(
K
3
ListViewItem
::
listView
());
}
QString
iconName
()
const
{
return
m_iconName
;
}
QString
text
()
const
{
return
m_text
;
}
void
setSortedFirst
(
bool
first
=
true
)
{
m_sortedFirst
=
first
;
}
...
...
@@ -169,7 +169,7 @@ protected:
virtual
void
paintFocus
(
QPainter
*
,
const
QColorGroup
&
,
const
QRect
&
)
{}
virtual
void
setText
(
int
column
,
const
QString
&
text
);
virtual
QString
text
(
int
column
)
const
{
return
KListViewItem
::
text
(
column
);
}
virtual
QString
text
(
int
column
)
const
{
return
K
3
ListViewItem
::
text
(
column
);
}
virtual
void
setup
();
...
...
playlistitem.cpp
View file @
b42828e3
...
...
@@ -100,7 +100,7 @@ const QPixmap *PlaylistItem::pixmap(int column) const
m_playingItems
.
contains
(
const_cast
<
PlaylistItem
*>
(
this
)))
return
&
playing
;
return
KListViewItem
::
pixmap
(
column
);
return
K
3
ListViewItem
::
pixmap
(
column
);
}
QString
PlaylistItem
::
text
(
int
column
)
const
...
...
@@ -140,7 +140,7 @@ QString PlaylistItem::text(int column) const
case
FullPathColumn
:
return
d
->
fileHandle
.
fileInfo
().
absFilePath
();
default:
return
KListViewItem
::
text
(
column
);
return
K
3
ListViewItem
::
text
(
column
);
}
}
...
...
@@ -148,11 +148,11 @@ void PlaylistItem::setText(int column, const QString &text)
{
int
offset
=
playlist
()
->
columnOffset
();
if
(
column
-
offset
>=
0
&&
column
+
offset
<=
lastColumn
())
{
KListViewItem
::
setText
(
column
,
QString
::
null
);
K
3
ListViewItem
::
setText
(
column
,
QString
::
null
);
return
;
}
KListViewItem
::
setText
(
column
,
text
);
K
3
ListViewItem
::
setText
(
column
,
text
);
playlist
()
->
slotWeightDirty
(
column
);
}
...
...
@@ -181,7 +181,7 @@ void PlaylistItem::setPlaying(bool playing, bool master)
void
PlaylistItem
::
setSelected
(
bool
selected
)
{
playlist
()
->
markItemSelected
(
this
,
selected
);
KListViewItem
::
setSelected
(
selected
);
K
3
ListViewItem
::
setSelected
(
selected
);
}
void
PlaylistItem
::
guessTagInfo
(
TagGuesser
::
Type
type
)
...
...
@@ -243,7 +243,7 @@ void PlaylistItem::clear()
////////////////////////////////////////////////////////////////////////////////
PlaylistItem
::
PlaylistItem
(
CollectionListItem
*
item
,
Playlist
*
parent
)
:
KListViewItem
(
parent
),
K
3
ListViewItem
(
parent
),
d
(
0
),
m_watched
(
0
)
{
...
...
@@ -251,7 +251,7 @@ PlaylistItem::PlaylistItem(CollectionListItem *item, Playlist *parent) :
}
PlaylistItem
::
PlaylistItem
(
CollectionListItem
*
item
,
Playlist
*
parent
,
Q3ListViewItem
*
after
)
:
KListViewItem
(
parent
,
after
),
K
3
ListViewItem
(
parent
,
after
),
d
(
0
),
m_watched
(
0
)
{
...
...
@@ -262,7 +262,7 @@ PlaylistItem::PlaylistItem(CollectionListItem *item, Playlist *parent, Q3ListVie
// This constructor should only be used by the CollectionList subclass.
PlaylistItem
::
PlaylistItem
(
CollectionList
*
parent
)
:
KListViewItem
(
parent
),
K
3
ListViewItem
(
parent
),
m_watched
(
0
)
{
d
=
new
Data
;
...
...
@@ -273,7 +273,7 @@ PlaylistItem::PlaylistItem(CollectionList *parent) :
void
PlaylistItem
::
paintCell
(
QPainter
*
p
,
const
QColorGroup
&
cg
,
int
column
,
int
width
,
int
align
)
{
if
(
!
m_playingItems
.
contains
(
this
))
return
KListViewItem
::
paintCell
(
p
,
cg
,
column
,
width
,
align
);
return
K
3
ListViewItem
::
paintCell
(
p
,
cg
,
column
,
width
,
align
);
QColorGroup
colorGroup
=
cg
;
...
...
playlistitem.h
View file @
b42828e3
...
...
@@ -16,7 +16,7 @@
#ifndef PLAYLISTITEM_H
#define PLAYLISTITEM_H
#include <klistview.h>
#include <k
3
listview.h>
#include <ksharedptr.h>
#include <kdebug.h>
...
...
@@ -45,7 +45,7 @@ typedef Q3ValueList<PlaylistItem *> PlaylistItemList;
* Playlist::clearItem().
*/
class
PlaylistItem
:
public
KListViewItem
class
PlaylistItem
:
public
K
3
ListViewItem
{
friend
class
Playlist
;
friend
class
SearchPlaylist
;
...
...
@@ -141,12 +141,12 @@ public:
/**
* Returns properly casted item below this one.
*/
PlaylistItem
*
itemBelow
()
{
return
static_cast
<
PlaylistItem
*>
(
KListViewItem
::
itemBelow
());
}
PlaylistItem
*
itemBelow
()
{
return
static_cast
<
PlaylistItem
*>
(
K
3
ListViewItem
::
itemBelow
());
}
/**
* Returns properly casted item above this one.
*/
PlaylistItem
*
itemAbove
()
{
return
static_cast
<
PlaylistItem
*>
(
KListViewItem
::
itemAbove
());
}
PlaylistItem
*
itemAbove
()
{
return
static_cast
<
PlaylistItem
*>
(
K
3
ListViewItem
::
itemAbove
());
}
/**
* Returns a reference to the list of the currnetly playing items, with the
...
...
playlistsplitter.cpp
View file @
b42828e3
...
...
@@ -86,7 +86,7 @@ void PlaylistSplitter::slotFocusCurrentPlaylist()
if
(
playlist
)
{
playlist
->
setFocus
();
playlist
->
KListView
::
selectAll
(
false
);
playlist
->
K
3
ListView
::
selectAll
(
false
);
// Select the top visible (and matching) item.
...
...
tagguesserconfigdlg.cpp
View file @
b42828e3
...
...
@@ -11,7 +11,7 @@
#include "tagguesserconfigdlgwidget.h"
#include <kiconloader.h>
#include <klistview.h>
#include <k
3
listview.h>
#include <klocale.h>
#include <kpushbutton.h>
#include <klineedit.h>
...
...
@@ -39,7 +39,7 @@ TagGuesserConfigDlg::TagGuesserConfigDlg(QWidget *parent, const char *name)
QStringList
::
ConstIterator
it
=
schemes
.
begin
();
QStringList
::
ConstIterator
end
=
schemes
.
end
();
for
(;
it
!=
end
;
++
it
)
{
K
ListViewItem
*
item
=
new
K
ListViewItem
(
m_child
->
lvSchemes
,
*
it
);
K
3ListViewItem
*
item
=
new
K3
ListViewItem
(
m_child
->
lvSchemes
,
*
it
);
item
->
moveItem
(
m_child
->
lvSchemes
->
lastItem
());
}
...
...
@@ -107,7 +107,7 @@ void TagGuesserConfigDlg::slotMoveDownClicked()
void
TagGuesserConfigDlg
::
slotAddClicked
()
{
K
ListViewItem
*
item
=
new
K
ListViewItem
(
m_child
->
lvSchemes
);