ActivityLog.h
Go to the documentation of this file.
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2 
3 /*
4  Sonic Visualiser
5  An audio file viewer and annotation editor.
6  Centre for Digital Music, Queen Mary, University of London.
7  This file copyright 2009 QMUL.
8 
9  This program is free software; you can redistribute it and/or
10  modify it under the terms of the GNU General Public License as
11  published by the Free Software Foundation; either version 2 of the
12  License, or (at your option) any later version. See the file
13  COPYING included with this distribution for more information.
14 */
15 
16 #ifndef SV_ACTIVITY_LOG_H
17 #define SV_ACTIVITY_LOG_H
18 
19 #include <QDialog>
20 #include <QString>
21 
22 class QListView;
23 class QStringListModel;
24 
25 class ActivityLog : public QDialog
26 {
27  Q_OBJECT
28 
29 public:
30  ActivityLog();
31  ~ActivityLog();
32 
33 public slots:
34  void activityHappened(QString);
35  void scrollToEnd();
36 
37 private:
38  QListView *m_listView;
39  QStringListModel *m_model;
40  QString m_prevName;
41 };
42 
43 #endif
QString m_prevName
Definition: ActivityLog.h:40
QStringListModel * m_model
Definition: ActivityLog.h:39
QListView * m_listView
Definition: ActivityLog.h:38
void scrollToEnd()
Definition: ActivityLog.cpp:87
void activityHappened(QString)
Definition: ActivityLog.cpp:62