Description text now resizes with confirmation window.

This commit is contained in:
WrinklyNinja
2014-02-12 21:47:52 +00:00
parent 793ed58c9e
commit ebb9430793
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -192,6 +192,7 @@ MiniEditor::MiniEditor(wxWindow *parent, const wxString& title, const std::list<
Bind(wxEVT_BUTTON, &MiniEditor::OnRemoveRow, this, BUTTON_RemoveRow);
Bind(wxEVT_CHECKBOX, &MiniEditor::OnFilterToggle, this);
Bind(wxEVT_BUTTON, &MiniEditor::OnApply, this, wxID_APPLY);
Bind(wxEVT_SIZE, &MiniEditor::OnResize, this);
//Set up editing panel layout.
wxBoxSizer * mainBox = new wxBoxSizer(wxVERTICAL);
@@ -446,6 +447,12 @@ boss::Plugin MiniEditor::GetNewData(const wxString& plugin) const {
return edited;
}
void MiniEditor::OnResize(wxSizeEvent& event) {
descText->SetLabel(translate("Please submit any edits made for reasons other than personal preference to the BOSS team so that they may be included in the masterlist."));
descText->Wrap(GetClientSize().GetWidth()-30);
event.Skip();
}
///////////////////////////////////
// Editor Class
///////////////////////////////////
+1
View File
@@ -90,6 +90,7 @@ public:
void OnFilterToggle(wxCommandEvent& event);
void OnDragStart(wxListEvent& event);
void OnApply(wxCommandEvent& event);
void OnResize(wxSizeEvent& event);
const std::list<boss::Plugin>& GetEditedPlugins() const;
private: