-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.cpp
More file actions
69 lines (58 loc) · 1.43 KB
/
App.cpp
File metadata and controls
69 lines (58 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#include "App.h"
#include "Constants.h"
#include <Catalog.h>
#include <Path.h>
#include <AboutWindow.h>
#undef B_TRANSLATION_CONTEXT
#define B_TRANSLATION_CONTEXT "MainView"
App::App(void)
:
BApplication(kApplicationSignature)
{
fMainWindow = new MainWindow();
fMainWindow->Show();
}
void
App::AboutRequested()
{
const char* authors[] = {
"Johan Wagenheim",
NULL
};
const char* mentions = B_TRANSLATE("ZuMi (Toolbar icons)");
const char* mentions2 = B_TRANSLATE("Humdinger (advice and review)");
const char* thanks[] = {
"Davidmp (Catalan translation)",
"Briseur, phoudoin (French translation)",
"tmtfx (Friulian translation)",
"Humdinger (German translation)",
"butyoutried, itvanya (Russian translation)",
"cafeina, Pintaio (Spanish translation)",
"Fredrik Modéen (Swedish translation)",
"Emir Sarı (Turkish translation)",
mentions,
mentions2,
NULL
};
BAboutWindow* about = new BAboutWindow(kApplicationName, kApplicationSignature);
about->AddDescription(B_TRANSLATE("Clean and transform text easily with this lightweight tool."));
about->AddCopyright(2025, "Johan Wagenheim");
about->AddText(B_TRANSLATE("Distributed under the terms of the MIT License."));
about->AddAuthors(authors);
about->AddSpecialThanks(thanks);
about->Show();
}
int
main(void)
{
App* app = new App();
app->Run();
delete app;
return 0;
}
void
App::RefsReceived(BMessage* msg)
{
if (fMainWindow)
fMainWindow->PostMessage(msg);
}