mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-29 14:22:25 -06:00
Merge continued
git-svn-id: svn://ultimatepp.org/upp/trunk@10263 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
adf46bd64e
commit
2e4b276e07
3860 changed files with 1161787 additions and 438 deletions
37
uppdev/stdapp/stdappHelp.cpp
Normal file
37
uppdev/stdapp/stdappHelp.cpp
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
#include <stdapp/stdapp.hpp>
|
||||
|
||||
void stdapp::Help(Bar& bar)
|
||||
{
|
||||
bar.Add(t_("Help"), THISBACK(OnHelp)).Key(K_F1).Help(t_("Get help with the application"));
|
||||
bar.Add(t_("About ..."), THISBACK(OnAbout)).Key(K_CTRL_I).Help(t_("Get information about the application"));
|
||||
}
|
||||
|
||||
void stdapp::OnAbout()
|
||||
{
|
||||
Image logo = UPP_LogoImg::AppLogo();
|
||||
about.logo_ctrl.SetImage(logo);
|
||||
about.text_1 = APP_TITLE;
|
||||
about.text_2 = APP_VERSION;
|
||||
about.text_3 = APP_SUBTITLE;
|
||||
about.text_4 = APP_COPYRIGHT;
|
||||
about.ok <<= THISBACK(OnAboutOK);
|
||||
about.Execute();
|
||||
}
|
||||
|
||||
void stdapp::OnAboutOK()
|
||||
{
|
||||
about.Close();
|
||||
}
|
||||
|
||||
void stdapp::OnHelp()
|
||||
{
|
||||
switch(cfg.language)
|
||||
{
|
||||
case LNG_('D', 'E', 'D', 'E'):
|
||||
help.GoTo("topic://stdapp/stdappHelp/Inhaltsverzeichnis$de-de");
|
||||
break;
|
||||
default:
|
||||
help.GoTo("topic://stdapp/stdappHelp/Index$en-us");
|
||||
}
|
||||
help.Execute();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue