mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
add documentation link in help menu
This commit is contained in:
@@ -116,6 +116,7 @@ menu:
|
|||||||
help: &Help
|
help: &Help
|
||||||
index: &Index... F1
|
index: &Index... F1
|
||||||
website: &Website...
|
website: &Website...
|
||||||
|
documentation: &Documentation...
|
||||||
about: &About Magic Set Editor...
|
about: &About Magic Set Editor...
|
||||||
|
|
||||||
## symbol editor menus
|
## symbol editor menus
|
||||||
@@ -245,7 +246,8 @@ help:
|
|||||||
|
|
||||||
# help menu
|
# help menu
|
||||||
index: Open the index
|
index: Open the index
|
||||||
website: Open the MSE website
|
website: Open the MSE home website
|
||||||
|
documentation: Open the MSE documentation website
|
||||||
about: Show information about this app
|
about: Show information about this app
|
||||||
|
|
||||||
# new set window
|
# new set window
|
||||||
@@ -765,8 +767,8 @@ button:
|
|||||||
with file extension
|
with file extension
|
||||||
allow image download:
|
allow image download:
|
||||||
Allow downloading of images.
|
Allow downloading of images.
|
||||||
This may significantly increase
|
This may significantly increase the
|
||||||
the duration of imports.
|
duration of JSON and CSV imports.
|
||||||
|
|
||||||
# column select
|
# column select
|
||||||
move up: Move &Up
|
move up: Move &Up
|
||||||
|
|||||||
@@ -210,6 +210,7 @@ Settings::Settings()
|
|||||||
, check_updates (CHECK_IF_CONNECTED)
|
, check_updates (CHECK_IF_CONNECTED)
|
||||||
, check_updates_all (true)
|
, check_updates_all (true)
|
||||||
, website_url (_("https://magicseteditor.boards.net/"))
|
, website_url (_("https://magicseteditor.boards.net/"))
|
||||||
|
, documentation_url (_("https://mseverse.miraheze.org/wiki/Dev:Documentation#Topics"))
|
||||||
, install_type (INSTALL_DEFAULT)
|
, install_type (INSTALL_DEFAULT)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
@@ -353,6 +354,7 @@ IMPLEMENT_REFLECTION_NO_SCRIPT(Settings) {
|
|||||||
REFLECT(check_updates_all);
|
REFLECT(check_updates_all);
|
||||||
REFLECT(install_type);
|
REFLECT(install_type);
|
||||||
REFLECT(website_url);
|
REFLECT(website_url);
|
||||||
|
REFLECT(documentation_url);
|
||||||
REFLECT(game_settings);
|
REFLECT(game_settings);
|
||||||
REFLECT(stylesheet_settings);
|
REFLECT(stylesheet_settings);
|
||||||
REFLECT(default_stylesheet_settings);
|
REFLECT(default_stylesheet_settings);
|
||||||
|
|||||||
@@ -242,6 +242,7 @@ public:
|
|||||||
CheckUpdates check_updates;
|
CheckUpdates check_updates;
|
||||||
bool check_updates_all; ///< Check updates of all packages, not just the program
|
bool check_updates_all; ///< Check updates of all packages, not just the program
|
||||||
String website_url;
|
String website_url;
|
||||||
|
String documentation_url;
|
||||||
|
|
||||||
// --------------------------------------------------- : Installation settings
|
// --------------------------------------------------- : Installation settings
|
||||||
|
|
||||||
|
|||||||
@@ -104,6 +104,7 @@ SetWindow::SetWindow(Window* parent, const SetP& set)
|
|||||||
auto menuHelp = new wxMenu();
|
auto menuHelp = new wxMenu();
|
||||||
add_menu_item_tr(menuHelp, ID_HELP_INDEX, "help", "index");
|
add_menu_item_tr(menuHelp, ID_HELP_INDEX, "help", "index");
|
||||||
add_menu_item_tr(menuHelp, ID_HELP_WEBSITE, nullptr, "website");
|
add_menu_item_tr(menuHelp, ID_HELP_WEBSITE, nullptr, "website");
|
||||||
|
add_menu_item_tr(menuHelp, ID_HELP_DOCUMENTATION, nullptr, "documentation");
|
||||||
add_menu_item_tr(menuHelp, ID_HELP_ABOUT, nullptr, "about");
|
add_menu_item_tr(menuHelp, ID_HELP_ABOUT, nullptr, "about");
|
||||||
menuBar->Append(menuHelp, _MENU_("help"));
|
menuBar->Append(menuHelp, _MENU_("help"));
|
||||||
|
|
||||||
@@ -829,6 +830,10 @@ void SetWindow::onHelpIndex(wxCommandEvent&) {
|
|||||||
|
|
||||||
void SetWindow::onHelpWebsite(wxCommandEvent&) {
|
void SetWindow::onHelpWebsite(wxCommandEvent&) {
|
||||||
wxLaunchDefaultBrowser(settings.website_url);
|
wxLaunchDefaultBrowser(settings.website_url);
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetWindow::onHelpDocumentation(wxCommandEvent&) {
|
||||||
|
wxLaunchDefaultBrowser(settings.documentation_url);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetWindow::onHelpAbout(wxCommandEvent&) {
|
void SetWindow::onHelpAbout(wxCommandEvent&) {
|
||||||
@@ -891,6 +896,7 @@ BEGIN_EVENT_TABLE(SetWindow, wxFrame)
|
|||||||
EVT_TOOL_RANGE (ID_WINDOW_MIN, ID_WINDOW_MAX, SetWindow::onWindowSelect)
|
EVT_TOOL_RANGE (ID_WINDOW_MIN, ID_WINDOW_MAX, SetWindow::onWindowSelect)
|
||||||
EVT_MENU (ID_HELP_INDEX, SetWindow::onHelpIndex)
|
EVT_MENU (ID_HELP_INDEX, SetWindow::onHelpIndex)
|
||||||
EVT_MENU (ID_HELP_WEBSITE, SetWindow::onHelpWebsite)
|
EVT_MENU (ID_HELP_WEBSITE, SetWindow::onHelpWebsite)
|
||||||
|
EVT_MENU (ID_HELP_DOCUMENTATION, SetWindow::onHelpDocumentation)
|
||||||
EVT_MENU (ID_HELP_ABOUT, SetWindow::onHelpAbout)
|
EVT_MENU (ID_HELP_ABOUT, SetWindow::onHelpAbout)
|
||||||
EVT_MENU_OPEN ( SetWindow::onMenuOpen)
|
EVT_MENU_OPEN ( SetWindow::onMenuOpen)
|
||||||
EVT_TOOL_RANGE (ID_CHILD_MIN, ID_CHILD_MAX, SetWindow::onChildMenu)
|
EVT_TOOL_RANGE (ID_CHILD_MIN, ID_CHILD_MAX, SetWindow::onChildMenu)
|
||||||
|
|||||||
@@ -166,6 +166,7 @@ private:
|
|||||||
|
|
||||||
void onHelpIndex (wxCommandEvent&);
|
void onHelpIndex (wxCommandEvent&);
|
||||||
void onHelpWebsite (wxCommandEvent&);
|
void onHelpWebsite (wxCommandEvent&);
|
||||||
|
void onHelpDocumentation (wxCommandEvent&);
|
||||||
void onHelpAbout (wxCommandEvent&);
|
void onHelpAbout (wxCommandEvent&);
|
||||||
|
|
||||||
// --------------------------------------------------- : Window events - other
|
// --------------------------------------------------- : Window events - other
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ bool ImageValueEditor::onLeftDClick(const RealPoint&, wxMouseEvent&) {
|
|||||||
String directory = settings.default_image_dir;
|
String directory = settings.default_image_dir;
|
||||||
String filename = _("");
|
String filename = _("");
|
||||||
CardP card = parent.getCard();
|
CardP card = parent.getCard();
|
||||||
String cardname = card ? card->identification() : _("clipboard");
|
String cardname = card ? card->identification() : _("clipboard"); // use card.uid instead of card->identification() ?
|
||||||
if (ImageSliceWindow::previously_used_settings_path.find(cardname) != ImageSliceWindow::previously_used_settings_path.end()) {
|
if (ImageSliceWindow::previously_used_settings_path.find(cardname) != ImageSliceWindow::previously_used_settings_path.end()) {
|
||||||
String filepath = ImageSliceWindow::previously_used_settings_path[cardname];
|
String filepath = ImageSliceWindow::previously_used_settings_path[cardname];
|
||||||
size_t pos = filepath.rfind(wxFileName::GetPathSeparator());
|
size_t pos = filepath.rfind(wxFileName::GetPathSeparator());
|
||||||
|
|||||||
+1
-1
@@ -114,7 +114,7 @@ InternalError::InternalError(const String& str)
|
|||||||
str + _("\n\n")
|
str + _("\n\n")
|
||||||
_("Please save your work (use 'save as' so you don't overwrite things)\n")
|
_("Please save your work (use 'save as' so you don't overwrite things)\n")
|
||||||
_("and restart Magic Set Editor.\n")
|
_("and restart Magic Set Editor.\n")
|
||||||
_("You can also find a backup of your set in the same folder as your set file\n")
|
_("You can also find a backup of your last save in the same folder as your set file\n")
|
||||||
_("called 'SETNAME.mse-set.bak'. Rename it to 'SETNAME-backup.mse-set' to open it.\n")
|
_("called 'SETNAME.mse-set.bak'. Rename it to 'SETNAME-backup.mse-set' to open it.\n")
|
||||||
_("You should leave a bug report on https://github.com/twanvl/MagicSetEditor2/issues/\n")
|
_("You should leave a bug report on https://github.com/twanvl/MagicSetEditor2/issues/\n")
|
||||||
_("Press Ctrl+C to copy this message to the clipboard.")
|
_("Press Ctrl+C to copy this message to the clipboard.")
|
||||||
|
|||||||
Reference in New Issue
Block a user