+2007-01-25 Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
+
+ * src/hildon-sort-dialog.c:
+ * src/hildon-sort-dialog.h:
+ * src/hildon-time-editor.c:
+ * src/hildon-time-picker.c:
+ * src/hildon-volumebar-range.c:
+ * src/hildon-volumebar.c:
+ * src/hildon-vvolumebar.c:
+ * src/hildon-weekday-picker.c:
+ * src/hildon-window.c:
+ * src/hildon-wizard-dialog.c: Cleaning up the documentation.
+
2007-01-24 Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
* src/hildon-program.c:
static void
hildon_sort_dialog_finalize (GObject *object);
+gint
+hildon_sort_dialog_add_sort_key_with_sorting (HildonSortDialog *dialog,
+ const gchar *sort_key,
+ gboolean sorting);
+
enum
{
PROP_0,
priv->reversed = priv->key_reversed [index];
}
-/*
- * Initialises the sort dialog class.
- */
+/* Initialises the sort dialog class. */
static void
hildon_sort_dialog_class_init (HildonSortDialogClass *class)
{
gobject_class->set_property = hildon_sort_dialog_set_property;
gobject_class->get_property = hildon_sort_dialog_get_property;
gobject_class->finalize = (gpointer) hildon_sort_dialog_finalize;
-
+
+ /**
+ * HildonSortDialog:sort-key:
+ *
+ * The currently active sort key.
+ */
g_object_class_install_property (gobject_class, PROP_SORT_KEY,
g_param_spec_int ("sort-key",
"Sort Key",
"The currently active sort key",
- G_MININT,
- G_MAXINT,
+ G_MININT,
+ G_MAXINT,
0, G_PARAM_READWRITE));
-
+
+ /**
+ * HildonSortDialog:sort-order:
+ *
+ * The sort order for the currently active sort key.
+ */
g_object_class_install_property (gobject_class, PROP_SORT_ORDER,
g_param_spec_enum ("sort-order",
"Sort Order",
"The current sorting order",
- GTK_TYPE_SORT_TYPE,
+ GTK_TYPE_SORT_TYPE,
GTK_SORT_ASCENDING,
- G_PARAM_READWRITE));
+ G_PARAM_READWRITE));
}
-gint
+static gint
hildon_sort_dialog_add_sort_key_with_sorting (HildonSortDialog *dialog,
const gchar *sort_key,
gboolean sorting)
hildon_sort_dialog_add_sort_key (HildonSortDialog *dialog,
const gchar *sort_key);
-gint
-hildon_sort_dialog_add_sort_key_with_sorting (HildonSortDialog *dialog,
- const gchar *sort_key,
- gboolean sorting);
gint
hildon_sort_dialog_add_sort_key_reversed (HildonSortDialog *dialog,
const gchar *sort_key);
gint *position,
gpointer user_data);
+/**
+ * hildon_time_editor_get_type:
+ *
+ * Initializes and returns the type of a hildon time editor.
+ *
+ * @Returns: GType of #HildonTimeEditor
+ */
GType G_GNUC_CONST
hildon_time_editor_get_type (void)
{
{ 0, 0 }
};
+/**
+ * hildon_time_picker_get_type:
+ *
+ * Returns the type of HildonTimePicker.
+ *
+ * Returns: HildonTimePicker type
+ */
GType G_GNUC_CONST
hildon_time_picker_get_type (void)
{
*
*/
-/*
- * @file hildon-volumebar-range.c
- *
- * This file contains the implementation of the HildonVolumebarRange.
- * This widget is an "workhorse" for #HildonVolumebar widget.
- * It is not designed to be used as a standalone widget.
+/**
+ * SECTION:hildon-volumebar-range
+ * @short_description: This widget is an "workhorse" for #HildonVolumebar
+ * widget. It is not designed to be used as a standalone widget.
*
* Purpose of this widget is to act as an "container" for GtkScale
* widget. #HildonVolumebarRange changes some event parameters so
PROP_LEVEL
};
+/**
+ * hildon_volumebar_range_get_type:
+ *
+ * Initializes and returns the type of a hildon volumebar range.
+ *
+ * @Returns: GType of #HildonVolumebarRange
+ */
GType G_GNUC_CONST
hildon_volumebar_range_get_type (void)
{
object_class->set_property = hildon_volumebar_range_set_property;
object_class->get_property = hildon_volumebar_range_get_property;
+ /**
+ * HildonVolumebarRange:level:
+ *
+ * Current volume level.
+ */
g_object_class_install_property (object_class,
PROP_LEVEL,
g_param_spec_double ("level",
static guint signals [LAST_SIGNAL] = { 0 };
+/**
+ * hildon_volumebar_get_type:
+ *
+ * Initializes and returns the type of a hildon volumebar.
+ *
+ * @Returns: GType of #HildonVolumebar
+ */
GType G_GNUC_CONST
hildon_volumebar_get_type (void)
{
gobject_class->set_property = hildon_volumebar_set_property;
gobject_class->get_property = hildon_volumebar_get_property;
- /*This kind of property could be usefull in the gtkcontainer*/
+ /**
+ * HildonVolumebar:can-focus:
+ *
+ * The widget focusability.
+ */
g_object_class_install_property (gobject_class,
PROP_HILDON_FOCUSABLE,
g_param_spec_boolean ("can-focus",
TRUE,
G_PARAM_CONSTRUCT | G_PARAM_READWRITE));
+ /**
+ * HildonVolumebar:has-mute:
+ *
+ * Whether the mute button is visibile.
+ */
g_object_class_install_property (gobject_class,
PROP_HILDON_HAS_MUTE,
g_param_spec_boolean ("has_mute",
TRUE,
G_PARAM_CONSTRUCT | G_PARAM_READWRITE));
+ /**
+ * HildonVolumebar:level:
+ *
+ * Current volume level.
+ */
g_object_class_install_property (gobject_class,
PROP_HILDON_LEVEL,
g_param_spec_double ("level",
50.0,
G_PARAM_READWRITE));
+ /**
+ * HildonVolumebar:can-focus:
+ *
+ * Whether volume is muted.
+ */
g_object_class_install_property (gobject_class,
PROP_HILDON_MUTE,
g_param_spec_boolean ("mute",
void G_GNUC_INTERNAL
hildon_volumebar_mute_toggled (HildonVolumebar * self)
{
- g_return_if_fail(HILDON_IS_VOLUMEBAR(self));
+ g_return_if_fail (HILDON_IS_VOLUMEBAR (self));
/* FIXME Emit by id */
- g_signal_emit_by_name(self, "mute_toggled");
+ g_signal_emit_by_name (self, "mute_toggled");
}
void G_GNUC_INTERNAL
g_return_if_fail (HILDON_IS_VOLUMEBAR (self));
/* FIXME Use numerical val, id */
- g_signal_emit_by_name (GTK_WIDGET(self), "level_changed");
+ g_signal_emit_by_name (GTK_WIDGET (self), "level_changed");
}
hildon_vvolumebar_size_allocate (GtkWidget * widget,
GtkAllocation * allocation);
+/**
+ * hildon_vvolumebar_get_type:
+ *
+ * Initializes and returns the type of a hildon vvolumebar.
+ *
+ * @Returns: GType of #HildonVVolumebar
+ */
GType G_GNUC_CONST
hildon_vvolumebar_get_type (void)
{
static guint signals [LAST_SIGNAL] = { 0 } ;
+/**
+ * hildon_weekday_picker_get_type:
+ *
+ * Initializes and returns the type of a hildon weekday picker.
+ *
+ * @Returns: GType of #HildonWeekdayPicker
+ */
GType G_GNUC_CONST
hildon_weekday_picker_get_type (void)
{
*
*/
+/**
+ * SECTION:hildon-window
+ * @short_description: A basic container for other hildon widgets.
+ *
+ * A single #HildonProgram can contain many #HildonWindows.
+ * HildonWindow is a customized version of GtkWindow that handles
+ * automatically some taks of the Hildon UI. A typicall hildon application
+ * should contain at least one #HildonWindow.
+ *
+ */
+
#include "hildon-window.h"
#include <memory.h>
#include <string.h>
MAX_WIN_MESSAGES
};
+/**
+ * hildon_window_get_type:
+ *
+ * Initializes and returns the type of a hildon window.
+ *
+ * @Returns: GType of #HildonWindow
+ */
GType G_GNUC_CONST
hildon_window_get_type (void)
{
sizeof (struct _HildonWindowPrivate));
/* Install properties */
+
+ /**
+ * HildonWindow:is-topmost:
+ *
+ * Whether the window is currently activated by the window manager.
+ */
g_object_class_install_property (object_class, PROP_IS_TOPMOST,
g_param_spec_boolean ("is-topmost",
"Is top-most",
return FALSE;
}
-
/**
* hildon_window_new:
*
PROP_AUTOTITLE
};
+/**
+ * hildon_wizard_dialog_get_type:
+ *
+ * Initializes and returns the type of a hildon wizard dialog.
+ *
+ * @Returns: GType of #HildonWzardDialog
+ */
GType G_GNUC_CONST
hildon_wizard_dialog_get_type (void)
{