moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kvoctrain / kvoctrain / docprop-dialogs / LessOptPage.h
blob181eda1e3522979c1bbbc92ebe3941eeac7ab1c8
1 /***************************************************************************
3 lesson properties dialog page
5 -----------------------------------------------------------------------
7 begin : Thu Jun 3 22:03:50 1999
9 copyright : (C) 1999-2001 Ewald Arnold <kvoctrain@ewald-arnold.de>
10 (C) 2001 The KDE-EDU team
11 (C) 2005 Peter Hedlund <peter@peterandlinda.com>
13 -----------------------------------------------------------------------
15 ***************************************************************************/
17 /***************************************************************************
18 * *
19 * This program is free software; you can redistribute it and/or modify *
20 * it under the terms of the GNU General Public License as published by *
21 * the Free Software Foundation; either version 2 of the License, or *
22 * (at your option) any later version. *
23 * *
24 ***************************************************************************/
26 #ifndef LessOptPage_included
27 #define LessOptPage_included
29 #include "LessOptPageForm.h"
31 #include <vector>
32 using namespace std;
34 class kvoctrainDoc;
35 class QComboBox;
37 class LessOptPage : public LessOptPageForm
39 Q_OBJECT
41 public:
43 LessOptPage
45 QComboBox *lessons,
46 kvoctrainDoc *doc,
47 QWidget *parent = NULL,
48 const char *name = NULL
51 void getLesson (QComboBox *ret_lesson, vector<int>& ret_Index);
53 static void cleanUnused(kvoctrainDoc *doc,
54 const QComboBox *lessons,
55 const vector<int> &lessonIndex,
56 int old_lessons,
57 vector<int> &lessons_in_use);
59 protected:
60 void updateListBox(int start);
62 protected slots:
64 void slotDeleteLesson();
65 void slotNewLesson();
66 void slotLessonChosen(int);
67 void slotModifyLesson();
68 void slotCleanup();
70 private:
71 kvoctrainDoc *doc;
72 int act_lesson;
73 vector<int> lessonIndex; // contains indices of lesson on exec()
74 // negative values are new lessons
76 #endif // LessOptPage_included