gebr-geoxml-validate

gebr-geoxml-validate

Functions

Types and Values

Description

Functions

gebr_geoxml_validate_new ()

GebrGeoXmlValidate *
gebr_geoxml_validate_new (gpointer data,
                          GebrGeoXmlValidateOperations operations,
                          GebrGeoXmlValidateOptions options);

gebr_geoxml_validate_free ()

void
gebr_geoxml_validate_free (GebrGeoXmlValidate *validate);

gebr_geoxml_validate_report_menu ()

gint
gebr_geoxml_validate_report_menu (GebrGeoXmlValidate *validate,
                                  GebrGeoXmlFlow *menu);

Types and Values

struct GebrGeoXmlValidate

struct GebrGeoXmlValidate {
	struct _GebrGeoXmlValidateOperations {
		void (*append_text)(gpointer data, const gchar * format, ...);
		/**
		 * Append text with emphasys.
		 * This function is optional. If NULL #append_text is used instead.
		 */
		void (*append_text_emph)(gpointer data, const gchar * format, ...);
		/**
		 * Append error text.
		 */
		void (*append_text_error)(gpointer data, gint flags_failed, const gchar * format, ...);
		/**
		 * Append error text with the paths strings (as for GtkTreeModels)
		 * for programs and parameters.
		 * If set then it is preferred over #append_text_error.
		 */
		void (*append_text_error_with_paths)(gpointer data, gint flags_failed, const gchar *program_path, const
						     gchar *parameter_path, GebrValidateCaseName validate_case, const gchar * format, ...);
	} operations;
	gpointer data;

	struct _GebrGeoXmlValidateOptions {
		/**
		 * TRUE to enable all subsequent tests.
		 * If so, others are overwriten
		 */
		gboolean all;
		gboolean filename;
		gboolean title;
		gboolean desc;
		gboolean author;
		gboolean dates;
		gboolean category;
		gboolean mhelp;
		gboolean progs;
		gboolean url;
		gboolean params;
		gboolean verbose;
		/**
		 * Not influenced by all
		 */
		gint ehelp;
	} options;

	gint potential_errors;
	
	GHashTable *hotkey_table;
	gint iprog;
	gint ipar;
	gint isubpar;
};

GebrGeoXmlValidateOperations

typedef struct _GebrGeoXmlValidateOperations GebrGeoXmlValidateOperations;

GebrGeoXmlValidateOptions

typedef struct _GebrGeoXmlValidateOptions GebrGeoXmlValidateOptions;