1 /***************************************************************************
3 usage labels dialog page
5 -----------------------------------------------------------------------
7 begin : Sun Sep 12 15:38:31 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 /***************************************************************************
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. *
24 ***************************************************************************/
26 #ifndef UsageOptPage_included
27 #define UsageOptPage_included
29 #include "UsageOptPageForm.h"
31 #include <UsageManager.h>
39 class UsageOptPage
: public UsageOptPageForm
47 const vector
<QString
> &usages
,
49 QWidget
*parent
= NULL
,
50 const char *name
= NULL
53 void getUsageLabels (vector
<QString
> &ret_usages
, vector
<int> &ret_Index
);
55 static void cleanUnused(kvoctrainDoc
*doc
, const vector
<int> &lessonIndex
, int old_lessons
);
58 void updateListBox(int start
);
62 void slotDeleteUsage();
64 void slotUsageChosen(int);
65 void slotModifyUsage();
71 vector
<int> usageIndex
; // contains indices of usages on exec()
72 // negative values are new lessons
74 #endif // UsageOptPage_included