atomes 1.1.14
atomes: an atomic scale modeling tool box
Loading...
Searching...
No Matches
w_search.c File Reference

Functions to create the object search widgets, for: More...

#include "atom_edit.h"
+ Include dependency graph for w_search.c:

Go to the source code of this file.

Functions

int check_label_numbers (project *this_proj, int types)
 check how many atom label(s) are visible
 
int select_from_library (gboolean visible, project *this_proj, atom_search *asearch)
 select object to insert from the library
 
atom_selectionpreserve_ogl_selection (glwin *view)
 copy the atom selection, so that it can be re-used once the input assistant is closed.
 
void create_slab_lists (project *this_proj)
 prepare slab(s) OpenGL rendering
 
int get_to_be_selected (glwin *view)
 find which atom(s) are to be selected
 
void restore_ogl_selection (glwin *view)
 restore a saved atom selection
 
int get_asearch_num_objects (atom_search *asearch)
 the number of type of object(s) in this atom search
 
int get_asearch_object (atom_search *asearch)
 get the number of object(s) in this atom search
 
int get_asearch_filter (atom_search *asearch)
 get asearch filter
 
gboolean get_asearch_is_object (atom_search *asearch)
 get asearch object
 
void check_tree_for_this_search (project *this_proj, atom_search *asearch)
 check, and adjust if needed, the tree construction for this atom search
 
void check_all_trees (project *this_proj)
 check all search trees
 
atomic_objectget_atomic_object_by_origin (atomic_object *first, int oid, int aid)
 get insert object from a list by id
 
void motion_to_zero (atom_search *asearch)
 reset motion to 0.0
 
void adjust_object_to_move (project *this_proj, atom_search *asearch, int mv, int id)
 adjust atom search parameters for motion cases
 
void append_to_model (GtkTreeIter *atom_level, atom_search *asearch, gboolean is_object, int h, int i, project *this_proj)
 append data to the search tree store
 
gboolean fill_for_action (atom_search *asearch, int i, int j, project *this_proj)
 test if the atom 'i' of species 'j' matches requirement(s) to be in the tree store
 
gboolean append (atom_search *asearch, project *this_proj, int i, int j)
 test if the atom 'i' of species 'j' must be added to the tree store or not
 
gchar * adjust_picked (gchar *picked, atomic_object *object, gboolean init)
 adjust the name of the replacement object to use for a type of object if any
 
gchar * get_node_name (int node, atom_search *asearch, project *this_proj)
 get node label in the atom search tree store
 
void fill_atom_model (atom_search *asearch, project *this_proj)
 fill atom search tree store
 
G_MODULE_EXPORT void move_up_down (GtkTreeModel *tree_model, GtkTreePath *path, gpointer data)
 Move row up or down in the tree model using the mouse.
 
void add_random_column (atom_search *asearch)
 add a column to the search tree model for the case of random search
 
void update_search_tree (atom_search *asearch)
 update search tree
 
gboolean update_this_search (atom_search *asearch)
 test if it is required to update the search tree or not
 
G_MODULE_EXPORT void set_atom (GtkEntry *entry, gpointer data)
 adjust atom search parameters if >= 10 000 atoms
 
void clear_fields (atom_search *asearch)
 clear all search fields if >= 10 000 atoms
 
gboolean remove_from_model (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data)
 remove from the tree model
 
G_MODULE_EXPORT void remove_atom (GtkButton *but, gpointer data)
 remove atom (or object) from the search tree if >= 10 000 atoms
 
gboolean atom_is_in_model (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data)
 is this atom already in the tree model if >= 10 000 atoms
 
G_MODULE_EXPORT void add_atom (GtkButton *but, gpointer data)
 add atom (or object) to the search tree if >= 10 000 atoms
 
void re_populate_tree_search (atom_search *asearch)
 re populate search tree after atom action if >= 10 000 atoms
 
