00001 /****************************************************************************** 00002 * 00003 * This file is part of Gibberish. 00004 * 00005 * Gibberish is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation; either version 2 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * Gibberish is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with Foobar; if not, write to the Free Software 00017 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00018 * 00019 *****************************************************************************/ 00020 00021 #ifndef H_LESSON_DIALOG 00022 #define H_LESSON_DIALOG 00023 00024 #include "ui_LessonDialog.h" 00025 #include "LessonWidget.h" 00026 #include "Lesson.h" 00027 #include "TimerWidget.h" 00028 00029 class LessonDialog : public QDialog, private Ui::LessonDialog 00030 { 00031 Q_OBJECT 00032 00033 public: 00034 LessonDialog( QWidget* parent = 0, Lesson* lesson = 0 ); 00035 00036 public slots: 00037 void on_qpbStart_clicked(); 00038 void on_qpbNext_clicked(); 00039 void on_qpbPause_clicked(); 00040 void endLesson(); 00041 00042 private: 00043 Lesson * lesson; 00044 LessonWidget * lessonWidget; 00045 TimerWidget * timerWidget; 00046 }; 00047 00048 #endif