moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / keduca / keduca / kgroupeduca.h
blobf0dbd904574cb0872b2d90d29d6bc0aed17ec74f
1 /***************************************************************************
2 kgroupeduca.h - description
3 -------------------
4 begin : Thu Sep 7 2000
5 copyright : (C) 2000 by Javier Campos Morales
6 email : javi@asyris.org
7 ***************************************************************************/
9 /***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
18 #ifndef KGROUPEDUCA_H
19 #define KGROUPEDUCA_H
21 #include <qvbuttongroup.h>
22 #include <qscrollview.h>
23 #include <qvbox.h>
25 /**
26 *@author Javier Campos Morales
28 class KGroupEduca : public QVButtonGroup {
29 Q_OBJECT
31 public:
32 enum ButtonType { Radio, Check };
34 KGroupEduca(QWidget *parent=0, const char *name=0);
35 ~KGroupEduca();
36 /** Insert a check or radio button */
37 void insertAnswer( const QString& text);
38 /** Set type */
39 void setType(ButtonType Type);
40 /** Clear all kradio or kcheck answers */
41 void clearAnswers();
42 /** Return if is checked radio or check buttons */
43 bool isChecked(int id);
45 protected:
46 QVBox* _vbox2;
48 private:
50 // Private attributes
52 QScrollView *_sv;
53 /** Type mode */
54 ButtonType _typeMode;
57 #endif