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:
@@ -1,6 +1,8 @@
|
|||||||
|
|
||||||
resource app_signature "application/x-vnd.Haiku-DeskCalc";
|
resource app_signature "application/x-vnd.Haiku-DeskCalc";
|
||||||
|
|
||||||
|
resource app_name_catalog_entry "x-vnd.Haiku-DeskCalc:Window:DeskCalc";
|
||||||
|
|
||||||
resource app_version {
|
resource app_version {
|
||||||
major = 2,
|
major = 2,
|
||||||
middle = 1,
|
middle = 1,
|
||||||
|
|||||||
@@ -24,8 +24,3 @@ DoCatalogs DeskCalc :
|
|||||||
CalcView.cpp
|
CalcView.cpp
|
||||||
CalcWindow.cpp
|
CalcWindow.cpp
|
||||||
;
|
;
|
||||||
|
|
||||||
AddCatalogEntryAttribute DeskCalc
|
|
||||||
:
|
|
||||||
"x-vnd.Haiku-DeskCalc:Window:DeskCalc"
|
|
||||||
;
|
|
||||||
|
|||||||
@@ -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
|
static void
|
||||||
add_app_flags()
|
add_app_flags()
|
||||||
{
|
{
|
||||||
@@ -1718,6 +1739,7 @@ init_parser()
|
|||||||
add_rect_type();
|
add_rect_type();
|
||||||
add_rgb_color_type();
|
add_rgb_color_type();
|
||||||
add_app_signature_type();
|
add_app_signature_type();
|
||||||
|
add_app_name_catalog_entry();
|
||||||
add_app_flags();
|
add_app_flags();
|
||||||
add_app_version();
|
add_app_version();
|
||||||
add_large_icon();
|
add_large_icon();
|
||||||
|
|||||||
@@ -33,6 +33,12 @@ type(1, "BEOS:APP_SIG") #'MIMS' app_signature
|
|||||||
string signature // max 240 bytes (including null)
|
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 */
|
/* Application launch flags */
|
||||||
type(1, "BEOS:APP_FLAGS") #'APPF' app_flags
|
type(1, "BEOS:APP_FLAGS") #'APPF' app_flags
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user