]> rtime.felk.cvut.cz Git - sojka/tekpic.git/blob - src/mainwindow.h
0d42c6f9df2d6df5ca7110df00a41f5aaaa8dffc
[sojka/tekpic.git] / src / mainwindow.h
1 /***************************************************************************
2  *   Copyright (C) 2006 by Michal Sojka   *
3  *   sojkam1@fel.cvut.cz   *
4  *                                                                         *
5  *   This program is free software; you can redistribute it and/or modify  *
6  *   it under the terms of the GNU General Public License as published by  *
7  *   the Free Software Foundation; either version 2 of the License, or     *
8  *   (at your option) any later version.                                   *
9  *                                                                         *
10  *   This program is distributed in the hope that it will be useful,       *
11  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
12  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
13  *   GNU General Public License for more details.                          *
14  *                                                                         *
15  *   You should have received a copy of the GNU General Public License     *
16  *   along with this program; if not, write to the                         *
17  *   Free Software Foundation, Inc.,                                       *
18  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
19  ***************************************************************************/
20 #ifndef MAINWINDOW_H
21 #define MAINWINDOW_H
22
23 #include <qdialog.h>
24 #include "ui_main.h"
25 #include "osccommthread.h"
26 #include <string>
27 #include "mainwindow.h"
28
29 using namespace std;
30 /**
31         @author Michal Sojka <sojkam1@fel.cvut.cz>
32 */
33 class MainWindow : public QDialog
34 {
35         Q_OBJECT
36 public:
37         MainWindow(const string &tty);
38
39         ~MainWindow();
40 private:
41         Ui::MainWin ui;
42         OscCommThread m_commThread;
43         int m_fileNum;
44         OscImage *m_image;
45         QLabel *imageLabel;
46 private slots:
47         void processImage(OscImage *img);
48         void saveImage();
49         void resetFileCounter();
50         void generateFileName(const QString& prefix);
51
52 };
53
54 #endif