Skip to content

Commit

Permalink
+ Add instance names (if exit) in cutlist part rows
Browse files Browse the repository at this point in the history
  • Loading branch information
bbeaulant committed Mar 16, 2018
1 parent 68cc303 commit 3f01819
Show file tree
Hide file tree
Showing 10 changed files with 310 additions and 242 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ CHANGELOG
This changelog references the relevant changes (bug and security fixes) done
in 1.x and 0.x versions.

* 1.3.0 (2018-03-14)
* 1.3.0 (2018-03-16)

* Add dynamic components support !
* Add instance names (if exit) in cutlist part rows
* Fix part size calculation when a component contains multiples child groups
* Exclude always_face_camera component from cutlist
* Treat cuts_opening components has groups
Expand Down
2 changes: 1 addition & 1 deletion build/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lairdubois-toolbox-sketchup-plugin",
"version": "1.3.0",
"version": "1.3.0-alpha",
"description": "L'Air du Bois : Woodworking Toolbox ================================",
"main": "index.js",
"directories": {
Expand Down
2 changes: 1 addition & 1 deletion dist/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.0
1.3.0-alpha
Binary file modified dist/ladb_toolbox.rbz
Binary file not shown.
12 changes: 11 additions & 1 deletion src/ladb_toolbox/js/plugins/jquery.ladb.tab-cutlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,14 @@
materialUsages: that.materialUsages
});

var isOwnedMaterial = true;
for (var i = 0; i < part.material_origins.length; i++) {
if (part.material_origins[i] != 1) { // 1 = MATERIAL_ORIGIN_OWNED
isOwnedMaterial = false;
break;
}
}

// Fetch UI elements
var $inputName = $('#ladb_cutlist_part_input_name', $modal);
var $selectMaterialName = $('#ladb_cutlist_part_select_material_name', $modal);
Expand All @@ -339,7 +347,9 @@
var $btnUpdate = $('#ladb_cutlist_part_update', $modal);

// Bind select
$selectMaterialName.val(part.material_name);
if (isOwnedMaterial) {
$selectMaterialName.val(part.material_name);
}
$selectMaterialName.selectpicker(SELECT_PICKER_OPTIONS);
$selectCumulable.val(part.cumulable);
$selectCumulable.selectpicker(SELECT_PICKER_OPTIONS);
Expand Down
9 changes: 9 additions & 0 deletions src/ladb_toolbox/less/tabs/cutlist.less
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
thead tr {
background-color: #eee;

td {
border-bottom: 0;
}

.ladb-heading {
line-height: 30px;
font-size: 130%;
Expand All @@ -30,6 +34,11 @@

tbody tr.ladb-cutlist-row {
font-size: 120%;

.ladb-part-entity-names {
font-size: 70%;
}

}

.ladb-btn-toggle-no-print {
Expand Down
Loading

0 comments on commit 3f01819

Please sign in to comment.