Debian Codegraph @

src/liveeventcontrol.h

raw symbols SCIP
1 /*
2 Copyright (C) 2010 Andres Cabrera
3 [email protected]
4
5 This file is part of CsoundQt.
6
7 CsoundQt is free software; you can redistribute it
8 and/or modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or (at your option) any later version.
11
12 CsoundQt is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with Csound; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
20 02111-1307 USA
21 */
22
23 #ifndef LIVEEVENTCONTROL_H
24 #define LIVEEVENTCONTROL_H
25
26 #include <QtWidgets>
27
28 #include "liveeventframe.h"
29
30 namespace Ui {
31 class LiveEventControl;
32 }
33
34 class LiveEventControl : public QWidget {
35 Q_OBJECT
36 public:
37 LiveEventControl(QWidget *parent = 0);
38 ~LiveEventControl();
39
40 void renamePanel(int index, QString newName);
41 void setPanelLoopRange(int index, double start, double end);
42 void setPanelLoopLength(int index, double length);
43 void setPanelLoopEnabled(int index, bool enabled);
44 void setPanelTempo(int index, double tempo);
45
46 public slots:
47 void removePanel(int index);
48 void appendPanel(LiveEventFrame *e);
49 void setPanelProperty(int index, QString property, QVariant value);
50
51 protected:
52 void closeEvent(QCloseEvent * event);
53 void changeEvent(QEvent *e);
54
55 private:
56 QTableWidgetItem * getItem(int row, int column);
57 void openLoopRangeDialog(int row);
58 Ui::LiveEventControl *m_ui;
59
60 private slots:
61 void newButtonReleased();
62 void frameClosed(LiveEventFrame *e);
63 void cellChangedSlot(int row, int column);
64 void cellClickedSlot(int row, int column);
65 void on_closeAllButton_clicked();
66
67 signals:
68 void closed(); // To inform DocumentPage that live event panel has been closed
69 void hidePanels();
70 void stopAll();
71 void newPanel();
72 void playPanel(int index);
73 void loopPanel(int index, bool loop);
74 void stopPanel(int index);
75 void setPanelVisible(int index, bool visible);
76 void setPanelSync(int index, int mode);
77 void setPanelNameSignal(int index, QString name);
78 void setPanelTempoSignal(int index, double tempo);
79 void setPanelLoopLengthSignal(int index, double length);
80 void setPanelLoopRangeSignal(int index, double start, double end);
81 };
82
83 #endif // LIVEEVENTCONTROL_H