clean question parsin in json
This commit is contained in:
parent
47b1cbaf04
commit
efbe679a6b
8 changed files with 328 additions and 317 deletions
52
App.cpp
52
App.cpp
|
@ -3,7 +3,6 @@
|
|||
* All rights reserved. Distributed under the terms of the MIT license.
|
||||
*/
|
||||
|
||||
|
||||
#include "App.h"
|
||||
#include "MainWindow.h"
|
||||
|
||||
|
@ -13,42 +12,29 @@
|
|||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "Application"
|
||||
|
||||
const char* kApplicationSignature = "application/x-vnd.SLema-DumBer";
|
||||
const char *kApplicationSignature = "application/x-vnd.SLema-DumBer";
|
||||
|
||||
|
||||
App::App()
|
||||
:
|
||||
BApplication(kApplicationSignature)
|
||||
{
|
||||
MainWindow* mainWindow = new MainWindow();
|
||||
mainWindow->Show();
|
||||
App::App() : BApplication(kApplicationSignature) {
|
||||
MainWindow *mainWindow = new MainWindow();
|
||||
mainWindow->Show();
|
||||
}
|
||||
|
||||
App::~App() {}
|
||||
|
||||
App::~App()
|
||||
{
|
||||
void App::AboutRequested() {
|
||||
BAboutWindow *about = new BAboutWindow(B_TRANSLATE_SYSTEM_NAME("DumBer"),
|
||||
kApplicationSignature);
|
||||
about->AddDescription(B_TRANSLATE("about_body"));
|
||||
about->AddCopyright(2024, "Santiago Lema");
|
||||
about->AddText("e-mail me at haiku@lema.org");
|
||||
about->AddText("or ping me on the fediverse on @santi@go.lema.org");
|
||||
|
||||
about->Show();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
App::AboutRequested()
|
||||
{
|
||||
BAboutWindow* about
|
||||
= new BAboutWindow(B_TRANSLATE_SYSTEM_NAME("DumBer"), kApplicationSignature);
|
||||
about->AddDescription(B_TRANSLATE("about_body"));
|
||||
about->AddCopyright(2024, "Santiago Lema");
|
||||
about->AddText("e-mail me at haiku@lema.org");
|
||||
about->AddText("or ping me on the fediverse on @santi@go.lema.org");
|
||||
|
||||
about->Show();
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
main()
|
||||
{
|
||||
App* app = new App();
|
||||
app->Run();
|
||||
delete app;
|
||||
return 0;
|
||||
int main() {
|
||||
App *app = new App();
|
||||
app->Run();
|
||||
delete app;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue