ssdiff: move comparison engine into its own file.
[gnumeric.git] / src / dialogs / dialogs.h
blob6a045f95e36bc94671ce72635335cfc5efdc551a
1 #ifndef GNUMERIC_DIALOGS_H
2 #define GNUMERIC_DIALOGS_H
4 #include "gnumeric.h"
5 #include "consolidate.h"
6 #include <goffice/goffice.h>
8 typedef enum {
9 FD_CURRENT = -1,
10 FD_NUMBER,
11 FD_ALIGNMENT,
12 FD_FONT,
13 FD_BORDER,
14 FD_BACKGROUND,
15 FD_PROTECTION,
16 FD_VALIDATION,
17 FD_INPUT_MSG,
18 FD_LAST = FD_INPUT_MSG
19 } FormatDialogPosition_t;
21 void dialog_formula_guru (WBCGtk *wbcg, GnmFunc *func);
22 void dialog_plugin_manager (WBCGtk *wbcg);
23 void dialog_goto_cell (WBCGtk *wbcg);
24 void dialog_cell_format (WBCGtk *wbcg,
25 FormatDialogPosition_t pageno,
26 int pages);
27 GtkDialog *dialog_cell_format_select_style (WBCGtk *wbcg,
28 gint pages, GtkWindow *w,
29 GnmStyle *style,
30 gpointer closure);
31 void dialog_cell_format_cond (WBCGtk *wbcg);
32 void dialog_cell_format_style_added (gpointer closure, GnmStyle *style);
33 void dialog_paste_special (WBCGtk *wbcg);
34 void dialog_insert_cells (WBCGtk *wbcg);
35 void dialog_delete_cells (WBCGtk *wbcg);
36 void dialog_zoom (WBCGtk *wbcg, Sheet *sheet);
37 void dialog_about (WBCGtk *wbcg);
38 void dialog_define_names (WBCGtk *wbcg);
39 void dialog_paste_names (WBCGtk *wbcg);
40 void dialog_cell_comment (WBCGtk *wbcg,
41 Sheet *sheet, GnmCellPos const *pos);
42 void dialog_cell_sort (WBCGtk *wbcg);
43 void dialog_workbook_attr (WBCGtk *wbcg);
44 void dialog_goal_seek (WBCGtk *wbcg, Sheet *sheet);
45 void dialog_solver (WBCGtk *wbcg, Sheet *sheet);
46 void dialog_simulation (WBCGtk *wbcg, Sheet *sheet);
47 void dialog_printer_setup (WBCGtk *wbcg, Sheet *sheet);
48 void dialog_advanced_filter (WBCGtk *wbcg);
49 void dialog_shuffle (WBCGtk *wbcg);
50 void dialog_scenario_add (WBCGtk *wbcg);
51 void dialog_scenarios (WBCGtk *wbcg);
52 void dialog_data_slicer (WBCGtk *wbcg, gboolean create);
53 void dialog_data_table (WBCGtk *wbcg);
54 void dialog_auto_filter (WBCGtk *wbcg, GnmFilter *f, int i,
55 gboolean is_expr, GnmFilterCondition *cur);
56 void dialog_autosave (WBCGtk *wbcg);
57 gboolean dialog_autosave_prompt (WBCGtk *wbcg);
58 void dialog_autoformat (WBCGtk *wbcg);
59 void dialog_consolidate (WBCGtk *wbcg);
60 void dialog_sheet_order (WBCGtk *wbcg);
61 void dialog_sheet_resize (WBCGtk *wbcg);
62 void dialog_sheet_rename (WBCGtk *wbcg, Sheet *sheet);
63 void dialog_row_height (WBCGtk *wbcg, gboolean set_default);
64 void dialog_fill_series (WBCGtk *wbcg);
65 void dialog_col_width (WBCGtk *wbcg, gboolean set_default);
66 void dialog_hyperlink (WBCGtk *wbcg, SheetControl *sc);
68 typedef void (* ColRowCallback_t) (WBCGtk *wbcg, gboolean is_cols, gpointer data);
69 void dialog_col_row (WBCGtk *wbcg, char const *operation,
70 ColRowCallback_t callback, gpointer data);
72 typedef gboolean (*SearchDialogCallback) (WBCGtk *wbcg, GnmSearchReplace *sr);
73 void dialog_search (WBCGtk *wbcg);
74 void dialog_search_replace (WBCGtk *wbcg, SearchDialogCallback cb);
75 int dialog_search_replace_query (WBCGtk *wbcg,
76 GnmSearchReplace *sr,
77 char const *location,
78 char const *old_text,
79 char const *new_text);
80 void dialog_tabulate (WBCGtk *wbcg, Sheet *sheet);
81 void dialog_merge (WBCGtk *wbcg);
83 void dialog_function_select (WBCGtk *wbcg, char const *key);
84 void dialog_function_select_help (WBCGtk *wbcg);
85 void dialog_function_select_paste (WBCGtk *wbcg, gint from, gint to);
87 int dialog_correlation_tool (WBCGtk *wbcg, Sheet *sheet);
88 int dialog_covariance_tool (WBCGtk *wbcg, Sheet *sheet);
89 int dialog_descriptive_stat_tool (WBCGtk *wbcg, Sheet *sheet);
90 int dialog_sampling_tool (WBCGtk *wbcg, Sheet *sheet);
91 int dialog_ftest_tool (WBCGtk *wbcg, Sheet *sheet);
92 int dialog_regression_tool (WBCGtk *wbcg, Sheet *sheet);
93 int dialog_random_tool (WBCGtk *wbcg, Sheet *sheet);
94 int dialog_random_cor_tool (WBCGtk *wbcg, Sheet *sheet);
95 int dialog_average_tool (WBCGtk *wbcg, Sheet *sheet);
96 int dialog_exp_smoothing_tool (WBCGtk *wbcg, Sheet *sheet);
97 int dialog_fourier_tool (WBCGtk *wbcg, Sheet *sheet);
98 int dialog_ranking_tool (WBCGtk *wbcg, Sheet *sheet);
99 int dialog_anova_single_factor_tool (WBCGtk *wbcg, Sheet *sheet);
100 int dialog_anova_two_factor_tool (WBCGtk *wbcg, Sheet *sheet);
101 int dialog_histogram_tool (WBCGtk *wbcg, Sheet *sheet);
102 int dialog_frequency_tool (WBCGtk *wbcg, Sheet *sheet);
103 int dialog_kaplan_meier_tool (WBCGtk *wbcg, Sheet *sheet);
104 int dialog_normality_tool (WBCGtk *wbcg, Sheet *sheet);
105 int dialog_one_mean_test_tool (WBCGtk *wbcg, Sheet *sheet);
106 int dialog_chi_square_tool (WBCGtk *wbcg, Sheet *sheet, gboolean independence);
107 int dialog_principal_components_tool (WBCGtk *wbcg, Sheet *sheet);
108 int dialog_wilcoxon_m_w_tool (WBCGtk *wbcg, Sheet *sheet);
110 typedef enum {
111 SIGNTEST,
112 SIGNTEST_WILCOXON
113 } signtest_type;
115 int dialog_sign_test_tool (WBCGtk *wbcg, Sheet *sheet,
116 signtest_type type);
117 int dialog_sign_test_two_tool (WBCGtk *wbcg, Sheet *sheet,
118 signtest_type type);
120 typedef enum {
121 TTEST_PAIRED = 1,
122 TTEST_UNPAIRED_EQUALVARIANCES = 2,
123 TTEST_UNPAIRED_UNEQUALVARIANCES = 3,
124 TTEST_ZTEST = 4
125 } ttest_type;
127 int dialog_ttest_tool (WBCGtk *wbcg, Sheet *sheet, ttest_type test);
128 char *dialog_get_password (GtkWindow *parent, char const *filename);
130 /* Modeless dialogs */
131 void dialog_preferences (WBCGtk *wbcg, gchar const *page);
132 void dialog_recent_used (WBCGtk *wbcg);
134 void dialog_new_view (WBCGtk *wbcg);
136 typedef enum {
137 SO_STYLED_STYLE_ONLY = 0,
138 SO_STYLED_LINE = 1,
139 SO_STYLED_TEXT = 2,
140 } so_styled_t;
142 void dialog_so_styled (WBCGtk *wbcg, GObject *so, GOStyle *default_style,
143 char const *title, so_styled_t extent);
144 void dialog_so_list (WBCGtk *wbcg, GObject *so);
146 void dialog_doc_metadata_new (WBCGtk *wbcg, int page);
148 void dialog_quit (WBCGtk *wbcg);
150 void dialog_so_size (WBCGtk *wbcg, GObject *so);
153 #endif /* GNUMERIC_DIALOGS_H */