moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / keduca / keduca / keduca_part.h
blob4b10c1f221c51300a9b3d931c48111009f2b2b39
1 /*
3 * KEduca - Interactive Tests and Exams for KDE
5 * Copyright (c)
7 * 2004: Henrique Pinto <henrique.pinto@kdemail.net>
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 #ifndef KEDUCA_PART_H
25 #define KEDUCA_PART_H
27 #include <kparts/part.h>
29 class KEducaView;
30 class KAboutData;
32 /**
33 * KPart component for KEduca
34 * @author Henrique Pinto <henrique.pinto@kdemail.net>
36 class KEducaPart : public KParts::ReadOnlyPart
38 Q_OBJECT
39 public:
41 * Constructor.
43 KEducaPart( QWidget *parentWidget, const char *widgetName, QObject *parent,
44 const char *name, const QStringList &args );
47 * Destructor.
49 virtual ~KEducaPart();
52 * Returns information about this part.
54 static KAboutData* createAboutData();
56 protected:
58 * Opens the file indicated in the m_file member variable.
59 * Returns true on success, false if errors occured.
61 virtual bool openFile();
63 protected slots:
65 * Shows the configuration dialog.
67 void slotConfigure();
70 * Updates the configuration in case the user has changed it in
71 * the Config Dialog.
73 void updateConfiguration();
75 private:
77 * Sets the KActions for this part.
79 void setupActions();
82 * The widget for this part.
84 KEducaView *m_view;
87 #endif // KEDUCA_PART_H