* Rename "ScreenshotApp" to "Screenshot", rename its signature from

"application/x-vnd.haiku-screenshotapp" to "application/x-vnd.haiku-screenshot"
* Rename "Screenshot" to "screenshot", rename its signature from
"application/x-vnd.haiku-screenshot" to "application/x-vnd.haiku-screenshot-cli"
* Move screenshot from /system/apps to /bin


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37059 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Wim van der Meer 2010-06-08 13:15:17 +00:00
parent 5aa0503c7c
commit 3417d2a90f
8 changed files with 17 additions and 18 deletions

View File

@ -51,7 +51,7 @@ SYSTEM_BIN = "[" addattr alert arp base64 basename bash bc beep bootman bzip2
query quit
rc readlink ReadOnlyBootPrompt reindex release renice rlog rm rmattr
rmindex rmdir roster route
safemode screen_blanker screenmode sdiff setdecor settype setversion
safemode screen_blanker screenmode screenshot sdiff setdecor settype setversion
setvolume setwep seq sha1sum shar shred shuf shutdown sleep sort spamdbm
split stat strace stty su sum sync sysinfo
tac tail tcpdump tcptester tee telnet telnetd test timeout top touch
@ -66,8 +66,7 @@ SYSTEM_APPS = AboutSystem ActivityMonitor CharacterMap CodyCam DeskCalc Devices
DiskProbe DiskUsage DriveSetup CDPlayer Expander Icon-O-Matic Installer
LaunchBox Magnify Mail MediaConverter MediaPlayer MidiPlayer NetworkStatus
PackageInstaller People PoorMan PowerStatus ProcessController Screenshot
ScreenshotApp ShowImage SoundRecorder StyledEdit Terminal TextSearch TV
Workspaces
ShowImage SoundRecorder StyledEdit Terminal TextSearch TV Workspaces
;
SYSTEM_PREFERENCES = Appearance Backgrounds CPUFrequency DataTranslations
<preference>Deskbar E-mail FileTypes Fonts Keyboard Keymap Locale Media

View File

@ -2,7 +2,7 @@ SubDir HAIKU_TOP src apps screenshot ;
UsePrivateHeaders interface ;
Application ScreenshotApp :
Application Screenshot :
ScreenshotApp.cpp
ScreenshotWindow.cpp
PreviewView.cpp
@ -11,14 +11,14 @@ Application ScreenshotApp :
: ScreenshotApp.rdef
;
DoCatalogs ScreenshotApp :
x-vnd.Haiku-ScreenshotApp
DoCatalogs Screenshot :
x-vnd.haiku-screenshot
:
ScreenshotWindow.cpp
Utility.cpp
;
Application Screenshot :
Application screenshot :
Screenshot.cpp
Utility.cpp
: be locale translation $(TARGET_LIBSUPC++)

View File

@ -31,7 +31,7 @@
Screenshot::Screenshot()
:
BApplication("application/x-vnd.Haiku-Screenshot"),
BApplication("application/x-vnd.haiku-screenshot-cli"),
fUtility(new Utility()),
fLaunchGui(true)
{
@ -151,7 +151,7 @@ Screenshot::ReadyToRun()
message.AddRect("tabFrame", fUtility->tabFrame);
message.AddFloat("borderSize", fUtility->borderSize);
be_roster->Launch("application/x-vnd.Haiku-ScreenshotApp",
be_roster->Launch("application/x-vnd.haiku-screenshot",
&message);
}
}

View File

@ -1,4 +1,4 @@
resource app_signature "application/x-vnd.Haiku-Screenshot";
resource app_signature "application/x-vnd.haiku-screenshot-cli";
resource app_flags B_MULTIPLE_LAUNCH | B_BACKGROUND_APP;
@ -8,8 +8,8 @@ resource app_version {
minor = 0,
variety = B_APPV_BETA,
internal = 0,
short_info = "Screenshot",
long_info = "Screenshot ©2008-2010 Haiku"
short_info = "Screenshot CLI",
long_info = "Screenshot CLI ©2008-2010 Haiku"
};
resource vector_icon {

View File

@ -21,7 +21,7 @@
ScreenshotApp::ScreenshotApp()
:
BApplication("application/x-vnd.Haiku-ScreenshotApp"),
BApplication("application/x-vnd.haiku-screenshot"),
fUtility(new Utility)
{
be_locale->GetAppCatalog(&fCatalog);

View File

@ -1,4 +1,4 @@
resource app_signature "application/x-vnd.Haiku-ScreenshotApp";
resource app_signature "application/x-vnd.haiku-screenshot";
resource app_flags B_MULTIPLE_LAUNCH;
@ -8,8 +8,8 @@ resource app_version {
minor = 0,
variety = B_APPV_BETA,
internal = 0,
short_info = "ScreenshotApp",
long_info = "ScreenshotApp ©2008-2010 Haiku"
short_info = "Screenshot",
long_info = "Screenshot ©2008-2010 Haiku"
};
resource vector_icon {

View File

@ -332,7 +332,7 @@ ScreenshotWindow::_NewScreenshot()
delay.CopyInto(argv[2], 0, charCount);
argv[2][charCount] = '\0';
be_roster->Launch("application/x-vnd.Haiku-Screenshot", argc, argv);
be_roster->Launch("application/x-vnd.haiku-screenshot-cli", argc, argv);
be_app->PostMessage(B_QUIT_REQUESTED);
}

View File

@ -3618,7 +3618,7 @@ BWindow::_HandleKeyDown(BMessage* event)
if ((modifiers & B_SHIFT_KEY) != 0 || (modifiers & B_OPTION_KEY) != 0)
message.ReplaceBool("silent", false);
be_roster->Launch("application/x-vnd.haiku-screenshot", &message);
be_roster->Launch("application/x-vnd.haiku-screenshot-cli", &message);
return true;
}