Add Contribution entries in Help menu
For both Plus and Classic UIs
This commit is contained in:
parent
d454dcf990
commit
9af0a16ded
|
@ -140,6 +140,7 @@ BEGIN_MESSAGE_MAP(CMyFrame, CFrameWnd)
|
||||||
ON_COMMAND(ID_CONF_RELOAD, OnCmdConfReload)
|
ON_COMMAND(ID_CONF_RELOAD, OnCmdConfReload)
|
||||||
|
|
||||||
ON_COMMAND(ID_HELP_SUPPORT, OnCmdHelpSupport)
|
ON_COMMAND(ID_HELP_SUPPORT, OnCmdHelpSupport)
|
||||||
|
ON_COMMAND(ID_HELP_CONTRIBUTION, OnCmdHelpContribution)
|
||||||
ON_COMMAND(ID_HELP_TOPICS, OnCmdHelpTopics)
|
ON_COMMAND(ID_HELP_TOPICS, OnCmdHelpTopics)
|
||||||
ON_COMMAND(ID_HELP_TUTORIAL, OnCmdHelpTutorial)
|
ON_COMMAND(ID_HELP_TUTORIAL, OnCmdHelpTutorial)
|
||||||
ON_COMMAND(ID_HELP_FORUM, OnCmdHelpForum)
|
ON_COMMAND(ID_HELP_FORUM, OnCmdHelpForum)
|
||||||
|
@ -994,6 +995,15 @@ void CMyFrame::OnCmdHelpSupport()
|
||||||
CRunBrowser x(this, L"https://sandboxie-plus.com/go.php?to=donate");
|
CRunBrowser x(this, L"https://sandboxie-plus.com/go.php?to=donate");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
// OnCmdHelpContribution
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
void CMyFrame::OnCmdHelpContribution()
|
||||||
|
{
|
||||||
|
CRunBrowser x(this, L"https://sandboxie-plus.com/go.php?to=sbie-contribute");
|
||||||
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// OnCmdHelpTopics
|
// OnCmdHelpTopics
|
||||||
|
@ -1005,7 +1015,6 @@ void CMyFrame::OnCmdHelpTopics()
|
||||||
CRunBrowser::OpenHelp(this, L"HelpTopics");
|
CRunBrowser::OpenHelp(this, L"HelpTopics");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// OnCmdHelpTutorial
|
// OnCmdHelpTutorial
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
|
@ -120,6 +120,7 @@ class CMyFrame : public CFrameWnd
|
||||||
afx_msg void OnCmdConfEdit();
|
afx_msg void OnCmdConfEdit();
|
||||||
afx_msg void OnCmdConfReload();
|
afx_msg void OnCmdConfReload();
|
||||||
afx_msg void OnCmdHelpSupport();
|
afx_msg void OnCmdHelpSupport();
|
||||||
|
afx_msg void OnCmdHelpContribution();
|
||||||
afx_msg void OnCmdHelpTopics();
|
afx_msg void OnCmdHelpTopics();
|
||||||
afx_msg void OnCmdHelpTutorial();
|
afx_msg void OnCmdHelpTutorial();
|
||||||
afx_msg void OnCmdHelpForum();
|
afx_msg void OnCmdHelpForum();
|
||||||
|
|
|
@ -124,6 +124,7 @@ BEGIN
|
||||||
POPUP "3451"
|
POPUP "3451"
|
||||||
BEGIN
|
BEGIN
|
||||||
MENUITEM "3504", ID_HELP_SUPPORT
|
MENUITEM "3504", ID_HELP_SUPPORT
|
||||||
|
MENUITEM "3505", ID_HELP_CONTRIBUTION
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "3452", ID_HELP_TOPICS
|
MENUITEM "3452", ID_HELP_TOPICS
|
||||||
MENUITEM "3453", ID_HELP_TUTORIAL
|
MENUITEM "3453", ID_HELP_TUTORIAL
|
||||||
|
|
|
@ -54,6 +54,7 @@
|
||||||
#define ID_HELP_UPDATE 40044
|
#define ID_HELP_UPDATE 40044
|
||||||
#define ID_HELP_UPGRADE 40046
|
#define ID_HELP_UPGRADE 40046
|
||||||
#define ID_HELP_MIGRATION 40047
|
#define ID_HELP_MIGRATION 40047
|
||||||
|
#define ID_HELP_CONTRIBUTION 40048
|
||||||
#define ID_HELP_ABOUT 40045
|
#define ID_HELP_ABOUT 40045
|
||||||
#define ID_PROCESS_TERMINATE 40051
|
#define ID_PROCESS_TERMINATE 40051
|
||||||
#define ID_PROCESS_SETTINGS 40052
|
#define ID_PROCESS_SETTINGS 40052
|
||||||
|
|
|
@ -1240,7 +1240,11 @@ Re&load Configuration
|
||||||
.
|
.
|
||||||
|
|
||||||
3504;txt;01
|
3504;txt;01
|
||||||
&Support Sandboxie
|
&Support Sandboxie with Donations
|
||||||
|
.
|
||||||
|
|
||||||
|
3505;txt;01
|
||||||
|
Contribute to Sandboxie
|
||||||
.
|
.
|
||||||
|
|
||||||
3451;txt;01
|
3451;txt;01
|
||||||
|
|
|
@ -1374,7 +1374,11 @@ Crea collegamento sul desktop
|
||||||
.
|
.
|
||||||
|
|
||||||
3504;txt;01
|
3504;txt;01
|
||||||
&Supporta Sandboxie
|
&Sostieni Sandboxie con le donazioni
|
||||||
|
.
|
||||||
|
|
||||||
|
3505;txt;01
|
||||||
|
Come contribuire al progetto
|
||||||
.
|
.
|
||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
|
@ -435,13 +435,14 @@ void CSandMan::CreateHelpMenu(bool bAdvanced)
|
||||||
{
|
{
|
||||||
m_pMenuHelp = m_pMenuBar->addMenu(tr("&Help"));
|
m_pMenuHelp = m_pMenuBar->addMenu(tr("&Help"));
|
||||||
//m_pMenuHelp->addAction(tr("Support Sandboxie-Plus on Patreon"), this, SLOT(OnHelp()));
|
//m_pMenuHelp->addAction(tr("Support Sandboxie-Plus on Patreon"), this, SLOT(OnHelp()));
|
||||||
m_pSupport = m_pMenuHelp->addAction(tr("Support Sandboxie-Plus with a Donation"), this, SLOT(OnHelp()));
|
m_pSupport = m_pMenuHelp->addAction(tr("Support Sandboxie-Plus with Donations"), this, SLOT(OnHelp()));
|
||||||
//if (!bAdvanced) {
|
//if (!bAdvanced) {
|
||||||
// m_pMenuHelp->removeAction(m_pSupport);
|
// m_pMenuHelp->removeAction(m_pSupport);
|
||||||
// m_pMenuBar->addAction(m_pSupport);
|
// m_pMenuBar->addAction(m_pSupport);
|
||||||
//}
|
//}
|
||||||
m_pForum = m_pMenuHelp->addAction(tr("Visit Support Forum"), this, SLOT(OnHelp()));
|
m_pContribution = m_pMenuHelp->addAction(tr("Contribute to Sandboxie-Plus"), this, SLOT(OnHelp()));
|
||||||
m_pManual = m_pMenuHelp->addAction(tr("Online Documentation"), this, SLOT(OnHelp()));
|
m_pManual = m_pMenuHelp->addAction(tr("Online Documentation"), this, SLOT(OnHelp()));
|
||||||
|
m_pForum = m_pMenuHelp->addAction(tr("Visit Support Forum"), this, SLOT(OnHelp()));
|
||||||
m_pMenuHelp->addSeparator();
|
m_pMenuHelp->addSeparator();
|
||||||
m_pUpdate = m_pMenuHelp->addAction(tr("Check for Updates"), this, SLOT(CheckForUpdates()));
|
m_pUpdate = m_pMenuHelp->addAction(tr("Check for Updates"), this, SLOT(CheckForUpdates()));
|
||||||
m_pMenuHelp->addSeparator();
|
m_pMenuHelp->addSeparator();
|
||||||
|
@ -3115,10 +3116,12 @@ void CSandMan::OnHelp()
|
||||||
{
|
{
|
||||||
if (sender() == m_pSupport)
|
if (sender() == m_pSupport)
|
||||||
QDesktopServices::openUrl(QUrl("https://sandboxie-plus.com/go.php?to=donate"));
|
QDesktopServices::openUrl(QUrl("https://sandboxie-plus.com/go.php?to=donate"));
|
||||||
else if (sender() == m_pForum)
|
else if (sender() == m_pContribution)
|
||||||
QDesktopServices::openUrl(QUrl("https://sandboxie-plus.com/go.php?to=sbie-forum"));
|
QDesktopServices::openUrl(QUrl("https://sandboxie-plus.com/go.php?to=sbie-contribute"));
|
||||||
else if (sender() == m_pManual)
|
else if (sender() == m_pManual)
|
||||||
QDesktopServices::openUrl(QUrl("https://sandboxie-plus.com/go.php?to=sbie-docs"));
|
QDesktopServices::openUrl(QUrl("https://sandboxie-plus.com/go.php?to=sbie-docs"));
|
||||||
|
else if (sender() == m_pForum)
|
||||||
|
QDesktopServices::openUrl(QUrl("https://sandboxie-plus.com/go.php?to=sbie-forum"));
|
||||||
else
|
else
|
||||||
QDesktopServices::openUrl(QUrl("https://sandboxie-plus.com/go.php?to=patreon"));
|
QDesktopServices::openUrl(QUrl("https://sandboxie-plus.com/go.php?to=patreon"));
|
||||||
}
|
}
|
||||||
|
|
|
@ -338,6 +338,7 @@ private:
|
||||||
|
|
||||||
QMenu* m_pMenuHelp;
|
QMenu* m_pMenuHelp;
|
||||||
QAction* m_pSupport;
|
QAction* m_pSupport;
|
||||||
|
QAction* m_pContribution;
|
||||||
QAction* m_pForum;
|
QAction* m_pForum;
|
||||||
QAction* m_pManual;
|
QAction* m_pManual;
|
||||||
QAction* m_pUpdate;
|
QAction* m_pUpdate;
|
||||||
|
|
Loading…
Reference in New Issue