1 /**********************************************************************************************************
2 Copyright (c) 2002-2013 Abdul-Rahman Allouche. All rights reserved
3 
4 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5 documentation files (the Gabedit), to deal in the Software without restriction, including without limitation
6 the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
7 and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
8 
9   The above copyright notice and this permission notice shall be included in all copies or substantial portions
10   of the Software.
11 
12 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
13 TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
14 THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
15 CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
16 DEALINGS IN THE SOFTWARE.
17 ************************************************************************************************************/
18 
19 #ifndef __GABEDIT_UTILSORB_H__
20 #define __GABEDIT_UTILSORB_H__
21 
22 void InitializeAll();
23 gint GetTotalNelectrons();
24 gdouble GetSumAbsCharges();
25 void DefineNOccs();
26 gdouble Dpn(gdouble e,gint n);
27 char GetSymmetry(gint l);
28 gint GetNelectrons(char *symb);
29 void printLineChar(char c,gint n);
30 gdouble **CalculSm12(gdouble *S,gint n,gint nvec);
31 gdouble** CreateTable2(gint N);
32 gdouble** FreeTable2(gdouble **T,gint N);
33 void PrintAllOrb(gdouble** M);
34 gint get_type_file_orb(gchar *fileName);
35 gint get_type_basis_in_gamess_file(gchar *fileName);
36 gint get_type_basis_in_gaussian_file(gchar *fileName);
37 gint get_type_basis_in_qchem_file(gchar *fileName);
38 gint get_type_basis_in_nwchem_file(gchar *fileName);
39 gint get_type_basis_in_gabedit_file(gchar *fileName);
40 gint get_type_basis_in_molden_file(gchar *fileName);
41 gboolean testi(char c);
42 gboolean this_is_a_real(gchar *t);
43 gboolean this_is_a_integer(gchar *t);
44 gboolean testapointeE(char c);
45 gboolean testpointeE(const gchar *t);
46 void free_data_all();
47 GtkWidget *create_grid_frame( GtkWidget *vboxall,gchar *title);
48 void create_grid(gchar* title);
49 void read_any_file(gchar* FileName);
50 gint get_number_of_point(GtkWidget* Entry);
51 gboolean get_a_float(GtkWidget* Entry,gdouble* value, gchar* erroMessage);
52 void initialise_global_orbitals_variables();
53 void close_window_orb(GtkWidget*win, gpointer data);
54 void add_glarea_child(GtkWidget* winchild,gchar* title);
55 void create_color_surfaces_file();
56 void read_color_surfaces_file();
57 void create_opengl_file();
58 void read_opengl_file();
59 void create_grid_sas(gchar* title);
60 void set_scale_ball_stick_dlg();
61 void createColorMapOptionsWindow(GtkWidget* win);
62 void create_grid_ELF_Dens_analyze(gboolean ongrid);
63 GtkWidget* set_alphaFED_dialog ();
64 void resetAllColorMapOrb();
65 
66 #endif /* __GABEDIT_UTILSORB_H__ */
67 
68