G_MODULE_EXPORT void set_id (GtkEntry *entry, gpointer data)
 set search id if >= 10 000 atoms
 
void adjust_search_param (atom_search *asearch, project *this_proj, int a, int s, int c, gboolean status)
 adjust parameters for this atom search
 
G_MODULE_EXPORT void set_spec_changed (GtkComboBox *box, gpointer data)
 change the search chemical species
 
void adjust_this_tree_branch (atom_search *asearch, project *this_proj, int oid, int sid, GtkTreeIter iter)
 adjust tree branch (for an entire type of object)
 
void adjust_this_tree_leaf (atom_search *asearch, project *this_proj, int oid, int aid, int new_status, GtkTreeIter iter)
 adjust tree leaf (for a single object)
 
G_MODULE_EXPORT void select_atom (GtkCellRendererToggle *cell_renderer, gchar *string_path, gpointer data)
 toggle select / unselect object in the atom search tree model
 
int get_selected_object_id (gboolean visible, int p, gchar *str, atom_search *asearch)
 get the id of the object selected (in contextual menu, or in combo box)
 
void adjust_data_model_to_replace (project *this_proj, atom_search *asearch, int sid, int vid)
 adjust the data of the tree model to insert 'vid'
 
G_MODULE_EXPORT void changed_action_renderer (GtkCellRendererCombo *combo, gchar *path_string, GtkTreeIter *iter, gpointer data)
 change combo box in atom search tree model
 
GtkTreeModel * replace_combo_tree (gboolean insert, int proj)
 replace combo box in the tree view
 
void search_set_visible (GtkTreeViewColumn *col, GtkCellRenderer *renderer, GtkTreeModel *mod, GtkTreeIter *iter, gpointer data)
 show / hide cell renderer, if visible then add or not pango markup
 
G_MODULE_EXPORT void set_occupancy (GtkEntry *res, gpointer data)
 set occupancy entry callback
 
G_MODULE_EXPORT void set_i_coord (GtkEntry *res, gpointer data)
 set insertion coordinate(s) for the object to be inserted entry callback
 
G_MODULE_EXPORT void set_max_msd (GtkEntry *res, gpointer data)
 set MSD max entry callback
 
G_MODULE_EXPORT void set_max_action (GtkEntry *res, gpointer data)
 set how many time(s) to re-do the action
 
void get_coord_iter_and_edit (gchar *path_string, gpointer data, GtkWidget *widg)
 find iter in the tree model using path string, then edit the data
 
G_MODULE_EXPORT void to_edit_coords (GtkCellRenderer *cell, GtkCellEditable *editable, gchar *path_string, gpointer data)
 to edit data in the atom search tree model
 
G_MODULE_EXPORT void markup_action_renderer (GtkCellRendererCombo *cell, GtkCellEditable *editable, gchar *path_string, gpointer data)
 add pango markup to a combo box inserted in the cell of a tree view
 
G_MODULE_EXPORT void set_max_msd_for_all (GtkEntry *res, gpointer data)
 set the maximum MSD for all atom(s) / object(s) of the search
 
gboolean update_search_model (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data)
 update tree model for each iter
 
G_MODULE_EXPORT void select_all_atoms (GtkTreeViewColumn *col, gpointer data)
 select all element(s) in the tree view column
 
GtkWidget * create_atoms_tree (atom_search *asearch, project *this_proj, int nats)
 create atom search tree view
 
int get_todo_size (atom_search *asearch)
 get the size of the atom search selection list
 
void allocate_todo (atom_search *asearch, int tsize)
 allocate the selection list data buffer
 
void clean_todo (atom_search *asearch)
 clean atom search selection list
 
void clean_picked_and_labelled (atom_search *asearch, gboolean clean_msd)
 initialize atom search data buffers
 
G_MODULE_EXPORT void set_filter_changed (GtkComboBox *box, gpointer data)
 change the search filter
 
G_MODULE_EXPORT void set_object_changed (GtkComboBox *box, gpointer data)
 change the search object
 
