• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

keduca

kcontroladdedit.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           kcontroladdedit.h  -  description
00003                              -------------------
00004     begin                : Sun May 27 2001
00005     copyright            : (C) 2001 by Javier Campos
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 KCONTROLADDEDIT_H
00019 #define KCONTROLADDEDIT_H
00020 
00021 #include "../libkeduca/fileread.h"
00022 #include "kcontroladdeditbase.h"
00023 
00024 // Qt forward declarations
00025 class QListViewItem;
00026 
00036 class KControlAddEdit : public KControlAddEditBase  {
00037     Q_OBJECT
00038 
00039 public:
00040     KControlAddEdit(QWidget *parent = 0, const char *name = 0, bool modal = true, WFlags f = 0);
00041     ~KControlAddEdit();
00043     void init(FileRead *keducaFile, bool editMode);
00045     void showPage(QWidget *page);
00046 
00047 private:
00048 
00049     // Private methods
00050 
00052 //  void initGUI();
00054     void fillPage();
00056     void addQuestion();
00058     void configWrite();
00060     void configRead();
00061     void setCurrentAnswerItem(QListViewItem *item);
00062     void resetAnswerValues();
00063 
00064     // Private attributes
00066     FileRead *_keducaFile;
00068     QListViewItem *_currentAnswerItem;
00070     bool _editMode;
00071 
00072 private slots:
00074     void accept();
00076     void slotAnswerSelected(QListViewItem *item);
00078     void slotRemoveAnswer();
00080     void slotAddAnswer();
00082     void slotMoveDownAnswer();
00084     void slotMoveUpAnswer();
00086     void slotDataChanged();
00088     void slotPreviewImage( const QString & );
00090     void slotQuestionTypeChanged( int index );
00091 };
00092 
00093 #endif

keduca

Skip menu "keduca"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

API Reference

Skip menu "API Reference"
  • keduca
  • kstars
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal