93 case OBJ_Subfile: |
93 case OBJ_Subfile: |
94 { |
94 { |
95 coordCount = 3; |
95 coordCount = 3; |
96 tw_subfileList = new QTreeWidget(); |
96 tw_subfileList = new QTreeWidget(); |
97 tw_subfileList->setHeaderLabel (tr ("Primitives")); |
97 tw_subfileList->setHeaderLabel (tr ("Primitives")); |
98 PopulatePrimitives (tw_subfileList, (obj != nullptr ? static_cast<LDSubfile*> (obj)->fileInfo()->name() : "")); |
98 PopulatePrimitives (tw_subfileList, (obj ? static_cast<LDSubfile*> (obj)->fileInfo()->name() : "")); |
99 |
99 |
100 connect (tw_subfileList, SIGNAL (itemSelectionChanged()), this, SLOT (slot_subfileTypeChanged())); |
100 connect (tw_subfileList, SIGNAL (itemSelectionChanged()), this, SLOT (slot_subfileTypeChanged())); |
101 lb_subfileName = new QLabel ("File:"); |
101 lb_subfileName = new QLabel ("File:"); |
102 le_subfileName = new QLineEdit; |
102 le_subfileName = new QLineEdit; |
103 le_subfileName->setFocus(); |
103 le_subfileName->setFocus(); |
122 lb_typeIcon->setPixmap (icon); |
122 lb_typeIcon->setPixmap (icon); |
123 |
123 |
124 // Show a color edit dialog for the types that actually use the color |
124 // Show a color edit dialog for the types that actually use the color |
125 if (defaults->isColored()) |
125 if (defaults->isColored()) |
126 { |
126 { |
127 if (obj != nullptr) |
127 if (obj) |
128 m_color = obj->color(); |
128 m_color = obj->color(); |
129 else |
129 else |
130 m_color = (type == OBJ_CondLine or type == OBJ_Line) ? EdgeColor : MainColor; |
130 m_color = (type == OBJ_CondLine or type == OBJ_Line) ? EdgeColor : MainColor; |
131 |
131 |
132 pb_color = new QPushButton; |
132 pb_color = new QPushButton; |
188 QLabel* lb_matrix = new QLabel ("Matrix:"); |
188 QLabel* lb_matrix = new QLabel ("Matrix:"); |
189 le_matrix = new QLineEdit; |
189 le_matrix = new QLineEdit; |
190 // le_matrix->setValidator (new QDoubleValidator); |
190 // le_matrix->setValidator (new QDoubleValidator); |
191 Matrix defaultMatrix = IdentityMatrix; |
191 Matrix defaultMatrix = IdentityMatrix; |
192 |
192 |
193 if (mo != nullptr) |
193 if (mo) |
194 { |
194 { |
195 mo->position().apply ([&](Axis ax, double value) |
195 mo->position().apply ([&](Axis ax, double value) |
196 { |
196 { |
197 dsb_coords[ax]->setValue (value); |
197 dsb_coords[ax]->setValue (value); |
198 }); |
198 }); |