1 /***************************************************************************
2 copyright : (C) 2003, 2004 by Carsten Niehaus
3 email : cniehaus@kde.org
4 ***************************************************************************/
5 /***************************************************************************
7 * This program is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation; either version 2 of the License, or *
10 * (at your option) any later version. *
12 ***************************************************************************/
21 #include <kmainwindow.h>
24 class QuizsettingsDlg
;
28 class InformationWidget
;
31 * @short Application Main Window
32 * @author Carsten Niehaus <cniehaus@kde.org>
35 class Kalzium
: public KMainWindow
49 KalziumDataObject
* data() const;
52 friend class privatedata
;
57 * the date which the pSliderWidget will start with
61 InformationWidget
*m_info
;
64 * this Pointer points to the current PSE. The pointer
65 * is updated every time the users chooses a new
71 *initialize the Statusbar
73 void setupStatusBar();
81 *display text in the statusbar item at index int
83 void slotStatusBar(const QString
& text
, int id
);
86 *diplay the energy unit in the Statusbar
88 void displayEnergie();
91 * all KActions Kalzium uses
93 KSelectAction
*schema_action
;
94 KSelectAction
*look_action
;
95 KSelectAction
*numeration_action
;
96 KAction
*m_pTimelineAction
,
101 *m_pLearningmodeAction
;
104 * the layout of the central Widget ( CentralWidget )
106 QVBoxLayout
*m_pCentralLayout
;
110 * opens the information dialog for the element @p number
112 void openInformationDialog( int number
);
115 * this slot switches Kalzium to the selected colorscheme
117 void slotShowScheme(int);
119 void slotShowLegend();
121 void slotStateOfMatter();
123 void slotSwitchtoNumeration(int);
127 void slotCalculate();
129 void slotLearningmode();
132 * this slot activates the timeline.
134 void slotShowTimeline();
136 void slotUpdateSettings();
139 * This slot switches Kalzium to the selected PSE
140 * @param simple If true the PSE will be simple
142 void slotSwitchtoPSE(int index
);
145 * These slots are for the standardactions
147 void showSettingsDialog();
151 * @short A private data class Kalzium uses
152 * @author Carsten Niehaus <cniehaus@kde.org>
155 class Kalzium::privatedata
159 KalziumDataObject
*kalziumData
;
161 privatedata( Kalzium
*parent
) : k( parent
){};
165 #endif // _KALZIUM_H_