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

kalzium

kalzium.h

Go to the documentation of this file.
00001 /***************************************************************************
00002 copyright            : (C) 2003, 2004, 2005, 2006, 2007 by Carsten Niehaus
00003 email                : cniehaus@kde.org
00004  ***************************************************************************/
00005 /***************************************************************************
00006  *                                                                         *
00007  *   This program is free software; you can redistribute it and/or modify  *
00008  *   it under the terms of the GNU General Public License as published by  *
00009  *   the Free Software Foundation; either version 2 of the License, or     *
00010  *   (at your option) any later version.                                   *
00011  *                                                                         *
00012  ***************************************************************************/
00013 #ifndef KALZIUM_H
00014 #define KALZIUM_H
00015 
00016 #include <kxmlguiwindow.h>
00017 
00018 class KTabWidget;
00019 class KAction;
00020 class KSelectAction;
00021 class QToolBox;
00022 class QVBoxLayout;
00023 class QDockWidget;
00024 class DetailedInfoDlg;
00025 class PeriodicTableView;
00026 class MolcalcWidget;
00027 class DetailedGraphicalOverview;
00028 class SOMWidgetIMPL;
00029 class TimeWidgetImpl;
00030 class GlossaryDialog;
00031 class IsotopeTable;
00032 class SearchWidget;
00033 class QKeyEvent;
00034 class LegendWidget;
00035 class TableInfoWidget;
00036 class ExportDialog;
00037 
00038 #include "kalziumpainter.h"
00039 
00048 class Kalzium : public KXmlGuiWindow
00049 {
00050     Q_OBJECT
00051     public:
00055         Kalzium();
00056 
00060         virtual ~Kalzium();
00061 
00062     private:
00063         DetailedInfoDlg   *m_infoDialog;
00064 
00065         LegendWidget *m_legendWidget;
00066         TableInfoWidget *m_TableInfoWidget;
00067 
00071         PeriodicTableView *m_PeriodicTableView;
00072 
00076         void setupActions();
00077 
00081         void setupSidebars();
00082 
00083         void extractIconicInformationAboutElement( int elementNumber );
00084 
00088         KSelectAction *look_action_menu_schemes;
00089         KSelectAction *look_action_menu_gradients;
00090     KSelectAction *look_action_schemes;
00091         KSelectAction *look_action_gradients;
00092 
00093         KSelectAction *table_action;
00094         KSelectAction *table_action_schemes;
00095         KSelectAction *numeration_action;
00096         // settings
00097         QAction *m_pLegendAction;
00098         QAction *m_SidebarAction;
00099         // tools
00100         QAction *m_pPlotAction;
00101         QAction *m_pcalculator;
00102         QAction *m_pIsotopeTableAction;
00103         QAction *m_pGlossaryAction;
00104         QAction *m_pRSAction;
00105         QAction *m_pTables;
00106         QAction *m_pMoleculesviewer;
00107         QAction *m_pOBConverterAction;
00108         QAction *m_EQSolverAction;
00109         QAction *export_action;
00110 
00111         QAction *m_legendAction;
00112 
00116         QVBoxLayout *m_pCentralLayout;
00117 
00118         MolcalcWidget *m_calcWidget;
00119 
00120         SOMWidgetIMPL *m_somWidget;
00121         TimeWidgetImpl *m_timeWidget;
00122 
00123         DetailedGraphicalOverview *m_detailWidget;
00124 
00125         QDockWidget *m_dockWin;
00126         QDockWidget *m_InfoDock;
00127         QToolBox *m_toolbox;
00128         KTabWidget *m_infoTabWidget;
00129 
00130         int m_toolboxCurrent;
00131 
00132         GlossaryDialog *m_glossarydlg;
00133 
00134         SearchWidget *m_searchWidget;
00135 
00136         ExportDialog *m_exportDialog;
00137 
00138         KalziumPainter::MODE m_prevNormalMode;
00139 
00140         public slots:
00141             void slotSearchElements();
00142 
00143         private slots:
00147             void openInformationDialog( int number );
00148 
00149         void elementHover( int num );
00150         void setupStatusBar();
00151 
00152         void slotShowEQSolver();
00153 
00157         void slotSwitchtoTable( int index );
00158 
00162         void slotGlossary();
00163 
00167         void slotRS();
00168 
00169         void slotMoleculeviewer();
00170 
00171         void slotOBConverter();
00172 
00173         void slotTables();
00174 
00175         void slotSwitchtoLookGradient( int );
00176         void slotSwitchtoLookScheme( int );
00177         void slotSwitchtoNumeration(int);
00178 
00182         void slotIsotopeTable();
00183 
00184         void slotPlotData();    
00188         void showCalculator();
00189 
00190         void slotExportTable();
00191 
00192         void slotUpdateSettings();
00193 
00194         void slotShowExportDialog();
00195 
00199         void showSettingsDialog();
00200 
00201         void slotToolboxCurrentChanged(int);
00202 
00203         void slotShowHideSidebar( bool checked, bool changeconfig = true );
00204         void slotShowLegend( bool checked, bool changeconfig = true );
00205 
00206     protected:
00207         virtual void keyPressEvent( QKeyEvent * e);
00208 };
00209 
00210 #endif // _KALZIUM_H_

kalzium

Skip menu "kalzium"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeedu

Skip menu "kdeedu"
  •     lib
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.9-20090814
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