added some files
This commit is contained in:
parent
dbfee4dcdd
commit
6be1aad043
9 changed files with 390 additions and 0 deletions
52
App.cpp
Normal file
52
App.cpp
Normal file
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* Copyright 2024, Santiago Lema <santiago@lema.org>
|
||||
* All rights reserved. Distributed under the terms of the MIT license.
|
||||
*/
|
||||
|
||||
|
||||
#include "App.h"
|
||||
#include "MainWindow.h"
|
||||
|
||||
#include <AboutWindow.h>
|
||||
#include <Catalog.h>
|
||||
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "Application"
|
||||
|
||||
const char* kApplicationSignature = "application/x-vnd.SLema-DumBer";
|
||||
|
||||
|
||||
App::App()
|
||||
:
|
||||
BApplication(kApplicationSignature)
|
||||
{
|
||||
MainWindow* mainWindow = new MainWindow();
|
||||
mainWindow->Show();
|
||||
}
|
||||
|
||||
|
||||
App::~App()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
App::AboutRequested()
|
||||
{
|
||||
BAboutWindow* about
|
||||
= new BAboutWindow(B_TRANSLATE_SYSTEM_NAME("DumBer"), kApplicationSignature);
|
||||
about->AddDescription(B_TRANSLATE("Type text in there to feel dumber."));
|
||||
about->AddCopyright(2024, "Santiago Lema");
|
||||
about->AddText("Ho");
|
||||
about->Show();
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
main()
|
||||
{
|
||||
App* app = new App();
|
||||
app->Run();
|
||||
delete app;
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue