Skip to content

Commit

Permalink
Invert selections in batch build and pack projects #258
Browse files Browse the repository at this point in the history
  • Loading branch information
ousnius committed Mar 17, 2020
1 parent c338568 commit 1469600
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 2 deletions.
3 changes: 3 additions & 0 deletions lang/BodySlide.pot
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ msgstr ""
msgid "Select All\tCtrl+A"
msgstr ""

msgid "Invert Selection"
msgstr ""

msgid "Enter preset name..."
msgstr ""

Expand Down
Binary file modified lang/de/BodySlide.mo
Binary file not shown.
3 changes: 3 additions & 0 deletions lang/de/BodySlide.po
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ msgstr "Alle auswählen"
msgid "Select All\tCtrl+A"
msgstr "Alle auswählen\tCtrl+A"

msgid "Invert Selection"
msgstr "Auswahl umkehren"

msgid "Enter preset name..."
msgstr "Preset-Name eingeben..."

Expand Down
3 changes: 3 additions & 0 deletions res/xrc/BodySlide.xrc
Original file line number Diff line number Diff line change
Expand Up @@ -448,5 +448,8 @@
<object class="wxMenuItem" name="batchBuildAll">
<label>Select All</label>
</object>
<object class="wxMenuItem" name="batchBuildInvert">
<label>Invert Selection</label>
</object>
</object>
</resource>
3 changes: 3 additions & 0 deletions res/xrc/Project.xrc
Original file line number Diff line number Diff line change
Expand Up @@ -1031,5 +1031,8 @@
<object class="wxMenuItem" name="projectListAll">
<label>Select All</label>
</object>
<object class="wxMenuItem" name="projectListInvert">
<label>Invert Selection</label>
</object>
</object>
</resource>
6 changes: 5 additions & 1 deletion src/program/BodySlideApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3256,10 +3256,14 @@ void BodySlideFrame::OnBatchBuildSelect(wxCommandEvent& event) {
for (int i = 0; i < batchBuildList->GetCount(); i++)
batchBuildList->Check(i, false);
}
else {
else if (event.GetId() == XRCID("batchBuildAll")) {
for (int i = 0; i < batchBuildList->GetCount(); i++)
batchBuildList->Check(i);
}
else if (event.GetId() == XRCID("batchBuildInvert")) {
for (int i = 0; i < batchBuildList->GetCount(); i++)
batchBuildList->Check(!batchBuildList->IsChecked(i));
}
}

void BodySlideFrame::OnOutfitStudio(wxCommandEvent& WXUNUSED(event)) {
Expand Down
6 changes: 5 additions & 1 deletion src/program/OutfitStudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1027,10 +1027,14 @@ void OutfitStudioFrame::OnPackProjects(wxCommandEvent& WXUNUSED(event)) {
for (int i = 0; i < projectList->GetCount(); i++)
projectList->Check(i, false);
}
else {
else if (event.GetId() == XRCID("projectListAll")) {
for (int i = 0; i < projectList->GetCount(); i++)
projectList->Check(i);
}
else if (event.GetId() == XRCID("projectListInvert")) {
for (int i = 0; i < projectList->GetCount(); i++)
projectList->Check(i, !projectList->IsChecked(i));
}
});

PopupMenu(menu);
Expand Down

0 comments on commit 1469600

Please sign in to comment.