Commit 1ca509ca authored by Ahmed Baïzid's avatar Ahmed Baïzid Committed by Andrew Miloradovsky
parent c4fc82a3
...@@ -155,10 +155,12 @@ calendar_class_init (MrpCalendarClass *klass) ...@@ -155,10 +155,12 @@ calendar_class_init (MrpCalendarClass *klass)
object_class->get_property = calendar_get_property; object_class->get_property = calendar_get_property;
object_class->set_property = calendar_set_property; object_class->set_property = calendar_set_property;
/** /**
* MrpCalendar::calendar-changed: * MrpCalendar::calendar-changed:
* @mrpcalendar: the object which received the signal. * @calendar: the object which received the signal.
*/ *
* emitted when @calendar changes.
*/
signals[CALENDAR_CHANGED] = signals[CALENDAR_CHANGED] =
g_signal_new ("calendar-changed", g_signal_new ("calendar-changed",
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
......
...@@ -138,10 +138,12 @@ object_class_init (MrpObjectClass *klass) ...@@ -138,10 +138,12 @@ object_class_init (MrpObjectClass *klass)
/* Signals */ /* Signals */
/** /**
* MrpObject::removed: * MrpObject::removed:
* @mrpobject: the object which received the signal. * @object: the object which received the signal.
*/ *
* emitted when @object is removed.
*/
signals[REMOVED] = signals[REMOVED] =
g_signal_new ("removed", g_signal_new ("removed",
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
...@@ -152,12 +154,14 @@ object_class_init (MrpObjectClass *klass) ...@@ -152,12 +154,14 @@ object_class_init (MrpObjectClass *klass)
G_TYPE_NONE, G_TYPE_NONE,
0); 0);
/** /**
* MrpObject::prop-changed: * MrpObject::prop-changed:
* @mrpobject: the object which received the signal. * @object: a libplanner object.
* @arg1: * @property: the property that changed.
* @arg2: * @new_value: the new value.
*/ *
* emitted when @property changes.
*/
signals[PROP_CHANGED] = signals[PROP_CHANGED] =
g_signal_new ("prop_changed", g_signal_new ("prop_changed",
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
......
...@@ -203,7 +203,9 @@ project_class_init (MrpProjectClass *klass) ...@@ -203,7 +203,9 @@ project_class_init (MrpProjectClass *klass)
/** /**
* MrpProject::loaded: * MrpProject::loaded:
* @mrpproject: the object which received the signal. * @project: the object which received the signal.
*
* emitted when @project is loaded.
*/ */
signals[LOADED] = g_signal_new signals[LOADED] = g_signal_new
("loaded", ("loaded",
...@@ -216,8 +218,10 @@ project_class_init (MrpProjectClass *klass) ...@@ -216,8 +218,10 @@ project_class_init (MrpProjectClass *klass)
/** /**
* MrpProject::resource-added: * MrpProject::resource-added:
* @mrpproject: the object which received the signal. * @project: the object which received the signal.
* @arg1: * @resource: the added #MrpResource.
*
* emitted when @resource is added.
*/ */
signals[RESOURCE_ADDED] = g_signal_new signals[RESOURCE_ADDED] = g_signal_new
("resource_added", ("resource_added",
...@@ -231,8 +235,10 @@ project_class_init (MrpProjectClass *klass) ...@@ -231,8 +235,10 @@ project_class_init (MrpProjectClass *klass)
/** /**
* MrpProject::resource-removed: * MrpProject::resource-removed:
* @mrpproject: the object which received the signal. * @project: the object which received the signal.
* @arg1: * @resource: the removed #MrpResource.
*
* emitted when @resource is removed.
*/ */
signals[RESOURCE_REMOVED] = g_signal_new signals[RESOURCE_REMOVED] = g_signal_new
("resource_removed", ("resource_removed",
...@@ -246,8 +252,10 @@ project_class_init (MrpProjectClass *klass) ...@@ -246,8 +252,10 @@ project_class_init (MrpProjectClass *klass)
/** /**
* MrpProject::group-added: * MrpProject::group-added:
* @mrpproject: the object which received the signal. * @project: the object which received the signal.
* @arg1: * @group: the added #MrpGroup.
*
* emitted when @group is added.
*/ */
signals[GROUP_ADDED] = g_signal_new signals[GROUP_ADDED] = g_signal_new
("group_added", ("group_added",
...@@ -261,8 +269,10 @@ project_class_init (MrpProjectClass *klass) ...@@ -261,8 +269,10 @@ project_class_init (MrpProjectClass *klass)
/** /**
* MrpProject::group-removed: * MrpProject::group-removed:
* @mrpproject: the object which received the signal. * @project: the object which received the signal.
* @arg1: * @group: the removed #MrpGroup.
*
* emitted when @group is removed.
*/ */
signals[GROUP_REMOVED] = g_signal_new signals[GROUP_REMOVED] = g_signal_new
("group_removed", ("group_removed",
...@@ -276,8 +286,10 @@ project_class_init (MrpProjectClass *klass) ...@@ -276,8 +286,10 @@ project_class_init (MrpProjectClass *klass)
/** /**
* MrpProject::default-group-changed: * MrpProject::default-group-changed:
* @mrpproject: the object which received the signal. * @project: the object which received the signal.
* @arg1: * @group: the changed #MrpGroup.
*
* emitted when default @group changes.
*/ */
signals[DEFAULT_GROUP_CHANGED] = g_signal_new signals[DEFAULT_GROUP_CHANGED] = g_signal_new
("default_group_changed", ("default_group_changed",
...@@ -291,8 +303,10 @@ project_class_init (MrpProjectClass *klass) ...@@ -291,8 +303,10 @@ project_class_init (MrpProjectClass *klass)
/** /**
* MrpProject::task-inserted: * MrpProject::task-inserted:
* @mrpproject: the object which received the signal. * @project: the object which received the signal.
* @arg1: * @task: the inserted #MrpTask.
*
* emitted when @task is inserted.
*/ */
signals[TASK_INSERTED] = g_signal_new signals[TASK_INSERTED] = g_signal_new
("task_inserted", ("task_inserted",
...@@ -306,8 +320,10 @@ project_class_init (MrpProjectClass *klass) ...@@ -306,8 +320,10 @@ project_class_init (MrpProjectClass *klass)
/** /**
* MrpProject::task-removed: * MrpProject::task-removed:
* @mrpproject: the object which received the signal. * @project: the object which received the signal.
* @arg1: * @task: the removed #MrpTask.
*
* emitted when @task is removed.
*/ */
signals[TASK_REMOVED] = g_signal_new signals[TASK_REMOVED] = g_signal_new
("task_removed", ("task_removed",
...@@ -321,8 +337,10 @@ project_class_init (MrpProjectClass *klass) ...@@ -321,8 +337,10 @@ project_class_init (MrpProjectClass *klass)
/** /**
* MrpProject::task-moved: * MrpProject::task-moved:
* @mrpproject: the object which received the signal. * @project: the object which received the signal.
* @arg1: * @task: the moved #MrpTask.
*
* emitted when @task is moved.
*/ */
signals[TASK_MOVED] = g_signal_new signals[TASK_MOVED] = g_signal_new
("task_moved", ("task_moved",
...@@ -336,8 +354,10 @@ project_class_init (MrpProjectClass *klass) ...@@ -336,8 +354,10 @@ project_class_init (MrpProjectClass *klass)
/** /**
* MrpProject::needs-saving-changed: * MrpProject::needs-saving-changed:
* @mrpproject: the object which received the signal. * @project: the object which received the signal.
* @arg1: * @needs_saving: does @project need saving?
*
* emitted when @project need saving.
*/ */
signals[NEEDS_SAVING_CHANGED] = g_signal_new signals[NEEDS_SAVING_CHANGED] = g_signal_new
("needs_saving_changed", ("needs_saving_changed",
...@@ -351,9 +371,11 @@ project_class_init (MrpProjectClass *klass) ...@@ -351,9 +371,11 @@ project_class_init (MrpProjectClass *klass)
/** /**
* MrpProject::property-added: * MrpProject::property-added:
* @mrpproject: the object which received the signal. * @project: the object which received the signal.
* @arg1: * @object_type: an #MrpPropertyType.
* @arg2: * @property: the added #MrpProperty.
*
* emitted when @property is added.
*/ */
signals[PROPERTY_ADDED] = g_signal_new signals[PROPERTY_ADDED] = g_signal_new
("property_added", ("property_added",
...@@ -367,8 +389,10 @@ project_class_init (MrpProjectClass *klass) ...@@ -367,8 +389,10 @@ project_class_init (MrpProjectClass *klass)
/** /**
* MrpProject::property-changed: * MrpProject::property-changed:
* @mrpproject: the object which received the signal. * @project: the object which received the signal.
* @arg1: * @property: the changed #MrpProperty.
*
* emitted when @property is changed.
*/ */
signals[PROPERTY_CHANGED] = g_signal_new signals[PROPERTY_CHANGED] = g_signal_new
("property_changed", ("property_changed",
...@@ -382,8 +406,10 @@ project_class_init (MrpProjectClass *klass) ...@@ -382,8 +406,10 @@ project_class_init (MrpProjectClass *klass)
/** /**
* MrpProject::property-removed: * MrpProject::property-removed:
* @mrpproject: the object which received the signal. * @project: the object which received the signal.
* @arg1: * @property: the removed #MrpProperty.
*
* emitted when @property is removed.
*/ */
signals[PROPERTY_REMOVED] = g_signal_new signals[PROPERTY_REMOVED] = g_signal_new
("property_removed", ("property_removed",
...@@ -397,8 +423,10 @@ project_class_init (MrpProjectClass *klass) ...@@ -397,8 +423,10 @@ project_class_init (MrpProjectClass *klass)
/** /**
* MrpProject::calendar-tree-changed: * MrpProject::calendar-tree-changed:
* @mrpproject: the object which received the signal. * @project: the object which received the signal.
* @arg1: * @calendar: the changed #MrpCalendar.
*
* emitted when @calendar is changed.
*/ */
signals[CALENDAR_TREE_CHANGED] = g_signal_new signals[CALENDAR_TREE_CHANGED] = g_signal_new
("calendar_tree_changed", ("calendar_tree_changed",
...@@ -412,8 +440,10 @@ project_class_init (MrpProjectClass *klass) ...@@ -412,8 +440,10 @@ project_class_init (MrpProjectClass *klass)
/** /**
* MrpProject::day-added: * MrpProject::day-added:
* @mrpproject: the object which received the signal. * @project: the object which received the signal.
* @arg1: * @day: the added #MrpDay.
*
* emitted when @day is added.
*/ */
signals[DAY_ADDED] = g_signal_new signals[DAY_ADDED] = g_signal_new
("day_added", ("day_added",
...@@ -427,8 +457,10 @@ project_class_init (MrpProjectClass *klass) ...@@ -427,8 +457,10 @@ project_class_init (MrpProjectClass *klass)
/** /**
* MrpProject::day-removed: * MrpProject::day-removed:
* @mrpproject: the object which received the signal. * @project: the object which received the signal.
* @arg1: * @day: the removed #MrpDay.
*
* emitted when @day is removed.
*/ */
signals[DAY_REMOVED] = g_signal_new signals[DAY_REMOVED] = g_signal_new
("day_removed", ("day_removed",
...@@ -442,8 +474,10 @@ project_class_init (MrpProjectClass *klass) ...@@ -442,8 +474,10 @@ project_class_init (MrpProjectClass *klass)
/** /**
* MrpProject::day-changed: * MrpProject::day-changed:
* @mrpproject: the object which received the signal. * @project: the object which received the signal.
* @arg1: * @day: the changed #MrpDay.
*
* emitted when @day is changed.
*/ */
signals[DAY_CHANGED] = g_signal_new signals[DAY_CHANGED] = g_signal_new
("day_changed", ("day_changed",
......
...@@ -117,6 +117,12 @@ relation_class_init (MrpRelationClass *klass) ...@@ -117,6 +117,12 @@ relation_class_init (MrpRelationClass *klass)
object_class->set_property = relation_set_property; object_class->set_property = relation_set_property;
object_class->get_property = relation_get_property; object_class->get_property = relation_get_property;
/**
* MrpRelation::changed:
* @relation: an #MrpRelation.
*
* emitted when @relation changes.
*/
signals[CHANGED] = g_signal_new signals[CHANGED] = g_signal_new
("changed", ("changed",
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
......
...@@ -238,8 +238,10 @@ resource_class_init (MrpResourceClass *klass) ...@@ -238,8 +238,10 @@ resource_class_init (MrpResourceClass *klass)
/** /**
* MrpResource::assignment-added: * MrpResource::assignment-added:
* @mrpresource: the object which received the signal. * @resource: the object which received the signal.
* @arg1: * @assignment: the added #MrpAssignment.
*
* emitted when @assignment is added.
*/ */
signals[ASSIGNMENT_ADDED] = signals[ASSIGNMENT_ADDED] =
g_signal_new ("assignment_added", g_signal_new ("assignment_added",
...@@ -253,8 +255,10 @@ resource_class_init (MrpResourceClass *klass) ...@@ -253,8 +255,10 @@ resource_class_init (MrpResourceClass *klass)
/** /**
* MrpResource::assignment-removed: * MrpResource::assignment-removed:
* @mrpresource: the object which received the signal. * @resource: the object which received the signal.
* @arg1: * @assignment: the removed #MrpAssignment.
*
* emitted when @assignment is removed.
*/ */
signals[ASSIGNMENT_REMOVED] = signals[ASSIGNMENT_REMOVED] =
g_signal_new ("assignment_removed", g_signal_new ("assignment_removed",
......
...@@ -255,9 +255,10 @@ task_class_init (MrpTaskClass *klass) ...@@ -255,9 +255,10 @@ task_class_init (MrpTaskClass *klass)
/** /**
* MrpTask::task-moved: * MrpTask::task-moved:
* @mrptask: the object which received the signal. * @task: the object which received the signal.
* @arg1: * @other_task: another #MrpTask.
* @arg2: *
* emitted when @other_task is moved.
*/ */
signals[TASK_MOVED] = signals[TASK_MOVED] =
g_signal_new ("task_moved", g_signal_new ("task_moved",
...@@ -270,8 +271,10 @@ task_class_init (MrpTaskClass *klass) ...@@ -270,8 +271,10 @@ task_class_init (MrpTaskClass *klass)
/** /**
* MrpTask::relation-added: * MrpTask::relation-added:
* @mrptask: the object which received the signal. * @task: the object which received the signal.
* @arg1: * @relation: the added #MrpRelation.
*
* emitted when @relation is added.
*/ */
signals[RELATION_ADDED] = signals[RELATION_ADDED] =
g_signal_new ("relation_added", g_signal_new ("relation_added",
...@@ -284,8 +287,10 @@ task_class_init (MrpTaskClass *klass) ...@@ -284,8 +287,10 @@ task_class_init (MrpTaskClass *klass)
/** /**
* MrpTask::relation-removed: * MrpTask::relation-removed:
* @mrptask: the object which received the signal. * @task: the object which received the signal.
* @arg1: * @relation: the removed #MrpRelation
*
* emitted when @relation is removed.
*/ */
signals[RELATION_REMOVED] = signals[RELATION_REMOVED] =
g_signal_new ("relation_removed", g_signal_new ("relation_removed",
...@@ -298,8 +303,10 @@ task_class_init (MrpTaskClass *klass) ...@@ -298,8 +303,10 @@ task_class_init (MrpTaskClass *klass)
/** /**
* MrpTask::assignment-added: * MrpTask::assignment-added:
* @mrptask: the object which received the signal. * @task: the object which received the signal.
* @arg1: * @assignment: the added #MrpAssignment.
*
* emitted when @assignment is added.
*/ */
signals[ASSIGNMENT_ADDED] = signals[ASSIGNMENT_ADDED] =
g_signal_new ("assignment_added", g_signal_new ("assignment_added",
...@@ -313,8 +320,10 @@ task_class_init (MrpTaskClass *klass) ...@@ -313,8 +320,10 @@ task_class_init (MrpTaskClass *klass)
/** /**
* MrpTask::assignment-removed: * MrpTask::assignment-removed:
* @mrptask: the object which received the signal. * @task: the object which received the signal.
* @arg1: * @assignment: the removed #MrpAssignment.
*
* emitted when @assignment is removed.
*/ */
signals[ASSIGNMENT_REMOVED] = signals[ASSIGNMENT_REMOVED] =
g_signal_new ("assignment_removed", g_signal_new ("assignment_removed",
...@@ -328,7 +337,9 @@ task_class_init (MrpTaskClass *klass) ...@@ -328,7 +337,9 @@ task_class_init (MrpTaskClass *klass)
/** /**
* MrpTask::child-added: * MrpTask::child-added:
* @mrptask: the object which received the signal. * @task: the object which received the signal.
*
* emitted when a child is added.
*/ */
signals[CHILD_ADDED] = signals[CHILD_ADDED] =
g_signal_new ("child_added", g_signal_new ("child_added",
...@@ -341,7 +352,9 @@ task_class_init (MrpTaskClass *klass) ...@@ -341,7 +352,9 @@ task_class_init (MrpTaskClass *klass)
/** /**
* MrpTask::child-removed: * MrpTask::child-removed:
* @mrptask: the object which received the signal. * @task: the object which received the signal.
*
* emitted when a child is removed.
*/ */
signals[CHILD_REMOVED] = signals[CHILD_REMOVED] =
g_signal_new ("child_removed", g_signal_new ("child_removed",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment