kalzium
kalzium.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
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;
00089 KSelectAction *look_action_schemes;
00090
00091 KSelectAction *table_action;
00092 KSelectAction *table_action_schemes;
00093 KSelectAction *numeration_action;
00094
00095 QAction *m_pLegendAction;
00096 QAction *m_SidebarAction;
00097
00098 QAction *m_pPlotAction;
00099 QAction *m_pIsotopeTableAction;
00100 QAction *m_pGlossaryAction;
00101 QAction *m_pRSAction;
00102 QAction *m_pTables;
00103 QAction *m_pMoleculesviewer;
00104 QAction *m_pOBConverterAction;
00105 QAction *m_EQSolverAction;
00106 QAction *export_action;
00107
00108 QAction *m_legendAction;
00109
00113 QVBoxLayout *m_pCentralLayout;
00114
00115 MolcalcWidget *m_calcWidget;
00116
00117 SOMWidgetIMPL *m_somWidget;
00118 TimeWidgetImpl *m_timeWidget;
00119
00120 DetailedGraphicalOverview *m_detailWidget;
00121
00122 QDockWidget *m_dockWin;
00123 QDockWidget *m_InfoDock;
00124 QToolBox *m_toolbox;
00125 KTabWidget *m_infoTabWidget;
00126
00127 int m_toolboxCurrent;
00128
00129 GlossaryDialog *m_glossarydlg;
00130
00131 SearchWidget *m_searchWidget;
00132
00133 ExportDialog *m_exportDialog;
00134
00135 KalziumPainter::MODE m_prevNormalMode;
00136
00137 public slots:
00138 void slotSearchElements();
00139
00140 private slots:
00144 void openInformationDialog( int number );
00145
00146 void elementHover( int num );
00147 void setupStatusBar();
00148
00149 void slotShowEQSolver();
00150
00154 void slotSwitchtoTable( int index );
00155
00159 void slotGlossary();
00160
00164 void slotRS();
00165
00166 void slotMoleculeviewer();
00167
00168 void slotOBConverter();
00169
00170 void slotTables();
00171
00172 void slotSwitchtoLook( int );
00173 void slotSwitchtoNumeration(int);
00174
00178 void slotIsotopeTable();
00179
00180 void slotPlotData();
00181
00182 void slotExportTable();
00183
00184 void slotUpdateSettings();
00185
00186 void slotShowExportDialog();
00187
00191 void showSettingsDialog();
00192
00193 void slotToolboxCurrentChanged(int);
00194
00195 void slotShowHideSidebar( bool checked, bool changeconfig = true );
00196 void slotShowLegend( bool checked, bool changeconfig = true );
00197
00198
00199 protected:
00200 virtual void keyPressEvent( QKeyEvent * e);
00201 };
00202
00203 #endif // _KALZIUM_H_