The Gnome Chemistry Utils
0.13.7
|
00001 // -*- C++ -*- 00002 00003 /* 00004 * Gnome Crystal 00005 * atomsdlg.h 00006 * 00007 * Copyright (C) 2002-2012 Jean Bréfort <jean.brefort@normalesup.org> 00008 * 00009 * This program is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU General Public License as 00011 * published by the Free Software Foundation; either version 3 of the 00012 * License, or (at your option) any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 00022 * USA 00023 */ 00024 00025 #ifndef GCR_ATOMSDLG_H 00026 #define GCR_ATOMSDLG_H 00027 00028 #include <gcugtk/dialog.h> 00029 #include <gcugtk/gcuperiodic.h> 00030 #include "grid.h" 00031 #include <vector> 00032 00034 using namespace std; 00035 00036 namespace gcr { 00037 class Document; 00038 class Application; 00039 00045 class AtomsDlg: public gcugtk::Dialog 00046 { 00047 friend class AtomsDlgPrivate; 00048 public: 00055 AtomsDlg (Application *App, Document* pDoc); 00059 virtual ~AtomsDlg (); 00060 00065 void ReloadData (); 00066 00067 private: 00068 void Closed (); 00069 void PopulateRadiiMenu (); 00070 00071 private: 00072 Document *m_pDoc; 00073 GcrGrid *m_Grid; 00074 GcuPeriodic* periodic; 00075 GtkToggleButton* CustomColor; 00076 GtkColorButton *AtomColor; 00077 GtkEntry *AtomR; 00078 unsigned short m_nElt; 00079 std::vector < Atom * > m_Atoms; 00080 int m_AtomSelected; 00081 GtkWidget *DeleteBtn, *DeleteAllBtn, *SelectEltBtn; 00082 GtkComboBoxText *RadiusTypeMenu, *RadiusMenu; 00083 GtkSpinButton *ChargeBtn, *ScaleBtn; 00084 const GcuAtomicRadius **m_Radii; 00085 GcuAtomicRadius m_Radius; 00086 int m_RadiusType, m_Charge; 00087 vector<int> m_RadiiIndex; 00088 unsigned long m_RadiiSignalID, m_EntryFocusOutSignalID, m_ColorSignalID, 00089 m_RadiusTypeSignalID, m_ChargeSignalID, m_ScaleSignalID; 00090 bool m_Closing; 00091 double m_Ratio; 00092 GdkRGBA m_RGBA; 00093 }; 00094 00095 } // namespace gcr 00096 00097 #endif //GCR_ATOMSDLG_H