2017-04-25 14:41:48 +02:00
|
|
|
/*
|
|
|
|
|
* select.h --
|
|
|
|
|
*
|
|
|
|
|
* Contains definitions for things that are exported by the
|
|
|
|
|
* selection module.
|
|
|
|
|
*
|
2020-05-23 23:13:14 +02:00
|
|
|
* *********************************************************************
|
|
|
|
|
* * Copyright (C) 1985, 1990 Regents of the University of California. *
|
|
|
|
|
* * Permission to use, copy, modify, and distribute this *
|
|
|
|
|
* * software and its documentation for any purpose and without *
|
|
|
|
|
* * fee is hereby granted, provided that the above copyright *
|
|
|
|
|
* * notice appear in all copies. The University of California *
|
|
|
|
|
* * makes no representations about the suitability of this *
|
|
|
|
|
* * software for any purpose. It is provided "as is" without *
|
|
|
|
|
* * express or implied warranty. Export of this software outside *
|
|
|
|
|
* * of the United States of America may require an export license. *
|
2017-04-25 14:41:48 +02:00
|
|
|
* *********************************************************************
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* rcsid="$Header: /usr/cvsroot/magic-8.0/select/select.h,v 1.1.1.1 2008/02/03 20:43:50 tim Exp $"
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef _SELECT_H
|
|
|
|
|
#define _SELECT_H
|
|
|
|
|
|
|
|
|
|
#include "utils/magic.h"
|
|
|
|
|
#include "database/database.h"
|
|
|
|
|
|
|
|
|
|
/* Procedures to modify the selection. */
|
|
|
|
|
|
|
|
|
|
extern void SelectArea();
|
|
|
|
|
extern void SelectChunk();
|
|
|
|
|
extern void SelectNet();
|
|
|
|
|
extern void SelectRegion();
|
|
|
|
|
extern void SelectInit();
|
|
|
|
|
extern void SelectClear();
|
|
|
|
|
extern void SelectCell();
|
2021-03-24 19:52:17 +01:00
|
|
|
extern void SelectIntersect();
|
2017-04-25 14:41:48 +02:00
|
|
|
extern void SelRemoveArea();
|
|
|
|
|
extern int SelRemoveSel2();
|
|
|
|
|
extern int SelectRemoveCellUse();
|
|
|
|
|
extern ExtRectList *SelectShort();
|
|
|
|
|
|
|
|
|
|
/* Procedures to enumerate what's in the selection. */
|
|
|
|
|
|
|
|
|
|
extern int SelEnumPaint();
|
|
|
|
|
extern int SelEnumCells();
|
|
|
|
|
extern int SelEnumLabels();
|
2023-01-04 20:08:39 +01:00
|
|
|
extern int SelEnumLabelsMirror();
|
2017-04-25 14:41:48 +02:00
|
|
|
|
|
|
|
|
/* Procedures to operate on the selection. */
|
|
|
|
|
|
|
|
|
|
extern void SelectDelete();
|
2023-07-28 21:25:42 +02:00
|
|
|
extern void SelectDeleteUses();
|
2017-04-25 14:41:48 +02:00
|
|
|
extern void SelectCopy();
|
|
|
|
|
extern void SelectTransform();
|
|
|
|
|
extern void SelectExpand();
|
|
|
|
|
extern void SelectStretch();
|
|
|
|
|
extern void SelectArray();
|
|
|
|
|
extern void SelectDump();
|
|
|
|
|
|
2022-10-10 11:50:15 +02:00
|
|
|
/* C99 compat */
|
|
|
|
|
extern void SelCopyToFeedback();
|
|
|
|
|
extern void SelectAndCopy1();
|
|
|
|
|
extern void SelectFlat();
|
|
|
|
|
extern void SelSetDisplay();
|
|
|
|
|
extern void SelRememberForUndo();
|
|
|
|
|
|
2021-03-04 20:00:31 +01:00
|
|
|
/* Flag to indicate whether selection captures subcell labels */
|
|
|
|
|
|
|
|
|
|
extern unsigned char SelectDoLabels;
|
|
|
|
|
|
|
|
|
|
/* Flag values for SelectDoLabels: */
|
|
|
|
|
#define SEL_NO_LABELS 0
|
|
|
|
|
#define SEL_DO_LABELS 1
|
|
|
|
|
#define SEL_SIMPLE_LABELS 2
|
|
|
|
|
|
2017-04-25 14:41:48 +02:00
|
|
|
/* The following is the root cell that contains the current selection. */
|
|
|
|
|
|
|
|
|
|
extern CellDef *SelectRootDef;
|
|
|
|
|
|
|
|
|
|
/* The dummy cell that actually holds the selection: */
|
|
|
|
|
|
|
|
|
|
extern CellDef *SelectDef;
|
|
|
|
|
extern CellUse *SelectUse;
|
|
|
|
|
|
|
|
|
|
#endif /* _SELECT_H */
|