2017-04-02 12:09:01 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2017 Oliver Walters
|
2017-11-03 08:41:48 +00:00
|
|
|
* Copyright (C) 2017 KiCad Developers, see AUTHORS.txt for contributors.
|
2017-04-02 12:09:01 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, you may find one here:
|
|
|
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
|
|
* or you may search the http://www.gnu.org website for the version 2 license,
|
|
|
|
* or you may write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
2018-02-09 16:35:45 +00:00
|
|
|
#ifndef FIELDS_EDITOR_TABLE_MODEL_H
|
|
|
|
#define FIELDS_EDITOR_TABLE_MODEL_H
|
2017-04-02 12:09:01 +00:00
|
|
|
|
|
|
|
#include <wx/dataview.h>
|
|
|
|
#include <wx/regex.h>
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
#include <sch_component.h>
|
|
|
|
#include <sch_reference_list.h>
|
2018-01-30 08:56:43 +00:00
|
|
|
#include <netlist_object.h>
|
2017-04-02 12:09:01 +00:00
|
|
|
#include <template_fieldnames.h>
|
|
|
|
|
2018-02-09 16:35:45 +00:00
|
|
|
#include "fields_editor_table_column.h"
|
2017-04-02 12:09:01 +00:00
|
|
|
|
|
|
|
// Forward-declare classes
|
2018-02-09 16:35:45 +00:00
|
|
|
class FIELDS_EDITOR_TABLE_ROW; // Base-class for table row data model
|
|
|
|
class FIELDS_EDITOR_TABLE_GROUP; // Class for displaying a group of components
|
|
|
|
class FIELDS_EDITOR_TABLE_COMPONENT; // Class for displaying a single component
|
2017-04-02 12:09:01 +00:00
|
|
|
|
2017-04-18 12:43:40 +00:00
|
|
|
// Map column IDs to field values (for quick lookup)
|
|
|
|
typedef std::map<unsigned int, wxString> FIELD_VALUE_MAP;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2018-02-09 16:35:45 +00:00
|
|
|
* The FIELDS_EDITOR_FIELD_VALUES class provides quick lookup of component values
|
2017-04-18 12:43:40 +00:00
|
|
|
* (based on Field ID)
|
|
|
|
* This is done for the following reasons:
|
|
|
|
* - Increase lookup speed for table values
|
|
|
|
* - Allow field values to be reverted to original values
|
|
|
|
* - Allow duplicate components to reference the same data
|
|
|
|
*/
|
2018-02-09 16:35:45 +00:00
|
|
|
class FIELDS_EDITOR_FIELD_VALUES
|
2017-04-18 12:43:40 +00:00
|
|
|
{
|
|
|
|
public:
|
2018-02-09 16:35:45 +00:00
|
|
|
FIELDS_EDITOR_FIELD_VALUES( const wxString& aRefDes, FIELD_VALUE_MAP* aTemplate );
|
2017-04-18 12:43:40 +00:00
|
|
|
|
2017-11-03 08:41:48 +00:00
|
|
|
/**
|
|
|
|
* Return the current value for the provided field ID
|
|
|
|
* @return true if the field exists
|
|
|
|
* @param aFieldId = the field index
|
|
|
|
* @param aValue = a string to return the field value
|
|
|
|
*/
|
2017-04-18 12:43:40 +00:00
|
|
|
bool GetFieldValue( unsigned int aFieldId, wxString& aValue ) const;
|
2017-11-03 08:41:48 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Return the backup value for the provided field ID
|
|
|
|
* @return true if the field exists
|
|
|
|
* @param aFieldId = the field index
|
|
|
|
* @param aValue = a string to return the field backup value
|
|
|
|
*/
|
2017-04-18 12:43:40 +00:00
|
|
|
bool GetBackupValue( unsigned int aFieldId, wxString& aValue ) const;
|
2017-11-03 08:41:48 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Return the template value for a provided field ID (if it exists)
|
|
|
|
* @return true if the field exists
|
|
|
|
* @param aFieldId = the field index
|
|
|
|
* @param aValue = a string to return the field template value
|
|
|
|
*/
|
2017-05-08 10:41:46 +00:00
|
|
|
bool GetTemplateValue( unsigned int aFieldId, wxString& aValue ) const;
|
2017-04-18 12:43:40 +00:00
|
|
|
|
2017-11-03 08:41:48 +00:00
|
|
|
/**
|
|
|
|
* Set the value for the provided field ID
|
|
|
|
* Field value is set under any of the following conditions:
|
|
|
|
* - param aOverwrite is true
|
|
|
|
* - There is no current value
|
|
|
|
* - The current value is empty
|
|
|
|
*/
|
|
|
|
void SetFieldValue( unsigned int aFieldId, const wxString& aValue, bool aOverwrite = false );
|
2017-04-18 12:43:40 +00:00
|
|
|
|
|
|
|
wxString GetReference() const { return m_refDes; }
|
|
|
|
|
|
|
|
bool HasValueChanged( unsigned int aFieldId ) const;
|
|
|
|
|
|
|
|
void RevertChanges( unsigned int aFieldId );
|
|
|
|
|
2017-05-08 10:41:46 +00:00
|
|
|
void SetBackupPoint();
|
|
|
|
|
2017-04-18 12:43:40 +00:00
|
|
|
protected:
|
|
|
|
//! The RefDes to which these values correspond
|
|
|
|
wxString m_refDes;
|
|
|
|
|
|
|
|
//! Current values for each column
|
|
|
|
FIELD_VALUE_MAP m_currentValues;
|
|
|
|
|
|
|
|
//! Backup values for each column
|
|
|
|
FIELD_VALUE_MAP m_backupValues;
|
2017-05-08 10:41:46 +00:00
|
|
|
|
|
|
|
//! Template values for each column
|
|
|
|
FIELD_VALUE_MAP* m_templateValues;
|
2017-04-18 12:43:40 +00:00
|
|
|
};
|
|
|
|
|
2017-04-02 12:09:01 +00:00
|
|
|
/**
|
|
|
|
* Virtual base class determining how a row is displayed
|
|
|
|
* There are three types of rows:
|
|
|
|
* GROUP - Displays a group of (one or more) components
|
|
|
|
* COMPONENT - Displays a single component
|
|
|
|
* UNIT - Child of COMPONENT for multi-unit components
|
|
|
|
*/
|
2018-02-09 16:35:45 +00:00
|
|
|
class FIELDS_EDITOR_TABLE_ROW
|
2017-04-02 12:09:01 +00:00
|
|
|
{
|
|
|
|
public:
|
2018-02-09 16:35:45 +00:00
|
|
|
FIELDS_EDITOR_TABLE_ROW();
|
|
|
|
virtual ~FIELDS_EDITOR_TABLE_ROW() {}
|
2017-04-02 12:09:01 +00:00
|
|
|
|
|
|
|
/// Set display properties for a cell
|
|
|
|
virtual bool GetAttr( unsigned int aFieldId, wxDataViewItemAttr& aAttr ) const;
|
|
|
|
|
|
|
|
/// Get the row value associated with provided field ID
|
|
|
|
virtual wxString GetFieldValue( unsigned int aFieldId ) const = 0;
|
|
|
|
|
|
|
|
/// Set the field value associated with the provided field ID
|
|
|
|
virtual bool SetFieldValue( unsigned int aFieldId, const wxString aValue, bool aOverwrite = false ) = 0;
|
|
|
|
|
|
|
|
/// Return parent item
|
2018-02-09 16:35:45 +00:00
|
|
|
virtual FIELDS_EDITOR_TABLE_ROW* GetParent() const { return nullptr; }
|
2017-04-02 12:09:01 +00:00
|
|
|
|
|
|
|
/// Test if row has any child rows
|
|
|
|
virtual bool HasChildren() const { return false; }
|
|
|
|
|
|
|
|
/// Return any child rows
|
|
|
|
virtual unsigned int GetChildren( wxDataViewItemArray& aChildren ) const { return 0; }
|
|
|
|
|
|
|
|
/// Determine if a value has changed
|
2018-02-09 16:35:45 +00:00
|
|
|
virtual bool HasValueChanged( FIELDS_EDITOR_COLUMN* aField ) const { return false; }
|
2017-04-02 12:09:01 +00:00
|
|
|
|
|
|
|
/// Determine if any values have changed
|
|
|
|
bool HasChanged() const;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
/// Pointer to list of columns
|
2018-02-09 16:35:45 +00:00
|
|
|
FIELDS_EDITOR_COLUMN_LIST* m_columnList;
|
2017-04-02 12:09:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
2018-02-09 16:35:45 +00:00
|
|
|
* FIELDS_EDITOR_TABLE_GROUP class displays a group of similar components
|
2017-04-02 12:09:01 +00:00
|
|
|
* If the group contains more than one component,
|
|
|
|
* they are each displayed as child items of the group
|
|
|
|
*/
|
2018-02-09 16:35:45 +00:00
|
|
|
class FIELDS_EDITOR_TABLE_GROUP : public FIELDS_EDITOR_TABLE_ROW
|
2017-04-02 12:09:01 +00:00
|
|
|
{
|
|
|
|
public:
|
2017-11-03 08:41:48 +00:00
|
|
|
/// List of components stored in this group
|
2018-02-09 16:35:45 +00:00
|
|
|
std::vector<FIELDS_EDITOR_TABLE_COMPONENT*> Components;
|
2017-04-02 12:09:01 +00:00
|
|
|
|
2018-02-09 16:35:45 +00:00
|
|
|
FIELDS_EDITOR_TABLE_GROUP( FIELDS_EDITOR_COLUMN_LIST* aColumnList );
|
|
|
|
virtual ~FIELDS_EDITOR_TABLE_GROUP() {}
|
2017-04-02 12:09:01 +00:00
|
|
|
|
2017-11-03 08:41:48 +00:00
|
|
|
/// Set display properties for a group row
|
2017-04-02 12:09:01 +00:00
|
|
|
virtual bool GetAttr( unsigned int aFieldId, wxDataViewItemAttr& aAttr ) const override;
|
|
|
|
|
2017-11-03 08:41:48 +00:00
|
|
|
/// Get group row value
|
2017-04-02 12:09:01 +00:00
|
|
|
virtual wxString GetFieldValue( unsigned int aFieldId ) const override;
|
|
|
|
|
2017-11-03 08:41:48 +00:00
|
|
|
/// Set group row value
|
2017-04-02 12:09:01 +00:00
|
|
|
virtual bool SetFieldValue( unsigned int aFieldId, const wxString aValue, bool aOverwrite = false ) override;
|
|
|
|
|
2017-11-03 08:41:48 +00:00
|
|
|
/// Attempt to add a new component to the group
|
2018-02-09 16:35:45 +00:00
|
|
|
bool AddComponent( FIELDS_EDITOR_TABLE_COMPONENT* aComponent );
|
2017-04-02 12:09:01 +00:00
|
|
|
|
2017-11-03 08:41:48 +00:00
|
|
|
/// Test if this group should display children
|
2017-04-02 12:09:01 +00:00
|
|
|
virtual bool HasChildren() const override { return Components.size() > 1; }
|
|
|
|
|
2017-11-03 08:41:48 +00:00
|
|
|
/// Return a list of children items of this group
|
2017-04-02 12:09:01 +00:00
|
|
|
virtual unsigned int GetChildren( wxDataViewItemArray& aChildren ) const override;
|
|
|
|
|
2017-11-03 08:41:48 +00:00
|
|
|
/// Test if any children have changed
|
2018-02-09 16:35:45 +00:00
|
|
|
virtual bool HasValueChanged( FIELDS_EDITOR_COLUMN* aField ) const override;
|
2017-04-02 12:09:01 +00:00
|
|
|
|
2017-11-03 08:41:48 +00:00
|
|
|
/// Return the number of child items in this group
|
2017-04-02 12:09:01 +00:00
|
|
|
unsigned int GroupSize( void ) const { return Components.size(); }
|
|
|
|
|
2017-11-03 08:41:48 +00:00
|
|
|
/// Return a sorted, concatenated list of references
|
2017-04-02 12:09:01 +00:00
|
|
|
wxArrayString GetReferences( bool aSort = true ) const;
|
|
|
|
|
2017-11-03 08:41:48 +00:00
|
|
|
/// Function for sorting two reference strings
|
2017-04-02 12:09:01 +00:00
|
|
|
static int SortReferences( const wxString& aFirst, const wxString& aSecond );
|
|
|
|
|
2017-11-03 08:41:48 +00:00
|
|
|
/// Function for sorting two value strings
|
2017-04-02 12:09:01 +00:00
|
|
|
static int SortValues( const wxString& aFirst, const wxString& aSecond );
|
|
|
|
|
|
|
|
protected:
|
2017-11-03 08:41:48 +00:00
|
|
|
/// Test if a particular field matches against another component
|
2018-02-09 16:35:45 +00:00
|
|
|
bool TestField( FIELDS_EDITOR_COLUMN* aField, FIELDS_EDITOR_TABLE_COMPONENT* aComponent ) const;
|
2017-04-02 12:09:01 +00:00
|
|
|
};
|
|
|
|
|
2018-02-09 16:35:45 +00:00
|
|
|
class FIELDS_EDITOR_TABLE_COMPONENT : public FIELDS_EDITOR_TABLE_ROW
|
2017-04-02 12:09:01 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
// List of units associated with this component
|
|
|
|
std::vector<SCH_REFERENCE> Units;
|
|
|
|
|
2018-02-09 16:35:45 +00:00
|
|
|
FIELDS_EDITOR_TABLE_COMPONENT( FIELDS_EDITOR_TABLE_GROUP* aParent, FIELDS_EDITOR_COLUMN_LIST* aColumnList, FIELDS_EDITOR_FIELD_VALUES* aValues );
|
2017-04-02 12:09:01 +00:00
|
|
|
|
2017-09-23 09:20:10 +00:00
|
|
|
bool AddUnit( const SCH_REFERENCE& aUnit );
|
2017-04-02 12:09:01 +00:00
|
|
|
|
|
|
|
virtual wxString GetFieldValue( unsigned int aFieldId ) const override;
|
|
|
|
|
|
|
|
virtual bool SetFieldValue( unsigned int aFieldId, const wxString aValue, bool aOverwrite = false ) override;
|
|
|
|
|
2018-02-09 16:35:45 +00:00
|
|
|
virtual bool HasValueChanged( FIELDS_EDITOR_COLUMN* aField ) const override;
|
2017-04-02 12:09:01 +00:00
|
|
|
|
2017-11-03 08:41:48 +00:00
|
|
|
/// Return the reference of the first unit (all units must be the same
|
2017-04-02 12:09:01 +00:00
|
|
|
wxString GetReference() const;
|
|
|
|
|
2017-11-03 08:41:48 +00:00
|
|
|
/**
|
|
|
|
* @return the prefix of a component e.g. "R23" returns "R"
|
|
|
|
*/
|
2017-04-02 12:09:01 +00:00
|
|
|
wxString GetPrefix() const;
|
|
|
|
|
|
|
|
void ApplyFieldChanges();
|
|
|
|
|
|
|
|
void RevertFieldChanges();
|
|
|
|
|
2018-02-09 16:35:45 +00:00
|
|
|
void SetParent( FIELDS_EDITOR_TABLE_GROUP* aParent ) { m_parent = aParent; }
|
2017-04-02 12:09:01 +00:00
|
|
|
|
2018-02-09 16:35:45 +00:00
|
|
|
virtual FIELDS_EDITOR_TABLE_ROW* GetParent() const override { return m_parent; }
|
2017-04-02 12:09:01 +00:00
|
|
|
|
|
|
|
protected:
|
2018-02-09 16:35:45 +00:00
|
|
|
FIELDS_EDITOR_TABLE_GROUP* m_parent;
|
2017-04-18 12:43:40 +00:00
|
|
|
|
2018-02-09 16:35:45 +00:00
|
|
|
FIELDS_EDITOR_FIELD_VALUES* m_fieldValues;
|
2017-04-02 12:09:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
2018-02-09 16:35:45 +00:00
|
|
|
* FIELDS_EDITOR_TABLE_MODEL class
|
2017-04-02 12:09:01 +00:00
|
|
|
*
|
|
|
|
* Contains complete BOM information:
|
|
|
|
* a) List of columns (fields) to display
|
|
|
|
* b) List of groups of consolidated components
|
|
|
|
*/
|
2018-02-09 16:35:45 +00:00
|
|
|
class FIELDS_EDITOR_TABLE_MODEL : public wxDataViewModel
|
2017-04-02 12:09:01 +00:00
|
|
|
{
|
|
|
|
protected:
|
2018-02-09 16:35:45 +00:00
|
|
|
FIELDS_EDITOR_TABLE_MODEL();
|
2017-04-02 12:09:01 +00:00
|
|
|
|
2017-04-18 12:43:40 +00:00
|
|
|
// Vector of unique component rows
|
2018-02-09 16:35:45 +00:00
|
|
|
std::vector<std::unique_ptr<FIELDS_EDITOR_TABLE_COMPONENT>> m_components;
|
2017-04-02 12:09:01 +00:00
|
|
|
|
2017-04-18 12:43:40 +00:00
|
|
|
// Vector of field values mapped to field IDs
|
2018-02-09 16:35:45 +00:00
|
|
|
std::vector<std::unique_ptr<FIELDS_EDITOR_FIELD_VALUES>> m_fieldValues;
|
2017-04-18 12:43:40 +00:00
|
|
|
|
2017-05-08 10:41:46 +00:00
|
|
|
// Template field values
|
|
|
|
FIELD_VALUE_MAP m_fieldTemplates;
|
|
|
|
|
2017-04-02 12:09:01 +00:00
|
|
|
// BOM Preferences
|
|
|
|
//! Group components based on values
|
|
|
|
bool m_groupColumns = true;
|
|
|
|
//! Filter components
|
|
|
|
bool m_filterColumns = false;
|
|
|
|
//! Allow blank fields to be merged with otherwise matching groups
|
|
|
|
bool m_mergeBlankFields = false;
|
|
|
|
|
|
|
|
wxDataViewCtrl* m_widget;
|
|
|
|
|
|
|
|
//! ID of column to sort by
|
|
|
|
unsigned int m_sortingColumn;
|
|
|
|
bool m_sortingOrder;
|
|
|
|
|
|
|
|
void AddDefaultColumns();
|
|
|
|
void ClearColumns();
|
|
|
|
|
|
|
|
virtual bool HasContainerColumns( const wxDataViewItem& aItem ) const override { return true; }
|
|
|
|
|
|
|
|
virtual bool IsContainer( const wxDataViewItem& aItem ) const override;
|
|
|
|
|
|
|
|
virtual wxDataViewItem GetParent( const wxDataViewItem& aItem ) const override;
|
|
|
|
|
|
|
|
virtual unsigned int GetChildren( const wxDataViewItem& aItem, wxDataViewItemArray& aChildren ) const override;
|
|
|
|
|
|
|
|
virtual unsigned int GetColumnCount() const override { return ColumnList.ColumnCount( false ); }
|
|
|
|
|
|
|
|
virtual wxString GetColumnType( unsigned int aFieldId ) const override { return wxString( "string" ); }
|
|
|
|
|
|
|
|
virtual void GetValue( wxVariant& aVariant, const wxDataViewItem& aItem, unsigned int aFieldId ) const override;
|
|
|
|
|
|
|
|
virtual bool SetValue( const wxVariant& aVariant, const wxDataViewItem& item, unsigned int aFieldId ) override;
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
2018-02-09 16:35:45 +00:00
|
|
|
virtual ~FIELDS_EDITOR_TABLE_MODEL();
|
2017-04-02 12:09:01 +00:00
|
|
|
|
2018-02-09 16:35:45 +00:00
|
|
|
FIELDS_EDITOR_COLUMN_LIST ColumnList;
|
2017-04-02 12:09:01 +00:00
|
|
|
|
|
|
|
/// List of component groups
|
2018-02-09 16:35:45 +00:00
|
|
|
std::vector<std::unique_ptr<FIELDS_EDITOR_TABLE_GROUP>> Groups;
|
2017-04-02 12:09:01 +00:00
|
|
|
|
2018-02-09 16:35:45 +00:00
|
|
|
typedef wxObjectDataPtr<FIELDS_EDITOR_TABLE_MODEL> MODEL_PTR;
|
2017-04-02 12:09:01 +00:00
|
|
|
|
|
|
|
static MODEL_PTR Create();
|
|
|
|
|
|
|
|
void AttachTo( wxDataViewCtrl* aView );
|
|
|
|
|
2018-02-09 16:35:45 +00:00
|
|
|
wxDataViewColumn* AddColumn( FIELDS_EDITOR_COLUMN* aColumn, int aPosition = -1 );
|
|
|
|
bool RemoveColumn( FIELDS_EDITOR_COLUMN* aColumn );
|
2017-04-02 12:09:01 +00:00
|
|
|
|
|
|
|
// wxDataViewModel functions
|
|
|
|
virtual bool GetAttr( const wxDataViewItem& aItem, unsigned int aFieldId, wxDataViewItemAttr& aAttr ) const override;
|
|
|
|
virtual bool HasDefaultCompare() const override { return false; }
|
|
|
|
virtual int Compare( const wxDataViewItem& aItem1,
|
|
|
|
const wxDataViewItem& aItem2,
|
|
|
|
unsigned int aColumnId,
|
|
|
|
bool aAscending ) const override;
|
|
|
|
|
|
|
|
void ReloadTable();
|
|
|
|
|
|
|
|
unsigned int ColumnCount() const { return ColumnList.ColumnCount(); }
|
|
|
|
unsigned int GroupCount() const { return (unsigned int) Groups.size(); }
|
|
|
|
unsigned int ComponentCount() const;
|
|
|
|
|
|
|
|
void SetColumnGrouping( const bool aGroup = true ) { m_groupColumns = aGroup; }
|
|
|
|
bool GetColumnGrouping() const { return m_groupColumns; }
|
|
|
|
|
|
|
|
void SetColumnFiltering( const bool aFilter = true ) { m_filterColumns = aFilter; }
|
|
|
|
bool GetColumnFiltering() const { return m_filterColumns; }
|
|
|
|
|
|
|
|
void SetBlankMerging( const bool aMerge = true ) { m_mergeBlankFields = aMerge; }
|
|
|
|
bool GetBlankMerging() const { return m_mergeBlankFields; }
|
|
|
|
|
2018-02-09 16:35:45 +00:00
|
|
|
wxArrayString GetRowData( unsigned int aRow, std::vector<FIELDS_EDITOR_COLUMN*> aColumns ) const;
|
2017-04-02 12:09:01 +00:00
|
|
|
|
2017-05-08 10:41:46 +00:00
|
|
|
void SetComponents( SCH_REFERENCE_LIST aRefs, const TEMPLATE_FIELDNAMES& aTemplateFields );
|
2017-04-02 12:09:01 +00:00
|
|
|
void AddComponentFields( SCH_COMPONENT* aCmp );
|
|
|
|
|
|
|
|
void RevertFieldChanges();
|
|
|
|
void ApplyFieldChanges();
|
|
|
|
|
|
|
|
bool HaveFieldsChanged() const;
|
|
|
|
|
2017-05-08 10:41:46 +00:00
|
|
|
void SetBackupPoint();
|
|
|
|
|
2017-04-18 14:10:17 +00:00
|
|
|
std::vector<SCH_REFERENCE> GetChangedComponents();
|
2017-04-02 12:09:01 +00:00
|
|
|
unsigned int CountChangedComponents();
|
|
|
|
};
|
|
|
|
|
2018-02-09 16:35:45 +00:00
|
|
|
#endif // FIELDS_EDITOR_TABLE_MODEL_H
|