~ubuntu-branches/ubuntu/karmic/kguitar/karmic

« back to all changes in this revision

Viewing changes to kguitar/tracklist.h

  • Committer: Bazaar Package Importer
  • Author(s): Loic Pefferkorn
  • Date: 2005-08-19 15:22:41 UTC
  • Revision ID: james.westby@ubuntu.com-20050819152241-n24w9np4vblrm5as
Tags: upstream-0.5
ImportĀ upstreamĀ versionĀ 0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef TRACKLIST_H
 
2
#define TRACKLIST_H
 
3
 
 
4
#include <qlistview.h>
 
5
 
 
6
class TabSong;
 
7
class TabTrack;
 
8
class QListViewItem;
 
9
class QMouseEvent;
 
10
class KXMLGUIClient;
 
11
 
 
12
/**
 
13
 * Part of main editor window, shows a list of tracks in a song.
 
14
 *
 
15
 * Has signals and slots to change display on selecting a new track
 
16
 * and mouse event handlers to make selection of tracks by mouse
 
17
 * possible.
 
18
 */
 
19
class TrackList: public QListView {
 
20
        Q_OBJECT
 
21
 
 
22
public:
 
23
        TrackList(TabSong *s, KXMLGUIClient *_XMLGUIClient, QWidget *parent = 0, const char *name = 0);
 
24
        void updateList();
 
25
 
 
26
signals:
 
27
        void trackSelected(TabTrack *);
 
28
 
 
29
protected:
 
30
    virtual void contentsMousePressEvent(QMouseEvent *e);
 
31
 
 
32
private slots:
 
33
        void selectNewTrack(QListViewItem *);
 
34
 
 
35
private:
 
36
        TabSong *song;
 
37
    KXMLGUIClient *xmlGUIClient;
 
38
};
 
39
 
 
40
#endif