LMMS
Loading...
Searching...
No Matches
TimeDisplayWidget.h
Go to the documentation of this file.
1/*
2 * TimeDisplayWidget.h - widget for displaying current playback time
3 *
4 * Copyright (c) 2014 Ruben Ibarra
5 * Copyright (c) 2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
6 *
7 * This file is part of LMMS - https://lmms.io
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public
11 * License as published by the Free Software Foundation; either
12 * version 2 of the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public
20 * License along with this program (see COPYING); if not, write to the
21 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 * Boston, MA 02110-1301 USA.
23 *
24 */
25
26#ifndef LMMS_GUI_TIME_DISPLAY_WIDGET_H
27#define LMMS_GUI_TIME_DISPLAY_WIDGET_H
28
29#include <QWidget>
30#include <QHBoxLayout>
31
32#include "LcdWidget.h"
33
34namespace lmms::gui
35{
36
37class TimeDisplayWidget : public QWidget
38{
39 Q_OBJECT
40public:
42 ~TimeDisplayWidget() override = default;
43
44
45protected:
46 void mousePressEvent( QMouseEvent* mouseEvent ) override;
47
48
49private slots:
50 void updateTime();
51
52
53private:
59
60 void setDisplayMode( DisplayMode displayMode );
61
63 QHBoxLayout m_spinBoxesLayout;
67
68} ;
69
70} // namespace lmms::gui
71
72#endif // LMMS_GUI_TIME_DISPLAY_WIDGET_H
Definition LcdWidget.h:37
~TimeDisplayWidget() override=default
LcdWidget m_majorLCD
Definition TimeDisplayWidget.h:64
void mousePressEvent(QMouseEvent *mouseEvent) override
Definition TimeDisplayWidget.cpp:119
LcdWidget m_milliSecondsLCD
Definition TimeDisplayWidget.h:66
void setDisplayMode(DisplayMode displayMode)
Definition TimeDisplayWidget.cpp:62
void updateTime()
Definition TimeDisplayWidget.cpp:87
LcdWidget m_minorLCD
Definition TimeDisplayWidget.h:65
DisplayMode
Definition TimeDisplayWidget.h:55
@ BarsTicks
Definition TimeDisplayWidget.h:57
@ MinutesSeconds
Definition TimeDisplayWidget.h:56
TimeDisplayWidget()
Definition TimeDisplayWidget.cpp:37
QHBoxLayout m_spinBoxesLayout
Definition TimeDisplayWidget.h:63
DisplayMode m_displayMode
Definition TimeDisplayWidget.h:62
Definition AudioPortAudio.cpp:223