X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fsettings.h;h=8ab7357d0a4167c676a34a04d521d1b56dfa8b1a;hb=4f36eb1c4b91f2ba7d95314e9b49cd643a01df46;hp=e68325f7f2bca21aed2ef100420a170b15c2522a;hpb=e937634e9021aa0656a6362f169ec2183efed499;p=pspp diff --git a/src/data/settings.h b/src/data/settings.h index e68325f7f2..8ab7357d0a 100644 --- a/src/data/settings.h +++ b/src/data/settings.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 1997-9, 2000, 2006, 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 1997-9, 2000, 2006, 2009, 2010, 2015 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -36,14 +36,14 @@ void settings_set (const struct settings *); void settings_destroy (struct settings *); enum float_format settings_get_input_float_format (void); -void settings_set_input_float_format ( enum float_format); +void settings_set_input_float_format (enum float_format); /* Returns the integer format used for IB and PIB input. */ enum integer_format settings_get_input_integer_format (void); /* Sets the integer format used for IB and PIB input to FORMAT. */ -void settings_set_input_integer_format ( enum integer_format); +void settings_set_input_integer_format (enum integer_format); /* Returns the current output integer format. */ @@ -61,19 +61,19 @@ void settings_set_output_float_format (enum float_format float_format); int settings_get_viewlength (void); -void settings_set_viewlength ( int); +void settings_set_viewlength (int); int settings_get_viewwidth (void); -void settings_set_viewwidth ( int); +void settings_set_viewwidth (int); bool settings_get_safer_mode (void); void settings_set_safer_mode (void); bool settings_get_include (void); -void settings_set_include ( bool); +void settings_set_include (bool); int settings_get_epoch (void); -void settings_set_epoch ( int); +void settings_set_epoch (int); bool settings_get_scompression (void); void settings_set_scompression (bool); @@ -90,24 +90,43 @@ bool settings_get_mprint (void); void settings_set_mprint (bool); int settings_get_mxloops (void); -void settings_set_mxloops ( int); - -bool settings_get_nulline (void); -void settings_set_nulline (bool); - -char settings_get_endcmd (void); -void settings_set_endcmd (char); +void settings_set_mxloops (int); size_t settings_get_workspace (void); size_t settings_get_workspace_cases (const struct caseproto *); void settings_set_workspace (size_t); const struct fmt_spec *settings_get_format (void); -void settings_set_format ( const struct fmt_spec *); +void settings_set_format (const struct fmt_spec *); bool settings_get_testing_mode (void); void settings_set_testing_mode (bool); +int settings_get_fuzzbits (void); +void settings_set_fuzzbits (int); + +/* Whether to show variable or value labels or the underlying value or variable + name. */ +enum settings_value_show + { + /* Use higher-level default. + In a pivot_value, the default is taken from the pivot_table. + In a pivot_table, the default is a global default. + As a global default, this is invalid. */ + SETTINGS_VALUE_SHOW_DEFAULT = 0, + + SETTINGS_VALUE_SHOW_VALUE = 1, /* Show value or variable name only. */ + SETTINGS_VALUE_SHOW_LABEL = 2, /* Show label only. */ + SETTINGS_VALUE_SHOW_BOTH = 3, /* Show both value/name and label. */ + }; + +enum settings_value_show settings_get_show_values (void); +enum settings_value_show settings_get_show_variables (void); + +void settings_set_show_values (enum settings_value_show); +void settings_set_show_variables (enum settings_value_show); + + enum behavior_mode { ENHANCED, /* Use improved PSPP behavior. */ COMPATIBLE /* Be as compatible as possible. */ @@ -149,6 +168,8 @@ enum settings_output_type SETTINGS_N_OUTPUT_TYPES }; + + void settings_set_output_routing (enum settings_output_type, enum settings_output_devices); enum settings_output_devices settings_get_output_routing (