clean up (now uses our libs, haiku name)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12988 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2005-06-07 14:11:42 +00:00
parent 4ef10a59e4
commit 88c0001344
3 changed files with 16 additions and 34 deletions

View File

@ -1,5 +1,6 @@
SubDir OBOS_TOP src apps magnify ; SubDir OBOS_TOP src apps magnify ;
AddResources Magnify : Magnify.rdef ; App Magnify :
App Magnify : main.cpp ; main.cpp
LinkSharedOSLibs Magnify : be tracker game ; : libbe.so libtracker.so libgame.so
: Magnify.rdef ;

View File

@ -1,5 +1,5 @@
resource(101, "BEOS:L:STD_ICON") #'ICON' array resource large_icon
{ {
$"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
$"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FF" $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FF"
@ -35,7 +35,7 @@ resource(101, "BEOS:L:STD_ICON") #'ICON' array
$"FFFFFFFFFFFFFFFFFF0000000000000000000E0F0FFFFFFFFFFFFFFFFFFFFFFF" $"FFFFFFFFFFFFFFFFFF0000000000000000000E0F0FFFFFFFFFFFFFFFFFFFFFFF"
}; };
resource(101, "BEOS:M:STD_ICON") #'MICN' array resource mini_icon
{ {
$"FFFFFFFFFFFFFFFFFFFFFFFFFF000000" $"FFFFFFFFFFFFFFFFFFFFFFFFFF000000"
$"FFFFFFFFFFFFFFFFFFFFFFFF000E0000" $"FFFFFFFFFFFFFFFFFFFFFFFF000E0000"
@ -55,32 +55,13 @@ resource(101, "BEOS:M:STD_ICON") #'MICN' array
$"FFFFFFFF0000000000000E0FFFFFFFFF" $"FFFFFFFF0000000000000E0FFFFFFFFF"
}; };
resource(1, "BEOS:APP_SIG") #'MIMS' "application/x-vnd.OBOS.Magnify"; resource app_signature "application/x-vnd.Haiku.Magnify";
resource(1, "BEOS:APP_VERSION") #'APPV' array resource app_version
{ {
$"01000000000000000000000005000000000000004D61676E6966790000000000" short_info = "Haiku-Magnify",
$"0000000000000000000000000000000000000000000000000000000000000000" long_info = "Haiku version of Magnify"
$"00000000000000000000000000000000000000004D61676E6966696573207468"
$"65206172656120756E64657220746865206D6F7573652E000000000000000000"
$"0000000000000000000000000000000000000000000000000000000000000000"
$"0000000000000000000000000000000000000000000000000000000000000000"
$"0000000000000000000000000000000000000000000000000000000000000000"
$"0000000000000000000000000000000000000000000000000000000000000000"
$"0000000000000000000000000000000000000000000000000000000000000000"
$"0000000000000000000000000000000000000000000000000000000000000000"
$"0000000000000000000000000000000000000000000000000000000000000000"
$"0000000000000000000000000000000000000000000000000000000000000000"
$"0000000000000000000000000000000000000000000000000000000000000000"
$"0000000000000000000000000000000000000000000000000000000000000000"
$"0000000000000000000000000000000000000000000000000000000000000000"
$"0000000000000000000000000000000000000000000000000000000000000000"
$"0000000000000000000000000000000000000000000000000000000000000000"
$"0000000000000000000000000000000000000000000000000000000000000000"
$"0000000000000000000000000000000000000000000000000000000000000000"
$"0000000000000000000000000000000000000000000000000000000000000000"
$"0000000000000000000000000000000000000000000000000000000000000000"
$"0000000000000000"
}; };
resource(1, "BEOS:APP_FLAGS") #'APPF' $"01000000"; resource app_flags B_SINGLE_LAUNCH;

View File

@ -145,7 +145,7 @@ main(long argc, char* argv[])
// pass in pixelCount to maintain backward compatibility of setting // pass in pixelCount to maintain backward compatibility of setting
// the pixelcount from the command line // the pixelcount from the command line
TApp::TApp(int32 pixelCount) TApp::TApp(int32 pixelCount)
:BApplication("application/x-vnd.OBOS.Magnify") :BApplication("application/x-vnd.Haiku.Magnify")
{ {
TWindow* magWindow = new TWindow(pixelCount); TWindow* magWindow = new TWindow(pixelCount);
magWindow->Show(); magWindow->Show();
@ -173,7 +173,7 @@ TApp::ReadyToRun()
void void
TApp::AboutRequested(void) TApp::AboutRequested(void)
{ {
(new BAlert("", "Magnify!\n\n(C)2002 OBOS\n(C)1999 Be Inc.\n\nNow with even more features and recompiled for OpenBeOS.", "OK"))->Go(); (new BAlert("", "Magnify!\n\n(C)2002-2005 Haiku\n(C)1999 Be Inc.\n\nNow with even more features and recompiled for OpenBeOS.", "OK"))->Go();
} }
//****************************************************************************** //******************************************************************************
@ -185,7 +185,7 @@ TApp::AboutRequested(void)
const int32 kBorderSize = 10; const int32 kBorderSize = 10;
TWindow::TWindow(int32 pixelCount) TWindow::TWindow(int32 pixelCount)
: BWindow( BRect(0,0,0,0), "OBOS Magnify", B_TITLED_WINDOW, : BWindow( BRect(0,0,0,0), "Magnify", B_TITLED_WINDOW,
B_OUTLINE_RESIZE) B_OUTLINE_RESIZE)
{ {
GetPrefs(pixelCount); GetPrefs(pixelCount);
@ -347,7 +347,7 @@ TWindow::QuitRequested()
// show info (rgb, location) // show info (rgb, location)
// pixel count // pixel count
// pixel size // pixel size
const char* const kAppName = "OBOS Magnify"; const char* const kAppName = "Magnify";
const bool kDefaultShowGrid = true; const bool kDefaultShowGrid = true;
const bool kDefaultShowInfo = true; const bool kDefaultShowInfo = true;
const int32 kDefaultPixelCount = 32; const int32 kDefaultPixelCount = 32;