G_MODULE_EXPORT void set_search_mode (GtkComboBox *box, gpointer data)
 change search mode
 
G_MODULE_EXPORT void set_search_digit (GtkEntry *res, gpointer data)
 update search entry
 
void prep_search_box (GtkWidget *vbox, GtkWidget *lab, GtkWidget *combo)
 prepare some search widgets
 
GtkWidget * prepare_box_too_much (atom_search *asearch)
 if too many atoms, then individual search
 
GtkWidget * selection_tab (atom_search *asearch, int nats)
 create the search widget
 

Variables

int selected_aspec
 
int atom_to_edit
 
atom_searchcsearch
 
int max_random
 

Detailed Description

Functions to create the object search widgets, for:

Definition in file w_search.c.

Function Documentation

◆ add_atom()

G_MODULE_EXPORT void add_atom ( GtkButton * but,
gpointer data )

add atom (or object) to the search tree if >= 10 000 atoms

Parameters
butthe GtkButton sending the signal
datathe associated data pointer

Definition at line 1506 of file w_search.c.

◆ add_random_column()

void add_random_column ( atom_search * asearch)

add a column to the search tree model for the case of random search

Parameters
asearchthe target atom search

Definition at line 3964 of file w_search.c.

◆ adjust_data_model_to_replace()

void adjust_data_model_to_replace ( project * this_proj,
atom_search * asearch,
int sid,
int vid )

adjust the data of the tree model to insert 'vid'

Parameters
this_projthe target project
asearchthe target atom search
sidthe chemical species
vidid of the object to insert

Definition at line 2452 of file w_search.c.

◆ adjust_object_to_move()

void adjust_object_to_move ( project * this_proj,
atom_search * asearch,
int mv,
int id )

adjust atom search parameters for motion cases

Parameters
this_projthe target project
asearchthe target atom search
mvmotion id (0 = standard, 1 = random)
idobject id

Definition at line 523 of file w_search.c.

◆ adjust_picked()

gchar * adjust_picked ( gchar * picked,
atomic_object * object,
gboolean init )

adjust the name of the replacement object to use for a type of object if any

Parameters
pickedtype name (species, coordination, fragment, molecule name)
objectthe target insert object
init1 / 0 depending on the atom search filter

Definition at line 813 of file w_search.c.

◆ adjust_search_param()

void adjust_search_param ( atom_search * asearch,
project * this_proj,
int a,
int s,
int c,
gboolean status )

adjust parameters for this atom search

Parameters
asearchthe target atom search
this_projthe target project
athe atom id
sthe chemical species, or object id
cthe column id
statusthe new toogle status

Definition at line 1745 of file w_search.c.

◆ adjust_this_tree_branch()

void adjust_this_tree_branch ( atom_search * asearch,
project * this_proj,
int oid,
int sid,
GtkTreeIter iter )

adjust tree branch (for an entire type of object)

Parameters
asearchthe target atom search
this_projthe target project
oidthe column id
sidthe chemical species or object type id
iterthe tree iter

Definition at line 1831 of file w_search.c.

◆ adjust_this_tree_leaf()

void adjust_this_tree_leaf ( atom_search * asearch,
project * this_proj,
int oid,
int aid,
int new_status,
GtkTreeIter iter )

adjust tree leaf (for a single object)

Parameters
asearchthe target atom search
this_projthe target project
oidthe column id
aidthe atom id
new_statusthe new toggle status
iterthe tree iter

Definition at line 2235 of file w_search.c.

◆ allocate_todo()

void allocate_todo ( atom_search * asearch,
int tsize )

allocate the selection list data buffer

Parameters
asearchthe target atom search
tsizethe target size

Definition at line 3717 of file w_search.c.

◆ append()

gboolean append ( atom_search * asearch,
project * this_proj,
int i,
int j )

test if the atom 'i' of species 'j' must be added to the tree store or not

