mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-27 22:03:43 -06:00
reorganizing repo
git-svn-id: svn://ultimatepp.org/upp/trunk@9206 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
7d17505cfe
commit
e3e8d627f5
3840 changed files with 0 additions and 1161578 deletions
|
|
@ -1,37 +0,0 @@
|
|||
#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