18 #ifndef SIGNAL_WIDGET_H 19 #define SIGNAL_WIDGET_H 24 #include <QGridLayout> 45 class QContextMenuEvent;
46 class QDragEnterEvent;
49 class QDragLeaveEvent;
91 QVBoxLayout *upper_dock, QVBoxLayout *lower_dock);
107 int mapToViewPort(
const QPoint &pos)
const;
114 int visibleWidth()
const;
139 void forwardCommand(
const QString &command);
144 virtual void contextMenuEvent(QContextMenuEvent *e) Q_DECL_OVERRIDE;
152 void repaintTimerElapsed();
161 void slotTrackInserted(
unsigned int index,
Kwave::Track *track);
170 void slotTrackDeleted(
unsigned int index,
Kwave::Track *track);
189 forwardCommand(
_(
"saveselect()"));
194 forwardCommand(
_(
"expandtolabel()"));
199 forwardCommand(
_(
"selectnextlabels()"));
204 forwardCommand(
_(
"selectprevlabels()"));
211 void updateMinimumHeight();
228 void sigCommand(
const QString &command);
236 virtual void wheelEvent(QWheelEvent *event) Q_DECL_OVERRIDE;
241 void setVerticalZoom(
double zoom);
257 void deleteRow(
int index);