Parameters
asearchthe target atom search
this_projthe target project
ithe atom id
jthe chemical species id

Definition at line 756 of file w_search.c.

◆ append_to_model()

void append_to_model ( GtkTreeIter * atom_level,
atom_search * asearch,
gboolean is_object,
int h,
int i,
project * this_proj )

append data to the search tree store

Parameters
atom_levelthe iter to insert the data to
asearchthe target atom search
is_objectthe atom search object (atom or group of atoms)
hthe object type id
ithe object id
this_projthe target project

Definition at line 643 of file w_search.c.

◆ atom_is_in_model()

gboolean atom_is_in_model ( GtkTreeModel * model,
GtkTreePath * path,
GtkTreeIter * iter,
gpointer data )

is this atom already in the tree model if >= 10 000 atoms

Parameters
modelthe target tree model
paththe path in the tree model
iterthe tree iter
datathe associated data pointer

Definition at line 1481 of file w_search.c.

◆ changed_action_renderer()

G_MODULE_EXPORT void changed_action_renderer ( GtkCellRendererCombo * combo,
gchar * path_string,
GtkTreeIter * iter,
gpointer data )

change combo box in atom search tree model

Parameters
combothe cell renderer combo box
path_stringthe path in the tree model
iterthe tree iter
datathe associated data pointer

Definition at line 2516 of file w_search.c.

◆ check_all_trees()

void check_all_trees ( project * this_proj)

check all search trees

Parameters
this_projthe target project

Definition at line 450 of file w_search.c.

◆ check_label_numbers()

int check_label_numbers ( project * this_proj,
int types )
extern

check how many atom label(s) are visible

Parameters
this_projthe target project
types0 = atoms, 1 = clones, 2 = all

Definition at line 1039 of file popup.c.

◆ check_tree_for_this_search()

void check_tree_for_this_search ( project * this_proj,
atom_search * asearch )

check, and adjust if needed, the tree construction for this atom search

Parameters
this_projthe target project
asearchthe target atom search

Definition at line 214 of file w_search.c.

◆ clean_picked_and_labelled()

void clean_picked_and_labelled ( atom_search * asearch,
gboolean clean_msd )

initialize atom search data buffers

Parameters
asearchthe target atom search
clean_msdclean msd all data (1) or not (0)

Definition at line 3791 of file w_search.c.

◆ clean_todo()

void clean_todo ( atom_search * asearch)

clean atom search selection list

Parameters
asearchthe target atom search

Definition at line 3730 of file w_search.c.

◆ clear_fields()

void clear_fields ( atom_search * asearch)

clear all search fields if >= 10 000 atoms

Parameters
asearchthe target atom search

Definition at line 1385 of file w_search.c.

◆ create_atoms_tree()

GtkWidget * create_atoms_tree ( atom_search * asearch,
project * this_proj,
int nats )

create atom search tree view

Parameters
asearchthe target atom search
this_projthe target project
natsthe total number of atom(s)

Definition at line 3584 of file w_search.c.

◆ create_slab_lists()

void create_slab_lists ( project * this_proj)
extern

prepare slab(s) OpenGL rendering

Parameters
this_projthe target project

Definition at line 898 of file d_box.c.

◆ fill_atom_model()

void fill_atom_model ( atom_search * asearch,
project * this_proj )

fill atom search tree store

Parameters
asearchthe target atom search
this_projthe target project

Definition at line 893 of file w_search.c.

◆ fill_for_action()

gboolean fill_for_action ( atom_search * asearch,
int i,
int j,
project * this_proj )

test if the atom 'i' of species 'j' matches requirement(s) to be in the tree store

Parameters
asearchthe target atom search
ithe atom id
jthe chemical species id (or type id)
this_projthe target project

Definition at line 722 of file w_search.c.

◆ get_asearch_filter()

int get_asearch_filter ( atom_search * asearch)

get asearch filter

Parameters
asearchthe target atom search

Definition at line 170 of file w_search.c.

