Code

Extensions. XAML export improvements.
[inkscape.git] / src / ege-select-one-action.h
index d0c9d6de787603f680c80919591741c6d7bf64b9..36943b9787b404a39a118a2eb208d41d9e263035 100644 (file)
@@ -20,7 +20,7 @@
  *
  * The Initial Developer of the Original Code is
  * Jon A. Cruz.
- * Portions created by the Initial Developer are Copyright (C) 2007
+ * Portions created by the Initial Developer are Copyright (C) 2010
  * the Initial Developer. All Rights Reserved.
  *
  * Contributor(s):
@@ -121,6 +121,22 @@ GtkTreeModel *ege_select_one_action_get_model(EgeSelectOneAction* action );
  */
 gint ege_select_one_action_get_active( EgeSelectOneAction* action );
 
+/**
+ * Returns the text of the currently selected item.
+ *
+ * @param action The action to fetch the text for.
+ * @return the selected text. The caller is responsible to call g_free() on it when done.
+ */
+gchar *ege_select_one_action_get_active_text( EgeSelectOneAction* action );
+
+/**
+ * Sets the text of the currently selected item.
+ *
+ * @param action The action to fetch the text for.
+ * @param text the text to set.
+ */
+void ege_select_one_action_set_active_text( EgeSelectOneAction* action, gchar const *text );
+
 /**
  * Sets the  currently selected item.
  *
@@ -129,6 +145,13 @@ gint ege_select_one_action_get_active( EgeSelectOneAction* action );
  */
 void ege_select_one_action_set_active( EgeSelectOneAction* action, gint val );
 
+//void ege_select_one_action_set_sensitive( EgeSelectOneAction *action, gint val, gboolean sensitive );
+
+/**
+ * Update sensitive parameters.
+ * @param action The action to update.
+ */
+void ege_select_one_action_update_sensitive( EgeSelectOneAction *action );
 
 /**
  * Returns the column used for the display label.
@@ -182,6 +205,22 @@ gint ege_select_one_action_get_tooltip_column( EgeSelectOneAction* action );
 void ege_select_one_action_set_tooltip_column( EgeSelectOneAction* action, gint col );
 
 
+/**
+ * Returns the column used for tracking sensitivity.
+ *
+ * @param action The action to fetch the sensitive column for.
+ */
+gint ege_select_one_action_get_sensitive_column( EgeSelectOneAction* action );
+
+/**
+ * Sets the column used for sensitivity (if any).
+ *
+ * @param action The action to set the sensitive column for.
+ * @param col column to use.
+ */
+void ege_select_one_action_set_sensitive_column( EgeSelectOneAction* action, gint col );
+
+
 /**
  * Sets a hint to be used in determining the display form.
  * This is the XForms style 'appearance' hint: "full", "compact", "minimal".
@@ -191,6 +230,15 @@ void ege_select_one_action_set_tooltip_column( EgeSelectOneAction* action, gint
  */
 void ege_select_one_action_set_appearance( EgeSelectOneAction* action, gchar const* val );
 
+/**
+ * Sets to allow or disallow free entry additions to the list.
+ * The default is "closed" selections that do not allow additions/edits.
+ * This is the XForms functional 'selection' attribute: "open", "closed".
+ *
+ * @param action The action to set the tooltip column for.
+ * @param val The value of the selection attribute.
+ */
+void ege_select_one_action_set_selection( EgeSelectOneAction *action, gchar const* val );
 
 /* bit of a work-around */
 void ege_select_one_action_set_radio_action_type( EgeSelectOneAction* action, GType radioActionType );