]> git.sesse.net Git - kdenlive/blob - src/headertrack.h
903e45a31e6aca76b54f497eceb66f1b19266f4c
[kdenlive] / src / headertrack.h
1 /***************************************************************************
2  *   Copyright (C) 2008 by Jean-Baptiste Mardelle (jb@kdenlive.org)        *
3  *                                                                         *
4  *   This program is free software; you can redistribute it and/or modify  *
5  *   it under the terms of the GNU General Public License as published by  *
6  *   the Free Software Foundation; either version 2 of the License, or     *
7  *   (at your option) any later version.                                   *
8  *                                                                         *
9  *   This program is distributed in the hope that it will be useful,       *
10  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
11  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
12  *   GNU General Public License for more details.                          *
13  *                                                                         *
14  *   You should have received a copy of the GNU General Public License     *
15  *   along with this program; if not, write to the                         *
16  *   Free Software Foundation, Inc.,                                       *
17  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA          *
18  ***************************************************************************/
19
20 #ifndef HEADERTRACK_H
21 #define HEADERTRACK_H
22
23 #include <QContextMenuEvent>
24 #include <QMenu>
25
26 #include "definitions.h"
27 #include "ui_trackheader_ui.h"
28
29 class HeaderTrack : public QWidget
30 {
31     Q_OBJECT
32
33 public:
34     HeaderTrack(int index, TrackInfo info, int height, QWidget *parent = 0);
35     ~HeaderTrack();
36     void setLock(bool lock);
37     void adjustSize(int height);
38
39 private:
40     int m_index;
41     TRACKTYPE m_type;
42     Ui::TrackHeader_UI m_view;
43
44 private slots:
45     void switchAudio();
46     void switchVideo();
47     void slotDeleteTrack();
48     void slotAddTrack();
49     void slotChangeTrack();
50     void slotRenameTrack();
51     void switchLock(bool emitSignal = true);
52
53 signals:
54     void switchTrackAudio(int);
55     void switchTrackVideo(int);
56     void switchTrackLock(int);
57     void insertTrack(int);
58     void deleteTrack(int);
59     void changeTrack(int);
60     void renameTrack(int);
61 };
62
63 #endif