summaryrefslogtreecommitdiffstats
path: root/kdbg/threadlist.h
blob: 8a8e0949ed77c70a9845b05350bd155fdc7fc6b8 (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
/*
 * Copyright Johannes Sixt
 * This file is licensed under the GNU General Public License Version 2.
 * See the file COPYING in the toplevel directory of the source directory.
 */

#ifndef THREADLIST_H
#define THREADLIST_H

#include <tqlistview.h>
#include <tqpixmap.h>
#include <list>

class ThreadInfo;
class ThreadEntry;

class ThreadList : public TQListView
{
    Q_OBJECT
public:
    ThreadList(TQWidget* parent, const char* name);
    ~ThreadList();

public slots:
    void updateThreads(const std::list<ThreadInfo>&);
    void slotCurrentChanged(TQListViewItem*);

signals:
    void setThread(int);

protected:
    ThreadEntry* threadById(int id);
    void makeNoFocusIcon();

    TQPixmap m_focusIcon;
    TQPixmap m_noFocusIcon;
};

#endif // THREADLIST_H