A Morse Code Training Application. https://bits.sigpipe.me/projects/cutecw/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

40 lines
753 B

#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QtMultimedia/QAudioOutput>
#include <QtCore/QSignalMapper>
#include <QKeyEvent>
#include "Generator.h"
#include "Morse.h"
namespace Ui {
class MainWindow;
class Prefs;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
QAudioOutput *createAudioOutput();
void keyPressEvent(QKeyEvent *);
void keyReleaseEvent(QKeyEvent *);
bool event(QEvent *event);
public slots:
void startIt();
private:
Ui::MainWindow *ui;
Ui::Prefs *prefs;
QAudioOutput *m_audioOutput;
Morse *m_morse;
QSignalMapper *m_signalMapper;
};
#endif // MAINWINDOW_H