waran/AcquisitionWidget.h
Go to the documentation of this file.
00001 /***************************************************************************
00002 **
00003 **  This file is part of waran.
00004 **
00005 **  This file may be distributed and/or modified under the terms of the
00006 **  GNU General Public License version 2 or 3 as published by the Free
00007 **  Software Foundation and appearing in the file LICENSE.GPL included
00008 **  in the packaging of this file.
00009 **
00010 **  This file is distributed in the hope that it will be useful, but WITHOUT
00011 **  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00012 **  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
00013 **  more details.
00014 **
00015 **  You should have received a copy of the GNU General Public License
00016 **  along with this program. If not, see <http://www.gnu.org/licenses/>.
00017 **
00018 **  
00019 **
00020 **  Created: 2012-02-04
00021 **  Authors:
00022 **    Marc Wathelet (ISTerre, Grenoble, France)
00023 **
00024 ***************************************************************************/
00025 
00026 #ifndef ACQUISITIONWIDGET_H
00027 #define ACQUISITIONWIDGET_H
00028 
00029 #include "ui_AcquisitionWidget.h"
00030 #include "NetworkParameters.h"
00031 
00032 class Station;
00033 
00034 class AcquisitionWidget : public QWidget, private Ui::AcquisitionWidget
00035 {
00036   Q_OBJECT
00037 public:
00038   AcquisitionWidget(QWidget * parent=0);
00039   ~AcquisitionWidget();
00040 
00041   const NetworkParameters& networkParameters() {return _networkParameters;}
00042   void setStations(QList<Station *> * list);
00043 private slots:
00044   void on_seismicStartButton_clicked();
00045   void on_seismicStopButton_clicked();
00046   void on_gpsStartButton_clicked();
00047   void on_gpsStopButton_clicked();
00048   void on_gpsNavigationButton_clicked();
00049   void on_gpsDownloadButton_clicked();
00050   void on_rebootButton_clicked();
00051   void on_powerOffButton_clicked();
00052   void on_clearUsbButton_clicked();
00053   void on_networkParameters_clicked();
00054   void on_seismicParameters_clicked();
00055   void adjustColumnWidth();
00056 signals:
00057   void networkParametersChanged();
00058 private:
00059   bool checkSelection(const QString& title);
00060 
00061   QList<Station *> * _stations;
00062   NetworkParameters _networkParameters;
00063   EventRestrictor _resizeColumns;
00064 };
00065 
00066 #endif // ACQUISITIONWIDGET_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines