![]() |
![]() |
![]() |
nautilus-actions Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces |
#define NA_OBJECT_ID_TYPE typedef NAObjectIdPrivate; typedef NAObjectIdClassPrivate; NAObjectId; gint na_object_id_sort_alpha_asc (const NAObjectId *a
,const NAObjectId *b
); gint na_object_id_sort_alpha_desc (const NAObjectId *a
,const NAObjectId *b
); void na_object_id_prepare_for_paste (NAObjectId *object
,gboolean relabel
,gboolean renumber
,NAObjectId *parent
); void na_object_id_set_copy_of_label (NAObjectId *object
); void na_object_id_set_new_id (NAObjectId *object
,const NAObjectId *new_parent
);
gint na_object_id_sort_alpha_asc (const NAObjectId *a
,const NAObjectId *b
);
Sort the objects in alphabetical ascending order of their label.
|
first NAObjectId. |
|
second NAObjectId. |
Returns : |
-1 if a must be sorted before b ,
0 if a and b are equal from the local point of view,
1 if a must be sorted after b .
|
gint na_object_id_sort_alpha_desc (const NAObjectId *a
,const NAObjectId *b
);
Sort the objects in alphabetical descending order of their label.
|
first NAObjectId. |
|
second NAObjectId. |
Returns : |
-1 if a must be sorted before b ,
0 if a and b are equal from the local point of view,
1 if a must be sorted after b .
|
void na_object_id_prepare_for_paste (NAObjectId *object
,gboolean relabel
,gboolean renumber
,NAObjectId *parent
);
Prepares object
to be pasted.
If a NAObjectProfile, then object
is attached to the specified
NAObjectAction action
. The identifier is always renumbered to be
suitable with the already existing profiles.
If a NAObjectAction or a NAObjectMenu, a new UUID is allocated if
and only if relabel
is TRUE
.
Actual relabeling takes place if relabel
is TRUE
, depending of the
user preferences.
|
the NAObjectId object to be pasted. |
|
whether this object should be relabeled when pasted. |
|
whether this item should be renumbered ? |
|
the parent of object , or NULL .
|
void na_object_id_set_copy_of_label (NAObjectId *object
);
Sets the 'Copy of' label.
|
the NAObjectId object whose label is to be changed. |
void na_object_id_set_new_id (NAObjectId *object
,const NAObjectId *new_parent
);
Request a new id to the derived class, and set it.
|
the NAObjectId object whose internal identifiant is to be set. |
|
if object is a NAObjectProfile, then new_parent
should be set to the NAObjectAction new parent. Else, it would not
be possible to allocate a new profile id compatible with already
existing ones.
|