Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

hthist.cc File Reference

#include "htatom.h"
#include "htdata.h"
#include "hthist.h"
#include "htstring.h"
#include "tools.h"
#include <string.h>

Go to the source code of this file.

Defines

#define ATOM_HT_HISTORY_ENTRY   MAGICD("HIS\0")
#define ATOM_COMPARE_KEYS_HISTORY_ENTRY   MAGICD("HIS\1")
#define MAX_HISTORY_ENTRY_COUNT   40

Functions

bool insert_history_entry (ht_list *history, char *name, ht_view *view)
int compare_keys_history_entry (Object *key_a, Object *key_b)
void create_hist_atom (UINT atom)
void destroy_hist_atom (UINT atom)
void store_history (ht_object_stream *s)
bool load_history (ht_object_stream *s)
 BUILDER (ATOM_HT_HISTORY_ENTRY, ht_history_entry)
bool init_hist ()
void done_hist ()

Variables

int hist_atoms []


Define Documentation

#define ATOM_COMPARE_KEYS_HISTORY_ENTRY   MAGICD("HIS\1")
 

Definition at line 30 of file hthist.cc.

Referenced by done_hist(), and init_hist().

#define ATOM_HT_HISTORY_ENTRY   MAGICD("HIS\0")
 

Definition at line 29 of file hthist.cc.

Referenced by done_hist(), init_hist(), and ht_history_entry::object_id().

#define MAX_HISTORY_ENTRY_COUNT   40
 

Definition at line 32 of file hthist.cc.

Referenced by insert_history_entry().


Function Documentation

BUILDER ATOM_HT_HISTORY_ENTRY  ,
ht_history_entry 
 

int compare_keys_history_entry Object key_a,
Object key_b
 

Definition at line 135 of file hthist.cc.

Referenced by create_hist_atom(), and init_hist().

void create_hist_atom UINT  atom  ) 
 

Definition at line 156 of file hthist.cc.

References compare_keys_history_entry(), ht_clist::init(), register_atom(), and UINT.

Referenced by init_hist().

void destroy_hist_atom UINT  atom  ) 
 

Definition at line 163 of file hthist.cc.

References ht_clist::destroy(), find_atom(), UINT, and unregister_atom().

Referenced by done_hist(), and load_history().

void done_hist  ) 
 

Definition at line 219 of file hthist.cc.

References ATOM_COMPARE_KEYS_HISTORY_ENTRY, ATOM_HT_HISTORY_ENTRY, destroy_hist_atom(), hist_atoms, UINT, UNREGISTER, and unregister_atom().

bool init_hist  ) 
 

Definition at line 202 of file hthist.cc.

References ATOM_COMPARE_KEYS_HISTORY_ENTRY, ATOM_HT_HISTORY_ENTRY, compare_keys_history_entry(), create_hist_atom(), hist_atoms, REGISTER, register_atom(), and UINT.

bool insert_history_entry ht_list history,
char *  name,
ht_view view
 

Definition at line 34 of file hthist.cc.

References ht_list::count(), ht_list::del_multiple(), file, ht_list::find(), ht_view::getdata(), ht_object_stream_bin::init(), LIST_UNDEFINED, MAX_HISTORY_ENTRY_COUNT, ht_list::move(), ht_list::prepend(), and UINT.

Referenced by ht_uformat_viewer::address_input(), blockop_dialog(), eval_dialog(), file_chooser(), file_open_dialog(), inputboxrect(), replace_dialog(), search_dialog(), and text_search_dialog().

bool load_history ht_object_stream s  ) 
 

Definition at line 184 of file hthist.cc.

References destroy_hist_atom(), ht_object_stream::getIntDec(), ht_object_stream::getIntHex(), ht_object_stream::getObject(), NULL, register_atom(), and UINT.

Referenced by ht_app::load().

void store_history ht_object_stream s  ) 
 

Definition at line 173 of file hthist.cc.

References find_atom(), hist_atoms, NULL, ht_object_stream::putIntDec(), ht_object_stream::putIntHex(), ht_object_stream::putObject(), and UINT.

Referenced by ht_app::store().


Variable Documentation

int hist_atoms[]
 

Initial value:

Definition at line 144 of file hthist.cc.

Referenced by done_hist(), init_hist(), and store_history().


Generated on Fri May 7 21:15:48 2004 by doxygen 1.3.5