Support added to the resource compiler and resource definition files (.rdef) for application name catalog reference. Please review.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40852 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jonas Sundström
2011-03-06 19:04:59 +00:00
parent 17202e2f0f
commit cb9c3e9ced
4 changed files with 30 additions and 5 deletions
+2
View File
@@ -1,6 +1,8 @@
resource app_signature "application/x-vnd.Haiku-DeskCalc";
resource app_name_catalog_entry "x-vnd.Haiku-DeskCalc:Window:DeskCalc";
resource app_version {
major = 2,
middle = 1,
-5
View File
@@ -24,8 +24,3 @@ DoCatalogs DeskCalc :
CalcView.cpp
CalcWindow.cpp
;
AddCatalogEntryAttribute DeskCalc
:
"x-vnd.Haiku-DeskCalc:Window:DeskCalc"
;
+22
View File
@@ -1506,6 +1506,27 @@ add_app_signature_type()
}
static void
add_app_name_catalog_entry()
{
field_t* fields = (field_t*)alloc_mem(1 * sizeof(field_t));
fields[0].type = get_type("string");
fields[0].name = "catalog_entry";
fields[0].resize = 0;
fields[0].data = make_default(fields[0].type);
type_t type;
type.code = B_STRING_TYPE;
type.name = "app_name_catalog_entry";
type.fields = fields;
type.count = 1;
type.def_id = 1;
type.def_name = "SYS:NAME";
type_table.insert(make_pair(type.name, type));
}
static void
add_app_flags()
{
@@ -1718,6 +1739,7 @@ init_parser()
add_rect_type();
add_rgb_color_type();
add_app_signature_type();
add_app_name_catalog_entry();
add_app_flags();
add_app_version();
add_large_icon();
+6
View File
@@ -33,6 +33,12 @@ type(1, "BEOS:APP_SIG") #'MIMS' app_signature
string signature // max 240 bytes (including null)
};
/* Application name catalog entry. */
type(1, "SYS:NAME") #B_STRING_TYPE app_name_catalog_entry
{
string catalog_entry
};
/* Application launch flags */
type(1, "BEOS:APP_FLAGS") #'APPF' app_flags
{