summaryrefslogtreecommitdiffstats
path: root/amarok/src/playlistselection.h
blob: bf35a57e426a10787c1b04a207030b01b2193fd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/***************************************************************************
 *   Copyright (C) 2005 Ian Monroe <ian@monroe.nu>                         *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/
#ifndef PLAYLISTSELECTION_H
#define PLAYLISTSELECTION_H

#include <tdelistview.h>

class NewDynamic;
class KDialogBase;
class DynamicMode;

//this is a widget used in newdynamic.ui
class PlaylistSelection : public TDEListView
{
        Q_OBJECT
  
    public:
        PlaylistSelection(TQWidget* parent, const char* name);
        virtual TQSize sizeHint() const
        {
            return minimumSizeHint();
        }

    private:
        void loadChildren(TQListViewItem* browserParent, TQListViewItem* selectionParent);
};

namespace ConfigDynamic
{
    void addDynamic( NewDynamic* dialog );
    void dynamicDialog( TQWidget* parent );
    void editDynamicPlaylist( TQWidget* parent, DynamicMode* mode );
    void loadDynamicMode( DynamicMode* saveMe, NewDynamic* dialog );

    KDialogBase* basicDialog( TQWidget* parent );
}

class SelectionListItem : public TQCheckListItem
{
    public:
        SelectionListItem( TQListViewItem  * parent, const TQString& text, TQListViewItem* browserEquivalent );
        SelectionListItem( TQCheckListItem * parent, const TQString& text, TQListViewItem* browserEquivalent );

        virtual TQString name() const;

    protected:
        virtual void stateChange( bool );

    private:
        TQListViewItem* m_browserEquivalent;
};

#endif /*PLAYLISTSELECTION_H*/