Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion src/laybasic/laybasic/layLayoutViewBase.cc
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ LayoutViewBase::init (db::Manager *mgr)
m_box_text_transform = true;
m_box_font = 0;
m_min_size_for_label = 16;
m_empty_cell_dimension = 4.0;
m_cell_box_visible = true;
m_ghost_cells_visible = true;
m_text_visible = true;
Expand Down Expand Up @@ -944,6 +945,13 @@ LayoutViewBase::configure (const std::string &name, const std::string &value)
min_inst_label_size (n);
return true;

} else if (name == cfg_empty_cell_dimension) {

double n;
tl::from_string (value, n);
empty_cell_dimension (n);
return true;

} else if (name == cfg_cell_box_text_font) {

int n;
Expand Down Expand Up @@ -5403,7 +5411,16 @@ LayoutViewBase::min_inst_label_size (int px)
}
}

void
void
LayoutViewBase::empty_cell_dimension (double um)
{
if (m_empty_cell_dimension != um) {
m_empty_cell_dimension = um;
redraw ();
}
}

void
LayoutViewBase::text_visible (bool vis)
{
if (m_text_visible != vis) {
Expand Down
16 changes: 15 additions & 1 deletion src/laybasic/laybasic/layLayoutViewBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,20 @@ class LAYBASIC_PUBLIC LayoutViewBase :
return m_min_size_for_label;
}

/**
/**
* @brief Empty cell dimension for the purpose of label generation setter
*/
void empty_cell_dimension (double um);

/**
* @brief Empty cell dimension for the purpose of label generation getter
*/
int empty_cell_dimension () const
{
return m_empty_cell_dimension;
}

/**
* @brief Visibility of text objects
*/
void text_visible (bool vis);
Expand Down Expand Up @@ -2941,6 +2954,7 @@ class LAYBASIC_PUBLIC LayoutViewBase :
bool m_box_text_transform;
unsigned int m_box_font;
int m_min_size_for_label;
double m_empty_cell_dimension;
bool m_cell_box_visible;
bool m_ghost_cells_visible;

Expand Down
1 change: 1 addition & 0 deletions src/laybasic/laybasic/layLayoutViewConfig.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class LayoutViewBasicConfigDeclaration
options.push_back (std::pair<std::string, std::string> (cfg_current_lib_view, ""));
options.push_back (std::pair<std::string, std::string> (cfg_hide_empty_layers, "false"));
options.push_back (std::pair<std::string, std::string> (cfg_min_inst_label_size, "16"));
options.push_back (std::pair<std::string, std::string> (cfg_empty_cell_dimension, "4"));
options.push_back (std::pair<std::string, std::string> (cfg_cell_box_text_font, "0"));
options.push_back (std::pair<std::string, std::string> (cfg_cell_box_text_transform, "true"));
options.push_back (std::pair<std::string, std::string> (cfg_cell_box_color, "auto"));
Expand Down
Loading
Loading