macro.cc File Reference

#include "AppHdr.h"
#include "macro.h"
#include "state.h"
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <map>
#include <deque>
#include <vector>
#include <cstdio>
#include <cctype>
#include <cstdlib>
#include "cio.h"
#include "externs.h"
#include "files.h"
#include "libutil.h"
#include "options.h"
#include "message.h"
#include "stuff.h"
#include "initfile.h"
#include "cmd-name.h"
#include "cmd-keys.h"

Include dependency graph for macro.cc:


Classes

struct  command_name
struct  default_binding

Defines

#define USERFUNCBASE   -10000
#define VALID_BIND_COMMAND(cmd)   (cmd > CMD_NO_CMD && cmd < CMD_MIN_SYNTHETIC)

Typedefs

typedef std::deque< int > keybuf
typedef std::map< keyseq, keyseqmacromap
typedef std::map< std::string,
int > 
name_to_cmd_map
typedef std::map< int,
std::string
cmd_to_name_map
typedef std::map< int, int > key_to_cmd_map
typedef std::map< int, int > cmd_to_key_map

Functions

bool is_userfunction (int key)
std::string get_userfunction (int key)
void macro_sendkeys_end_add_expanded (int key)
void macro_sendkeys_start_add_expanded (int key)
void macro_buf_add (const keyseq &actions, bool reverse, bool expanded)
void macro_buf_add (int key, bool reverse, bool expanded)
void macro_buf_add_cmd (command_type cmd, bool reverse)
void macro_clear_buffers ()
bool is_processing_macro ()
int macro_buf_get ()
void macro_save ()
int getchm (int(*rgetch)())
int getchm (KeymapContext mc, int(*rgetch)())
int getch_with_command_macros ()
void flush_input_buffer (int reason)
void macro_add_query (void)
void macro_init ()
void macro_userfn (const char *keys, const char *regname)
bool is_synthetic_key (int key)
void add_key_recorder (key_recorder *recorder)
void remove_key_recorder (key_recorder *recorder)
int get_macro_buf_size ()
void init_keybindings ()
command_type name_to_command (std::string name)
std::string command_to_name (command_type cmd)
command_type key_to_command (int key, KeymapContext context)
int command_to_key (command_type cmd)
KeymapContext context_for_command (command_type cmd)
void bind_command_to_key (command_type cmd, int key)
std::string command_to_string (command_type cmd)
void insert_commands (std::string &desc, std::vector< command_type > cmds, bool formatted)
void insert_commands (std::string &desc, const int first,...)

Define Documentation

#define USERFUNCBASE   -10000

#define VALID_BIND_COMMAND ( cmd   )     (cmd > CMD_NO_CMD && cmd < CMD_MIN_SYNTHETIC)


Typedef Documentation

typedef std::map<int, int> cmd_to_key_map

typedef std::map<int, std::string> cmd_to_name_map

typedef std::map<int, int> key_to_cmd_map

typedef std::deque<int> keybuf

typedef std::map<keyseq,keyseq> macromap

typedef std::map<std::string, int> name_to_cmd_map


Function Documentation

void add_key_recorder ( key_recorder recorder  ) 

void bind_command_to_key ( command_type  cmd,
int  key 
)

Here is the call graph for this function:

int command_to_key ( command_type  cmd  ) 

Here is the call graph for this function:

std::string command_to_name ( command_type  cmd  ) 

std::string command_to_string ( command_type  cmd  ) 

Here is the call graph for this function:

KeymapContext context_for_command ( command_type  cmd  ) 

void flush_input_buffer ( int  reason  ) 

Here is the call graph for this function:

int get_macro_buf_size (  ) 

std::string get_userfunction ( int  key  ) 

int getch_with_command_macros ( void   ) 

Here is the call graph for this function:

int getchm ( KeymapContext  mc,
int(*)()  rgetch 
)

Here is the call graph for this function:

int getchm ( int(*)()  rgetch  ) 

Here is the call graph for this function:

void init_keybindings (  ) 

Here is the call graph for this function:

void insert_commands ( std::string desc,
const int  first,
  ... 
)

Here is the call graph for this function:

void insert_commands ( std::string desc,
std::vector< command_type cmds,
bool  formatted 
)

Here is the call graph for this function:

bool is_processing_macro (  ) 

bool is_synthetic_key ( int  key  ) 

bool is_userfunction ( int  key  ) 

command_type key_to_command ( int  key,
KeymapContext  context 
)

Here is the call graph for this function:

void macro_add_query ( void   ) 

Here is the call graph for this function:

void macro_buf_add ( int  key,
bool  reverse,
bool  expanded 
)

void macro_buf_add ( const keyseq actions,
bool  reverse,
bool  expanded 
)

void macro_buf_add_cmd ( command_type  cmd,
bool  reverse 
)

Here is the call graph for this function:

int macro_buf_get (  ) 

void macro_clear_buffers (  ) 

Here is the call graph for this function:

void macro_init (  ) 

Here is the call graph for this function:

void macro_save (  ) 

Here is the call graph for this function:

void macro_sendkeys_end_add_expanded ( int  key  ) 

void macro_sendkeys_start_add_expanded ( int  key  ) 

Here is the call graph for this function:

void macro_userfn ( const char *  keys,
const char *  regname 
)

command_type name_to_command ( std::string  name  ) 

void remove_key_recorder ( key_recorder recorder  ) 


Generated on Thu Jan 13 13:09:09 2011 by  doxygen 1.5.6