From 4d50efc25688ade7b10ab91c161586aa0a91e368 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sun, 1 Apr 2012 02:43:01 +0000 Subject: [PATCH] Add a help button to the preferences dialog Originally committed to SVN as r6644. --- aegisub/src/preferences.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aegisub/src/preferences.cpp b/aegisub/src/preferences.cpp index 2360be787..89a62d36b 100644 --- a/aegisub/src/preferences.cpp +++ b/aegisub/src/preferences.cpp @@ -45,6 +45,7 @@ #include "colour_button.h" #include "command/command.h" #include "compat.h" +#include "help_button.h" #include "hotkey_data_view_model.h" #include "include/aegisub/audio_player.h" #include "include/aegisub/audio_provider.h" @@ -678,7 +679,7 @@ Preferences::Preferences(wxWindow *parent): wxDialog(parent, -1, _("Preferences" book->Bind(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED, &PageChanged); // Bottom Buttons - wxStdDialogButtonSizer *stdButtonSizer = CreateStdDialogButtonSizer(wxOK | wxCANCEL | wxAPPLY); + wxStdDialogButtonSizer *stdButtonSizer = CreateStdDialogButtonSizer(wxOK | wxCANCEL | wxAPPLY | wxHELP); applyButton = stdButtonSizer->GetApplyButton(); // Main Sizer @@ -695,6 +696,7 @@ Preferences::Preferences(wxWindow *parent): wxDialog(parent, -1, _("Preferences" Bind(wxEVT_COMMAND_BUTTON_CLICKED, &Preferences::OnOK, this, wxID_OK); Bind(wxEVT_COMMAND_BUTTON_CLICKED, &Preferences::OnApply, this, wxID_APPLY); + Bind(wxEVT_COMMAND_BUTTON_CLICKED, std::tr1::bind(&HelpButton::OpenPage, "Options"), wxID_HELP); } Preferences::~Preferences() {