◆ get_asearch_is_object()

gboolean get_asearch_is_object ( atom_search * asearch)

get asearch object

Parameters
asearchthe target atom search

Definition at line 194 of file w_search.c.

◆ get_asearch_num_objects()

int get_asearch_num_objects ( atom_search * asearch)

the number of type of object(s) in this atom search

Parameters
asearchthe target atom search

Definition at line 125 of file w_search.c.

◆ get_asearch_object()

int get_asearch_object ( atom_search * asearch)

get the number of object(s) in this atom search

Parameters
asearchthe target atom search

Definition at line 149 of file w_search.c.

◆ get_atomic_object_by_origin()

atomic_object * get_atomic_object_by_origin ( atomic_object * first,
int oid,
int aid )

get insert object from a list by id

Parameters
firstthe first insert object of the list
oidobject origin id (type of origin)
aidobject id

Definition at line 474 of file w_search.c.

◆ get_coord_iter_and_edit()

void get_coord_iter_and_edit ( gchar * path_string,
gpointer data,
GtkWidget * widg )

find iter in the tree model using path string, then edit the data

Parameters
path_stringthe path in the tree model
datathe associated data pointer
widgthe GtkWidget sending the signal

Definition at line 2875 of file w_search.c.

◆ get_node_name()

gchar * get_node_name ( int node,
atom_search * asearch,
project * this_proj )

get node label in the atom search tree store

Parameters
nodethe node id
asearchthe target atom search
this_projthe target project

Definition at line 848 of file w_search.c.

◆ get_selected_object_id()

int get_selected_object_id ( gboolean visible,
int p,
gchar * str,
atom_search * asearch )

get the id of the object selected (in contextual menu, or in combo box)

Parameters
visibleis the 'model edition' window visible (1/0)
pthe target project id
strthe string that describing the selection
asearchthe target atom search

Definition at line 2385 of file w_search.c.

◆ get_to_be_selected()

int get_to_be_selected ( glwin * view)
extern

find which atom(s) are to be selected

Parameters
viewthe target glwin

Definition at line 196 of file popup.c.

◆ get_todo_size()

int get_todo_size ( atom_search * asearch)

get the size of the atom search selection list

Parameters
asearchthe target atom search

Definition at line 3681 of file w_search.c.

◆ markup_action_renderer()

G_MODULE_EXPORT void markup_action_renderer ( GtkCellRendererCombo * cell,
GtkCellEditable * editable,
gchar * path_string,
gpointer data )

add pango markup to a combo box inserted in the cell of a tree view

Parameters
cellthe GtkCellRendererCombo
editablethe editable
path_stringthe path in the tree model
datathe associated data pointer

Definition at line 3251 of file w_search.c.

◆ motion_to_zero()

void motion_to_zero ( atom_search * asearch)

reset motion to 0.0

Parameters
asearchthe target atom search

Definition at line 493 of file w_search.c.

◆ move_up_down()

G_MODULE_EXPORT void move_up_down ( GtkTreeModel * tree_model,
GtkTreePath * path,
gpointer data )

Move row up or down in the tree model using the mouse.

Parameters
tree_modelthe target tree model
paththe path in the tree model
datathe associated data pointer

Definition at line 3524 of file w_search.c.

◆ prep_search_box()

void prep_search_box ( GtkWidget * vbox,
GtkWidget * lab,
GtkWidget * combo )

prepare some search widgets

Parameters
vboxthe box to insert the search box in
labthe GtkWidget sending the signal
combothe GtkWidget sending the signal

Definition at line 4076 of file w_search.c.

◆ prepare_box_too_much()

GtkWidget * prepare_box_too_much ( atom_search * asearch)

if too many atoms, then individual search

Parameters
asearchthe target atom search

Definition at line 4094 of file w_search.c.

◆ preserve_ogl_selection()

atom_selection * preserve_ogl_selection ( glwin * view)
extern

copy the atom selection, so that it can be re-used once the input assistant is closed.

