mirror of
https://github.com/KLayout/klayout.git
synced 2026-09-07 03:21:34 +02:00
WIP: indicating of packages in tech and macros
Technologies and macros that come from packages are indicated as such in their description texts in the tech and macro editor. Technologies and macros that come from packages which are downloaded are readonly now. This will prevent editing of downloaded packages.
This commit is contained in:
@@ -252,7 +252,7 @@ Technology::~Technology ()
|
||||
|
||||
Technology::Technology (const Technology &d)
|
||||
: tl::Object (),
|
||||
m_name (d.m_name), m_description (d.m_description), m_dbu (d.m_dbu),
|
||||
m_name (d.m_name), m_description (d.m_description), m_grain_name (d.m_grain_name), m_dbu (d.m_dbu),
|
||||
m_explicit_base_path (d.m_explicit_base_path), m_default_base_path (d.m_default_base_path),
|
||||
m_load_layout_options (d.m_load_layout_options),
|
||||
m_save_layout_options (d.m_save_layout_options),
|
||||
@@ -270,6 +270,7 @@ Technology &Technology::operator= (const Technology &d)
|
||||
|
||||
m_name = d.m_name;
|
||||
m_description = d.m_description;
|
||||
m_grain_name = d.m_grain_name;
|
||||
m_dbu = d.m_dbu;
|
||||
m_default_base_path = d.m_default_base_path;
|
||||
m_explicit_base_path = d.m_explicit_base_path;
|
||||
|
||||
@@ -280,6 +280,24 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Sets the package source
|
||||
*
|
||||
* This attribute indicates that this technology was contributed by a package
|
||||
*/
|
||||
void set_grain_name (const std::string &g)
|
||||
{
|
||||
m_grain_name = g;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Gets the package source
|
||||
*/
|
||||
const std::string &grain_name () const
|
||||
{
|
||||
return m_grain_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Gets the base path
|
||||
*
|
||||
@@ -575,6 +593,7 @@ public:
|
||||
|
||||
private:
|
||||
std::string m_name, m_description;
|
||||
std::string m_grain_name;
|
||||
double m_dbu;
|
||||
std::string m_explicit_base_path, m_default_base_path;
|
||||
db::LoadLayoutOptions m_load_layout_options;
|
||||
|
||||
Reference in New Issue
Block a user