X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-var-store.h;h=e60f96086c2c13e943c8cecedeb73253111afd84;hb=782d25daa41a6e267b0c7c6482835fac12964bbc;hp=315432253414880707b9ef3388f44c0a2e84a0a4;hpb=43b1296aafe7582e7dbe6c2b6a8b478d7d9b0fcf;p=pspp-builds.git diff --git a/src/ui/gui/psppire-var-store.h b/src/ui/gui/psppire-var-store.h index 31543225..e60f9608 100644 --- a/src/ui/gui/psppire-var-store.h +++ b/src/ui/gui/psppire-var-store.h @@ -21,10 +21,24 @@ #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), \ @@ -53,6 +67,8 @@ struct _PsppireVarStore PsppireDict *dict; GdkColor disabled; const PangoFontDescription *font_desc; + gint trailing_rows; + PsppireVarStoreFormatType format_type; }; struct _PsppireVarStoreClass @@ -69,7 +85,7 @@ struct _PsppireVarStoreClass GType psppire_var_store_get_type (void) G_GNUC_CONST; PsppireVarStore *psppire_var_store_new (PsppireDict *dict); -struct variable * psppire_var_store_get_var (PsppireVarStore *store, gint row); +struct variable * psppire_var_store_get_var (PsppireVarStore *store, glong row); void psppire_var_store_set_dictionary (PsppireVarStore *var_store, PsppireDict *dict); @@ -80,9 +96,6 @@ 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 #endif /* __PSPPIRE_VAR_STORE_H__ */