📄 gperiodic.h
字号:
/* gperiodic - a program for browsing the periodic table and looking up information on elements. Copyright (C) 2000 Jonas Frantz This file is part of gperiodic. gdpc is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. gdpc is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Authors email : jonas.frantz@helsinki.fi */#define _(String) g_locale_to_utf8((String), -1, &bytes_read, &bytes_written, NULL)#define N_(String) (String)/* structure to hold element data, as initialized from the static * table_data.c. */enum info_types { NAME = 0, SYMBOL, NUMBER, WEIGHT, DENSITY, MELTING, BOILING, ATOMIC_RADIUS, COVALENT_RADIUS, IONIC_RADIUS, ATOMIC_VOLUME, SPECIFIC_HEAT, FUSION_HEAT, EVAPORATION_HEAT, TERMAL_CONDUCTIVITY, DEBYE_TEMP, PAULING, ENERGY, OXIDATION, CONFIGURATION, LATTICE, LATTICE_CONSTANT, LATTICE_CA_RATIO, DISCOVERY_DATE, DISCOVERED_BY, NAMED_AFTER, MAX_INFO_NR /* Has to be the last element */};struct table_entry { char *info[MAX_INFO_NR]; int x; /* x position in the table */ int y; /* y position in the table */ GdkColor color; GtkStyle *style; GtkWidget *button; /* associated gtk button */ GtkTooltips *tooltip; /* associated gtk tooltip */};struct colorscale { /* table of maxcolor GkdColors */ int maxcolor; GdkColor *scale;};typedef double criterion( struct table_entry *entry );void dump_table(void);int parse_table(void);int interactive_shell(void);/* debugging macro, does nothing unless _DEBUG is defined... */#if defined(_DEBUG)# define _DBG(a) (a)#else# define _DBG(a)#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -