mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Description text now resizes with confirmation window.
This commit is contained in:
@@ -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
|
||||
///////////////////////////////////
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user