claybrowservalidate.c File Reference

#include "frontier.h"
#include "standard.h"
#include "dialogs.h"
#include "error.h"
#include "strings.h"
#include "opinternal.h"
#include "claybrowserstruc.h"
#include "claybrowservalidate.h"
#include "langinternal.h"
#include "tablestructure.h"

Include dependency graph for claybrowservalidate.c:

Go to the source code of this file.

Data Structures

struct  tydraginfo

Defines

#define collidewithequal   0x0001
#define collidewitholder   0x0002
#define collidewithnewer   0x0004
#define nocollisions   0
#define bilateralcollision   (collidewitholder + collidewithnewer)

Typedefs

typedef tydraginfoptrdraginfo

Enumerations

enum  tyaction { validatemove, validatepaste }
enum  {
  ixsomeitems, ixan, ixanewer, ixanolder,
  ixitemnamed, ixalreadyexists
}

Functions

boolean browservalidatedrag (hdlheadrecord hsource, hdlheadrecord hdest, tydirection dir)
static boolean browsercompareforcollision (hdlheadrecord hnode, long pdragmodified, bigstring bs1, bigstring bs2, ptrdraginfo draginfo)
static boolean collisionvisit (hdlheadrecord hnode, ptrvoid refcon)
static boolean browsercollisiondialog (hdlheadrecord hdest, ptrdraginfo draginfo)
static boolean validatemovevisit (hdlheadrecord hnode, ptrvoid refcon)
static boolean browservalidateinsertion (hdlheadrecord hdest, hdlheadrecord hscrap, tydirection dir, tyaction action)
boolean browservalidatemove (hdlheadrecord hdest, hdlheadrecord hscrap, tydirection dir)
boolean browservalidatepaste (hdlheadrecord hscrap, hdlheadrecord hdest, tydirection dir)
static boolean compareforcopyvisit (hdlheadrecord hnode, ptrvoid refcon)
static boolean validatecopyvisit (hdlheadrecord hnode, ptrvoid refcon)
boolean browservalidatecopy (bigstring bscommand)

Variables

static long dragmodified
byteactionstrings []
bytedialogstrings []
static ptrstring pcommand


Define Documentation

#define bilateralcollision   (collidewitholder + collidewithnewer)
 

Definition at line 46 of file claybrowservalidate.c.

Referenced by browsercompareforcollision().

#define collidewithequal   0x0001
 

Definition at line 40 of file claybrowservalidate.c.

Referenced by browsercompareforcollision().

#define collidewithnewer   0x0004
 

Definition at line 42 of file claybrowservalidate.c.

Referenced by browsercollisiondialog(), and browsercompareforcollision().

#define collidewitholder   0x0002
 

Definition at line 41 of file claybrowservalidate.c.

Referenced by browsercollisiondialog(), and browsercompareforcollision().

#define nocollisions   0
 

Definition at line 44 of file claybrowservalidate.c.

Referenced by browsercollisiondialog().


Typedef Documentation

typedef struct tydraginfo * ptrdraginfo
 


Enumeration Type Documentation

anonymous enum
 

Enumerator:
ixsomeitems 
ixan 
ixanewer 
ixanolder 
ixitemnamed 
ixalreadyexists 

Definition at line 67 of file claybrowservalidate.c.

enum tyaction
 

Enumerator:
validatemove 
validatepaste 

Definition at line 52 of file claybrowservalidate.c.


Function Documentation

static boolean browsercollisiondialog hdlheadrecord  hdest,
ptrdraginfo  draginfo
[static]
 

Definition at line 214 of file claybrowservalidate.c.

References actionstrings, bigstring, collidewithnewer, collidewitholder, copystring(), dialogstrings, disablelangerror(), enablelangerror(), fl, getsystemtablescript(), idreplacedialogexpertmode, ixalreadyexists, ixan, ixanewer, ixanolder, ixitemnamed, ixsomeitems, langrunstring(), nocollisions, opcleartmpbits(), opgetheadstring(), pushchar(), pushstring(), stringisboolean(), and threewaydialog().

Referenced by browservalidateinsertion().

Here is the call graph for this function:

static boolean browsercompareforcollision hdlheadrecord  hnode,
long  pdragmodified,
bigstring  bs1,
bigstring  bs2,
ptrdraginfo  draginfo
[static]
 

Definition at line 154 of file claybrowservalidate.c.

References bilateralcollision, browsergetrefcon(), collidewithequal, collidewithnewer, collidewitholder, equalidentifiers(), hnode, infinity, info, oprecursivelyvisit(), opsettmpbitvisit(), and sgn.

