2007-09-13 11:55:46 +00:00
|
|
|
/*****************************************************/
|
|
|
|
/* Definitions for the Component classes for EESchema */
|
|
|
|
/*****************************************************/
|
2007-05-06 16:03:28 +00:00
|
|
|
|
|
|
|
#ifndef COMPONENT_CLASS_H
|
|
|
|
#define COMPONENT_CLASS_H
|
|
|
|
|
|
|
|
|
2009-02-02 12:12:18 +00:00
|
|
|
#include "class_sch_screen.h"
|
2008-09-20 17:20:40 +00:00
|
|
|
#include "class_sch_cmp_field.h"
|
2007-08-23 04:28:46 +00:00
|
|
|
|
2008-10-06 05:44:29 +00:00
|
|
|
|
2009-12-02 21:44:03 +00:00
|
|
|
class SCH_SHEET_PATH;
|
2008-03-20 01:50:21 +00:00
|
|
|
|
2008-10-06 05:44:29 +00:00
|
|
|
|
|
|
|
/**
|
2009-10-30 19:26:25 +00:00
|
|
|
* Holder of an error message and may be thrown from functions.
|
2008-10-06 05:44:29 +00:00
|
|
|
*/
|
|
|
|
struct Error
|
|
|
|
{
|
2010-09-05 17:01:48 +00:00
|
|
|
wxString errorText;
|
2008-10-06 05:44:29 +00:00
|
|
|
|
|
|
|
Error( const wxChar* aMsg ) :
|
|
|
|
errorText( aMsg )
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2010-09-05 17:01:48 +00:00
|
|
|
|
2008-10-06 05:44:29 +00:00
|
|
|
Error( const wxString& aMsg ) :
|
|
|
|
errorText( aMsg )
|
|
|
|
{
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2009-12-02 21:44:03 +00:00
|
|
|
/// A container for several SCH_FIELD items
|
2010-09-05 17:01:48 +00:00
|
|
|
typedef std::vector<SCH_FIELD> SCH_FIELDS;
|
2008-11-24 06:53:43 +00:00
|
|
|
|
|
|
|
|
2008-03-20 01:50:21 +00:00
|
|
|
/**
|
|
|
|
* Class SCH_COMPONENT
|
|
|
|
* describes a real schematic component
|
2007-09-13 11:55:46 +00:00
|
|
|
*/
|
2008-03-20 01:50:21 +00:00
|
|
|
class SCH_COMPONENT : public SCH_ITEM
|
2007-05-06 16:03:28 +00:00
|
|
|
{
|
2008-11-24 06:53:43 +00:00
|
|
|
friend class DIALOG_EDIT_COMPONENT_IN_SCHEMATIC;
|
|
|
|
|
2007-05-06 16:03:28 +00:00
|
|
|
public:
|
2010-09-05 17:01:48 +00:00
|
|
|
int m_Multi; // In multi unit chip - which unit to draw.
|
2007-05-06 16:03:28 +00:00
|
|
|
|
2010-09-05 17:01:48 +00:00
|
|
|
wxPoint m_Pos;
|
2008-02-26 19:19:54 +00:00
|
|
|
|
2010-09-05 17:01:48 +00:00
|
|
|
wxString m_ChipName; /* Key to look for in the library,
|
2009-04-05 20:49:15 +00:00
|
|
|
* i.e. "74LS00". */
|
2008-11-24 06:53:43 +00:00
|
|
|
|
2010-09-05 17:01:48 +00:00
|
|
|
wxString m_PrefixString; /* C, R, U, Q etc - the first character
|
2009-04-05 20:49:15 +00:00
|
|
|
* which typically indicates what the
|
|
|
|
* component is. Determined, upon
|
|
|
|
* placement, from the library component.
|
|
|
|
* determined, upon file load, by the
|
|
|
|
* first non-digits in the reference
|
|
|
|
* fields. */
|
2008-02-26 19:19:54 +00:00
|
|
|
|
2010-09-05 17:01:48 +00:00
|
|
|
int m_Convert; /* Handle multiple shape (for instance
|
2009-04-05 20:49:15 +00:00
|
|
|
* De Morgan conversion) */
|
2010-09-05 17:01:48 +00:00
|
|
|
int m_Transform[2][2]; /* The rotation/mirror transformation
|
2009-04-05 20:49:15 +00:00
|
|
|
* matrix. */
|
2008-04-09 17:27:59 +00:00
|
|
|
|
2008-04-12 18:39:20 +00:00
|
|
|
private:
|
2008-04-15 19:38:19 +00:00
|
|
|
|
2010-09-05 17:01:48 +00:00
|
|
|
SCH_FIELDS m_Fields; ///< variable length list of fields
|
2008-10-06 05:44:29 +00:00
|
|
|
|
|
|
|
|
2008-04-15 19:38:19 +00:00
|
|
|
/* Hierarchical references.
|
2008-10-06 05:44:29 +00:00
|
|
|
* format is
|
|
|
|
* path reference multi
|
|
|
|
* with:
|
2009-10-30 19:26:25 +00:00
|
|
|
* path = /<timestamp1>/<timestamp2> (subsheet path, = / for the root sheet)
|
2008-10-06 05:44:29 +00:00
|
|
|
* reference = reference for this path (C23, R5, U78 ... )
|
2009-12-02 21:44:03 +00:00
|
|
|
* multi = part selection in multi parts per package (0 or 1 for one part
|
|
|
|
* per package)
|
2008-04-15 19:38:19 +00:00
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
wxArrayString m_PathsAndReferences;
|
2008-02-12 21:12:46 +00:00
|
|
|
|
2009-10-16 17:18:23 +00:00
|
|
|
void Init( const wxPoint& pos = wxPoint( 0, 0 ) );
|
|
|
|
|
2007-05-06 16:03:28 +00:00
|
|
|
public:
|
2009-04-05 20:49:15 +00:00
|
|
|
SCH_COMPONENT( const wxPoint& pos = wxPoint( 0, 0 ),
|
|
|
|
SCH_ITEM* aParent = NULL );
|
2008-10-19 18:31:09 +00:00
|
|
|
|
2009-10-16 17:18:23 +00:00
|
|
|
/**
|
|
|
|
* Create schematic component from library component object.
|
|
|
|
*
|
|
|
|
* @param libComponent - Component library object to create schematic
|
|
|
|
* component from.
|
2009-10-30 19:26:25 +00:00
|
|
|
* @param sheet - Schematic sheet the component is place into.
|
2009-10-16 17:18:23 +00:00
|
|
|
* @param unit - Part for components that have multiple parts per
|
|
|
|
* package.
|
|
|
|
* @param convert - Use the alternate body style for the schematic
|
|
|
|
* component.
|
|
|
|
* @param pos - Position to place new component.
|
|
|
|
* @param setNewItemFlag - Set the component IS_NEW and IS_MOVED flags.
|
|
|
|
*/
|
2009-12-02 21:44:03 +00:00
|
|
|
SCH_COMPONENT( LIB_COMPONENT& libComponent, SCH_SHEET_PATH* sheet,
|
2009-10-16 17:18:23 +00:00
|
|
|
int unit = 0, int convert = 0,
|
|
|
|
const wxPoint& pos = wxPoint( 0, 0 ),
|
|
|
|
bool setNewItemFlag = false );
|
|
|
|
|
2008-10-19 18:31:09 +00:00
|
|
|
/**
|
|
|
|
* Copy Constructor
|
|
|
|
* clones \a aTemplate into this object. All fields are copied as is except
|
|
|
|
* for the linked list management pointers which are set to NULL, and the
|
2009-12-02 21:44:03 +00:00
|
|
|
* SCH_FIELD's m_Parent pointers which are set to the new parent,
|
2008-10-19 18:31:09 +00:00
|
|
|
* i.e. this new object.
|
|
|
|
*/
|
|
|
|
SCH_COMPONENT( const SCH_COMPONENT& aTemplate );
|
|
|
|
|
2008-03-20 01:50:21 +00:00
|
|
|
~SCH_COMPONENT() { }
|
2008-02-26 19:19:54 +00:00
|
|
|
|
2007-09-13 11:28:58 +00:00
|
|
|
virtual wxString GetClass() const
|
|
|
|
{
|
2008-03-20 01:50:21 +00:00
|
|
|
return wxT( "SCH_COMPONENT" );
|
2007-09-13 11:28:58 +00:00
|
|
|
}
|
2007-09-13 11:55:46 +00:00
|
|
|
|
2008-04-15 19:38:19 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Function Save
|
2009-04-05 20:49:15 +00:00
|
|
|
* writes the data structures for this object out to a FILE in "*.brd"
|
|
|
|
* format.
|
2008-04-15 19:38:19 +00:00
|
|
|
* @param aFile The FILE to write to.
|
|
|
|
* @return bool - true if success writing else false.
|
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
bool Save( FILE* aFile ) const;
|
2007-09-13 11:55:46 +00:00
|
|
|
|
2008-10-06 05:44:29 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Function Load
|
2009-04-05 20:49:15 +00:00
|
|
|
* reads a component in from a file. The file stream must be positioned at
|
|
|
|
* the first field of the file, not at the component tag.
|
2008-10-06 05:44:29 +00:00
|
|
|
* @param aFile The FILE to read from.
|
|
|
|
* @throw Error containing the error message text if there is a file format
|
|
|
|
* error or if the disk read has failed.
|
2009-12-02 21:44:03 +00:00
|
|
|
* void Load( FILE* aFile ) throw( Error );
|
2008-10-06 05:44:29 +00:00
|
|
|
*/
|
|
|
|
|
2008-10-19 18:31:09 +00:00
|
|
|
/**
|
|
|
|
* Function GenCopy
|
|
|
|
* returns a copy of this object but with the linked list pointers
|
|
|
|
* set to NULL.
|
|
|
|
* @return SCH_COMPONENT* - a copy of me.
|
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
SCH_COMPONENT* GenCopy()
|
2008-10-19 18:31:09 +00:00
|
|
|
{
|
|
|
|
return new SCH_COMPONENT( *this );
|
|
|
|
}
|
|
|
|
|
2010-09-05 17:01:48 +00:00
|
|
|
|
|
|
|
void SetOrientation( int aOrientation );
|
2010-01-13 21:15:54 +00:00
|
|
|
|
|
|
|
/** function GetOrientation()
|
2009-04-09 11:34:41 +00:00
|
|
|
* Used to display component orientation (in dialog editor or info)
|
|
|
|
* @return the orientation and mirror
|
|
|
|
* Note: Because there are different ways to have a given orientation/mirror,
|
2009-12-02 21:44:03 +00:00
|
|
|
* the orientation/mirror is not necessary what the used does
|
|
|
|
* (example : a mirrorX then a mirrorY give no mirror but rotate the
|
|
|
|
* component).
|
2009-04-09 11:34:41 +00:00
|
|
|
* So this function find a rotation and a mirror value
|
2010-01-13 21:15:54 +00:00
|
|
|
* ( CMP_MIRROR_X because this is the first mirror option tested)
|
2009-04-09 11:34:41 +00:00
|
|
|
* but can differs from the orientation made by an user
|
2010-01-13 21:15:54 +00:00
|
|
|
* ( a CMP_MIRROR_Y is find as a CMP_MIRROR_X + orientation 180, because
|
2009-12-02 21:44:03 +00:00
|
|
|
* they are equivalent)
|
2009-04-09 11:34:41 +00:00
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
int GetOrientation();
|
2009-04-09 11:34:41 +00:00
|
|
|
|
2010-09-05 17:01:48 +00:00
|
|
|
wxPoint GetScreenCoord( const wxPoint& coord );
|
|
|
|
void DisplayInfo( WinEDA_DrawFrame* frame );
|
2008-10-06 05:44:29 +00:00
|
|
|
|
2008-04-21 06:34:56 +00:00
|
|
|
/**
|
|
|
|
* Suppress annotation ( i.i IC23 changed to IC? and part reset to 1)
|
2009-12-02 21:44:03 +00:00
|
|
|
* @param aSheet: SCH_SHEET_PATH value: if NULL remove all annotations,
|
2008-04-21 06:34:56 +00:00
|
|
|
* else remove annotation relative to this sheetpath
|
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
void ClearAnnotation( SCH_SHEET_PATH* aSheet );
|
2008-04-21 06:34:56 +00:00
|
|
|
|
2009-04-25 10:12:30 +00:00
|
|
|
/** function SetTimeStamp
|
|
|
|
* Change the old time stamp to the new time stamp.
|
|
|
|
* the time stamp is also modified in paths
|
|
|
|
* @param aNewTimeStamp = new time stamp
|
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
void SetTimeStamp( long aNewTimeStamp );
|
2009-04-25 10:12:30 +00:00
|
|
|
|
2009-12-30 18:06:12 +00:00
|
|
|
/**
|
|
|
|
* Function GetBoundaryBox
|
|
|
|
* returns the orthogonal, bounding box of this object for display purposes.
|
|
|
|
* This box should be an enclosing perimeter for graphic items and pins.
|
|
|
|
* this include only fields defined in library
|
|
|
|
* use GetBoundingBox() to include fields in schematic
|
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
EDA_Rect GetBoundaryBox() const;
|
2009-11-28 09:24:37 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Function GetBoundingBox
|
|
|
|
* returns the orthogonal, bounding box of this object for display purposes.
|
|
|
|
* This box should be an enclosing perimeter for visible components of this
|
|
|
|
* object, and the units should be in the pcb or schematic coordinate system.
|
|
|
|
* It is OK to overestimate the size by a few counts.
|
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
EDA_Rect GetBoundingBox();
|
2007-09-13 11:55:46 +00:00
|
|
|
|
2010-06-17 16:30:10 +00:00
|
|
|
//-----<Fields>-----------------------------------------------------------
|
|
|
|
|
2008-10-06 05:44:29 +00:00
|
|
|
/**
|
|
|
|
* Function ReturnFieldName
|
|
|
|
* returns the Field name given a field index like (REFERENCE, VALUE ..)
|
2009-04-05 20:49:15 +00:00
|
|
|
* @reeturn wxString - the field name or wxEmptyString if invalid field
|
|
|
|
* index.
|
2008-10-06 05:44:29 +00:00
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
wxString ReturnFieldName( int aFieldNdx ) const;
|
2008-02-26 19:19:54 +00:00
|
|
|
|
2008-10-06 05:44:29 +00:00
|
|
|
/**
|
|
|
|
* Function GetField
|
|
|
|
* returns a field.
|
2010-06-17 16:30:10 +00:00
|
|
|
* @param aFieldNdx An index into the array of fields, not a field id.
|
2009-12-02 21:44:03 +00:00
|
|
|
* @return SCH_FIELD* - the field value or NULL if does not exist
|
2008-10-06 05:44:29 +00:00
|
|
|
*/
|
2009-12-02 21:44:03 +00:00
|
|
|
SCH_FIELD* GetField( int aFieldNdx ) const;
|
2007-09-20 21:06:49 +00:00
|
|
|
|
|
|
|
/**
|
2008-10-06 05:44:29 +00:00
|
|
|
* Function AddField
|
2008-10-06 15:03:59 +00:00
|
|
|
* adds a field to the component. The field is copied as it is put into
|
|
|
|
* the component.
|
2009-12-02 21:44:03 +00:00
|
|
|
* @param aField A const reference to the SCH_FIELD to add.
|
2010-06-17 16:30:10 +00:00
|
|
|
* @return SCH_FIELD* - the newly inserted field.
|
|
|
|
*/
|
|
|
|
SCH_FIELD* AddField( const SCH_FIELD& aField );
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Function FindField
|
|
|
|
* searches for SCH_FIELD with \a aFieldName and returns it if found, else NULL.
|
2007-09-20 21:06:49 +00:00
|
|
|
*/
|
2010-06-17 16:30:10 +00:00
|
|
|
SCH_FIELD* FindField( const wxString& aFieldName );
|
2007-09-20 21:06:49 +00:00
|
|
|
|
2009-12-02 21:44:03 +00:00
|
|
|
void SetFields( const SCH_FIELDS& aFields )
|
2008-11-26 00:20:16 +00:00
|
|
|
{
|
|
|
|
m_Fields = aFields; // vector copying, length is changed possibly
|
|
|
|
}
|
|
|
|
|
2010-09-05 17:01:48 +00:00
|
|
|
|
2010-06-17 16:30:10 +00:00
|
|
|
//-----</Fields>----------------------------------------------------------
|
2008-11-26 00:20:16 +00:00
|
|
|
|
2008-10-06 05:44:29 +00:00
|
|
|
/**
|
|
|
|
* Function GetFieldCount
|
|
|
|
* returns the number of fields in this component.
|
|
|
|
*/
|
|
|
|
int GetFieldCount() const { return (int) m_Fields.size(); }
|
2008-02-26 19:19:54 +00:00
|
|
|
|
2009-10-30 19:26:25 +00:00
|
|
|
/**
|
|
|
|
* Find a component pin by number.
|
|
|
|
*
|
|
|
|
* @param number - The number of the pin to find.
|
|
|
|
* @return Pin object if found, otherwise NULL.
|
|
|
|
*/
|
|
|
|
LIB_PIN* GetPin( const wxString& number );
|
|
|
|
|
2007-09-13 11:55:46 +00:00
|
|
|
virtual void Draw( WinEDA_DrawPanel* panel,
|
2008-02-26 19:19:54 +00:00
|
|
|
wxDC* DC,
|
|
|
|
const wxPoint& offset,
|
|
|
|
int draw_mode,
|
2009-10-16 17:18:23 +00:00
|
|
|
int Color = -1 )
|
|
|
|
{
|
|
|
|
Draw( panel, DC, offset, draw_mode, Color, true );
|
|
|
|
}
|
|
|
|
|
2008-04-14 19:22:48 +00:00
|
|
|
|
2010-09-05 17:01:48 +00:00
|
|
|
void Draw( WinEDA_DrawPanel* panel,
|
|
|
|
wxDC* DC,
|
|
|
|
const wxPoint& offset,
|
|
|
|
int draw_mode,
|
|
|
|
int Color,
|
|
|
|
bool DrawPinText );
|
|
|
|
|
|
|
|
void SwapData( SCH_COMPONENT* copyitem );
|
2007-09-13 11:55:46 +00:00
|
|
|
|
2010-09-05 17:01:48 +00:00
|
|
|
void Place( WinEDA_SchematicFrame* frame, wxDC* DC );
|
2008-02-12 21:12:46 +00:00
|
|
|
|
2008-11-24 06:53:43 +00:00
|
|
|
// returns a unique ID, in the form of a path.
|
2010-09-05 17:01:48 +00:00
|
|
|
wxString GetPath( SCH_SHEET_PATH* sheet );
|
2008-10-06 05:44:29 +00:00
|
|
|
|
2008-11-24 06:53:43 +00:00
|
|
|
/**
|
|
|
|
* Function GetRef
|
|
|
|
* returns the reference, for the given sheet path.
|
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
const wxString GetRef( SCH_SHEET_PATH* sheet );
|
2008-10-06 05:44:29 +00:00
|
|
|
|
2008-11-24 06:53:43 +00:00
|
|
|
// Set the reference, for the given sheet path.
|
2010-09-05 17:01:48 +00:00
|
|
|
void SetRef( SCH_SHEET_PATH* sheet, const wxString& ref );
|
2008-10-06 05:44:29 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Function AddHierarchicalReference
|
2009-12-02 21:44:03 +00:00
|
|
|
* adds a full hierarchical reference (path + local reference)
|
2009-04-05 20:49:15 +00:00
|
|
|
* @param aPath = hierarchical path (/<sheet timestamp>/component
|
|
|
|
* timestamp> like /05678E50/A23EF560)
|
2008-04-16 08:40:31 +00:00
|
|
|
* @param aRef = local reference like C45, R56
|
2009-04-05 20:49:15 +00:00
|
|
|
* @param aMulti = part selection, used in multi part per package (0 or 1
|
|
|
|
* for non multi)
|
2008-04-16 08:40:31 +00:00
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
void AddHierarchicalReference( const wxString& aPath,
|
|
|
|
const wxString& aRef,
|
|
|
|
int aMulti );
|
2008-10-06 05:44:29 +00:00
|
|
|
|
2009-12-02 21:44:03 +00:00
|
|
|
// returns the unit selection, for the given sheet path.
|
2010-09-05 17:01:48 +00:00
|
|
|
int GetUnitSelection( SCH_SHEET_PATH* aSheet );
|
2008-10-06 05:44:29 +00:00
|
|
|
|
2009-12-02 21:44:03 +00:00
|
|
|
// Set the unit selection, for the given sheet path.
|
2010-09-05 17:01:48 +00:00
|
|
|
void SetUnitSelection( SCH_SHEET_PATH* aSheet,
|
|
|
|
int aUnitSelection );
|
2008-02-26 19:19:54 +00:00
|
|
|
|
2009-06-30 19:21:41 +00:00
|
|
|
/** Function GetPenSize
|
|
|
|
* @return the size of the "pen" that be used to draw or plot this item
|
2009-12-02 21:44:03 +00:00
|
|
|
* for a component, has no meaning, but it is necessary to satisfy the
|
|
|
|
* SCH_ITEM class requirements.
|
2009-06-30 19:21:41 +00:00
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
virtual int GetPenSize() { return 0; }
|
2009-06-30 19:21:41 +00:00
|
|
|
|
2009-07-27 14:32:40 +00:00
|
|
|
// Geometric transforms (used in block operations):
|
2010-09-05 17:01:48 +00:00
|
|
|
|
2009-07-27 14:32:40 +00:00
|
|
|
/** virtual function Move
|
|
|
|
* move item to a new position.
|
2009-10-30 19:26:25 +00:00
|
|
|
* @param aMoveVector = the displacement vector
|
2009-07-27 14:32:40 +00:00
|
|
|
*/
|
2009-12-02 21:44:03 +00:00
|
|
|
virtual void Move( const wxPoint& aMoveVector )
|
2009-07-27 14:32:40 +00:00
|
|
|
{
|
|
|
|
m_Pos += aMoveVector;
|
|
|
|
for( int ii = 0; ii < GetFieldCount(); ii++ )
|
2009-12-02 21:44:03 +00:00
|
|
|
GetField( ii )->Move( aMoveVector );
|
2009-07-27 14:32:40 +00:00
|
|
|
}
|
|
|
|
|
2010-09-05 17:01:48 +00:00
|
|
|
|
2009-07-27 14:32:40 +00:00
|
|
|
/** virtual function Mirror_Y
|
|
|
|
* mirror item relative to an Y axis
|
|
|
|
* @param aYaxis_position = the y axis position
|
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
virtual void Mirror_Y( int aYaxis_position );
|
|
|
|
virtual void Mirror_X( int aXaxis_position );
|
|
|
|
virtual void Rotate( wxPoint rotationPoint );
|
|
|
|
|
2009-07-27 14:32:40 +00:00
|
|
|
|
2010-03-16 18:22:59 +00:00
|
|
|
/**
|
|
|
|
* Compare schematic component reference and value fields against search string.
|
|
|
|
*
|
|
|
|
* @param aSearchData - Criteria to search against.
|
2010-04-01 13:15:48 +00:00
|
|
|
* @param aAuxData - a pointer on auxiliary data, if needed.
|
|
|
|
* When searching string in REFERENCE field we must know the sheet path
|
|
|
|
* This param is used in this case
|
2010-03-16 18:22:59 +00:00
|
|
|
* @return True if this component reference or value field matches the search criteria.
|
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
virtual bool Matches( wxFindReplaceData& aSearchData, void* aAuxData );
|
2010-03-16 18:22:59 +00:00
|
|
|
|
2010-09-05 17:01:48 +00:00
|
|
|
#if defined(DEBUG)
|
2008-02-26 19:19:54 +00:00
|
|
|
|
2007-09-20 21:06:49 +00:00
|
|
|
/**
|
|
|
|
* Function Show
|
|
|
|
* is used to output the object tree, currently for debugging only.
|
2008-02-26 19:19:54 +00:00
|
|
|
* @param nestLevel An aid to prettier tree indenting, and is the level
|
2007-09-20 21:06:49 +00:00
|
|
|
* of nesting of this object within the overall tree.
|
|
|
|
* @param os The ostream& to output to.
|
|
|
|
*/
|
2009-12-02 21:44:03 +00:00
|
|
|
void Show( int nestLevel, std::ostream& os );
|
2008-02-26 19:19:54 +00:00
|
|
|
|
|
|
|
#endif
|
2007-05-06 16:03:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* COMPONENT_CLASS_H */
|