Unified
Split
Showing
with
10 additions
and 15 deletions.
- +1 −3 src/Hare/AppDefs.h
- +9 −12 src/Hare/AppWindow.cpp
| @@ -2,10 +2,8 @@ | ||
| #define __APP_DEFS_H__ | ||
|
|
||
| #define COMPANY "Originally created by FlipSide Software" | ||
| #define COMPANY_WWW "https://github.com/HaikuArchives/Hare" | ||
| #define COMPANY_EMAIL "haiku@scottmc.com" | ||
| #define COMPANY_WWW "https://www.github.com/HaikuArchives/Hare" | ||
| #define APPLICATION "Hare" | ||
| #define VERSION "1.0.8" | ||
|
|
||
| #define WINDOW_FILE "Hare Window" | ||
| #define SETTINGS "Hare Settings" | ||
| @@ -10,6 +10,7 @@ | ||
| #include <File.h> | ||
| #include <FindDirectory.h> | ||
| #include <fs_info.h> | ||
| #include <InterfaceDefs.h> | ||
| #include <image.h> | ||
| #include <LayoutBuilder.h> | ||
| #include <Message.h> | ||
| @@ -22,6 +23,8 @@ | ||
| #include <Volume.h> | ||
| #include <VolumeRoster.h> | ||
|
|
||
| #include <AboutWindow.h> | ||
|
|
||
| #include "AEEncoder.h" | ||
|
|
||
| #include "AppDefs.h" | ||
| @@ -108,6 +111,8 @@ AppWindow::InitWindow() | ||
| viewShortcut = new BMessage(VIEW_SHORTCUT); | ||
| viewShortcut->AddInt32("view", 2); | ||
| AddShortcut('L', 0, viewShortcut, appView); | ||
|
|
||
| AddShortcut(B_DELETE, 0, new BMessage(REMOVE_MSG), appView); | ||
| } | ||
|
|
||
| BMenuBar* | ||
| @@ -398,18 +403,10 @@ AppWindow::AboutRequested() | ||
| { | ||
| PRINT(("AppWindow::AboutRequested()\n")); | ||
|
|
||
| BString msg; | ||
| msg = APPLICATION; | ||
| msg << " "; | ||
| msg << VERSION; | ||
| msg << "\n"; | ||
| msg << COMPANY; | ||
| msg << "\n"; | ||
| msg << COMPANY_WWW; | ||
| msg << "\n"; | ||
| msg << COMPANY_EMAIL; | ||
| BAlert* alert = new BAlert("AboutBox", msg.String(), ABOUT_BTN); | ||
| alert->Go(NULL); | ||
| BAboutWindow* about = new BAboutWindow(APPLICATION, SIGNATURE); | ||
| about->AddExtraInfo(COMPANY_WWW); | ||
| about->AddExtraInfo(COMPANY); | ||
| about->Show(); | ||
| } | ||
|
|
||
| void | ||