xa_undo.c File Reference

Undo-Window-Funktions UI_undo_. More...

#include "MS_Def0.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../ut/ut_geo.h"
#include "../ut/ut_txt.h"
#include "../ut/ut_txfil.h"
#include "../ut/ut_memTab.h"
#include "../gtk/ut_gtk.h"
#include "../gr/ut_UI.h"
#include "xa.h"
#include "xa_ui.h"
#include "xa_undo.h"
#include "ut_ui_TX.h"

Data Structures

struct  undoObj

Functions

 typedef_MemTab (undoObj)
static MemTab (undoObj)
int UNDO_init1 (void *parent)
int UNDO_init2 (void *parent)
int UNDO_grp_add (long lNr, int grpNr)
int UNDO_recNr_grpNr (int iGrp)
int UNDO_grpNr_recNr (int iRec)
int UNDO_grp_ck (long lNr)
int UNDO_grp_undo ()
int UNDO_grp_redo ()
int UNDO_grp_del ()
int UNDO_grp_res ()
int UNDO_ln_res (long lNr)
int UNDO_ln_del (long lNr)
int UNDO_chg_add (long lNr, int grpNr)
int UNDO_chg_ins (long newLnr)
int UNDO_clear ()
int UNDO_grp_upd ()
int UNDO_upd__ ()
int UNDO_upd_bt ()
int UNDO_upd_lb ()
int UNDO_dump ()

Variables

static void * wUndo
static void * btUndo
static void * btRedo

Detailed Description

Undo-Window-Funktions UI_undo_.

*/
#ifdef globTag
 void UNDO(){}
#endif
/*

=====================================================
Liste_Funktionen_Beginn:

UNDO_init1
UNDO_init2
UNDO_clear         clear all groups
UNDO_lock

UNDO_grp_add       add new group to undoTab
UNDO_chg_add       save line-modified-record
UNDO_chg_ins       increment all linenumbers > lNr

UNDO_grp_undo      delete;  --actGrp;
UNDO_grp_redo      restore; ++actGrp;
UNDO_grp_del       delete actGrp
UNDO_grp_res       restore active grp
UNDO_ln_del        delete line
UNDO_ln_res        restore line

UNDO_grpNr_recNr   get groupNr from recordnr
UNDO_recNr_grpNr   get recordNr from groupNr
UNDO_grp_ck        test if group already exists in undoTab
UNDO_grp_upd       delete all following groups after actGrp
UNDO_upd_bt        update buttons
UNDO_upd_lb        update Label

UNDO_dump

Liste_Funktionen_Ende:
=====================================================

Function Documentation

typedef_MemTab ( undoObj   ) 
static MemTab ( undoObj   )  [static]
int UNDO_init1 ( void *  parent  ) 
int UNDO_init2 ( void *  parent  ) 
int UNDO_grp_add ( long  lNr,
int  grpNr 
)

    add sourceObj to do/undo-list 
    for delete: call UNDO_grp_del() after UNDO_grp_add().
    Input:
      lNr       lineNr of sourceObj
      grpNr     0 for first obj to add to list, 1 for second ..

int UNDO_recNr_grpNr ( int  iGrp  ) 
int UNDO_grpNr_recNr ( int  iRec  ) 
int UNDO_grp_ck ( long  lNr  ) 
int UNDO_grp_undo (  ) 

Ctrl-Z pressed or Undo-Button pressed ..

int UNDO_grp_redo (  ) 

CB Redo-Button

int UNDO_grp_del (  ) 
int UNDO_grp_res (  ) 
int UNDO_ln_res ( long  lNr  ) 
int UNDO_ln_del ( long  lNr  ) 
int UNDO_chg_add ( long  lNr,
int  grpNr 
)
int UNDO_chg_ins ( long  newLnr  ) 
int UNDO_clear (  ) 
int UNDO_grp_upd (  ) 
int UNDO_upd__ (  ) 
int UNDO_upd_bt (  ) 
int UNDO_upd_lb (  ) 

display Label

int UNDO_dump (  ) 

dump delTab


Variable Documentation

void* wUndo [static]
void * btUndo [static]
void * btRedo [static]
Generated on Fri Apr 6 09:40:11 2012 for gCAD3D by  doxygen 1.6.3