Parameters
viewthe glwin the selection comes from

Definition at line 264 of file calc.c.

◆ re_populate_tree_search()

void re_populate_tree_search ( atom_search * asearch)

re populate search tree after atom action if >= 10 000 atoms

Parameters
asearchthe target atom search

Definition at line 1608 of file w_search.c.

◆ remove_atom()

G_MODULE_EXPORT void remove_atom ( GtkButton * but,
gpointer data )

remove atom (or object) from the search tree if >= 10 000 atoms

Parameters
butthe GtkButton sending the signal
datathe associated data pointer

Definition at line 1463 of file w_search.c.

◆ remove_from_model()

gboolean remove_from_model ( GtkTreeModel * model,
GtkTreePath * path,
GtkTreeIter * iter,
gpointer data )

remove from the tree model

Parameters
modelthe tree model
paththe path in the tree model
iterthe tree iter
datathe associated data pointer

Definition at line 1411 of file w_search.c.

◆ replace_combo_tree()

GtkTreeModel * replace_combo_tree ( gboolean insert,
int proj )

replace combo box in the tree view

Parameters
insertadd 'Select ...' combo box item
projtarget crystal builder project id

Definition at line 2615 of file w_search.c.

◆ restore_ogl_selection()

void restore_ogl_selection ( glwin * view)
extern

restore a saved atom selection

Parameters
viewthe glwin to restore the selection to

Definition at line 218 of file calc.c.

◆ search_set_visible()

void search_set_visible ( GtkTreeViewColumn * col,
GtkCellRenderer * renderer,
GtkTreeModel * mod,
GtkTreeIter * iter,
gpointer data )

show / hide cell renderer, if visible then add or not pango markup

Parameters
colthe tree view column
rendererthe cell renderer
modthe tree model
iterthe tree iter
datathe associated data pointer

Definition at line 2700 of file w_search.c.

◆ select_all_atoms()

G_MODULE_EXPORT void select_all_atoms ( GtkTreeViewColumn * col,
gpointer data )

select all element(s) in the tree view column

Parameters
colthe target tree view column
datathe associated data pointer

Definition at line 3346 of file w_search.c.

◆ select_atom()

G_MODULE_EXPORT void select_atom ( GtkCellRendererToggle * cell_renderer,
gchar * string_path,
gpointer data )

toggle select / unselect object in the atom search tree model

Parameters
cell_rendererthe cell renderer toggle button
string_paththe path in the tree model
datathe associated data pointer

Definition at line 2322 of file w_search.c.

◆ select_from_library()

int select_from_library ( gboolean visible,
project * this_proj,
atom_search * asearch )
extern

select object to insert from the library

Parameters
visibleis the 'model edition' window visible
this_projthe target project
asearchthe target atom search

Definition at line 1102 of file w_library.c.

◆ selection_tab()

GtkWidget * selection_tab ( atom_search * asearch,
int nats )

create the search widget

Parameters
asearchthe target atom search
natsthe total number of atoms

Definition at line 4130 of file w_search.c.

◆ set_atom()

G_MODULE_EXPORT void set_atom ( GtkEntry * entry,
gpointer data )

adjust atom search parameters if >= 10 000 atoms

Parameters
entrythe GtkEntry sending the signal
datathe associated data pointer

Definition at line 1345 of file w_search.c.

◆ set_filter_changed()

G_MODULE_EXPORT void set_filter_changed ( GtkComboBox * box,
gpointer data )

change the search filter

Parameters
boxthe GtkComboBox sending the signal
datathe associated data pointer

Definition at line 3858 of file w_search.c.

◆ set_i_coord()

G_MODULE_EXPORT void set_i_coord ( GtkEntry * res,
gpointer data )

set insertion coordinate(s) for the object to be inserted entry callback

Parameters
resthe GtkEntry sending the signal
datathe associated data pointer

Definition at line 2748 of file w_search.c.

◆ set_id()

