~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to kmidi/log.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *        kmidi - midi to wav player/converter
 
3
 *
 
4
 * $Id: log.h,v 1.9 2001/05/13 01:55:26 gebauer Exp $
 
5
 *            Copyright (C) 1997  Bernd Wuebben
 
6
 *                 wuebben@math.cornel.edu 
 
7
 * 
 
8
 * This program is free software; you can redistribute it and/or
 
9
 * modify it under the terms of the GNU Library General Public
 
10
 * License as published by the Free Software Foundation; either
 
11
 * version 2 of the License, or (at your option) any later version.
 
12
 *
 
13
 * This program is distributed in the hope that it will be useful,
 
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
16
 * Library General Public License for more details.
 
17
 *
 
18
 * You should have received a copy of the GNU Library General Public
 
19
 * License along with this program; if not, write to the Free
 
20
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
21
 */
 
22
 
 
23
#ifndef _LOG_WIDGET_
 
24
#define _LOG_WIDGET_
 
25
 
 
26
#include<stdlib.h>
 
27
 
 
28
#include<qstring.h>
 
29
//#include<qpixmap.h>
 
30
#include<qmultilinedit.h>
 
31
#include <qtimer.h>
 
32
#include <qstrlist.h>
 
33
 
 
34
 
 
35
class LogWindow : public QWidget {
 
36
 
 
37
Q_OBJECT
 
38
 
 
39
public:
 
40
  LogWindow(QWidget *parent=0, const char *name=0);
 
41
  ~LogWindow();
 
42
 
 
43
  void insertStr(const QString &);
 
44
  void clear();
 
45
 
 
46
private slots:
 
47
  void updatewindow();
 
48
 
 
49
private:
 
50
  void resizeEvent(QResizeEvent *e);
 
51
 
 
52
private:
 
53
 
 
54
  bool timerset;
 
55
  QTimer *sltimer;
 
56
  QStringList *stringlist;
 
57
  QMultiLineEdit *text_window;
 
58
 
 
59
};
 
60
#endif
 
61