ARB
Public Member Functions | List of all members
KeySorter Class Reference
Inheritance diagram for KeySorter:
Inheritance graph
[legend]
Collaboration diagram for KeySorter:
Collaboration graph
[legend]

Public Member Functions

 KeySorter (GBDATA *gb_key_data)
 
 ~KeySorter ()
 
int get_field_count () const
 
void bubble_sort (int p1, int p2, ReorderMode mode, BoundItemSel *selector)
 
void reverse_order (int p1, int p2)
 
int index_of (GBDATA *gb_key)
 
void move_to (int to_move, int wanted_position)
 
__ATTR__USERESULT GB_ERROR save_changes ()
 

Detailed Description

Definition at line 306 of file ui_species.cxx.

Constructor & Destructor Documentation

KeySorter::KeySorter ( GBDATA gb_key_data)
inline
KeySorter::~KeySorter ( )
inline

Definition at line 401 of file ui_species.cxx.

References ui_assert.

Member Function Documentation

int KeySorter::get_field_count ( ) const
inline

Definition at line 406 of file ui_species.cxx.

Referenced by reorder_up_down().

void KeySorter::bubble_sort ( int  p1,
int  p2,
ReorderMode  mode,
BoundItemSel selector 
)
inline

Definition at line 408 of file ui_species.cxx.

References GBS_free_hash(), NULp, ORDER_FREQ, and swap().

Referenced by reorder_keys().

void KeySorter::reverse_order ( int  p1,
int  p2 
)
inline

Definition at line 439 of file ui_species.cxx.

References swap().

Referenced by reorder_keys().

int KeySorter::index_of ( GBDATA gb_key)
inline

Definition at line 444 of file ui_species.cxx.

References ui_assert.

Referenced by reorder_keys(), and reorder_up_down().

void KeySorter::move_to ( int  to_move,
int  wanted_position 
)
inline

Definition at line 456 of file ui_species.cxx.

References swap().

Referenced by reorder_keys(), and reorder_up_down().

__ATTR__USERESULT GB_ERROR KeySorter::save_changes ( )
inline

Definition at line 469 of file ui_species.cxx.

References GB_get_root(), gb_main, GB_resort_data_base(), NULp, and warning().

Referenced by reorder_keys(), and reorder_up_down().


The documentation for this class was generated from the following file: