![]() |
QJackRcd 1.0.4
Simple turnkey Jack recorder
|
00001 /*************************************************************************** 00002 Copyright (C) 2011 - Olivier ROUITS <olivier.rouits@free.fr> 00003 00004 This program is free software; you can redistribute it and/or modify 00005 it under the terms of the GNU General Public License as published by 00006 the Free Software Foundation; either version 2 of the License, or 00007 (at your option) any later version. 00008 00009 This program is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 GNU General Public License for more details. 00013 00014 You should have received a copy of the GNU General Public License 00015 along with this program; if not, write to the 00016 Free Software Foundation, Inc., 00017 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 ***************************************************************************/ 00027 #ifndef MAINWINDOW_H 00028 #define MAINWINDOW_H 00029 00030 #include <QTimer> 00031 #include <QIcon> 00032 #include <QtGui/QMainWindow> 00033 #include "recorder.h" 00034 00035 namespace Ui 00036 { 00037 class MainWindow; 00038 } 00039 00044 class MainWindow : public QMainWindow 00045 { 00046 Q_OBJECT 00047 00048 public: 00049 MainWindow(Recorder *recorder, QWidget *parent = 0); 00050 ~MainWindow(); 00051 void closeEvent(QCloseEvent *event); 00052 void readSettings(); 00053 void writeSettings(); 00054 00055 private: 00056 Ui::MainWindow *ui; 00057 Recorder *recorder; 00058 QIcon *iconGreen; 00059 QIcon *iconRed; 00060 QIcon *iconOrange; 00061 00062 00063 private slots: 00064 void on_pauseLevelSpin_valueChanged(double ); 00065 void on_pauseDelaySpin_valueChanged(double ); 00066 void on_recButton_clicked(); 00067 void on_pauseSplitCheck_stateChanged(int ); 00068 void on_postActionCombo_currentIndexChanged(int index); 00069 void on_postCmdEdit_textChanged(QString ); 00070 00071 void onRecorderStatusChanged(); 00072 }; 00073 00074 #endif // MAINWINDOW_H