Skip to content

Commit

Permalink
Add brush size tooltip and missing CMake source
Browse files Browse the repository at this point in the history
  • Loading branch information
ousnius committed Jul 21, 2021
1 parent 21f7f56 commit 90feb01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ set(OSsources
src/components/UndoHistory.cpp
src/components/WeightNorm.cpp
src/files/FBXWrangler.cpp
src/ui/wxBrushSettingsPopup.cpp
src/program/EditUV.cpp
src/program/FBXImportDialog.cpp
src/program/OutfitProject.cpp
Expand Down
8 changes: 1 addition & 7 deletions src/ui/wxBrushSettingsPopup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@ See the included LICENSE file

#include "wxBrushSettingsPopup.h"

/*
EVT_COMMAND_SCROLL(XRCID("brushSize"), OutfitStudioFrame::OnBrushSettingsSlider)
EVT_COMMAND_SCROLL(XRCID("brushStr"), OutfitStudioFrame::OnBrushSettingsSlider)
EVT_COMMAND_SCROLL(XRCID("brushFocus"), OutfitStudioFrame::OnBrushSettingsSlider)
EVT_COMMAND_SCROLL(XRCID("brushSpace"), OutfitStudioFrame::OnBrushSettingsSlider)
*/

wxBrushSettingsPopup::wxBrushSettingsPopup(OutfitStudioFrame* parent)
: wxPopupTransientWindow(parent, wxBORDER_SIMPLE | wxPU_CONTAINS_CONTROLS) {
os = parent;
Expand All @@ -25,6 +18,7 @@ wxBrushSettingsPopup::wxBrushSettingsPopup(OutfitStudioFrame* parent)
flexGridSizer->Add(lbBrushSize, 0, wxALL, 5);

brushSize = new wxSlider(panel, wxID_ANY, 0, 0, 1000, wxDefaultPosition, wxSize(150, -1), wxSL_BOTH | wxSL_HORIZONTAL);
brushSize->SetToolTip(_("Shortcut: 'S' + mouse wheel"));
brushSize->Bind(wxEVT_SLIDER, &wxBrushSettingsPopup::OnBrushSettingsSlider, this);
flexGridSizer->Add(brushSize, 1, wxALL, 5);

Expand Down

0 comments on commit 90feb01

Please sign in to comment.