]> rtime.felk.cvut.cz Git - sojka/tekpic.git/blob - src/tekpic.cpp
Change default port to ttyUSB0
[sojka/tekpic.git] / src / tekpic.cpp
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
21
22 #ifdef HAVE_CONFIG_H
23 #include <config.h>
24 #endif
25
26 #include <stdio.h>
27 #include <stdlib.h>
28 #include "mainwindow.h"
29 #include <string>
30
31 int main(int argc, char *argv[])
32 {
33         string port("/dev/ttyUSB0");
34         QApplication app(argc, argv);
35         if (argc > 1)
36           port = argv[1];
37         MainWindow *window = new MainWindow(port);
38
39         window->show();
40         return app.exec();
41 }