mainwindow.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*
  2. Copyright (C) 2016 Tobias Platen
  3. This file is part of OREMO2.
  4. OREMO2 is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. */
  15. #ifndef MAINWINDOW_H
  16. #define MAINWINDOW_H
  17. #include <QMainWindow>
  18. #include "recordingmanager.h"
  19. class QTableView;
  20. class TableModel;
  21. namespace Ui {
  22. class MainWindow;
  23. }
  24. class MainWindow : public QMainWindow
  25. {
  26. Q_OBJECT
  27. public:
  28. explicit MainWindow(RecordingManager* rec,QWidget *parent = 0);
  29. ~MainWindow();
  30. private slots:
  31. void on_btnRec_clicked();
  32. void recFinished();
  33. void on_actionQuit_triggered();
  34. void on_actionOpen_Directory_triggered();
  35. private:
  36. Ui::MainWindow *ui;
  37. RecordingManager* rec;
  38. QTableView* table;
  39. TableModel* model;
  40. QString basedir;
  41. QString activeRec;
  42. //TOOLBAR for record / play / next / prev // BGM ...
  43. //USE external audio editor // AUDACITY .. TIMEVIEW
  44. int currentIndex=0;
  45. void updateTable();
  46. void openSession(QString path);
  47. void checkRecording();
  48. };
  49. #endif // MAINWINDOW_H