X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpspp-sheet-view.h;h=c0a90106fa74680ac165423b05c42486faee7102;hb=f8f1a264cd46b53651baf9aa3ab5042b57fd351b;hp=3df7360e68f7a507b058ba8fd7b093b34cfea460;hpb=a0a6abd7f428676f2c5dfa43bebc7d980d687fbb;p=pspp diff --git a/src/ui/gui/pspp-sheet-view.h b/src/ui/gui/pspp-sheet-view.h index 3df7360e68..c0a90106fa 100644 --- a/src/ui/gui/pspp-sheet-view.h +++ b/src/ui/gui/pspp-sheet-view.h @@ -1,5 +1,5 @@ /* PSPPIRE - a graphical user interface for PSPP. - Copyright (C) 2011 Free Software Foundation, Inc. + Copyright (C) 2011, 2012, 2013 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 @@ -84,6 +84,13 @@ typedef enum PSPP_SHEET_VIEW_DROP_INTO_OR_AFTER } PsppSheetViewDropPosition; +typedef enum +{ + PSPP_SHEET_SELECT_MODE_TOGGLE = 1 << 0, + PSPP_SHEET_SELECT_MODE_EXTEND = 1 << 1 +} +PsppSheetSelectMode; + #define PSPP_TYPE_SHEET_VIEW (pspp_sheet_view_get_type ()) #define PSPP_SHEET_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PSPP_TYPE_SHEET_VIEW, PsppSheetView)) #define PSPP_SHEET_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PSPP_TYPE_SHEET_VIEW, PsppSheetViewClass)) @@ -102,6 +109,8 @@ struct _PsppSheetView GtkContainer parent; PsppSheetViewPrivate *GSEAL (priv); + + gboolean dispose_has_run ; }; struct _PsppSheetViewClass @@ -124,7 +133,8 @@ struct _PsppSheetViewClass gboolean (* select_all) (PsppSheetView *tree_view); gboolean (* unselect_all) (PsppSheetView *tree_view); gboolean (* select_cursor_row) (PsppSheetView *tree_view, - gboolean start_editing); + gboolean start_editing, + PsppSheetSelectMode mode); gboolean (* toggle_cursor_row) (PsppSheetView *tree_view); gboolean (* select_cursor_parent) (PsppSheetView *tree_view); gboolean (* start_interactive_search) (PsppSheetView *tree_view); @@ -391,6 +401,9 @@ PsppSheetViewSpecialCells pspp_sheet_view_get_special_cells (PsppSheetView void pspp_sheet_view_set_special_cells (PsppSheetView *tree_view, PsppSheetViewSpecialCells); +int pspp_sheet_view_get_fixed_height (const PsppSheetView *); +void pspp_sheet_view_set_fixed_height (PsppSheetView *, + int fixed_height); /* Convenience functions for setting tooltips */ void pspp_sheet_view_set_tooltip_row (PsppSheetView *tree_view, @@ -412,6 +425,9 @@ void pspp_sheet_view_set_tooltip_column (PsppSheetView *tree_view gint column); gint pspp_sheet_view_get_tooltip_column (PsppSheetView *tree_view); +void pspp_sheet_view_stop_editing (PsppSheetView *tree_view, + gboolean cancel_editing); + G_END_DECLS