G_MODULE_EXPORT void set_id ( GtkEntry * entry,
gpointer data )

set search id if >= 10 000 atoms

Parameters
entrythe GtkEntry sending the signal
datathe associated data pointer

Definition at line 1697 of file w_search.c.

◆ set_max_action()

G_MODULE_EXPORT void set_max_action ( GtkEntry * res,
gpointer data )

set how many time(s) to re-do the action

Parameters
resthe GtkEntry sending the signal
datathe associated data pointer

Definition at line 2854 of file w_search.c.

◆ set_max_msd()

G_MODULE_EXPORT void set_max_msd ( GtkEntry * res,
gpointer data )

set MSD max entry callback

Parameters
resthe GtkEntry sending the signal
datathe associated data pointer

Definition at line 2768 of file w_search.c.

◆ set_max_msd_for_all()

G_MODULE_EXPORT void set_max_msd_for_all ( GtkEntry * res,
gpointer data )

set the maximum MSD for all atom(s) / object(s) of the search

Parameters
resthe GtkEntry sending the signal
datathe associated data pointer

Definition at line 3277 of file w_search.c.

◆ set_object_changed()

G_MODULE_EXPORT void set_object_changed ( GtkComboBox * box,
gpointer data )

change the search object

Parameters
boxthe GtkComboBox sending the signal
datathe associated data pointer

Definition at line 3884 of file w_search.c.

◆ set_occupancy()

G_MODULE_EXPORT void set_occupancy ( GtkEntry * res,
gpointer data )

set occupancy entry callback

Parameters
resthe GtkEntry sending the signal
datathe associated data pointer

Definition at line 2728 of file w_search.c.

◆ set_search_digit()

G_MODULE_EXPORT void set_search_digit ( GtkEntry * res,
gpointer data )

update search entry

Parameters
resthe GtkEntry sending the signal
datathe associated data pointer

Definition at line 4049 of file w_search.c.

◆ set_search_mode()

G_MODULE_EXPORT void set_search_mode ( GtkComboBox * box,
gpointer data )

change search mode

Parameters
boxthe GtkComboBox sending the signal
datathe associated data pointer

Definition at line 3983 of file w_search.c.

◆ set_spec_changed()

G_MODULE_EXPORT void set_spec_changed ( GtkComboBox * box,
gpointer data )

change the search chemical species

Parameters
boxthe GtkComboBox sending the signal
datathe associated data pointer

Definition at line 3829 of file w_search.c.

◆ to_edit_coords()

G_MODULE_EXPORT void to_edit_coords ( GtkCellRenderer * cell,
GtkCellEditable * editable,
gchar * path_string,
gpointer data )

to edit data in the atom search tree model

Parameters
cellthe GtkCellRenderer
editablethe editable
path_stringthe path in the tree model
datathe associated data pointer

Definition at line 3235 of file w_search.c.

◆ update_search_model()

gboolean update_search_model ( GtkTreeModel * model,
GtkTreePath * path,
GtkTreeIter * iter,
gpointer data )

update tree model for each iter

Parameters
modelthe tree model
paththe path in the tree model
iterthe tree it
datathe associated data pointer

Definition at line 3311 of file w_search.c.

◆ update_search_tree()

void update_search_tree ( atom_search * asearch)

update search tree

Parameters
asearchthe target atom search

Definition at line 1294 of file w_search.c.

◆ update_this_search()

gboolean update_this_search ( atom_search * asearch)

test if it is required to update the search tree or not

Parameters
asearchthe target atom search

Definition at line 1318 of file w_search.c.

Variable Documentation

◆ atom_to_edit

int atom_to_edit

Definition at line 2717 of file w_search.c.

◆ csearch

atom_search* csearch

Definition at line 2718 of file w_search.c.

◆ max_random

int max_random

Definition at line 2844 of file w_search.c.

◆ selected_aspec

int selected_aspec
extern

Definition at line 179 of file popup.c.