keduca
kgroupeduca.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 kgroupeduca.h - description 00003 ------------------- 00004 begin : Thu Sep 7 2000 00005 copyright : (C) 2000 by Javier Campos Morales 00006 email : javi@asyris.org 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef KGROUPEDUCA_H 00019 #define KGROUPEDUCA_H 00020 00021 #include <qvbuttongroup.h> 00022 #include <qscrollview.h> 00023 #include <qvbox.h> 00024 00028 class KGroupEduca : public QVButtonGroup { 00029 Q_OBJECT 00030 00031 public: 00032 enum ButtonType { Radio, Check }; 00033 00034 KGroupEduca(QWidget *parent=0, const char *name=0); 00035 ~KGroupEduca(); 00037 void insertAnswer( const QString& text); 00039 void setType(ButtonType Type); 00041 void clearAnswers(); 00043 bool isChecked(int id); 00044 00045 protected: 00046 QVBox* _vbox2; 00047 00048 private: 00049 00050 // Private attributes 00051 00052 QScrollView *_sv; 00054 ButtonType _typeMode; 00055 }; 00056 00057 #endif