summaryrefslogtreecommitdiffstats
path: root/yakuake/src/skin_list_item.h
blob: 5ea2c1fac657a85b870e8744a13403f2f45763b2 (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
/*
    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.
*/

/*
  Copyright (C) 2007 Eike Hein <hein@kde.org>
*/


#ifndef SKIN_LIST_ITEM_H
#define SKIN_LIST_ITEM_H


#include "klistview.h"


#define MARGIN 3


class TQSimpleRichText;

class SkinListItem : public TDEListViewItem
{
    public:
        explicit SkinListItem(TDEListView* parent, const TQString& fancy_name,
            const TQString& author, const TQPixmap& icon, const TQString& name, const TQString& dir);
        ~SkinListItem();

        void setAuthor(const TQString& author);
        TQString author();

        void setName(const TQString& name);
        TQString name();

        void setDir(const TQString& dir);
        TQString dir();

        void setup();
        void paintCell(TQPainter* p, const TQColorGroup& cg, int column, int width, int align);


    private:
        TQSimpleRichText* item_text;
        TQString skin_name;
        TQString skin_author;
        TQString skin_dir;
};


#endif /* SKIN_LIST_ITEM_H */