X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-var-store.h;h=cf4375898f737fd782196c51cf7143cc8334b4d4;hb=8953baa61127d6d3b91f763663ea647bf3e4e793;hp=ff81dd90d226c0161be60b4c02d7a2a6dc97f9a2;hpb=ad10aed69efec78ddbfcdbe4774bf9a0435fcfd6;p=pspp-builds.git diff --git a/src/ui/gui/psppire-var-store.h b/src/ui/gui/psppire-var-store.h index ff81dd90..cf437589 100644 --- a/src/ui/gui/psppire-var-store.h +++ b/src/ui/gui/psppire-var-store.h @@ -17,14 +17,27 @@ #ifndef __PSPPIRE_VAR_STORE_H__ #define __PSPPIRE_VAR_STORE_H__ -#include #include "psppire-dict.h" #include -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ +G_BEGIN_DECLS +/* PSPPIRE variable store format type, to determine whether a + PSPPIRE variable store contains variable input formats or + variable output formats. */ +GType psppire_var_store_format_type_get_type (void); + +typedef enum + { + PSPPIRE_VAR_STORE_INPUT_FORMATS, + PSPPIRE_VAR_STORE_OUTPUT_FORMATS + } +PsppireVarStoreFormatType; + +#define G_TYPE_PSPPIRE_VAR_STORE_FORMAT_TYPE \ + (psppire_var_store_format_type_get_type ()) + +/* PSPPIRE variable store. */ #define GTK_TYPE_VAR_STORE (psppire_var_store_get_type ()) #define PSPPIRE_VAR_STORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \ @@ -52,7 +65,7 @@ struct _PsppireVarStore /*< private >*/ PsppireDict *dict; GdkColor disabled; - const PangoFontDescription *font_desc; + PsppireVarStoreFormatType format_type; }; struct _PsppireVarStoreClass @@ -80,9 +93,21 @@ gint psppire_var_store_get_var_cnt (PsppireVarStore *var_store); void psppire_var_store_set_font (PsppireVarStore *store, const PangoFontDescription *fd); -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS +enum { + PSPPIRE_VAR_STORE_COL_NAME, + PSPPIRE_VAR_STORE_COL_TYPE, + PSPPIRE_VAR_STORE_COL_WIDTH, + PSPPIRE_VAR_STORE_COL_DECIMALS, + PSPPIRE_VAR_STORE_COL_LABEL, + PSPPIRE_VAR_STORE_COL_VALUES, + PSPPIRE_VAR_STORE_COL_MISSING, + PSPPIRE_VAR_STORE_COL_COLUMNS, + PSPPIRE_VAR_STORE_COL_ALIGN, + PSPPIRE_VAR_STORE_COL_MEASURE, + PSPPIRE_VAR_STORE_n_COLS +}; + #endif /* __PSPPIRE_VAR_STORE_H__ */