Referenced by collisionvisit().

Here is the call graph for this function:

boolean browservalidatecopy bigstring  bscommand  ) 
 

Definition at line 507 of file claybrowservalidate.c.

References down, nil, opvisitmarked(), and validatecopyvisit().

Referenced by setuptableoutlinecallbacks().

Here is the call graph for this function:

boolean browservalidatedrag hdlheadrecord  hsource,
hdlheadrecord  hdest,
tydirection  dir
 

Definition at line 111 of file claybrowservalidate.c.

References browsergetrefcon(), down, tybrowserinfo::flfolder, tybrowserinfo::flvolume, and right.

Referenced by setuptableoutlinecallbacks().

Here is the call graph for this function:

static boolean browservalidateinsertion hdlheadrecord  hdest,
hdlheadrecord  hscrap,
tydirection  dir,
tyaction  action
[static]
 

Definition at line 340 of file claybrowservalidate.c.

References tydraginfo::action, browsercollisiondialog(), tydraginfo::collisiontype, tydraginfo::ctcollisions, tydraginfo::dir, down, tydraginfo::hdest, nil, opcleartmpbits(), oplistvisit(), opvisitmarked(), and validatemovevisit().

Referenced by browservalidatemove(), and browservalidatepaste().

Here is the call graph for this function:

boolean browservalidatemove hdlheadrecord  hdest,
hdlheadrecord  hscrap,
tydirection  dir
 

Definition at line 368 of file claybrowservalidate.c.

References browservalidateinsertion(), and validatemove.

Referenced by browserpredrag().

Here is the call graph for this function:

boolean browservalidatepaste hdlheadrecord  hscrap,
hdlheadrecord  hdest,
tydirection  dir
 

Definition at line 374 of file claybrowservalidate.c.

References alertdialog(), BIGSTRING, browserdeletenodeswithtmpbitset(), browservalidateinsertion(), and validatepaste.

Referenced by setuptableoutlinecallbacks().

Here is the call graph for this function:

static boolean collisionvisit hdlheadrecord  hnode,
ptrvoid  refcon
[static]
 

Definition at line 194 of file claybrowservalidate.c.

References bigstring, browsercompareforcollision(), dragmodified, hnode, and opgetheadstring().

Referenced by validatemovevisit().

Here is the call graph for this function:

static boolean compareforcopyvisit hdlheadrecord  hnode,
ptrvoid  refcon
[static]
 

Definition at line 465 of file claybrowservalidate.c.

References alertdialog(), BIGSTRING, bigstring, copystring(), equalidentifiers(), hnode, opgetheadstring(), and pushstring().

Referenced by validatecopyvisit().

Here is the call graph for this function:

static boolean validatecopyvisit hdlheadrecord  hnode,
ptrvoid  refcon
[static]
 

Definition at line 496 of file claybrowservalidate.c.

References compareforcopyvisit(), down, tydraginfo::hcompare, hnode, and opvisitmarked().

Referenced by browservalidatecopy().

Here is the call graph for this function:

static boolean validatemovevisit hdlheadrecord  hnode,
ptrvoid  refcon
[static]
 

Definition at line 321 of file claybrowservalidate.c.

References browsergetrefcon(), collisionvisit(), dragmodified, tydraginfo::hdest, hnode, info, opfirstatlevel(), oplistvisit(), oprecursivelyvisit(), and right.

Referenced by browservalidateinsertion().

Here is the call graph for this function:


Variable Documentation

byte* actionstrings[]
 

Initial value:

 {
    
    BIGSTRING ("\x06" "moving"),

    }

Definition at line 60 of file claybrowservalidate.c.

Referenced by browsercollisiondialog().

byte* dialogstrings[]
 

Initial value:

 {
    BIGSTRING ("\x40" "Some items in this location have the same names as items you're "),
    BIGSTRING ("\x02" "An"),
    BIGSTRING ("\x07" "A newer"),
    BIGSTRING ("\x08" "An older"),




        BIGSTRING ("\x0d" " item named \""),


    }

Definition at line 77 of file claybrowservalidate.c.

Referenced by browsercollisiondialog().

long dragmodified [static]
 

Definition at line 48 of file claybrowservalidate.c.

Referenced by collisionvisit(), and validatemovevisit().

ptrstring pcommand [static]
 

Definition at line 462 of file claybrowservalidate.c.


Generated on Thu Jun 1 03:44:52 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6