diff --git a/src/ClientWindow.cpp b/src/ClientWindow.cpp index ab71436..f11e4d3 100644 --- a/src/ClientWindow.cpp +++ b/src/ClientWindow.cpp @@ -506,6 +506,9 @@ void ClientWindow::Init() menu->AddItem( item = new BMenuItem(B_TRANSLATE("About Vision"), new BMessage(B_ABOUT_REQUESTED))); item->SetTarget(vision_app); + menu->AddItem( + item = new BMenuItem(B_TRANSLATE("Help"), new BMessage(M_HELP_SHOW))); + item->SetTarget(vision_app); menu->AddItem(item = new BMenuItem(B_TRANSLATE("Preferences" B_UTF8_ELLIPSIS), new BMessage(M_PREFS_SHOW))); item->SetTarget(vision_app); diff --git a/src/Vision.cpp b/src/Vision.cpp index 2d98fe7..c606310 100644 --- a/src/Vision.cpp +++ b/src/Vision.cpp @@ -887,6 +887,10 @@ void VisionApp::MessageReceived(BMessage* msg) PostMessage(B_QUIT_REQUESTED); } break; + case M_HELP_SHOW: { + LoadURL("https://www.haiku-os.org/docs/userguide/en/applications/vision.html"); + } break; + case M_PREFS_SHOW: { if (fPrefsWin) fPrefsWin->Activate(); diff --git a/src/VisionMessages.h b/src/VisionMessages.h index adbc142..413970f 100644 --- a/src/VisionMessages.h +++ b/src/VisionMessages.h @@ -162,6 +162,7 @@ const uint32 M_OPEN_TERM = 0x2005; const uint32 M_MAKE_NEW_NETWORK = 0x2006; const uint32 M_STATUS_CLEAR = 0x2007; const uint32 M_STATUS_ADDITEMS = 0x2008; +const uint32 M_HELP_SHOW = 0x2009; // names view diff --git a/src/locales/de.catkeys b/src/locales/de.catkeys index af092c6..8ef1f64 100644 --- a/src/locales/de.catkeys +++ b/src/locales/de.catkeys @@ -1,4 +1,4 @@ -1 german application/x-vnd.Ink-Vision 3932130148 +1 german application/x-vnd.Ink-Vision 3406632783 [@] Attempting to rejoin…\n ChannelAgent [@] Versuche einen Rejoin…\n *** Attempting to rejoin %channel%…\n ChannelAgent *** Versuche einen Rejoin mit %channel%…\n *** Now talking in %channel%\n ChannelAgent *** Momentan in %channel%\n @@ -36,6 +36,7 @@ Cut ClientWindow Ausschneiden Down ClientWindow Runter Edit ClientWindow Bearbeiten Expand network ClientWindow Netzwerk ausklappen +Help ClientWindow Help List channels… ClientWindow Kanäle auflisten… Move network down ClientWindow Netzwerk runter Move network up ClientWindow Netzwerk rauf diff --git a/src/locales/en.catkeys b/src/locales/en.catkeys index e8d38a7..7aa9e36 100644 --- a/src/locales/en.catkeys +++ b/src/locales/en.catkeys @@ -1,4 +1,4 @@ -1 English application/x-vnd.Ink-Vision 3932130148 +1 English application/x-vnd.Ink-Vision 3406632783 [@] Attempting to rejoin…\n ChannelAgent [@] Attempting to rejoin…\n *** Attempting to rejoin %channel%…\n ChannelAgent *** Attempting to rejoin %channel%…\n *** Now talking in %channel%\n ChannelAgent *** Now talking in %channel%\n @@ -36,6 +36,7 @@ Cut ClientWindow Cut Down ClientWindow Down Edit ClientWindow Edit Expand network ClientWindow Expand network +Help ClientWindow Help List channels… ClientWindow List channels… Move network down ClientWindow Move network down Move network up ClientWindow Move network up