-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathApp.cpp
44 lines (39 loc) Β· 902 Bytes
/
App.cpp
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
/*
* Author:
* Anirudh M, [email protected]
*
* Copyright 2017. All rights reserved.
* Distributed under the terms of the MIT license.
*/
#include "Catalog.h"
#include "App.h"
#include <private/interface/AboutWindow.h>
#undef B_TRANSLATION_CONTEXT
#define B_TRANSLATION_CONTEXT "App"
using namespace std;
const char* kAppName = "SuperPrefs";
const char* kSignature = "application/x-vnd.SuperPrefs";
App::App()
:
BApplication(kSignature)
{
fMainWindow = new MainWindow();
fMainWindow->Show();
fMainWindow->Activate();
}
void
App::AboutRequested() {
BAboutWindow* about = new BAboutWindow(kAppName, kSignature);
about->AddDescription(B_TRANSLATE("Control Panel with Search for Haiku"));
about->AddCopyright(2017,
"\nAnirudh M\n([email protected])\nhttp://www.anirudhmurali.com");
about->SetVersion("1.0");
about->Show();
}
int
main()
{
App app;
app.Run();
return 0;
}