This repository was archived by the owner on Sep 11, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlistcontroller.h
More file actions
64 lines (56 loc) · 1.79 KB
/
listcontroller.h
File metadata and controls
64 lines (56 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/****************************************************************************
**
** Copyright (C) 2011-2012 Jan M. Binder, Felix Engelmann, Simeon Voelkel
** Contact: jan.binder@sfz-bw.de, felix.engelmann@sfz-bw.de,
** simeon.voelkel@sfz-bw.de
**
** $QT_BEGIN_LICENSE:GPL$
** GNU General Public License Usage
** This file may be used under the terms of the GNU
** General Public License version 3.0 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU General Public License version 3.0 requirements will be
** met: http://www.gnu.org/copyleft/gpl.html.
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef LISTCONTROLLER_H
#define LISTCONTROLLER_H
#include <QObject>
#include "stagelistmodel.h"
class ListController : public QObject
{
Q_OBJECT
public:
explicit ListController(QObject *parent = 0);
~ListController();
int loadListFromFile(QString path);
int saveListToFile(QString path);
int getMaxIndex();
int getCurrentIndex();
void setCurrentIndex(int currentIndex);
QAbstractTableModel* getModel();
signals:
void allowedTimeChanged(int);
void elapsedTimeChanged(int);
void overTimeChanged(int);
void resetTime();
void stageNameChanged(QString);
void modelChanged(QAbstractTableModel*);
void endOfStage();
void roomClockChanged(bool);
void getElapsedOverTime();
public slots:
void forward();
void backward();
void handleOvertime(int);
void add();
void del(QModelIndex ind);
void checkAutoStart();
void setElapsedOverTime(int);
private:
StageListModel* stlm;
int currentIndex;
};
#endif // LISTCONTROLLER_H